How to use the dogapi.now 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 apiaryio / cloudwatch-to-papertrail / index.js View on Github external
function addLambdaMetrics(data, match) {
  var now = dogapi.now();

  data.push({
    metric: 'aws.lambda.billed',
    points: [
      [now, match[1]]
    ]
  });

  data.push({
    metric: 'aws.lambda.maxmemory',
    points: [
      [now, match[2]]
    ]
  });
};

dogapi

Datadog API Node.JS Client

MIT
Latest version published 3 years ago

Package Health Score

68 / 100
Full package analysis