Skip to content
HALOWERK

Statwerk

series counter reset deltas

Return minimum observed counter increments with explicit reset-to-zero or single-wrap assumptions. Supplied observations only.

POST https://stat.halowerk.com/v1/series-counter-reset-deltas

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
readingsarrayYes
modeSee schemaYes
modulusintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "readings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "at_ms": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "value": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          }
        },
        "required": [
          "at_ms",
          "value"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 2
    },
    "mode": {
      "enum": [
        "reset_to_zero",
        "wrap"
      ]
    },
    "modulus": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000000
    }
  },
  "required": [
    "readings",
    "mode",
    "modulus"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "readings": [
    {
      "at_ms": 0,
      "value": 100
    },
    {
      "at_ms": 10,
      "value": 120
    },
    {
      "at_ms": 20,
      "value": 5
    }
  ],
  "mode": "reset_to_zero",
  "modulus": 1000
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’