summaryrefslogtreecommitdiff
path: root/monitoring/librato_annotation.py
diff options
context:
space:
mode:
Diffstat (limited to 'monitoring/librato_annotation.py')
-rw-r--r--monitoring/librato_annotation.py21
1 files changed, 11 insertions, 10 deletions
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
'''