Telemetry Reset Delta

Turn a sampled cumulative counter into increments while separating configured rollovers from unknown resets.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /telemetry-reset-delta/v1/check with an x402 V2 client.

Worked example

Request

{
  "modulus": 100,
  "max_increment": 20,
  "samples": [
    {
      "at": 1,
      "value": 95
    },
    {
      "at": 2,
      "value": 3
    },
    {
      "at": 3,
      "value": 10
    },
    {
      "at": 4,
      "value": 1
    }
  ]
}

Result

{
  "increments": [
    {
      "at": 2,
      "delta": 8,
      "kind": "rollover"
    },
    {
      "at": 3,
      "delta": 7,
      "kind": "normal"
    },
    {
      "at": 4,
      "delta": null,
      "kind": "unknown_reset"
    }
  ],
  "known_total": 15
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter