An execution module that interacts with the Datadog API
The following parameters are required for all functions.
Full argument reference is available on the Datadog API reference page https://docs.datadoghq.com/api/
Cancel a downtime by id or by scope.
CLI Example:
salt-call datadog.cancel_downtime scope='host:app01' \
api_key='0123456789' \
app_key='9876543210'` Arguments - Either scope or id is required.
| Parameters: |
|
|---|
Post an event to the Datadog stream.
CLI Example
salt-call datadog.post_event api_key='0123456789' \
app_key='9876543210' \
title='Salt Highstate' \
text="Salt highstate was run on $(salt-call grains.get id)" \
tags='["service:salt", "event:highstate"]' Required arguments
| Parameters: |
|
|---|
Optional arguments
| Parameters: |
|
|---|
Schedule downtime for a scope of monitors.
CLI Example:
salt-call datadog.schedule_downtime 'host:app2' \
stop=$(date --date='30 minutes' +%s) \
app_key='0123456789' \
api_key='9876543210' Optional arguments
| Parameters: |
|
|---|
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.datadog_api.html