OpenTelemetry PHP

DataPointFlags
in package

DataPointFlags is defined as a protobuf 'uint32' type and is to be used as a bit-field representing 32 distinct boolean flags. Each flag defined in this enum is a bit-mask. To test the presence of a single flag in the flags of a data point, for example, use an expression like: (point.flags & DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK) == DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK

Protobuf type opentelemetry.proto.metrics.v1.DataPointFlags

Table of Contents

Constants

DATA_POINT_FLAGS_DO_NOT_USE  = 0
The zero value for the enum. Should not be used for comparisons.
DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK  = 1
This DataPoint is valid but has no recorded value. This value SHOULD be used to reflect explicitly missing data in a series, as for an equivalent to the Prometheus "staleness marker".

Properties

$valueToName  : mixed

Methods

name()  : mixed
value()  : mixed

Constants

DATA_POINT_FLAGS_DO_NOT_USE

The zero value for the enum. Should not be used for comparisons.

public mixed DATA_POINT_FLAGS_DO_NOT_USE = 0

Instead use bitwise "and" with the appropriate mask as shown above.

Generated from protobuf enum DATA_POINT_FLAGS_DO_NOT_USE = 0;

DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK

This DataPoint is valid but has no recorded value. This value SHOULD be used to reflect explicitly missing data in a series, as for an equivalent to the Prometheus "staleness marker".

public mixed DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK = 1

Generated from protobuf enum DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK = 1;

Properties

$valueToName

private static mixed $valueToName = [self::DATA_POINT_FLAGS_DO_NOT_USE => 'DATA_POINT_FLAGS_DO_NOT_USE', self::DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK => 'DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK']

Methods

name()

public static name(mixed $value) : mixed
Parameters
$value : mixed

value()

public static value(mixed $name) : mixed
Parameters
$name : mixed

        
On this page

Search results