Zum Inhalt
HALOWERK

Datenvertragswerk

classic histogram quantile trace

Compute a rational classic histogram quantile and a sorted/coalesced cumulative-bucket repair trace from bounded caller-supplied integer counts. Own exact rational specialization of the Prometheus3.2.1 classic rule; no native histogram, scrape, PromQL server or vendor float-bit conformance. Uniform-within-bucket interpolation is an assumption, not recovered observations. Undefined results remain unknown and cost the same fixed0.003USDC; invalid input must map to native400 before settlement..

POST https://datenvertrag.halowerk.com/v1/classic-histogram-quantile-trace

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
qobjectJa
bucketsarrayJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "q": {
      "type": "object",
      "properties": {
        "numerator": {
          "type": "integer",
          "minimum": -1000000,
          "maximum": 1000000
        },
        "denominator": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000000
        }
      },
      "required": [
        "numerator",
        "denominator"
      ],
      "additionalProperties": false
    },
    "buckets": {
      "type": "array",
      "maxItems": 64,
      "items": {
        "type": "object",
        "properties": {
          "upper": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -1000000,
                "maximum": 1000000
              },
              {
                "const": "+Inf"
              }
            ]
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          }
        },
        "required": [
          "upper",
          "count"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "q",
    "buckets"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "q": {
    "numerator": 1,
    "denominator": 2
  },
  "buckets": [
    {
      "upper": 1,
      "count": 2
    },
    {
      "upper": 2,
      "count": 6
    },
    {
      "upper": "+Inf",
      "count": 8
    }
  ]
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →