Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
f7cabfe6
Commit
f7cabfe6
authored
May 29, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use EXAMPLES vs inline examples (easier to format)
parent
b7485ea4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
library/monitoring/pagerduty
+11
-7
No files found.
library/monitoring/pagerduty
View file @
f7cabfe6
...
...
@@ -67,17 +67,21 @@ options:
choices: []
aliases: []
version_added: 0.1
examples:
- code: pagerduty name=companyabc user=example@example.com passwd=password123 state=ongoing"
description: List ongoing maintenance windows.
- code: pagerduty name=companyabc user=example@example.com passwd=password123 state=running service=FOO123"
description: Create a 1 hour maintenance window for service FOO123.
- code: pagerduty name=companyabc user=example@example.com passwd=password123 state=running service=FOO123 hours=4 desc=deployment"
description: Create a 4 hour maintenance window for service FOO123 with the description "deployment".
notes:
- This module does not yet have support to end maintenance windows.
'''
EXAMPLES
=
'''
# List ongoing maintenance windows.
pagerduty: name=companyabc user=example@example.com passwd=password123 state=ongoing
# Create a 1 hour maintenance window for service FOO123.
pagerduty: name=companyabc user=example@example.com passwd=password123 state=running service=FOO123"
# Create a 4 hour maintenance window for service FOO123 with the description "deployment".
pagerduty: name=companyabc user=example@example.com passwd=password123 state=running service=FOO123 hours=4 desc=deployment"
'''
import
json
import
datetime
import
urllib2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment