dogapi

Version, currently 0.1.02 versions

github.com/fullcycleapp/dogapi-cr

A Datadog API client written in Crystal.

3 stars
0 dependents
License: Apache 2.0

Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  dogapi:
    github: fullcycleapp/dogapi-cr
    version: ~> 0.1.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

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