Minor bug fixes, removed debug print and restored cronitor description in schema
Signed-off-by: jetchirag <thechiragaggarwal@gmail.com>
This commit is contained in:
parent
e87ebab625
commit
c3cc5cc95c
|
@ -66,7 +66,7 @@ def run_configuration(config_filename, config, arguments):
|
||||||
error_repository = ''
|
error_repository = ''
|
||||||
using_primary_action = {'create', 'prune', 'compact', 'check'}.intersection(arguments)
|
using_primary_action = {'create', 'prune', 'compact', 'check'}.intersection(arguments)
|
||||||
monitoring_log_level = verbosity_to_log_level(global_arguments.monitoring_verbosity)
|
monitoring_log_level = verbosity_to_log_level(global_arguments.monitoring_verbosity)
|
||||||
action_name = list(arguments.keys())[0]
|
action_name = next(iter(arguments))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
local_borg_version = borg_version.local_borg_version(storage, local_path)
|
local_borg_version = borg_version.local_borg_version(storage, local_path)
|
||||||
|
|
|
@ -1259,6 +1259,11 @@ properties:
|
||||||
If this is set, other properties will be ignored
|
If this is set, other properties will be ignored
|
||||||
and replaced by this value.
|
and replaced by this value.
|
||||||
example: https://cronitor.link/d3x0c1
|
example: https://cronitor.link/d3x0c1
|
||||||
|
description: |
|
||||||
|
Configuration for a monitoring integration with Cronitor.
|
||||||
|
Create an account at https://cronitor.io if you'd
|
||||||
|
like to use this service. See borgmatic monitoring
|
||||||
|
documentation for details.
|
||||||
pagerduty:
|
pagerduty:
|
||||||
type: object
|
type: object
|
||||||
required: ['integration_key']
|
required: ['integration_key']
|
||||||
|
|
|
@ -37,7 +37,6 @@ def ping_monitor(hook_config, config_filename, state, monitoring_log_level, dry_
|
||||||
try:
|
try:
|
||||||
ping_url = '{}/{}'.format(hook_config[action_name], MONITOR_STATE_TO_CRONITOR[state])
|
ping_url = '{}/{}'.format(hook_config[action_name], MONITOR_STATE_TO_CRONITOR[state])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
print('KeyError')
|
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
Loading…
Reference in New Issue