Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Histogram

dilipdevaraj-sfdc edited this page Feb 1, 2019 · 4 revisions

User Guide | Data Model


Histogram

The Histogram object encapsulates raw buckets count information that can be associated with a time series.

Name Type Description
scope string The scope of the histogram.
metric string The metric name of the time series associated with the histogram.
tags map<string,string> A map of tag key value pairs for the histogram.
timestamp long The epoch timestamp at which the histogram count was computed.
buckets map<<float , float>,long> buckets key is a tuple made of <upper , lower bound> of type float each. buckets value is count of type long.
overflow long Optional, if count value falls above the highest bucket upper bound.
underflow long Optional, if count value falls below the lowest bucket lower bound.

Example Histogram Entity:

{
   "scope":"scope",
   "metric":"query.latency",
   "timestamp":1537804800000,
   "overflow":1,
   "underflow":0,
   "buckets":{
      "0,50":100,
      "50,100":60,
      "100,300":25,
      "300,1000":10,
      "1000,10000":5
   },
   "tags":{  
      "endpoint":"/api1",
      "version":"v1",
      "device":"device1-1"
   }
}