Skip to content

fullcycleapp/dogapi-cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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