summaryrefslogtreecommitdiff
path: root/monitoring
diff options
context:
space:
mode:
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
'''