huawei_telemetry

package
v0.0.0-...-ea2b750 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Telemetry_Encoding_name = map[int32]string{
		0: "Encoding_GPB",
		1: "Encoding_JSON",
	}
	Telemetry_Encoding_value = map[string]int32{
		"Encoding_GPB":  0,
		"Encoding_JSON": 1,
	}
)

Enum value maps for Telemetry_Encoding.

View Source
var (
	TelemetrySelfDefinedEvent_ThresholdRelation_name = map[int32]string{
		0: "ThresholdRelation_INVALID",
		1: "ThresholdRelation_AND",
		2: "ThresholdRelation_OR",
	}
	TelemetrySelfDefinedEvent_ThresholdRelation_value = map[string]int32{
		"ThresholdRelation_INVALID": 0,
		"ThresholdRelation_AND":     1,
		"ThresholdRelation_OR":      2,
	}
)

Enum value maps for TelemetrySelfDefinedEvent_ThresholdRelation.

View Source
var (
	TelemetryThreshold_ThresholdOpType_name = map[int32]string{
		0: "ThresholdOpType_EQ",
		1: "ThresholdOpType_GT",
		2: "ThresholdOpType_GE",
		3: "ThresholdOpType_LT",
		4: "ThresholdOpType_LE",
	}
	TelemetryThreshold_ThresholdOpType_value = map[string]int32{
		"ThresholdOpType_EQ": 0,
		"ThresholdOpType_GT": 1,
		"ThresholdOpType_GE": 2,
		"ThresholdOpType_LT": 3,
		"ThresholdOpType_LE": 4,
	}
)

Enum value maps for TelemetryThreshold_ThresholdOpType.

View Source
var File_huawei_telemetry_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Telemetry

type Telemetry struct {
	NodeIdStr           string             `protobuf:"bytes,1,opt,name=node_id_str,json=nodeIdStr,proto3" json:"node_id_str,omitempty"`                                //Device name.
	SubscriptionIdStr   string             `protobuf:"bytes,2,opt,name=subscription_id_str,json=subscriptionIdStr,proto3" json:"subscription_id_str,omitempty"`        //Subscription name during static subscription configuration, whose index is 2 during GPB encoding.
	SensorPath          string             `protobuf:"bytes,3,opt,name=sensor_path,json=sensorPath,proto3" json:"sensor_path,omitempty"`                               //Subscription path, whose index is 3 during GPB encoding.
	CollectionId        uint64             `protobuf:"varint,4,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`                        //Sampling round, whose index is 4 during GPB encoding.
	CollectionStartTime uint64             `protobuf:"varint,5,opt,name=collection_start_time,json=collectionStartTime,proto3" json:"collection_start_time,omitempty"` //Start time of a sampling round, whose index is 5 during GPB encoding.
	MsgTimestamp        uint64             `protobuf:"varint,6,opt,name=msg_timestamp,json=msgTimestamp,proto3" json:"msg_timestamp,omitempty"`                        //Timestamp when the current message is generated, whose index is 6 during GPB encoding.
	DataGpb             *TelemetryGPBTable `protobuf:"bytes,7,opt,name=data_gpb,json=dataGpb,proto3" json:"data_gpb,omitempty"`                                        //Indicates that the data carried is defined in TelemetryGPBTable. The index is 7 during GPB encoding.
	CollectionEndTime   uint64             `protobuf:"varint,8,opt,name=collection_end_time,json=collectionEndTime,proto3" json:"collection_end_time,omitempty"`       //End time of a sampling round, whose index is 8 during GPB encoding.
	CurrentPeriod       uint32             `protobuf:"varint,9,opt,name=current_period,json=currentPeriod,proto3" json:"current_period,omitempty"`                     //Sampling precision, in milliseconds, whose index is 9 during GPB encoding.
	ExceptDesc          string             `protobuf:"bytes,10,opt,name=except_desc,json=exceptDesc,proto3" json:"except_desc,omitempty"`                              //Exception description, whose index is 10 during GPB encoding. It is used to report exception information when a sampling exception occurs.
	ProductName         string             `protobuf:"bytes,11,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"`                           //Product name.
	Encoding            Telemetry_Encoding `protobuf:"varint,12,opt,name=encoding,proto3,enum=huawei_telemetry.Telemetry_Encoding" json:"encoding,omitempty"`          //Data encoding format. If the GPB encoding format is used, the data_gpb field is valid. Otherwise, the data_str field is valid.
	DataStr             string             `protobuf:"bytes,14,opt,name=data_str,json=dataStr,proto3" json:"data_str,omitempty"`                                       //This field is valid only when a non-GPB encoding format is used.
	// contains filtered or unexported fields
}

