Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewthetechie/dd-event-rs

Send a datadog event via the datadog api. CLI client written in Rust
https://github.com/andrewthetechie/dd-event-rs

Last synced: about 1 month ago
JSON representation

Send a datadog event via the datadog api. CLI client written in Rust

Awesome Lists containing this project

README

        

# dd-event

A CLI app to send events to datadog via the API.

```shell
dd-event
Andrew Herrington
Write an event to Datadog via the Datadog API.
Environment Variables:
* DD_API_KEY - Your Datadog API key
* DD_API_HOST - (Optional) The Datadog API host to use, defaults to DD's US API

USAGE:
dd-event [OPTIONS] --text --title

OPTIONS:
-a, --alert-type
If an alert event is enabled, set its type. Allowed values:
error,warning,info,success,user_update,recommendation,snapshot

--aggregation-key
An arbitrary string to use for aggregation. Limited to 100 characters. If you specify a
key, all events using that key are grouped together in the Event Stream

-d, --device-name
A device name

-h, --host
Host name to associate with the event. Any tags associated with the host are also
applied to this event

--help
Print help information

-p, --priority
The priority of the event. For example, normal or low. Allowed enum values: normal,low

-r, --related-event-id
Host name to associate with the event. Any tags associated with the host are also
applied to this event

-s, --source-type-name
The type of event being posted. Option examples include nagios, hudson, jenkins,
my_apps, chef, puppet, git, bitbucket, etc. A complete list of source attribute values
available
https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value/

-t, --text
The body of the event. Limited to 4000 characters. The text supports markdown. To use
markdown in the event text, start the text block with %%% \n and end the text block with
\n %%%

--tags
A list of tags to apply to the event. In the format key:value,key2:value2

--title
The event title

-V, --version
Print version information

--verbose
Will print verbose output to stdout
```