datadog_event - Posts events to DataDog service

Author:Artūras ‘arturaz’ Šlajus <x11@arturaz.net>

Synopsis

New in version 1.3.

Allows to post events to DataDog (www.datadoghq.com) service. Uses http://docs.datadoghq.com/api/#events API.

Options

parameter required default choices comments
aggregation_key no
    An arbitrary string to use for aggregation.
    alert_type no info
    • error
    • warning
    • info
    • success
    Type of alert.
    api_key yes
      Your DataDog API key.
      date_happened no now
        POSIX timestamp of the event.Default value is now.
        priority no normal
        • normal
        • low
        The priority of the event.
        tags no
          Comma separated list of tags to apply to the event.
          text yes
            The body of the event.
            title yes
              The event title.
              validate_certs no yes
              • yes
              • no
              If no, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. (added in Ansible 1.5.1)

              Note

              Requires urllib2

              Examples


              # Post an event with low priority
              datadog_event: title="Testing from ansible" text="Test!" priority="low"
                             api_key="6873258723457823548234234234"
              # Post an event with several tags
              datadog_event: title="Testing from ansible" text="Test!"
                             api_key="6873258723457823548234234234"
                             tags=aa,bb,cc
              

              Table Of Contents

              Previous topic

              boundary_meter - Manage boundary meters

              Next topic

              monit - Manage the state of a program monitored via Monit