Manage the StatusPage configuration.
In the minion configuration file, the following block is required:
statuspage:
api_key: <API_KEY>
page_id: <PAGE_ID>
New in version 2017.7.0.
salt.states.statuspage.
create
(name, endpoint=u'incidents', api_url=None, page_id=None, api_key=None, api_version=None, **kwargs)¶Insert a new entry under a specific endpoint.
SLS Example:
create-my-component:
statuspage.create:
- endpoint: components
- name: my component
- group_id: 993vgplshj12
salt.states.statuspage.
delete
(name, endpoint=u'incidents', id=None, api_url=None, page_id=None, api_key=None, api_version=None)¶Remove an entry from an endpoint.
SLS Example:
delete-my-component:
statuspage.delete:
- endpoint: components
- id: ftgks51sfs2d
salt.states.statuspage.
managed
(name, config, api_url=None, page_id=None, api_key=None, api_version=None, pace=1, allow_empty=False)¶Manage the StatusPage configuration.
SLS example:
my-statuspage-config:
statuspage.managed:
- config:
components:
- name: component1
group_id: uy4g37rf
- name: component2
group_id: 3n4uyu4gf
incidents:
- name: incident1
status: resolved
impact: major
backfilled: false
- name: incident2
status: investigating
impact: minor
salt.states.statuspage.
update
(name, endpoint=u'incidents', id=None, api_url=None, page_id=None, api_key=None, api_version=None, **kwargs)¶Update attribute(s) of a specific endpoint.
SLS Example:
update-my-incident:
statuspage.update:
- id: dz959yz2nd4l
- status: resolved