You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/vendor/github.com/zorkian/go-datadog-api
Edward Muller 8a9b0f6628
fix up some other badly saved deps.
10 years ago
..
.gitignore fix up some other badly saved deps. 10 years ago
.travis.yml fix up some other badly saved deps. 10 years ago
LICENSE provider/datadog: Vendor go-datadog-api 10 years ago
Makefile provider/datadog: Vendor go-datadog-api 10 years ago
README.md provider/datadog: Vendor go-datadog-api 10 years ago
alerts.go provider/datadog: Vendor go-datadog-api 10 years ago
comments.go provider/datadog: Vendor go-datadog-api 10 years ago
dashboards.go provider/datadog: Vendor go-datadog-api 10 years ago
downtimes.go provider/datadog: Vendor go-datadog-api 10 years ago
events.go provider/datadog: Vendor go-datadog-api 10 years ago
main.go provider/datadog: Vendor go-datadog-api 10 years ago
monitors.go provider/datadog: Vendor go-datadog-api 10 years ago
request.go provider/datadog: Vendor go-datadog-api 10 years ago
screen_widgets.go provider/datadog: Vendor go-datadog-api 10 years ago
screenboards.go provider/datadog: Vendor go-datadog-api 10 years ago
search.go provider/datadog: Vendor go-datadog-api 10 years ago
series.go provider/datadog: Vendor go-datadog-api 10 years ago
snapshot.go provider/datadog: Vendor go-datadog-api 10 years ago
tags.go provider/datadog: Vendor go-datadog-api 10 years ago
users.go provider/datadog: Vendor go-datadog-api 10 years ago

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

  • Get dependencies with make updatedeps.
  • Run tests tests with make test.
  • Integration tests can be run with make testacc.

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.