OpenTelemetry PHP

AttributeUnit extends Message
in package

Represents a mapping between Attribute Keys and Units.

Generated from protobuf message opentelemetry.proto.profiles.v1development.AttributeUnit

Table of Contents

Properties

$attribute_key_strindex  : mixed
Index into string table.
$unit_strindex  : mixed
Index into string table.

Methods

__construct()  : mixed
Constructor.
getAttributeKeyStrindex()  : int
Index into string table.
getUnitStrindex()  : int
Index into string table.
setAttributeKeyStrindex()  : $this
Index into string table.
setUnitStrindex()  : $this
Index into string table.

Properties

$attribute_key_strindex

Index into string table.

protected mixed $attribute_key_strindex = 0

Generated from protobuf field int32 attribute_key_strindex = 1;

$unit_strindex

Index into string table.

protected mixed $unit_strindex = 0

Generated from protobuf field int32 unit_strindex = 2;

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type int $attribute_key_strindex
      Index into string table.
@type int $unit_strindex
      Index into string table.

}

getAttributeKeyStrindex()

Index into string table.

public getAttributeKeyStrindex() : int

Generated from protobuf field int32 attribute_key_strindex = 1;

Return values
int

getUnitStrindex()

Index into string table.

public getUnitStrindex() : int

Generated from protobuf field int32 unit_strindex = 2;

Return values
int

setAttributeKeyStrindex()

Index into string table.

public setAttributeKeyStrindex(int $var) : $this

Generated from protobuf field int32 attribute_key_strindex = 1;

Parameters
$var : int
Return values
$this

setUnitStrindex()

Index into string table.

public setUnitStrindex(int $var) : $this

Generated from protobuf field int32 unit_strindex = 2;

Parameters
$var : int
Return values
$this

        
On this page

Search results