terraform/vendor/github.com/zorkian/go-datadog-api
Jesse Szwedko 5b7e3701cb [datadog] add support for new host delay to the datadog_monitor resource (#11975)
* [datadog] Update go-datadog-api library

Involves one breaking API change. Also some `gofmt`ing.

* [datadog] Add support for new_host_delay to the datadog_monitor resource

New API parameter that Datadog added for monitors to ignore new hosts
for the specified time period in monitor evaluation.
2017-02-17 17:08:31 +02:00
..
integration provider/datadog: Improve datadog timeboard support (#10027) 2016-12-05 13:16:47 +00:00
LICENSE provider/datadog: Vendor go-datadog-api 2016-02-22 15:04:22 -05:00
Makefile provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
README.md provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
alerts.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
checks.go provider/datadog: Improve datadog timeboard support (#10027) 2016-12-05 13:16:47 +00:00
client.go [datadog] add support for new host delay to the datadog_monitor resource (#11975) 2017-02-17 17:08:31 +02:00
comments.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
convert_types.go [datadog] add support for new host delay to the datadog_monitor resource (#11975) 2017-02-17 17:08:31 +02:00
dashboards.go [datadog] add support for new host delay to the datadog_monitor resource (#11975) 2017-02-17 17:08:31 +02:00
downtimes.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
events.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
monitors.go [datadog] add support for new host delay to the datadog_monitor resource (#11975) 2017-02-17 17:08:31 +02:00
ratelimit.go [datadog] add support for new host delay to the datadog_monitor resource (#11975) 2017-02-17 17:08:31 +02:00
request.go [datadog] add support for new host delay to the datadog_monitor resource (#11975) 2017-02-17 17:08:31 +02:00
screen_widgets.go provider/datadog: Vendor go-datadog-api 2016-02-22 15:04:22 -05:00
screenboards.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
search.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
series.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
snapshot.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
tags.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00
users.go provider/datadog 9869: Validate credentials when initialising client. (#10567) 2016-12-08 11:17:42 +01:00

README.md

GoDoc Buildstatus

Datadog API in Go

Hi!

This is a Go wrapper for the Datadog API. You should use this library if you need to interact with the Datadog system. You can post metrics with it if you want, but this library is probably mostly used for automating dashboards/alerting and retrieving data (events, etc).

The source API documentation is here: http://docs.datadoghq.com/api/

USAGE

To use this project, include it in your code like:

    import "github.com/zorkian/go-datadog-api"

Then, you can work with it:

    client := datadog.NewClient("api key", "application key")

    dash, err := client.GetDashboard(10880)
    if err != nil {
        log.Fatalf("fatal: %s\n", err)
    }
    log.Printf("dashboard %d: %s\n", dash.Id, dash.Title)

That's all; it's pretty easy to use. Check out the Godoc link for the available API methods and, if you can't find the one you need, let us know (or patches welcome)!

DOCUMENTATION

Please see: http://godoc.org/github.com/zorkian/go-datadog-api

BUGS/PROBLEMS/CONTRIBUTING

There are certainly some, but presently no known major bugs. If you do find something that doesn't work as expected, please file an issue on Github:

https://github.com/zorkian/go-datadog-api/issues

Thanks in advance! And, as always, patches welcome!

DEVELOPMENT

  • Run tests tests with make test.
  • Integration tests can be run with make testacc. Run specific integration tests with make testacc TESTARGS='-run=TestCreateAndDeleteMonitor'

The acceptance tests require DATADOG_API_KEY and DATADOG_APP_KEY to be available in your environment variables.

Warning: the integrations tests will create and remove real resources in your Datadog account.

Please see the LICENSE file for the included license information.

Copyright 2013 by authors and contributors.