func (*Telemetry) Descriptor deprecated

func (*Telemetry) Descriptor() ([]byte, []int)

Deprecated: Use Telemetry.ProtoReflect.Descriptor instead.

func (*Telemetry) GetCollectionEndTime

func (x *Telemetry) GetCollectionEndTime() uint64

func (*Telemetry) GetCollectionId

func (x *Telemetry) GetCollectionId() uint64

func (*Telemetry) GetCollectionStartTime

func (x *Telemetry) GetCollectionStartTime() uint64

func (*Telemetry) GetCurrentPeriod

func (x *Telemetry) GetCurrentPeriod() uint32

func (*Telemetry) GetDataGpb

func (x *Telemetry) GetDataGpb() *TelemetryGPBTable

func (*Telemetry) GetDataStr

func (x *Telemetry) GetDataStr() string

func (*Telemetry) GetEncoding

func (x *Telemetry) GetEncoding() Telemetry_Encoding

func (*Telemetry) GetExceptDesc

func (x *Telemetry) GetExceptDesc() string

func (*Telemetry) GetMsgTimestamp

func (x *Telemetry) GetMsgTimestamp() uint64

func (*Telemetry) GetNodeIdStr

func (x *Telemetry) GetNodeIdStr() string

func (*Telemetry) GetProductName

func (x *Telemetry) GetProductName() string

func (*Telemetry) GetSensorPath

func (x *Telemetry) GetSensorPath() string

func (*Telemetry) GetSubscriptionIdStr

func (x *Telemetry) GetSubscriptionIdStr() string

func (*Telemetry) ProtoMessage

func (*Telemetry) ProtoMessage()

func (*Telemetry) ProtoReflect

func (x *Telemetry) ProtoReflect() protoreflect.Message

func (*Telemetry) Reset

func (x *Telemetry) Reset()

func (*Telemetry) String

func (x *Telemetry) String() string

type TelemetryGPBTable

type TelemetryGPBTable struct {
	Row []*TelemetryRowGPB `protobuf:"bytes,1,rep,name=row,proto3" json:"row,omitempty"` //Array definition, whose index is 1 during GPB encoding. Its member is TelemetryRowGPB structure.
	// contains filtered or unexported fields
}

func (*TelemetryGPBTable) Descriptor deprecated

func (*TelemetryGPBTable) Descriptor() ([]byte, []int)

Deprecated: Use TelemetryGPBTable.ProtoReflect.Descriptor instead.

func (*TelemetryGPBTable) GetRow

func (x *TelemetryGPBTable) GetRow() []*TelemetryRowGPB

func (*TelemetryGPBTable) ProtoMessage

func (*TelemetryGPBTable) ProtoMessage()

func (*TelemetryGPBTable) ProtoReflect

func (x *TelemetryGPBTable) ProtoReflect() protoreflect.Message

func (*TelemetryGPBTable) Reset

func (x *TelemetryGPBTable) Reset()

func (*TelemetryGPBTable) String

func (x *TelemetryGPBTable) String() string

type TelemetryRowGPB

type TelemetryRowGPB struct {
	Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` //Timestamp of the current sampling instance, whose index is 1 during GPB encoding.
	Content   []byte `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"`     //Sampling instance data carried, whose index is 11 during GPB encoding. The sensor_path field must be considered to determine which .proto file is used for encoding.
	// contains filtered or unexported fields
}

func (*TelemetryRowGPB) Descriptor deprecated

func (*TelemetryRowGPB) Descriptor() ([]byte, []int)

Deprecated: Use TelemetryRowGPB.ProtoReflect.Descriptor instead.

func (*TelemetryRowGPB) GetContent

func (x *TelemetryRowGPB) GetContent() []byte

func (*TelemetryRowGPB) GetTimestamp

func (x *TelemetryRowGPB) GetTimestamp() uint64

func (*TelemetryRowGPB) ProtoMessage

func (*TelemetryRowGPB) ProtoMessage()

func (*TelemetryRowGPB) ProtoReflect

func (x *TelemetryRowGPB) ProtoReflect() protoreflect.Message

func (*TelemetryRowGPB) Reset

func (x *TelemetryRowGPB) Reset()

