summaryrefslogtreecommitdiff
path: root/monitoring
diff options
context:
space:
mode:
authorFabio Alessandro Locati <me@fale.io>2016-12-05 04:15:23 +0000
committerJohn R Barker <john@johnrbarker.com>2016-12-04 23:15:23 -0500
commit83b86ec970ed9541f6c6a31649aeeacb3d835e58 (patch)
tree97738c28707e80265bd67dc7cedf0e0b152f20db /monitoring
parent51f09503a7a624de6e28ab2e678192c19f808887 (diff)
downloadansible-modules-extras-83b86ec970ed9541f6c6a31649aeeacb3d835e58.tar.gz
Native YAML, improve quotation (#3643)
Diffstat (limited to 'monitoring')
-rw-r--r--monitoring/circonus_annotation.py18
-rw-r--r--monitoring/librato_annotation.py21
2 files changed, 20 insertions, 19 deletions
diff --git a/monitoring/circonus_annotation.py b/monitoring/circonus_annotation.py
index 1452547a..2435c3ca 100644
--- a/monitoring/circonus_annotation.py
+++ b/monitoring/circonus_annotation.py
@@ -64,22 +64,22 @@ EXAMPLES = '''
# Create a simple annotation event with a source, defaults to start and end time of now
- circonus_annotation:
api_key: XXXXXXXXXXXXXXXXX
- title: 'App Config Change'
- description: 'This is a detailed description of the config change'
- category: 'This category groups like annotations'
+ title: App Config Change
+ description: This is a detailed description of the config change
+ category: This category groups like annotations
# Create an annotation with a duration of 5 minutes and a default start time of now
- circonus_annotation:
api_key: XXXXXXXXXXXXXXXXX
- title: 'App Config Change'
- description: 'This is a detailed description of the config change'
- category: 'This category groups like annotations'
+ title: App Config Change
+ description: This is a detailed description of the config change
+ category: This category groups like annotations
duration: 300
# Create an annotation with a start_time and end_time
- circonus_annotation:
api_key: XXXXXXXXXXXXXXXXX
- title: 'App Config Change'
- description: 'This is a detailed description of the config change'
- category: 'This category groups like annotations'
+ title: App Config Change
+ description: This is a detailed description of the config change
+ category: This category groups like annotations
start_time: 1395940006
end_time: 1395954407
'''
diff --git a/monitoring/librato_annotation.py b/monitoring/librato_annotation.py
index f174bda0..d73de459 100644
--- a/monitoring/librato_annotation.py
+++ b/monitoring/librato_annotation.py
@@ -77,27 +77,28 @@ EXAMPLES = '''
- librato_annotation:
user: user@example.com
api_key: XXXXXXXXXXXXXXXXX
- title: 'App Config Change'
- source: 'foo.bar'
- description: 'This is a detailed description of the config change'
+ title: App Config Change
+ source: foo.bar
+ description: This is a detailed description of the config change
# Create an annotation that includes a link
- librato_annotation:
user: user@example.com
api_key: XXXXXXXXXXXXXXXXXX
- name: 'code.deploy'
- title: 'app code deploy'
- description: 'this is a detailed description of a deployment'
+ name: code.deploy
+ title: app code deploy
+ description: this is a detailed description of a deployment
links:
- - { rel: 'example', href: 'http://www.example.com/deploy' }
+ - rel: example
+ href: http://www.example.com/deploy
# Create an annotation with a start_time and end_time
- librato_annotation:
user: user@example.com
api_key: XXXXXXXXXXXXXXXXXX
- name: 'maintenance'
- title: 'Maintenance window'
- description: 'This is a detailed description of maintenance'
+ name: maintenance
+ title: Maintenance window
+ description: This is a detailed description of maintenance
start_time: 1395940006
end_time: 1395954406
'''