Skip to content

Instantly share code, notes, and snippets.

{
"openapi": "3.0.3",
"info": {
"title": "Datadog API",
"description": "The Datadog API is an HTTP REST API that allows you to programmatically integrate with Datadog's monitoring, alerting, and observability platform. Use resource-oriented URLs and standard HTTP methods to manage monitors, dashboards, metrics, logs, incidents, SLOs, synthetics tests, and more.\n\nDatadog supports three authentication methods:\n- **API Key** (`DD-API-KEY` header) — required for all requests; identifies your organization.\n- **Application Key** (`DD-APPLICATION-KEY` header) — required for most endpoints; grants a user-scoped access context.\n- **OAuth 2.0** — Authorization Code flow with PKCE for third-party integrations and Marketplace apps.\n\nBoth v1 and v2 endpoints are served from the same base URL. The API returns JSON and uses standard HTTP status codes.",
"version": "2.0",
"contact": {
"name": "Datadog Support",
"url": "https://docs.datadoghq.com/api/latest/",
"email": "support@dat
@mattwhittingham
mattwhittingham / README.md
Last active January 24, 2021 16:53
bitfarms rough coins mined for a month

USAGE

ruby analyze.rb --yearmonth 2021-01

OUTPUT EXAMPLE

"page=1"
2021-01-24T15:52:47+00:00 month_total: 0.0 += 6.25 + 0.7578
2021-01-24T07:36:45+00:00 month_total: 7.0078 += 6.25 + 0.2017