diff options
author | Trevor Kensiski <tdktank59@gmail.com> | 2016-08-11 14:18:06 -0700 |
---|---|---|
committer | René Moser <mail@renemoser.net> | 2016-08-11 23:18:06 +0200 |
commit | d4e389971048271862be2bb8b066bb4998e062ee (patch) | |
tree | 4aa19a0df1651be69cac270d1508bf47971bfd32 /monitoring | |
parent | db463e44b35dad1f4e74d6425cb66233857228c0 (diff) | |
download | ansible-modules-extras-d4e389971048271862be2bb8b066bb4998e062ee.tar.gz |
Adding datadog monitor locked option. http://docs.datadoghq.com/api/#monitor-create (#2698)
Diffstat (limited to 'monitoring')
-rw-r--r-- | monitoring/datadog_monitor.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/monitoring/datadog_monitor.py b/monitoring/datadog_monitor.py index 6003664f..208dc733 100644 --- a/monitoring/datadog_monitor.py +++ b/monitoring/datadog_monitor.py @@ -103,6 +103,11 @@ options: description: ["A dictionary of thresholds by status. This option is only available for service checks and metric alerts. Because each of them can have multiple thresholds, we don't define them directly in the query."] required: false default: {'ok': 1, 'critical': 1, 'warning': 1} + locked: + description: ["A boolean indicating whether changes to this monitor should be restricted to the creator or admins."] + required: false + default: False + version_added: 2.2 ''' EXAMPLES = ''' @@ -158,7 +163,8 @@ def main(): escalation_message=dict(required=False, default=None), notify_audit=dict(required=False, default=False, type='bool'), thresholds=dict(required=False, type='dict', default=None), - tags=dict(required=False, type='list', default=None) + tags=dict(required=False, type='list', default=None), + locked=dict(required=False, default=False, type='bool') ) ) @@ -241,6 +247,7 @@ def install_monitor(module): "renotify_interval": module.params['renotify_interval'], "escalation_message": module.params['escalation_message'], "notify_audit": module.boolean(module.params['notify_audit']), + "locked": module.boolean(module.params['locked']), } if module.params['type'] == "service check": |