dogapi-cr

A Datadog API client written in Crystal.

dogapi-cr

Travis-CI

dogapi-cr is a crystal client for DataDog's API the code is based loosely on Datadog's Ruby Library.

Requirements

Crystal 1.0+

Installation

Add this to your application's shard.yml:

dependencies:
  dogapi:
    github: fullcycleapp/dogapi-cr

Usage

When running the code below you need the DATADOG_KEY and a DATADOG_APP_KEY set, go to Integrations > APIs in datadog to get your API and app key.

After that, you can use this client in your Crystal programs like so:

require "dogapi"

dog = Dogapi::Client.new(ENV["DATADOG_KEY"])
dog.emit_point("test.api.test_metric", 4.0)

Take a look at the examples/ folder for more examples usages.

Contributing

Contributions and patches are welcome! Please read the following instructions before submitting your patch:

  1. Fork it (https://github.com/fullcycleapp/dogapi-cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Maintainers

  • Calvin Hill (@return) - creator, maintainer
  • Wesley Hill (@hako) - maintainer

LICENSE

Apache 2.0

Repository

dogapi-cr

Owner
Statistic
  • 2
  • 1
  • 1
  • 0
  • 0
  • over 2 years ago
  • January 2, 2019
License

Apache License 2.0

Links
Synced at

Thu, 07 Nov 2024 05:29:35 GMT

Languages