func (*TelemetryRowGPB) String

func (x *TelemetryRowGPB) String() string

type TelemetrySelfDefineThresTable

type TelemetrySelfDefineThresTable struct {
	Row []*TelemetryThreshold `protobuf:"bytes,1,rep,name=row,proto3" json:"row,omitempty"` //Multiple thresholds are included.
	// contains filtered or unexported fields
}

func (*TelemetrySelfDefineThresTable) Descriptor deprecated

func (*TelemetrySelfDefineThresTable) Descriptor() ([]byte, []int)

Deprecated: Use TelemetrySelfDefineThresTable.ProtoReflect.Descriptor instead.

func (*TelemetrySelfDefineThresTable) GetRow

func (*TelemetrySelfDefineThresTable) ProtoMessage

func (*TelemetrySelfDefineThresTable) ProtoMessage()

func (*TelemetrySelfDefineThresTable) ProtoReflect

func (*TelemetrySelfDefineThresTable) Reset

func (x *TelemetrySelfDefineThresTable) Reset()

func (*TelemetrySelfDefineThresTable) String

type TelemetrySelfDefinedEvent

type TelemetrySelfDefinedEvent struct {
	Path              string                                      `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`                                        //Sampling path that triggers the customized event, which describes the method of parsing the content.
	Level             uint32                                      `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`                                     //Level of the user-defined event.
	Description       string                                      `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`                          //Description of the user-defined event.
	FieldName         string                                      `protobuf:"bytes,4,opt,name=fieldName,proto3" json:"fieldName,omitempty"`                              //Name of the field that triggers the customized event.
	FieldValue        uint32                                      `protobuf:"varint,5,opt,name=fieldValue,proto3" json:"fieldValue,omitempty"`                           //Value of the field that triggers the customized event.
	DataThreshold     *TelemetrySelfDefineThresTable              `protobuf:"bytes,6,opt,name=data_threshold,json=dataThreshold,proto3" json:"data_threshold,omitempty"` //Threshold filter criteria when the customized event is triggered.
	ThresholdRelation TelemetrySelfDefinedEvent_ThresholdRelation ``                                                                                                     //Relationship between threshold filter criteria when the customized event is triggered.
	/* 154-byte string literal not displayed */
	Content []byte `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` //Sampled data that triggers the customized event.
	// contains filtered or unexported fields
}

func (*TelemetrySelfDefinedEvent) Descriptor deprecated

func (*TelemetrySelfDefinedEvent) Descriptor() ([]byte, []int)

Deprecated: Use TelemetrySelfDefinedEvent.ProtoReflect.Descriptor instead.

func (*TelemetrySelfDefinedEvent) GetContent

func (x *TelemetrySelfDefinedEvent) GetContent() []byte

func (*TelemetrySelfDefinedEvent) GetDataThreshold

func (*TelemetrySelfDefinedEvent) GetDescription

func (x *TelemetrySelfDefinedEvent) GetDescription() string

func (*TelemetrySelfDefinedEvent) GetFieldName

func (x *TelemetrySelfDefinedEvent) GetFieldName() string

func (*TelemetrySelfDefinedEvent) GetFieldValue

func (x *TelemetrySelfDefinedEvent) GetFieldValue() uint32

func (*TelemetrySelfDefinedEvent) GetLevel

func (x *TelemetrySelfDefinedEvent) GetLevel() uint32

func (*TelemetrySelfDefinedEvent) GetPath

func (x *TelemetrySelfDefinedEvent) GetPath() string

func (*TelemetrySelfDefinedEvent) GetThresholdRelation

func (*TelemetrySelfDefinedEvent) ProtoMessage

func (*TelemetrySelfDefinedEvent) ProtoMessage()

func (*TelemetrySelfDefinedEvent) ProtoReflect

func (*TelemetrySelfDefinedEvent) Reset

func (x *TelemetrySelfDefinedEvent) Reset()

func (*TelemetrySelfDefinedEvent) String

func (x *TelemetrySelfDefinedEvent) String() string

type TelemetrySelfDefinedEvent_ThresholdRelation

type TelemetrySelfDefinedEvent_ThresholdRelation int32
const (
	TelemetrySelfDefinedEvent_ThresholdRelation_INVALID TelemetrySelfDefinedEvent_ThresholdRelation = 0 //The relationship between thresholds is not configured.
	TelemetrySelfDefinedEvent_ThresholdRelation_AND     TelemetrySelfDefinedEvent_ThresholdRelation = 1 //The relationship between thresholds is And.
	TelemetrySelfDefinedEvent_ThresholdRelation_OR      TelemetrySelfDefinedEvent_ThresholdRelation = 2 //The relationship between thresholds is Or.
)

