Opentelemetry_proto.MetricsCode for metrics.proto
and exemplar = {filtered_attributes : Common.key_value list;time_unix_nano : int64;value : exemplar_value;span_id : bytes;trace_id : bytes;}and number_data_point = {attributes : Common.key_value list;start_time_unix_nano : int64;time_unix_nano : int64;value : number_data_point_value;exemplars : exemplar list;flags : int32;}type sum = {data_points : number_data_point list;aggregation_temporality : aggregation_temporality;is_monotonic : bool;}type histogram_data_point = {attributes : Common.key_value list;start_time_unix_nano : int64;time_unix_nano : int64;count : int64;sum : float option;bucket_counts : int64 list;explicit_bounds : float list;exemplars : exemplar list;flags : int32;min : float option;max : float option;}type histogram = {data_points : histogram_data_point list;aggregation_temporality : aggregation_temporality;}type exponential_histogram_data_point = {attributes : Common.key_value list;start_time_unix_nano : int64;time_unix_nano : int64;count : int64;sum : float option;scale : int32;zero_count : int64;positive : exponential_histogram_data_point_buckets option;negative : exponential_histogram_data_point_buckets option;flags : int32;exemplars : exemplar list;min : float option;max : float option;zero_threshold : float;}type exponential_histogram = {data_points : exponential_histogram_data_point list;aggregation_temporality : aggregation_temporality;}type summary_data_point = {attributes : Common.key_value list;start_time_unix_nano : int64;time_unix_nano : int64;count : int64;sum : float;quantile_values : summary_data_point_value_at_quantile list;flags : int32;}type metric_data = | Gauge of gauge| Sum of sum| Histogram of histogram| Exponential_histogram of exponential_histogram| Summary of summarytype scope_metrics = {scope : Common.instrumentation_scope option;metrics : metric list;schema_url : string;}type resource_metrics = {resource : Resource.resource option;scope_metrics : scope_metrics list;schema_url : string;}val default_exemplar_value : unit -> exemplar_valuedefault_exemplar_value () is the default value for type exemplar_value
val default_exemplar :
?filtered_attributes:Common.key_value list ->
?time_unix_nano:int64 ->
?value:exemplar_value ->
?span_id:bytes ->
?trace_id:bytes ->
unit ->
exemplardefault_exemplar () is the default value for type exemplar
val default_number_data_point_value : unit -> number_data_point_valuedefault_number_data_point_value () is the default value for type number_data_point_value
val default_number_data_point :
?attributes:Common.key_value list ->
?start_time_unix_nano:int64 ->
?time_unix_nano:int64 ->
?value:number_data_point_value ->
?exemplars:exemplar list ->
?flags:int32 ->
unit ->
number_data_pointdefault_number_data_point () is the default value for type number_data_point
val default_gauge : ?data_points:number_data_point list -> unit -> gaugedefault_gauge () is the default value for type gauge
val default_aggregation_temporality : unit -> aggregation_temporalitydefault_aggregation_temporality () is the default value for type aggregation_temporality
val default_sum :
?data_points:number_data_point list ->
?aggregation_temporality:aggregation_temporality ->
?is_monotonic:bool ->
unit ->
sumdefault_sum () is the default value for type sum
val default_histogram_data_point :
?attributes:Common.key_value list ->
?start_time_unix_nano:int64 ->
?time_unix_nano:int64 ->
?count:int64 ->
?sum:float option ->
?bucket_counts:int64 list ->
?explicit_bounds:float list ->
?exemplars:exemplar list ->
?flags:int32 ->
?min:float option ->
?max:float option ->
unit ->
histogram_data_pointdefault_histogram_data_point () is the default value for type histogram_data_point
val default_histogram :
?data_points:histogram_data_point list ->
?aggregation_temporality:aggregation_temporality ->
unit ->
histogramdefault_histogram () is the default value for type histogram
val default_exponential_histogram_data_point_buckets :
?offset:int32 ->
?bucket_counts:int64 list ->
unit ->
exponential_histogram_data_point_bucketsdefault_exponential_histogram_data_point_buckets () is the default value for type exponential_histogram_data_point_buckets
val default_exponential_histogram_data_point :
?attributes:Common.key_value list ->
?start_time_unix_nano:int64 ->
?time_unix_nano:int64 ->
?count:int64 ->
?sum:float option ->
?scale:int32 ->
?zero_count:int64 ->
?positive:exponential_histogram_data_point_buckets option ->
?negative:exponential_histogram_data_point_buckets option ->
?flags:int32 ->
?exemplars:exemplar list ->
?min:float option ->
?max:float option ->
?zero_threshold:float ->
unit ->
exponential_histogram_data_pointdefault_exponential_histogram_data_point () is the default value for type exponential_histogram_data_point
val default_exponential_histogram :
?data_points:exponential_histogram_data_point list ->
?aggregation_temporality:aggregation_temporality ->
unit ->
exponential_histogramdefault_exponential_histogram () is the default value for type exponential_histogram
val default_summary_data_point_value_at_quantile :
?quantile:float ->
?value:float ->
unit ->
summary_data_point_value_at_quantiledefault_summary_data_point_value_at_quantile () is the default value for type summary_data_point_value_at_quantile
val default_summary_data_point :
?attributes:Common.key_value list ->
?start_time_unix_nano:int64 ->
?time_unix_nano:int64 ->
?count:int64 ->
?sum:float ->
?quantile_values:summary_data_point_value_at_quantile list ->
?flags:int32 ->
unit ->
summary_data_pointdefault_summary_data_point () is the default value for type summary_data_point
val default_summary : ?data_points:summary_data_point list -> unit -> summarydefault_summary () is the default value for type summary
val default_metric_data : unit -> metric_datadefault_metric_data () is the default value for type metric_data
val default_metric :
?name:string ->
?description:string ->
?unit_:string ->
?data:metric_data ->
unit ->
metricdefault_metric () is the default value for type metric
val default_scope_metrics :
?scope:Common.instrumentation_scope option ->
?metrics:metric list ->
?schema_url:string ->
unit ->
scope_metricsdefault_scope_metrics () is the default value for type scope_metrics
val default_resource_metrics :
?resource:Resource.resource option ->
?scope_metrics:scope_metrics list ->
?schema_url:string ->
unit ->
resource_metricsdefault_resource_metrics () is the default value for type resource_metrics
val default_metrics_data :
?resource_metrics:resource_metrics list ->
unit ->
metrics_datadefault_metrics_data () is the default value for type metrics_data
val default_data_point_flags : unit -> data_point_flagsdefault_data_point_flags () is the default value for type data_point_flags
val make_exemplar :
filtered_attributes:Common.key_value list ->
time_unix_nano:int64 ->
value:exemplar_value ->
span_id:bytes ->
trace_id:bytes ->
unit ->
exemplarmake_exemplar … () is a builder for type exemplar
val make_number_data_point :
attributes:Common.key_value list ->
start_time_unix_nano:int64 ->
time_unix_nano:int64 ->
value:number_data_point_value ->
exemplars:exemplar list ->
flags:int32 ->
unit ->
number_data_pointmake_number_data_point … () is a builder for type number_data_point
val make_gauge : data_points:number_data_point list -> unit -> gaugemake_gauge … () is a builder for type gauge
val make_sum :
data_points:number_data_point list ->
aggregation_temporality:aggregation_temporality ->
is_monotonic:bool ->
unit ->
summake_sum … () is a builder for type sum
val make_histogram_data_point :
attributes:Common.key_value list ->
start_time_unix_nano:int64 ->
time_unix_nano:int64 ->
count:int64 ->
?sum:float option ->
bucket_counts:int64 list ->
explicit_bounds:float list ->
exemplars:exemplar list ->
flags:int32 ->
?min:float option ->
?max:float option ->
unit ->
histogram_data_pointmake_histogram_data_point … () is a builder for type histogram_data_point
val make_histogram :
data_points:histogram_data_point list ->
aggregation_temporality:aggregation_temporality ->
unit ->
histogrammake_histogram … () is a builder for type histogram
val make_exponential_histogram_data_point_buckets :
offset:int32 ->
bucket_counts:int64 list ->
unit ->
exponential_histogram_data_point_bucketsmake_exponential_histogram_data_point_buckets … () is a builder for type exponential_histogram_data_point_buckets
val make_exponential_histogram_data_point :
attributes:Common.key_value list ->
start_time_unix_nano:int64 ->
time_unix_nano:int64 ->
count:int64 ->
?sum:float option ->
scale:int32 ->
zero_count:int64 ->
?positive:exponential_histogram_data_point_buckets option ->
?negative:exponential_histogram_data_point_buckets option ->
flags:int32 ->
exemplars:exemplar list ->
?min:float option ->
?max:float option ->
zero_threshold:float ->
unit ->
exponential_histogram_data_pointmake_exponential_histogram_data_point … () is a builder for type exponential_histogram_data_point
val make_exponential_histogram :
data_points:exponential_histogram_data_point list ->
aggregation_temporality:aggregation_temporality ->
unit ->
exponential_histogrammake_exponential_histogram … () is a builder for type exponential_histogram
val make_summary_data_point_value_at_quantile :
quantile:float ->
value:float ->
unit ->
summary_data_point_value_at_quantilemake_summary_data_point_value_at_quantile … () is a builder for type summary_data_point_value_at_quantile
val make_summary_data_point :
attributes:Common.key_value list ->
start_time_unix_nano:int64 ->
time_unix_nano:int64 ->
count:int64 ->
sum:float ->
quantile_values:summary_data_point_value_at_quantile list ->
flags:int32 ->
unit ->
summary_data_pointmake_summary_data_point … () is a builder for type summary_data_point
val make_summary : data_points:summary_data_point list -> unit -> summarymake_summary … () is a builder for type summary
val make_metric :
name:string ->
description:string ->
unit_:string ->
data:metric_data ->
unit ->
metricmake_metric … () is a builder for type metric
val make_scope_metrics :
?scope:Common.instrumentation_scope option ->
metrics:metric list ->
schema_url:string ->
unit ->
scope_metricsmake_scope_metrics … () is a builder for type scope_metrics
val make_resource_metrics :
?resource:Resource.resource option ->
scope_metrics:scope_metrics list ->
schema_url:string ->
unit ->
resource_metricsmake_resource_metrics … () is a builder for type resource_metrics
val make_metrics_data :
resource_metrics:resource_metrics list ->
unit ->
metrics_datamake_metrics_data … () is a builder for type metrics_data
val pp_exemplar_value : Stdlib.Format.formatter -> exemplar_value -> unitpp_exemplar_value v formats v
val pp_exemplar : Stdlib.Format.formatter -> exemplar -> unitpp_exemplar v formats v
val pp_number_data_point_value :
Stdlib.Format.formatter ->
number_data_point_value ->
unitpp_number_data_point_value v formats v
val pp_number_data_point : Stdlib.Format.formatter -> number_data_point -> unitpp_number_data_point v formats v
val pp_gauge : Stdlib.Format.formatter -> gauge -> unitpp_gauge v formats v
val pp_aggregation_temporality :
Stdlib.Format.formatter ->
aggregation_temporality ->
unitpp_aggregation_temporality v formats v
val pp_sum : Stdlib.Format.formatter -> sum -> unitpp_sum v formats v
val pp_histogram_data_point :
Stdlib.Format.formatter ->
histogram_data_point ->
unitpp_histogram_data_point v formats v
val pp_histogram : Stdlib.Format.formatter -> histogram -> unitpp_histogram v formats v
val pp_exponential_histogram_data_point_buckets :
Stdlib.Format.formatter ->
exponential_histogram_data_point_buckets ->
unitpp_exponential_histogram_data_point_buckets v formats v
val pp_exponential_histogram_data_point :
Stdlib.Format.formatter ->
exponential_histogram_data_point ->
unitpp_exponential_histogram_data_point v formats v
val pp_exponential_histogram :
Stdlib.Format.formatter ->
exponential_histogram ->
unitpp_exponential_histogram v formats v
val pp_summary_data_point_value_at_quantile :
Stdlib.Format.formatter ->
summary_data_point_value_at_quantile ->
unitpp_summary_data_point_value_at_quantile v formats v
val pp_summary_data_point :
Stdlib.Format.formatter ->
summary_data_point ->
unitpp_summary_data_point v formats v
val pp_summary : Stdlib.Format.formatter -> summary -> unitpp_summary v formats v
val pp_metric_data : Stdlib.Format.formatter -> metric_data -> unitpp_metric_data v formats v
val pp_metric : Stdlib.Format.formatter -> metric -> unitpp_metric v formats v
val pp_scope_metrics : Stdlib.Format.formatter -> scope_metrics -> unitpp_scope_metrics v formats v
val pp_resource_metrics : Stdlib.Format.formatter -> resource_metrics -> unitpp_resource_metrics v formats v
val pp_metrics_data : Stdlib.Format.formatter -> metrics_data -> unitpp_metrics_data v formats v
val pp_data_point_flags : Stdlib.Format.formatter -> data_point_flags -> unitpp_data_point_flags v formats v
val encode_pb_exemplar_value : exemplar_value -> Pbrt.Encoder.t -> unitencode_pb_exemplar_value v encoder encodes v with the given encoder
val encode_pb_exemplar : exemplar -> Pbrt.Encoder.t -> unitencode_pb_exemplar v encoder encodes v with the given encoder
val encode_pb_number_data_point_value :
number_data_point_value ->
Pbrt.Encoder.t ->
unitencode_pb_number_data_point_value v encoder encodes v with the given encoder
val encode_pb_number_data_point : number_data_point -> Pbrt.Encoder.t -> unitencode_pb_number_data_point v encoder encodes v with the given encoder
val encode_pb_gauge : gauge -> Pbrt.Encoder.t -> unitencode_pb_gauge v encoder encodes v with the given encoder
val encode_pb_aggregation_temporality :
aggregation_temporality ->
Pbrt.Encoder.t ->
unitencode_pb_aggregation_temporality v encoder encodes v with the given encoder
val encode_pb_sum : sum -> Pbrt.Encoder.t -> unitencode_pb_sum v encoder encodes v with the given encoder
val encode_pb_histogram_data_point :
histogram_data_point ->
Pbrt.Encoder.t ->
unitencode_pb_histogram_data_point v encoder encodes v with the given encoder
val encode_pb_histogram : histogram -> Pbrt.Encoder.t -> unitencode_pb_histogram v encoder encodes v with the given encoder
val encode_pb_exponential_histogram_data_point_buckets :
exponential_histogram_data_point_buckets ->
Pbrt.Encoder.t ->
unitencode_pb_exponential_histogram_data_point_buckets v encoder encodes v with the given encoder
val encode_pb_exponential_histogram_data_point :
exponential_histogram_data_point ->
Pbrt.Encoder.t ->
unitencode_pb_exponential_histogram_data_point v encoder encodes v with the given encoder
val encode_pb_exponential_histogram :
exponential_histogram ->
Pbrt.Encoder.t ->
unitencode_pb_exponential_histogram v encoder encodes v with the given encoder
val encode_pb_summary_data_point_value_at_quantile :
summary_data_point_value_at_quantile ->
Pbrt.Encoder.t ->
unitencode_pb_summary_data_point_value_at_quantile v encoder encodes v with the given encoder
val encode_pb_summary_data_point : summary_data_point -> Pbrt.Encoder.t -> unitencode_pb_summary_data_point v encoder encodes v with the given encoder
val encode_pb_summary : summary -> Pbrt.Encoder.t -> unitencode_pb_summary v encoder encodes v with the given encoder
val encode_pb_metric_data : metric_data -> Pbrt.Encoder.t -> unitencode_pb_metric_data v encoder encodes v with the given encoder
val encode_pb_metric : metric -> Pbrt.Encoder.t -> unitencode_pb_metric v encoder encodes v with the given encoder
val encode_pb_scope_metrics : scope_metrics -> Pbrt.Encoder.t -> unitencode_pb_scope_metrics v encoder encodes v with the given encoder
val encode_pb_resource_metrics : resource_metrics -> Pbrt.Encoder.t -> unitencode_pb_resource_metrics v encoder encodes v with the given encoder
val encode_pb_metrics_data : metrics_data -> Pbrt.Encoder.t -> unitencode_pb_metrics_data v encoder encodes v with the given encoder
val encode_pb_data_point_flags : data_point_flags -> Pbrt.Encoder.t -> unitencode_pb_data_point_flags v encoder encodes v with the given encoder
val decode_pb_exemplar_value : Pbrt.Decoder.t -> exemplar_valuedecode_pb_exemplar_value decoder decodes a exemplar_value binary value from decoder
val decode_pb_exemplar : Pbrt.Decoder.t -> exemplardecode_pb_exemplar decoder decodes a exemplar binary value from decoder
val decode_pb_number_data_point_value :
Pbrt.Decoder.t ->
number_data_point_valuedecode_pb_number_data_point_value decoder decodes a number_data_point_value binary value from decoder
val decode_pb_number_data_point : Pbrt.Decoder.t -> number_data_pointdecode_pb_number_data_point decoder decodes a number_data_point binary value from decoder
val decode_pb_gauge : Pbrt.Decoder.t -> gaugedecode_pb_gauge decoder decodes a gauge binary value from decoder
val decode_pb_aggregation_temporality :
Pbrt.Decoder.t ->
aggregation_temporalitydecode_pb_aggregation_temporality decoder decodes a aggregation_temporality binary value from decoder
val decode_pb_sum : Pbrt.Decoder.t -> sumdecode_pb_sum decoder decodes a sum binary value from decoder
val decode_pb_histogram_data_point : Pbrt.Decoder.t -> histogram_data_pointdecode_pb_histogram_data_point decoder decodes a histogram_data_point binary value from decoder
val decode_pb_histogram : Pbrt.Decoder.t -> histogramdecode_pb_histogram decoder decodes a histogram binary value from decoder
val decode_pb_exponential_histogram_data_point_buckets :
Pbrt.Decoder.t ->
exponential_histogram_data_point_bucketsdecode_pb_exponential_histogram_data_point_buckets decoder decodes a exponential_histogram_data_point_buckets binary value from decoder
val decode_pb_exponential_histogram_data_point :
Pbrt.Decoder.t ->
exponential_histogram_data_pointdecode_pb_exponential_histogram_data_point decoder decodes a exponential_histogram_data_point binary value from decoder
val decode_pb_exponential_histogram : Pbrt.Decoder.t -> exponential_histogramdecode_pb_exponential_histogram decoder decodes a exponential_histogram binary value from decoder
val decode_pb_summary_data_point_value_at_quantile :
Pbrt.Decoder.t ->
summary_data_point_value_at_quantiledecode_pb_summary_data_point_value_at_quantile decoder decodes a summary_data_point_value_at_quantile binary value from decoder
val decode_pb_summary_data_point : Pbrt.Decoder.t -> summary_data_pointdecode_pb_summary_data_point decoder decodes a summary_data_point binary value from decoder
val decode_pb_summary : Pbrt.Decoder.t -> summarydecode_pb_summary decoder decodes a summary binary value from decoder
val decode_pb_metric_data : Pbrt.Decoder.t -> metric_datadecode_pb_metric_data decoder decodes a metric_data binary value from decoder
val decode_pb_metric : Pbrt.Decoder.t -> metricdecode_pb_metric decoder decodes a metric binary value from decoder
val decode_pb_scope_metrics : Pbrt.Decoder.t -> scope_metricsdecode_pb_scope_metrics decoder decodes a scope_metrics binary value from decoder
val decode_pb_resource_metrics : Pbrt.Decoder.t -> resource_metricsdecode_pb_resource_metrics decoder decodes a resource_metrics binary value from decoder
val decode_pb_metrics_data : Pbrt.Decoder.t -> metrics_datadecode_pb_metrics_data decoder decodes a metrics_data binary value from decoder
val decode_pb_data_point_flags : Pbrt.Decoder.t -> data_point_flagsdecode_pb_data_point_flags decoder decodes a data_point_flags binary value from decoder