How to use the dogapi.client function in dogapi

To help you get started, we’ve selected a few dogapi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dbader / node-datadog-metrics / test / loggers_tests.js View on Github external
it('should allow setting the agent tags', function() {
        var agent = new https.Agent({ keepAlive: true, keepAliveMsecs: 10 });
        var l = new BufferedMetricsLogger({
            reporter: new reporters.DataDogReporter('yolo', 'yolo', agent),
        });
        // jscs:disable requireCamelCaseOrUpperCaseIdentifiers
        dogapi.client.proxy_agent.keepAlive.should.equal(true);
        dogapi.client.proxy_agent.keepAliveMsecs.should.equal(10);
        // jscs:enable requireCamelCaseOrUpperCaseIdentifiers
    });
});
github dbader / node-datadog-metrics / test / loggers_tests.js View on Github external
it('should allow setting the agent tags', function() {
        var agent = new https.Agent({ keepAlive: true, keepAliveMsecs: 10 });
        var l = new BufferedMetricsLogger({
            reporter: new reporters.DataDogReporter('yolo', 'yolo', agent),
        });
        // jscs:disable requireCamelCaseOrUpperCaseIdentifiers
        dogapi.client.proxy_agent.keepAlive.should.equal(true);
        dogapi.client.proxy_agent.keepAliveMsecs.should.equal(10);
        // jscs:enable requireCamelCaseOrUpperCaseIdentifiers
    });
});
github Gravebot / Gravebot / src / datadog.js View on Github external
export default function send(metric, value) {
  if (dogapi.client.api_key && dogapi.client.app_key) dogapi.metric.send(metric, value);
}

dogapi

Datadog API Node.JS Client

MIT
Latest version published 3 years ago

Package Health Score

68 / 100
Full package analysis