opt in to healthcheck
This commit is contained in:
		
							
								
								
									
										4
									
								
								crane.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								crane.py
									
									
									
									
									
								
							| @@ -55,6 +55,7 @@ class Crn: | ||||
|         self.observed_containers = list(self.config["containers"].values()) | ||||
|         self.container_statuses = ["paused","dead","created","exited","removing","restarting","created"] | ||||
|         #healthcheck | ||||
|         self.use_healthcheck = self.config["healthcheck"]["use_healthcheck"] | ||||
|         self.healthcheck_url = self.config["healthcheck"]["healthcheck_url"] | ||||
|  | ||||
|         cont_log(self) | ||||
| @@ -82,7 +83,8 @@ class Crn: | ||||
|             cont_notify_summary(self, apprise_notify, requests) | ||||
|         if self.use_apprise: | ||||
|             cont_notify_summary(self, apprise_notify, requests) | ||||
|         send_ping(self, requests, self.healthcheck_url) | ||||
|         if self.use_healthcheck: | ||||
|             send_ping(self, requests, self.healthcheck_url) | ||||
|          | ||||
| # Run | ||||
| if  __name__== "__main__": | ||||
|   | ||||
		Reference in New Issue
	
	Block a user