Removed all refrences to state file

This commit is contained in:
2024-12-13 19:03:33 -05:00
parent df7b0034ed
commit 77e0d2b4a3

View File

@ -69,11 +69,9 @@ class SystemHealthMonitor:
Initialize the system health monitor.
:param ticket_api_url: URL for the ticket creation API.
:param state_file: File path to track the last health check results.
:param dry_run: If True, simulate API calls without sending requests.
"""
self.ticket_api_url = ticket_api_url
self.state_file = state_file
self.dry_run = dry_run
def run(self):
@ -610,7 +608,6 @@ def main():
# Instantiate the SystemHealthMonitor class
monitor = SystemHealthMonitor(
ticket_api_url=SystemHealthMonitor.CONFIG['TICKET_API_URL'],
state_file=SystemHealthMonitor.CONFIG['STATE_FILE'],
dry_run=args.dry_run
)