Documentation ¶
Index ¶
- Variables
- type Telemetry
- func (*Telemetry) Descriptor() ([]byte, []int)deprecated
- func (x *Telemetry) GetCollectionEndTime() uint64
- func (x *Telemetry) GetCollectionId() uint64
- func (x *Telemetry) GetCollectionStartTime() uint64
- func (x *Telemetry) GetCurrentPeriod() uint32
- func (x *Telemetry) GetDataGpb() *TelemetryGPBTable
- func (x *Telemetry) GetDataStr() string
- func (x *Telemetry) GetEncoding() Telemetry_Encoding
- func (x *Telemetry) GetExceptDesc() string
- func (x *Telemetry) GetMsgTimestamp() uint64
- func (x *Telemetry) GetNodeIdStr() string
- func (x *Telemetry) GetProductName() string
- func (x *Telemetry) GetSensorPath() string
- func (x *Telemetry) GetSubscriptionIdStr() string
- func (*Telemetry) ProtoMessage()
- func (x *Telemetry) ProtoReflect() protoreflect.Message
- func (x *Telemetry) Reset()
- func (x *Telemetry) String() string
- type TelemetryGPBTable
- func (*TelemetryGPBTable) Descriptor() ([]byte, []int)deprecated
- func (x *TelemetryGPBTable) GetRow() []*TelemetryRowGPB
- func (*TelemetryGPBTable) ProtoMessage()
- func (x *TelemetryGPBTable) ProtoReflect() protoreflect.Message
- func (x *TelemetryGPBTable) Reset()
- func (x *TelemetryGPBTable) String() string
- type TelemetryRowGPB
- func (*TelemetryRowGPB) Descriptor() ([]byte, []int)deprecated
- func (x *TelemetryRowGPB) GetContent() []byte
- func (x *TelemetryRowGPB) GetTimestamp() uint64
- func (*TelemetryRowGPB) ProtoMessage()
- func (x *TelemetryRowGPB) ProtoReflect() protoreflect.Message
- func (x *TelemetryRowGPB) Reset()
- func (x *TelemetryRowGPB) String() string
- type TelemetrySelfDefineThresTable
- func (*TelemetrySelfDefineThresTable) Descriptor() ([]byte, []int)deprecated
- func (x *TelemetrySelfDefineThresTable) GetRow() []*TelemetryThreshold
- func (*TelemetrySelfDefineThresTable) ProtoMessage()
- func (x *TelemetrySelfDefineThresTable) ProtoReflect() protoreflect.Message
- func (x *TelemetrySelfDefineThresTable) Reset()
- func (x *TelemetrySelfDefineThresTable) String() string
- type TelemetrySelfDefinedEvent
- func (*TelemetrySelfDefinedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TelemetrySelfDefinedEvent) GetContent() []byte
- func (x *TelemetrySelfDefinedEvent) GetDataThreshold() *TelemetrySelfDefineThresTable
- func (x *TelemetrySelfDefinedEvent) GetDescription() string
- func (x *TelemetrySelfDefinedEvent) GetFieldName() string
- func (x *TelemetrySelfDefinedEvent) GetFieldValue() uint32
- func (x *TelemetrySelfDefinedEvent) GetLevel() uint32
- func (x *TelemetrySelfDefinedEvent) GetPath() string
- func (x *TelemetrySelfDefinedEvent) GetThresholdRelation() TelemetrySelfDefinedEvent_ThresholdRelation
- func (*TelemetrySelfDefinedEvent) ProtoMessage()
- func (x *TelemetrySelfDefinedEvent) ProtoReflect() protoreflect.Message
- func (x *TelemetrySelfDefinedEvent) Reset()
- func (x *TelemetrySelfDefinedEvent) String() string
- type TelemetrySelfDefinedEvent_ThresholdRelation
- func (TelemetrySelfDefinedEvent_ThresholdRelation) Descriptor() protoreflect.EnumDescriptor
- func (x TelemetrySelfDefinedEvent_ThresholdRelation) Enum() *TelemetrySelfDefinedEvent_ThresholdRelation
- func (TelemetrySelfDefinedEvent_ThresholdRelation) EnumDescriptor() ([]byte, []int)deprecated
- func (x TelemetrySelfDefinedEvent_ThresholdRelation) Number() protoreflect.EnumNumber
- func (x TelemetrySelfDefinedEvent_ThresholdRelation) String() string
- func (TelemetrySelfDefinedEvent_ThresholdRelation) Type() protoreflect.EnumType
- type TelemetryThreshold
- func (*TelemetryThreshold) Descriptor() ([]byte, []int)deprecated
- func (x *TelemetryThreshold) GetThresholdOpType() TelemetryThreshold_ThresholdOpType
- func (x *TelemetryThreshold) GetThresholdValue() uint32
- func (*TelemetryThreshold) ProtoMessage()
- func (x *TelemetryThreshold) ProtoReflect() protoreflect.Message
- func (x *TelemetryThreshold) Reset()
- func (x *TelemetryThreshold) String() string
- type TelemetryThreshold_ThresholdOpType
- func (TelemetryThreshold_ThresholdOpType) Descriptor() protoreflect.EnumDescriptor
- func (x TelemetryThreshold_ThresholdOpType) Enum() *TelemetryThreshold_ThresholdOpType
- func (TelemetryThreshold_ThresholdOpType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TelemetryThreshold_ThresholdOpType) Number() protoreflect.EnumNumber
- func (x TelemetryThreshold_ThresholdOpType) String() string
- func (TelemetryThreshold_ThresholdOpType) Type() protoreflect.EnumType
- type Telemetry_Encoding
- func (Telemetry_Encoding) Descriptor() protoreflect.EnumDescriptor
- func (x Telemetry_Encoding) Enum() *Telemetry_Encoding
- func (Telemetry_Encoding) EnumDescriptor() ([]byte, []int)deprecated
- func (x Telemetry_Encoding) Number() protoreflect.EnumNumber
- func (x Telemetry_Encoding) String() string
- func (Telemetry_Encoding) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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) GetCollectionEndTime ¶
func (*Telemetry) GetCollectionId ¶
func (*Telemetry) GetCollectionStartTime ¶
func (*Telemetry) GetCurrentPeriod ¶
func (*Telemetry) GetDataGpb ¶
func (x *Telemetry) GetDataGpb() *TelemetryGPBTable
func (*Telemetry) GetDataStr ¶
func (*Telemetry) GetEncoding ¶
func (x *Telemetry) GetEncoding() Telemetry_Encoding
func (*Telemetry) GetExceptDesc ¶
func (*Telemetry) GetMsgTimestamp ¶
func (*Telemetry) GetNodeIdStr ¶
func (*Telemetry) GetProductName ¶
func (*Telemetry) GetSensorPath ¶
func (*Telemetry) GetSubscriptionIdStr ¶
func (*Telemetry) ProtoMessage ¶
func (*Telemetry) ProtoMessage()
func (*Telemetry) ProtoReflect ¶
func (x *Telemetry) ProtoReflect() protoreflect.Message
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 (x *TelemetrySelfDefineThresTable) GetRow() []*TelemetryThreshold
func (*TelemetrySelfDefineThresTable) ProtoMessage ¶
func (*TelemetrySelfDefineThresTable) ProtoMessage()
func (*TelemetrySelfDefineThresTable) ProtoReflect ¶
func (x *TelemetrySelfDefineThresTable) ProtoReflect() protoreflect.Message
func (*TelemetrySelfDefineThresTable) Reset ¶
func (x *TelemetrySelfDefineThresTable) Reset()
func (*TelemetrySelfDefineThresTable) String ¶
func (x *TelemetrySelfDefineThresTable) String() 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 (x *TelemetrySelfDefinedEvent) GetDataThreshold() *TelemetrySelfDefineThresTable
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 (x *TelemetrySelfDefinedEvent) GetThresholdRelation() TelemetrySelfDefinedEvent_ThresholdRelation
func (*TelemetrySelfDefinedEvent) ProtoMessage ¶
func (*TelemetrySelfDefinedEvent) ProtoMessage()
func (*TelemetrySelfDefinedEvent) ProtoReflect ¶
func (x *TelemetrySelfDefinedEvent) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (TelemetrySelfDefinedEvent_ThresholdRelation) EnumDescriptor
deprecated
func (TelemetrySelfDefinedEvent_ThresholdRelation) EnumDescriptor() ([]byte, []int)
Deprecated: Use TelemetrySelfDefinedEvent_ThresholdRelation.Descriptor instead.
func (TelemetrySelfDefinedEvent_ThresholdRelation) Number ¶
func (x TelemetrySelfDefinedEvent_ThresholdRelation) Number() protoreflect.EnumNumber
func (TelemetrySelfDefinedEvent_ThresholdRelation) String ¶
func (x TelemetrySelfDefinedEvent_ThresholdRelation) String() string
func (TelemetrySelfDefinedEvent_ThresholdRelation) Type ¶
func (TelemetrySelfDefinedEvent_ThresholdRelation) Type() protoreflect.EnumType
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 (x *TelemetryThreshold) GetThresholdOpType() TelemetryThreshold_ThresholdOpType
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) Descriptor() protoreflect.EnumDescriptor
func (TelemetryThreshold_ThresholdOpType) Enum ¶
func (x TelemetryThreshold_ThresholdOpType) Enum() *TelemetryThreshold_ThresholdOpType
func (TelemetryThreshold_ThresholdOpType) EnumDescriptor
deprecated
func (TelemetryThreshold_ThresholdOpType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TelemetryThreshold_ThresholdOpType.Descriptor instead.
func (TelemetryThreshold_ThresholdOpType) Number ¶
func (x TelemetryThreshold_ThresholdOpType) Number() protoreflect.EnumNumber
func (TelemetryThreshold_ThresholdOpType) String ¶
func (x TelemetryThreshold_ThresholdOpType) String() string
func (TelemetryThreshold_ThresholdOpType) Type ¶
func (TelemetryThreshold_ThresholdOpType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (Telemetry_Encoding) Enum ¶
func (x Telemetry_Encoding) Enum() *Telemetry_Encoding
func (Telemetry_Encoding) EnumDescriptor
deprecated
func (Telemetry_Encoding) EnumDescriptor() ([]byte, []int)
Deprecated: Use Telemetry_Encoding.Descriptor instead.
func (Telemetry_Encoding) Number ¶
func (x Telemetry_Encoding) Number() protoreflect.EnumNumber
func (Telemetry_Encoding) String ¶
func (x Telemetry_Encoding) String() string
func (Telemetry_Encoding) Type ¶
func (Telemetry_Encoding) Type() protoreflect.EnumType