Removed all refrences to state file
This commit is contained in:
@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user