func (TelemetrySelfDefinedEvent_ThresholdRelation) Descriptor

func (TelemetrySelfDefinedEvent_ThresholdRelation) Enum

func (TelemetrySelfDefinedEvent_ThresholdRelation) EnumDescriptor deprecated

func (TelemetrySelfDefinedEvent_ThresholdRelation) EnumDescriptor() ([]byte, []int)

Deprecated: Use TelemetrySelfDefinedEvent_ThresholdRelation.Descriptor instead.

func (TelemetrySelfDefinedEvent_ThresholdRelation) Number

func (TelemetrySelfDefinedEvent_ThresholdRelation) String

func (TelemetrySelfDefinedEvent_ThresholdRelation) Type

type TelemetryThreshold

type TelemetryThreshold struct {
	ThresholdValue  uint32                             `protobuf:"varint,1,opt,name=thresholdValue,proto3" json:"thresholdValue,omitempty"` //Delivered threshold.
	ThresholdOpType TelemetryThreshold_ThresholdOpType ``                                                                                   //Threshold on the device.
	/* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TelemetryThreshold) Descriptor deprecated

func (*TelemetryThreshold) Descriptor() ([]byte, []int)

Deprecated: Use TelemetryThreshold.ProtoReflect.Descriptor instead.

func (*TelemetryThreshold) GetThresholdOpType

func (*TelemetryThreshold) GetThresholdValue

func (x *TelemetryThreshold) GetThresholdValue() uint32

func (*TelemetryThreshold) ProtoMessage

func (*TelemetryThreshold) ProtoMessage()

func (*TelemetryThreshold) ProtoReflect

func (x *TelemetryThreshold) ProtoReflect() protoreflect.Message

func (*TelemetryThreshold) Reset

func (x *TelemetryThreshold) Reset()

func (*TelemetryThreshold) String

func (x *TelemetryThreshold) String() string

type TelemetryThreshold_ThresholdOpType

type TelemetryThreshold_ThresholdOpType int32
const (
	TelemetryThreshold_ThresholdOpType_EQ TelemetryThreshold_ThresholdOpType = 0 //The actual value in the data sent equals to the configured data threshold.
	TelemetryThreshold_ThresholdOpType_GT TelemetryThreshold_ThresholdOpType = 1 //The actual value in the data sent is greater than the configured data threshold.
	TelemetryThreshold_ThresholdOpType_GE TelemetryThreshold_ThresholdOpType = 2 //The actual value in the data sent is greater than or equals to the configured data threshold.
	TelemetryThreshold_ThresholdOpType_LT TelemetryThreshold_ThresholdOpType = 3 //The actual value in the data sent is less than the configured data threshold.
	TelemetryThreshold_ThresholdOpType_LE TelemetryThreshold_ThresholdOpType = 4 //The actual value in the data sent is less than or equals to the configured data threshold.
)

func (TelemetryThreshold_ThresholdOpType) Descriptor

func (TelemetryThreshold_ThresholdOpType) Enum

func (TelemetryThreshold_ThresholdOpType) EnumDescriptor deprecated

func (TelemetryThreshold_ThresholdOpType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TelemetryThreshold_ThresholdOpType.Descriptor instead.

func (TelemetryThreshold_ThresholdOpType) Number

func (TelemetryThreshold_ThresholdOpType) String

func (TelemetryThreshold_ThresholdOpType) Type

type Telemetry_Encoding

type Telemetry_Encoding int32
const (
	Telemetry_Encoding_GPB  Telemetry_Encoding = 0 //GPB encoding format.
	Telemetry_Encoding_JSON Telemetry_Encoding = 1 //JSON encoding format.
)

func (Telemetry_Encoding) Descriptor

func (Telemetry_Encoding) Enum

func (Telemetry_Encoding) EnumDescriptor deprecated

func (Telemetry_Encoding) EnumDescriptor() ([]byte, []int)

Deprecated: Use Telemetry_Encoding.Descriptor instead.

func (Telemetry_Encoding) Number

func (Telemetry_Encoding) String

func (x Telemetry_Encoding) String() string

func (Telemetry_Encoding) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL