Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRuleServer(s grpc.ServiceRegistrar, srv RuleServer)
- type AlarmInfo
- func (*AlarmInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmInfo) GetAccounts() []string
- func (x *AlarmInfo) GetCreatedTime() int64
- func (x *AlarmInfo) GetDesc() string
- func (x *AlarmInfo) GetId() int64
- func (x *AlarmInfo) GetLevel() int64
- func (x *AlarmInfo) GetName() string
- func (x *AlarmInfo) GetNotifies() []*AlarmNotify
- func (x *AlarmInfo) GetSceneIDs() []int64
- func (x *AlarmInfo) GetStatus() int64
- func (x *AlarmInfo) GetUserIDs() []int64
- func (*AlarmInfo) ProtoMessage()
- func (x *AlarmInfo) ProtoReflect() protoreflect.Message
- func (x *AlarmInfo) Reset()
- func (x *AlarmInfo) String() string
- type AlarmInfoIndexReq
- func (*AlarmInfoIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmInfoIndexReq) GetName() string
- func (x *AlarmInfoIndexReq) GetPage() *PageInfo
- func (*AlarmInfoIndexReq) ProtoMessage()
- func (x *AlarmInfoIndexReq) ProtoReflect() protoreflect.Message
- func (x *AlarmInfoIndexReq) Reset()
- func (x *AlarmInfoIndexReq) String() string
- type AlarmInfoIndexResp
- func (*AlarmInfoIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmInfoIndexResp) GetList() []*AlarmInfo
- func (x *AlarmInfoIndexResp) GetTotal() int64
- func (*AlarmInfoIndexResp) ProtoMessage()
- func (x *AlarmInfoIndexResp) ProtoReflect() protoreflect.Message
- func (x *AlarmInfoIndexResp) Reset()
- func (x *AlarmInfoIndexResp) String() string
- type AlarmNotify
- func (*AlarmNotify) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmNotify) GetTemplateID() int64
- func (x *AlarmNotify) GetType() string
- func (*AlarmNotify) ProtoMessage()
- func (x *AlarmNotify) ProtoReflect() protoreflect.Message
- func (x *AlarmNotify) Reset()
- func (x *AlarmNotify) String() string
- type AlarmRecord
- func (*AlarmRecord) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmRecord) GetAlarmID() int64
- func (x *AlarmRecord) GetAlarmName() string
- func (x *AlarmRecord) GetCreatedTime() int64
- func (x *AlarmRecord) GetDealStatus() int64
- func (x *AlarmRecord) GetDeviceName() string
- func (x *AlarmRecord) GetId() int64
- func (x *AlarmRecord) GetLastAlarm() int64
- func (x *AlarmRecord) GetLevel() int64
- func (x *AlarmRecord) GetProductID() string
- func (x *AlarmRecord) GetSceneID() int64
- func (x *AlarmRecord) GetSceneName() string
- func (x *AlarmRecord) GetTriggerType() string
- func (*AlarmRecord) ProtoMessage()
- func (x *AlarmRecord) ProtoReflect() protoreflect.Message
- func (x *AlarmRecord) Reset()
- func (x *AlarmRecord) String() string
- type AlarmRecordCreateReq
- func (*AlarmRecordCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmRecordCreateReq) GetDeviceAlias() string
- func (x *AlarmRecordCreateReq) GetDeviceName() string
- func (x *AlarmRecordCreateReq) GetMode() string
- func (x *AlarmRecordCreateReq) GetProductID() string
- func (x *AlarmRecordCreateReq) GetSceneID() int64
- func (x *AlarmRecordCreateReq) GetSceneName() string
- func (x *AlarmRecordCreateReq) GetTriggerType() string
- func (*AlarmRecordCreateReq) ProtoMessage()
- func (x *AlarmRecordCreateReq) ProtoReflect() protoreflect.Message
- func (x *AlarmRecordCreateReq) Reset()
- func (x *AlarmRecordCreateReq) String() string
- type AlarmRecordDealReq
- func (*AlarmRecordDealReq) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmRecordDealReq) GetHandle() int64
- func (x *AlarmRecordDealReq) GetId() int64
- func (*AlarmRecordDealReq) ProtoMessage()
- func (x *AlarmRecordDealReq) ProtoReflect() protoreflect.Message
- func (x *AlarmRecordDealReq) Reset()
- func (x *AlarmRecordDealReq) String() string
- type AlarmRecordIndexReq
- func (*AlarmRecordIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmRecordIndexReq) GetAlarmID() int64
- func (x *AlarmRecordIndexReq) GetAlarmName() string
- func (x *AlarmRecordIndexReq) GetDealStatus() []int64
- func (x *AlarmRecordIndexReq) GetPage() *PageInfo
- func (x *AlarmRecordIndexReq) GetTimeRange() *TimeRange
- func (*AlarmRecordIndexReq) ProtoMessage()
- func (x *AlarmRecordIndexReq) ProtoReflect() protoreflect.Message
- func (x *AlarmRecordIndexReq) Reset()
- func (x *AlarmRecordIndexReq) String() string
- type AlarmRecordIndexResp
- func (*AlarmRecordIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmRecordIndexResp) GetList() []*AlarmRecord
- func (x *AlarmRecordIndexResp) GetTotal() int64
- func (*AlarmRecordIndexResp) ProtoMessage()
- func (x *AlarmRecordIndexResp) ProtoReflect() protoreflect.Message
- func (x *AlarmRecordIndexResp) Reset()
- func (x *AlarmRecordIndexResp) String() string
- type AlarmSceneDeleteReq
- func (*AlarmSceneDeleteReq) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmSceneDeleteReq) GetAlarmID() int64
- func (x *AlarmSceneDeleteReq) GetSceneID() int64
- func (*AlarmSceneDeleteReq) ProtoMessage()
- func (x *AlarmSceneDeleteReq) ProtoReflect() protoreflect.Message
- func (x *AlarmSceneDeleteReq) Reset()
- func (x *AlarmSceneDeleteReq) String() string
- type AlarmSceneIndexReq
- func (*AlarmSceneIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmSceneIndexReq) GetAlarmID() int64
- func (*AlarmSceneIndexReq) ProtoMessage()
- func (x *AlarmSceneIndexReq) ProtoReflect() protoreflect.Message
- func (x *AlarmSceneIndexReq) Reset()
- func (x *AlarmSceneIndexReq) String() string
- type AlarmSceneIndexResp
- func (*AlarmSceneIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmSceneIndexResp) GetAlarmID() int64
- func (x *AlarmSceneIndexResp) GetScenes() []*SceneInfo
- func (*AlarmSceneIndexResp) ProtoMessage()
- func (x *AlarmSceneIndexResp) ProtoReflect() protoreflect.Message
- func (x *AlarmSceneIndexResp) Reset()
- func (x *AlarmSceneIndexResp) String() string
- type AlarmSceneMultiSaveReq
- func (*AlarmSceneMultiSaveReq) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmSceneMultiSaveReq) GetAlarmID() int64
- func (x *AlarmSceneMultiSaveReq) GetSceneIDs() []int64
- func (*AlarmSceneMultiSaveReq) ProtoMessage()
- func (x *AlarmSceneMultiSaveReq) ProtoReflect() protoreflect.Message
- func (x *AlarmSceneMultiSaveReq) Reset()
- func (x *AlarmSceneMultiSaveReq) String() string
- type DeviceCore
- func (*DeviceCore) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceCore) GetDeviceName() string
- func (x *DeviceCore) GetProductID() string
- func (*DeviceCore) ProtoMessage()
- func (x *DeviceCore) ProtoReflect() protoreflect.Message
- func (x *DeviceCore) Reset()
- func (x *DeviceCore) String() string
- type Empty
- type LogActionScene
- func (*LogActionScene) Descriptor() ([]byte, []int)deprecated
- func (x *LogActionScene) GetSceneID() int64
- func (x *LogActionScene) GetSceneName() string
- func (*LogActionScene) ProtoMessage()
- func (x *LogActionScene) ProtoReflect() protoreflect.Message
- func (x *LogActionScene) Reset()
- func (x *LogActionScene) String() string
- type PageInfo
- func (*PageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PageInfo) GetOrders() []*PageInfo_OrderBy
- func (x *PageInfo) GetPage() int64
- func (x *PageInfo) GetSize() int64
- func (*PageInfo) ProtoMessage()
- func (x *PageInfo) ProtoReflect() protoreflect.Message
- func (x *PageInfo) Reset()
- func (x *PageInfo) String() string
- type PageInfo_OrderBy
- func (*PageInfo_OrderBy) Descriptor() ([]byte, []int)deprecated
- func (x *PageInfo_OrderBy) GetField() string
- func (x *PageInfo_OrderBy) GetSort() int64
- func (*PageInfo_OrderBy) ProtoMessage()
- func (x *PageInfo_OrderBy) ProtoReflect() protoreflect.Message
- func (x *PageInfo_OrderBy) Reset()
- func (x *PageInfo_OrderBy) String() string
- type RuleClient
- type RuleServer
- type SceneFlowInfo
- func (*SceneFlowInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SceneFlowInfo) GetInfo() string
- func (x *SceneFlowInfo) GetSubType() string
- func (x *SceneFlowInfo) GetType() string
- func (*SceneFlowInfo) ProtoMessage()
- func (x *SceneFlowInfo) ProtoReflect() protoreflect.Message
- func (x *SceneFlowInfo) Reset()
- func (x *SceneFlowInfo) String() string
- type SceneInfo
- func (*SceneInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SceneInfo) GetAreaID() int64
- func (x *SceneInfo) GetBody() string
- func (x *SceneInfo) GetCreatedTime() int64
- func (x *SceneInfo) GetDesc() string
- func (x *SceneInfo) GetDeviceAlias() string
- func (x *SceneInfo) GetDeviceMode() string
- func (x *SceneInfo) GetDeviceName() string
- func (x *SceneInfo) GetFlowPath() []*SceneFlowInfo
- func (x *SceneInfo) GetHeadImg() string
- func (x *SceneInfo) GetId() int64
- func (x *SceneInfo) GetIf() string
- func (x *SceneInfo) GetIsCommon() int64
- func (x *SceneInfo) GetIsUpdateHeadImg() bool
- func (x *SceneInfo) GetLastRunTime() int64
- func (x *SceneInfo) GetLogo() string
- func (x *SceneInfo) GetName() string
- func (x *SceneInfo) GetProductID() string
- func (x *SceneInfo) GetStatus() int64
- func (x *SceneInfo) GetTag() string
- func (x *SceneInfo) GetThen() string
- func (x *SceneInfo) GetType() string
- func (x *SceneInfo) GetUpdatedTime() int64
- func (x *SceneInfo) GetWhen() string
- func (*SceneInfo) ProtoMessage()
- func (x *SceneInfo) ProtoReflect() protoreflect.Message
- func (x *SceneInfo) Reset()
- func (x *SceneInfo) String() string
- type SceneInfoIndexReq
- func (*SceneInfoIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *SceneInfoIndexReq) GetAlarmID() int64
- func (x *SceneInfoIndexReq) GetAreaID() int64
- func (x *SceneInfoIndexReq) GetDeviceMode() string
- func (x *SceneInfoIndexReq) GetDeviceName() string
- func (x *SceneInfoIndexReq) GetHasActionType() string
- func (x *SceneInfoIndexReq) GetIsCommon() int64
- func (x *SceneInfoIndexReq) GetName() string
- func (x *SceneInfoIndexReq) GetPage() *PageInfo
- func (x *SceneInfoIndexReq) GetProductID() string
- func (x *SceneInfoIndexReq) GetSceneIDs() []int64
- func (x *SceneInfoIndexReq) GetStatus() int64
- func (x *SceneInfoIndexReq) GetTag() string
- func (x *SceneInfoIndexReq) GetType() string
- func (*SceneInfoIndexReq) ProtoMessage()
- func (x *SceneInfoIndexReq) ProtoReflect() protoreflect.Message
- func (x *SceneInfoIndexReq) Reset()
- func (x *SceneInfoIndexReq) String() string
- type SceneInfoIndexResp
- func (*SceneInfoIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *SceneInfoIndexResp) GetList() []*SceneInfo
- func (x *SceneInfoIndexResp) GetTotal() int64
- func (*SceneInfoIndexResp) ProtoMessage()
- func (x *SceneInfoIndexResp) ProtoReflect() protoreflect.Message
- func (x *SceneInfoIndexResp) Reset()
- func (x *SceneInfoIndexResp) String() string
- type SceneLog
- func (*SceneLog) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLog) GetActions() []*SceneLogAction
- func (x *SceneLog) GetAreaID() int64
- func (x *SceneLog) GetCreatedTime() int64
- func (x *SceneLog) GetSceneID() int64
- func (x *SceneLog) GetSceneName() string
- func (x *SceneLog) GetStatus() int64
- func (x *SceneLog) GetTrigger() *SceneLogTrigger
- func (x *SceneLog) GetType() string
- func (*SceneLog) ProtoMessage()
- func (x *SceneLog) ProtoReflect() protoreflect.Message
- func (x *SceneLog) Reset()
- func (x *SceneLog) String() string
- type SceneLogAction
- func (*SceneLogAction) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLogAction) GetAlarm() *SceneLogActionAlarm
- func (x *SceneLogAction) GetCode() int64
- func (x *SceneLogAction) GetDelay() int64
- func (x *SceneLogAction) GetDevice() *SceneLogActionDevice
- func (x *SceneLogAction) GetMsg() string
- func (x *SceneLogAction) GetMsgToken() string
- func (x *SceneLogAction) GetScene() *LogActionScene
- func (x *SceneLogAction) GetStatus() int64
- func (x *SceneLogAction) GetType() string
- func (*SceneLogAction) ProtoMessage()
- func (x *SceneLogAction) ProtoReflect() protoreflect.Message
- func (x *SceneLogAction) Reset()
- func (x *SceneLogAction) String() string
- type SceneLogActionAlarm
- func (*SceneLogActionAlarm) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLogActionAlarm) GetMode() string
- func (*SceneLogActionAlarm) ProtoMessage()
- func (x *SceneLogActionAlarm) ProtoReflect() protoreflect.Message
- func (x *SceneLogActionAlarm) Reset()
- func (x *SceneLogActionAlarm) String() string
- type SceneLogActionDevice
- func (*SceneLogActionDevice) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLogActionDevice) GetDeviceAlias() string
- func (x *SceneLogActionDevice) GetDeviceName() string
- func (x *SceneLogActionDevice) GetProductID() string
- func (x *SceneLogActionDevice) GetProductName() string
- func (x *SceneLogActionDevice) GetType() string
- func (x *SceneLogActionDevice) GetValues() []*SceneLogActionDeviceValue
- func (*SceneLogActionDevice) ProtoMessage()
- func (x *SceneLogActionDevice) ProtoReflect() protoreflect.Message
- func (x *SceneLogActionDevice) Reset()
- func (x *SceneLogActionDevice) String() string
- type SceneLogActionDeviceValue
- func (*SceneLogActionDeviceValue) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLogActionDeviceValue) GetDataID() string
- func (x *SceneLogActionDeviceValue) GetDataName() string
- func (x *SceneLogActionDeviceValue) GetValue() string
- func (*SceneLogActionDeviceValue) ProtoMessage()
- func (x *SceneLogActionDeviceValue) ProtoReflect() protoreflect.Message
- func (x *SceneLogActionDeviceValue) Reset()
- func (x *SceneLogActionDeviceValue) String() string
- type SceneLogIndexReq
- func (*SceneLogIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLogIndexReq) GetPage() *PageInfo
- func (x *SceneLogIndexReq) GetSceneID() int64
- func (x *SceneLogIndexReq) GetStatus() int64
- func (x *SceneLogIndexReq) GetTimeRange() *TimeRange
- func (*SceneLogIndexReq) ProtoMessage()
- func (x *SceneLogIndexReq) ProtoReflect() protoreflect.Message
- func (x *SceneLogIndexReq) Reset()
- func (x *SceneLogIndexReq) String() string
- type SceneLogIndexResp
- func (*SceneLogIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLogIndexResp) GetList() []*SceneLog
- func (x *SceneLogIndexResp) GetTotal() int64
- func (*SceneLogIndexResp) ProtoMessage()
- func (x *SceneLogIndexResp) ProtoReflect() protoreflect.Message
- func (x *SceneLogIndexResp) Reset()
- func (x *SceneLogIndexResp) String() string
- type SceneLogTrigger
- func (*SceneLogTrigger) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLogTrigger) GetDevice() *SceneLogTriggerDevice
- func (x *SceneLogTrigger) GetTime() int64
- func (x *SceneLogTrigger) GetType() string
- func (*SceneLogTrigger) ProtoMessage()
- func (x *SceneLogTrigger) ProtoReflect() protoreflect.Message
- func (x *SceneLogTrigger) Reset()
- func (x *SceneLogTrigger) String() string
- type SceneLogTriggerDevice
- func (*SceneLogTriggerDevice) Descriptor() ([]byte, []int)deprecated
- func (x *SceneLogTriggerDevice) GetDataID() string
- func (x *SceneLogTriggerDevice) GetDataName() string
- func (x *SceneLogTriggerDevice) GetDeviceAlias() string
- func (x *SceneLogTriggerDevice) GetDeviceName() string
- func (x *SceneLogTriggerDevice) GetProductID() string
- func (x *SceneLogTriggerDevice) GetType() string
- func (x *SceneLogTriggerDevice) GetValue() string
- func (*SceneLogTriggerDevice) ProtoMessage()
- func (x *SceneLogTriggerDevice) ProtoReflect() protoreflect.Message
- func (x *SceneLogTriggerDevice) Reset()
- func (x *SceneLogTriggerDevice) String() string
- type TimeRange
- type UnimplementedRuleServer
- func (UnimplementedRuleServer) AlarmInfoCreate(context.Context, *AlarmInfo) (*WithID, error)
- func (UnimplementedRuleServer) AlarmInfoDelete(context.Context, *WithID) (*Empty, error)
- func (UnimplementedRuleServer) AlarmInfoIndex(context.Context, *AlarmInfoIndexReq) (*AlarmInfoIndexResp, error)
- func (UnimplementedRuleServer) AlarmInfoRead(context.Context, *WithID) (*AlarmInfo, error)
- func (UnimplementedRuleServer) AlarmInfoUpdate(context.Context, *AlarmInfo) (*Empty, error)
- func (UnimplementedRuleServer) AlarmRecordCreate(context.Context, *AlarmRecordCreateReq) (*Empty, error)
- func (UnimplementedRuleServer) AlarmRecordDeal(context.Context, *AlarmRecordDealReq) (*Empty, error)
- func (UnimplementedRuleServer) AlarmRecordIndex(context.Context, *AlarmRecordIndexReq) (*AlarmRecordIndexResp, error)
- func (UnimplementedRuleServer) AlarmSceneDelete(context.Context, *AlarmSceneDeleteReq) (*Empty, error)
- func (UnimplementedRuleServer) AlarmSceneIndex(context.Context, *AlarmSceneIndexReq) (*AlarmSceneIndexResp, error)
- func (UnimplementedRuleServer) AlarmSceneMultiCreate(context.Context, *AlarmSceneMultiSaveReq) (*Empty, error)
- func (UnimplementedRuleServer) SceneInfoCreate(context.Context, *SceneInfo) (*WithID, error)
- func (UnimplementedRuleServer) SceneInfoDelete(context.Context, *WithID) (*Empty, error)
- func (UnimplementedRuleServer) SceneInfoIndex(context.Context, *SceneInfoIndexReq) (*SceneInfoIndexResp, error)
- func (UnimplementedRuleServer) SceneInfoRead(context.Context, *WithID) (*SceneInfo, error)
- func (UnimplementedRuleServer) SceneInfoUpdate(context.Context, *SceneInfo) (*Empty, error)
- func (UnimplementedRuleServer) SceneLogIndex(context.Context, *SceneLogIndexReq) (*SceneLogIndexResp, error)
- func (UnimplementedRuleServer) SceneManuallyTrigger(context.Context, *WithID) (*Empty, error)
- type UnsafeRuleServer
- type WithID
Constants ¶
const ( Rule_SceneInfoCreate_FullMethodName = "/ud.rule/sceneInfoCreate" Rule_SceneInfoUpdate_FullMethodName = "/ud.rule/sceneInfoUpdate" Rule_SceneInfoDelete_FullMethodName = "/ud.rule/sceneInfoDelete" Rule_SceneInfoIndex_FullMethodName = "/ud.rule/sceneInfoIndex" Rule_SceneInfoRead_FullMethodName = "/ud.rule/sceneInfoRead" Rule_SceneManuallyTrigger_FullMethodName = "/ud.rule/sceneManuallyTrigger" Rule_SceneLogIndex_FullMethodName = "/ud.rule/sceneLogIndex" Rule_AlarmInfoCreate_FullMethodName = "/ud.rule/alarmInfoCreate" Rule_AlarmInfoUpdate_FullMethodName = "/ud.rule/alarmInfoUpdate" Rule_AlarmInfoDelete_FullMethodName = "/ud.rule/alarmInfoDelete" Rule_AlarmInfoIndex_FullMethodName = "/ud.rule/alarmInfoIndex" Rule_AlarmInfoRead_FullMethodName = "/ud.rule/alarmInfoRead" Rule_AlarmSceneMultiCreate_FullMethodName = "/ud.rule/alarmSceneMultiCreate" Rule_AlarmSceneDelete_FullMethodName = "/ud.rule/alarmSceneDelete" Rule_AlarmSceneIndex_FullMethodName = "/ud.rule/alarmSceneIndex" Rule_AlarmRecordIndex_FullMethodName = "/ud.rule/alarmRecordIndex" Rule_AlarmRecordCreate_FullMethodName = "/ud.rule/AlarmRecordCreate" Rule_AlarmRecordDeal_FullMethodName = "/ud.rule/alarmRecordDeal" )
Variables ¶
var File_proto_ud_proto protoreflect.FileDescriptor
var Rule_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ud.rule", HandlerType: (*RuleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "sceneInfoCreate", Handler: _Rule_SceneInfoCreate_Handler, }, { MethodName: "sceneInfoUpdate", Handler: _Rule_SceneInfoUpdate_Handler, }, { MethodName: "sceneInfoDelete", Handler: _Rule_SceneInfoDelete_Handler, }, { MethodName: "sceneInfoIndex", Handler: _Rule_SceneInfoIndex_Handler, }, { MethodName: "sceneInfoRead", Handler: _Rule_SceneInfoRead_Handler, }, { MethodName: "sceneManuallyTrigger", Handler: _Rule_SceneManuallyTrigger_Handler, }, { MethodName: "sceneLogIndex", Handler: _Rule_SceneLogIndex_Handler, }, { MethodName: "alarmInfoCreate", Handler: _Rule_AlarmInfoCreate_Handler, }, { MethodName: "alarmInfoUpdate", Handler: _Rule_AlarmInfoUpdate_Handler, }, { MethodName: "alarmInfoDelete", Handler: _Rule_AlarmInfoDelete_Handler, }, { MethodName: "alarmInfoIndex", Handler: _Rule_AlarmInfoIndex_Handler, }, { MethodName: "alarmInfoRead", Handler: _Rule_AlarmInfoRead_Handler, }, { MethodName: "alarmSceneMultiCreate", Handler: _Rule_AlarmSceneMultiCreate_Handler, }, { MethodName: "alarmSceneDelete", Handler: _Rule_AlarmSceneDelete_Handler, }, { MethodName: "alarmSceneIndex", Handler: _Rule_AlarmSceneIndex_Handler, }, { MethodName: "alarmRecordIndex", Handler: _Rule_AlarmRecordIndex_Handler, }, { MethodName: "AlarmRecordCreate", Handler: _Rule_AlarmRecordCreate_Handler, }, { MethodName: "alarmRecordDeal", Handler: _Rule_AlarmRecordDeal_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/ud.proto", }
Rule_ServiceDesc is the grpc.ServiceDesc for Rule service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRuleServer ¶
func RegisterRuleServer(s grpc.ServiceRegistrar, srv RuleServer)
Types ¶
type AlarmInfo ¶
type AlarmInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //编号 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //告警配置名称 Desc string `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` //告警配置说明 Level int64 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"` //告警配置级别(1提醒 2一般 3严重 4紧急 5超紧急) Status int64 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` //告警配置状态(1启用 2禁用) CreatedTime int64 `protobuf:"varint,6,opt,name=createdTime,proto3" json:"createdTime,omitempty"` //创建时间 SceneIDs []int64 `protobuf:"varint,10,rep,packed,name=sceneIDs,proto3" json:"sceneIDs,omitempty"` //绑定的场景 Notifies []*AlarmNotify `protobuf:"bytes,7,rep,name=notifies,proto3" json:"notifies,omitempty"` UserIDs []int64 `protobuf:"varint,8,rep,packed,name=userIDs,proto3" json:"userIDs,omitempty"` //指定用户ID Accounts []string `protobuf:"bytes,9,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*AlarmInfo) Descriptor
deprecated
func (*AlarmInfo) GetAccounts ¶
func (*AlarmInfo) GetCreatedTime ¶
func (*AlarmInfo) GetNotifies ¶
func (x *AlarmInfo) GetNotifies() []*AlarmNotify
func (*AlarmInfo) GetSceneIDs ¶
func (*AlarmInfo) GetUserIDs ¶
func (*AlarmInfo) ProtoMessage ¶
func (*AlarmInfo) ProtoMessage()
func (*AlarmInfo) ProtoReflect ¶
func (x *AlarmInfo) ProtoReflect() protoreflect.Message
type AlarmInfoIndexReq ¶
type AlarmInfoIndexReq struct { Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // 分页信息 只获取一个则不填 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //告警配置名称 模糊查询 // contains filtered or unexported fields }
func (*AlarmInfoIndexReq) Descriptor
deprecated
func (*AlarmInfoIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use AlarmInfoIndexReq.ProtoReflect.Descriptor instead.
func (*AlarmInfoIndexReq) GetName ¶
func (x *AlarmInfoIndexReq) GetName() string
func (*AlarmInfoIndexReq) GetPage ¶
func (x *AlarmInfoIndexReq) GetPage() *PageInfo
func (*AlarmInfoIndexReq) ProtoMessage ¶
func (*AlarmInfoIndexReq) ProtoMessage()
func (*AlarmInfoIndexReq) ProtoReflect ¶
func (x *AlarmInfoIndexReq) ProtoReflect() protoreflect.Message
func (*AlarmInfoIndexReq) Reset ¶
func (x *AlarmInfoIndexReq) Reset()
func (*AlarmInfoIndexReq) String ¶
func (x *AlarmInfoIndexReq) String() string
type AlarmInfoIndexResp ¶
type AlarmInfoIndexResp struct { List []*AlarmInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` //告警信息 Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` //总数(只有分页的时候会返回) // contains filtered or unexported fields }
func (*AlarmInfoIndexResp) Descriptor
deprecated
func (*AlarmInfoIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use AlarmInfoIndexResp.ProtoReflect.Descriptor instead.
func (*AlarmInfoIndexResp) GetList ¶
func (x *AlarmInfoIndexResp) GetList() []*AlarmInfo
func (*AlarmInfoIndexResp) GetTotal ¶
func (x *AlarmInfoIndexResp) GetTotal() int64
func (*AlarmInfoIndexResp) ProtoMessage ¶
func (*AlarmInfoIndexResp) ProtoMessage()
func (*AlarmInfoIndexResp) ProtoReflect ¶
func (x *AlarmInfoIndexResp) ProtoReflect() protoreflect.Message
func (*AlarmInfoIndexResp) Reset ¶
func (x *AlarmInfoIndexResp) Reset()
func (*AlarmInfoIndexResp) String ¶
func (x *AlarmInfoIndexResp) String() string
type AlarmNotify ¶
type AlarmNotify struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` //通知类型 TemplateID int64 `protobuf:"varint,2,opt,name=templateID,proto3" json:"templateID,omitempty"` //模版code // contains filtered or unexported fields }
func (*AlarmNotify) Descriptor
deprecated
func (*AlarmNotify) Descriptor() ([]byte, []int)
Deprecated: Use AlarmNotify.ProtoReflect.Descriptor instead.
func (*AlarmNotify) GetTemplateID ¶
func (x *AlarmNotify) GetTemplateID() int64
func (*AlarmNotify) GetType ¶
func (x *AlarmNotify) GetType() string
func (*AlarmNotify) ProtoMessage ¶
func (*AlarmNotify) ProtoMessage()
func (*AlarmNotify) ProtoReflect ¶
func (x *AlarmNotify) ProtoReflect() protoreflect.Message
func (*AlarmNotify) Reset ¶
func (x *AlarmNotify) Reset()
func (*AlarmNotify) String ¶
func (x *AlarmNotify) String() string
type AlarmRecord ¶
type AlarmRecord struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //编号 AlarmID int64 `protobuf:"varint,2,opt,name=alarmID,proto3" json:"alarmID,omitempty"` //告警记录ID AlarmName string `protobuf:"bytes,12,opt,name=alarmName,proto3" json:"alarmName,omitempty"` //告警名称 TriggerType string `protobuf:"bytes,3,opt,name=triggerType,proto3" json:"triggerType,omitempty"` //触发类型(设备触发1,其他2) ProductID string `protobuf:"bytes,4,opt,name=productID,proto3" json:"productID,omitempty"` //触发产品id DeviceName string `protobuf:"bytes,5,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //触发设备名称 SceneName string `protobuf:"bytes,6,opt,name=sceneName,proto3" json:"sceneName,omitempty"` //场景名称 SceneID int64 `protobuf:"varint,7,opt,name=sceneID,proto3" json:"sceneID,omitempty"` //场景ID Level int64 `protobuf:"varint,8,opt,name=level,proto3" json:"level,omitempty"` //告警配置级别(1提醒 2一般 3严重 4紧急 5超紧急) LastAlarm int64 `protobuf:"varint,9,opt,name=lastAlarm,proto3" json:"lastAlarm,omitempty"` //最新告警时间 CreatedTime int64 `protobuf:"varint,10,opt,name=createdTime,proto3" json:"createdTime,omitempty"` //创建时间 DealStatus int64 `protobuf:"varint,11,opt,name=dealStatus,proto3" json:"dealStatus,omitempty"` //告警记录状态(1无告警 2告警中 3已处理 4 无效) // contains filtered or unexported fields }
func (*AlarmRecord) Descriptor
deprecated
func (*AlarmRecord) Descriptor() ([]byte, []int)
Deprecated: Use AlarmRecord.ProtoReflect.Descriptor instead.
func (*AlarmRecord) GetAlarmID ¶
func (x *AlarmRecord) GetAlarmID() int64
func (*AlarmRecord) GetAlarmName ¶
func (x *AlarmRecord) GetAlarmName() string
func (*AlarmRecord) GetCreatedTime ¶
func (x *AlarmRecord) GetCreatedTime() int64
func (*AlarmRecord) GetDealStatus ¶
func (x *AlarmRecord) GetDealStatus() int64
func (*AlarmRecord) GetDeviceName ¶
func (x *AlarmRecord) GetDeviceName() string
func (*AlarmRecord) GetId ¶
func (x *AlarmRecord) GetId() int64
func (*AlarmRecord) GetLastAlarm ¶
func (x *AlarmRecord) GetLastAlarm() int64
func (*AlarmRecord) GetLevel ¶
func (x *AlarmRecord) GetLevel() int64
func (*AlarmRecord) GetProductID ¶
func (x *AlarmRecord) GetProductID() string
func (*AlarmRecord) GetSceneID ¶
func (x *AlarmRecord) GetSceneID() int64
func (*AlarmRecord) GetSceneName ¶
func (x *AlarmRecord) GetSceneName() string
func (*AlarmRecord) GetTriggerType ¶
func (x *AlarmRecord) GetTriggerType() string
func (*AlarmRecord) ProtoMessage ¶
func (*AlarmRecord) ProtoMessage()
func (*AlarmRecord) ProtoReflect ¶
func (x *AlarmRecord) ProtoReflect() protoreflect.Message
func (*AlarmRecord) Reset ¶
func (x *AlarmRecord) Reset()
func (*AlarmRecord) String ¶
func (x *AlarmRecord) String() string
type AlarmRecordCreateReq ¶
type AlarmRecordCreateReq struct { TriggerType string `protobuf:"bytes,3,opt,name=triggerType,proto3" json:"triggerType,omitempty"` //触发类型(设备触发1,其他2) ProductID string `protobuf:"bytes,4,opt,name=productID,proto3" json:"productID,omitempty"` //触发产品id DeviceName string `protobuf:"bytes,5,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //触发设备名称 DeviceAlias string `protobuf:"bytes,6,opt,name=deviceAlias,proto3" json:"deviceAlias,omitempty"` //触发设备昵称 SceneName string `protobuf:"bytes,7,opt,name=sceneName,proto3" json:"sceneName,omitempty"` //场景名称 SceneID int64 `protobuf:"varint,8,opt,name=sceneID,proto3" json:"sceneID,omitempty"` //场景ID Mode string `protobuf:"bytes,9,opt,name=mode,proto3" json:"mode,omitempty"` //告警模式 trigger: 触发告警 relieve: 解除告警 // contains filtered or unexported fields }
func (*AlarmRecordCreateReq) Descriptor
deprecated
func (*AlarmRecordCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use AlarmRecordCreateReq.ProtoReflect.Descriptor instead.
func (*AlarmRecordCreateReq) GetDeviceAlias ¶
func (x *AlarmRecordCreateReq) GetDeviceAlias() string
func (*AlarmRecordCreateReq) GetDeviceName ¶
func (x *AlarmRecordCreateReq) GetDeviceName() string
func (*AlarmRecordCreateReq) GetMode ¶
func (x *AlarmRecordCreateReq) GetMode() string
func (*AlarmRecordCreateReq) GetProductID ¶
func (x *AlarmRecordCreateReq) GetProductID() string
func (*AlarmRecordCreateReq) GetSceneID ¶
func (x *AlarmRecordCreateReq) GetSceneID() int64
func (*AlarmRecordCreateReq) GetSceneName ¶
func (x *AlarmRecordCreateReq) GetSceneName() string
func (*AlarmRecordCreateReq) GetTriggerType ¶
func (x *AlarmRecordCreateReq) GetTriggerType() string
func (*AlarmRecordCreateReq) ProtoMessage ¶
func (*AlarmRecordCreateReq) ProtoMessage()
func (*AlarmRecordCreateReq) ProtoReflect ¶
func (x *AlarmRecordCreateReq) ProtoReflect() protoreflect.Message
func (*AlarmRecordCreateReq) Reset ¶
func (x *AlarmRecordCreateReq) Reset()
func (*AlarmRecordCreateReq) String ¶
func (x *AlarmRecordCreateReq) String() string
type AlarmRecordDealReq ¶
type AlarmRecordDealReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Handle int64 `protobuf:"varint,2,opt,name=handle,proto3" json:"handle,omitempty"` //1 无效(告警无效) 2 派单(走工作流) // contains filtered or unexported fields }
func (*AlarmRecordDealReq) Descriptor
deprecated
func (*AlarmRecordDealReq) Descriptor() ([]byte, []int)
Deprecated: Use AlarmRecordDealReq.ProtoReflect.Descriptor instead.
func (*AlarmRecordDealReq) GetHandle ¶
func (x *AlarmRecordDealReq) GetHandle() int64
func (*AlarmRecordDealReq) GetId ¶
func (x *AlarmRecordDealReq) GetId() int64
func (*AlarmRecordDealReq) ProtoMessage ¶
func (*AlarmRecordDealReq) ProtoMessage()
func (*AlarmRecordDealReq) ProtoReflect ¶
func (x *AlarmRecordDealReq) ProtoReflect() protoreflect.Message
func (*AlarmRecordDealReq) Reset ¶
func (x *AlarmRecordDealReq) Reset()
func (*AlarmRecordDealReq) String ¶
func (x *AlarmRecordDealReq) String() string
type AlarmRecordIndexReq ¶
type AlarmRecordIndexReq struct { AlarmID int64 `protobuf:"varint,1,opt,name=alarmID,proto3" json:"alarmID,omitempty"` //告警配置ID AlarmName string `protobuf:"bytes,5,opt,name=alarmName,proto3" json:"alarmName,omitempty"` //告警名称 Page *PageInfo `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` // 分页信息 获取全部不填 TimeRange *TimeRange `protobuf:"bytes,3,opt,name=timeRange,proto3" json:"timeRange,omitempty"` // 时间范围 DealStatus []int64 `protobuf:"varint,4,rep,packed,name=dealStatus,proto3" json:"dealStatus,omitempty"` //告警记录状态(1无告警 2告警中 3已处理 4 无效) // contains filtered or unexported fields }
func (*AlarmRecordIndexReq) Descriptor
deprecated
func (*AlarmRecordIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use AlarmRecordIndexReq.ProtoReflect.Descriptor instead.
func (*AlarmRecordIndexReq) GetAlarmID ¶
func (x *AlarmRecordIndexReq) GetAlarmID() int64
func (*AlarmRecordIndexReq) GetAlarmName ¶
func (x *AlarmRecordIndexReq) GetAlarmName() string
func (*AlarmRecordIndexReq) GetDealStatus ¶
func (x *AlarmRecordIndexReq) GetDealStatus() []int64
func (*AlarmRecordIndexReq) GetPage ¶
func (x *AlarmRecordIndexReq) GetPage() *PageInfo
func (*AlarmRecordIndexReq) GetTimeRange ¶
func (x *AlarmRecordIndexReq) GetTimeRange() *TimeRange
func (*AlarmRecordIndexReq) ProtoMessage ¶
func (*AlarmRecordIndexReq) ProtoMessage()
func (*AlarmRecordIndexReq) ProtoReflect ¶
func (x *AlarmRecordIndexReq) ProtoReflect() protoreflect.Message
func (*AlarmRecordIndexReq) Reset ¶
func (x *AlarmRecordIndexReq) Reset()
func (*AlarmRecordIndexReq) String ¶
func (x *AlarmRecordIndexReq) String() string
type AlarmRecordIndexResp ¶
type AlarmRecordIndexResp struct { List []*AlarmRecord `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` //总数(只有分页的时候会返回) // contains filtered or unexported fields }
func (*AlarmRecordIndexResp) Descriptor
deprecated
func (*AlarmRecordIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use AlarmRecordIndexResp.ProtoReflect.Descriptor instead.
func (*AlarmRecordIndexResp) GetList ¶
func (x *AlarmRecordIndexResp) GetList() []*AlarmRecord
func (*AlarmRecordIndexResp) GetTotal ¶
func (x *AlarmRecordIndexResp) GetTotal() int64
func (*AlarmRecordIndexResp) ProtoMessage ¶
func (*AlarmRecordIndexResp) ProtoMessage()
func (*AlarmRecordIndexResp) ProtoReflect ¶
func (x *AlarmRecordIndexResp) ProtoReflect() protoreflect.Message
func (*AlarmRecordIndexResp) Reset ¶
func (x *AlarmRecordIndexResp) Reset()
func (*AlarmRecordIndexResp) String ¶
func (x *AlarmRecordIndexResp) String() string
type AlarmSceneDeleteReq ¶
type AlarmSceneDeleteReq struct { AlarmID int64 `protobuf:"varint,1,opt,name=alarmID,proto3" json:"alarmID,omitempty"` //告警配置ID SceneID int64 `protobuf:"varint,2,opt,name=sceneID,proto3" json:"sceneID,omitempty"` //场景id // contains filtered or unexported fields }
func (*AlarmSceneDeleteReq) Descriptor
deprecated
func (*AlarmSceneDeleteReq) Descriptor() ([]byte, []int)
Deprecated: Use AlarmSceneDeleteReq.ProtoReflect.Descriptor instead.
func (*AlarmSceneDeleteReq) GetAlarmID ¶
func (x *AlarmSceneDeleteReq) GetAlarmID() int64
func (*AlarmSceneDeleteReq) GetSceneID ¶
func (x *AlarmSceneDeleteReq) GetSceneID() int64
func (*AlarmSceneDeleteReq) ProtoMessage ¶
func (*AlarmSceneDeleteReq) ProtoMessage()
func (*AlarmSceneDeleteReq) ProtoReflect ¶
func (x *AlarmSceneDeleteReq) ProtoReflect() protoreflect.Message
func (*AlarmSceneDeleteReq) Reset ¶
func (x *AlarmSceneDeleteReq) Reset()
func (*AlarmSceneDeleteReq) String ¶
func (x *AlarmSceneDeleteReq) String() string
type AlarmSceneIndexReq ¶
type AlarmSceneIndexReq struct { AlarmID int64 `protobuf:"varint,1,opt,name=alarmID,proto3" json:"alarmID,omitempty"` //告警配置ID // contains filtered or unexported fields }
func (*AlarmSceneIndexReq) Descriptor
deprecated
func (*AlarmSceneIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use AlarmSceneIndexReq.ProtoReflect.Descriptor instead.
func (*AlarmSceneIndexReq) GetAlarmID ¶
func (x *AlarmSceneIndexReq) GetAlarmID() int64
func (*AlarmSceneIndexReq) ProtoMessage ¶
func (*AlarmSceneIndexReq) ProtoMessage()
func (*AlarmSceneIndexReq) ProtoReflect ¶
func (x *AlarmSceneIndexReq) ProtoReflect() protoreflect.Message
func (*AlarmSceneIndexReq) Reset ¶
func (x *AlarmSceneIndexReq) Reset()
func (*AlarmSceneIndexReq) String ¶
func (x *AlarmSceneIndexReq) String() string
type AlarmSceneIndexResp ¶
type AlarmSceneIndexResp struct { AlarmID int64 `protobuf:"varint,1,opt,name=alarmID,proto3" json:"alarmID,omitempty"` //告警配置ID Scenes []*SceneInfo `protobuf:"bytes,2,rep,name=scenes,proto3" json:"scenes,omitempty"` //场景列表,只返回基础信息 // contains filtered or unexported fields }
func (*AlarmSceneIndexResp) Descriptor
deprecated
func (*AlarmSceneIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use AlarmSceneIndexResp.ProtoReflect.Descriptor instead.
func (*AlarmSceneIndexResp) GetAlarmID ¶
func (x *AlarmSceneIndexResp) GetAlarmID() int64
func (*AlarmSceneIndexResp) GetScenes ¶
func (x *AlarmSceneIndexResp) GetScenes() []*SceneInfo
func (*AlarmSceneIndexResp) ProtoMessage ¶
func (*AlarmSceneIndexResp) ProtoMessage()
func (*AlarmSceneIndexResp) ProtoReflect ¶
func (x *AlarmSceneIndexResp) ProtoReflect() protoreflect.Message
func (*AlarmSceneIndexResp) Reset ¶
func (x *AlarmSceneIndexResp) Reset()
func (*AlarmSceneIndexResp) String ¶
func (x *AlarmSceneIndexResp) String() string
type AlarmSceneMultiSaveReq ¶
type AlarmSceneMultiSaveReq struct { AlarmID int64 `protobuf:"varint,1,opt,name=alarmID,proto3" json:"alarmID,omitempty"` //告警配置ID SceneIDs []int64 `protobuf:"varint,2,rep,packed,name=sceneIDs,proto3" json:"sceneIDs,omitempty"` //场景id // contains filtered or unexported fields }
func (*AlarmSceneMultiSaveReq) Descriptor
deprecated
func (*AlarmSceneMultiSaveReq) Descriptor() ([]byte, []int)
Deprecated: Use AlarmSceneMultiSaveReq.ProtoReflect.Descriptor instead.
func (*AlarmSceneMultiSaveReq) GetAlarmID ¶
func (x *AlarmSceneMultiSaveReq) GetAlarmID() int64
func (*AlarmSceneMultiSaveReq) GetSceneIDs ¶
func (x *AlarmSceneMultiSaveReq) GetSceneIDs() []int64
func (*AlarmSceneMultiSaveReq) ProtoMessage ¶
func (*AlarmSceneMultiSaveReq) ProtoMessage()
func (*AlarmSceneMultiSaveReq) ProtoReflect ¶
func (x *AlarmSceneMultiSaveReq) ProtoReflect() protoreflect.Message
func (*AlarmSceneMultiSaveReq) Reset ¶
func (x *AlarmSceneMultiSaveReq) Reset()
func (*AlarmSceneMultiSaveReq) String ¶
func (x *AlarmSceneMultiSaveReq) String() string
type DeviceCore ¶
type DeviceCore struct { ProductID string `protobuf:"bytes,1,opt,name=productID,proto3" json:"productID,omitempty"` //产品id DeviceName string `protobuf:"bytes,2,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备名称 // contains filtered or unexported fields }
func (*DeviceCore) Descriptor
deprecated
func (*DeviceCore) Descriptor() ([]byte, []int)
Deprecated: Use DeviceCore.ProtoReflect.Descriptor instead.
func (*DeviceCore) GetDeviceName ¶
func (x *DeviceCore) GetDeviceName() string
func (*DeviceCore) GetProductID ¶
func (x *DeviceCore) GetProductID() string
func (*DeviceCore) ProtoMessage ¶
func (*DeviceCore) ProtoMessage()
func (*DeviceCore) ProtoReflect ¶
func (x *DeviceCore) ProtoReflect() protoreflect.Message
func (*DeviceCore) Reset ¶
func (x *DeviceCore) Reset()
func (*DeviceCore) String ¶
func (x *DeviceCore) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type LogActionScene ¶
type LogActionScene struct { SceneID int64 `protobuf:"varint,1,opt,name=sceneID,proto3" json:"sceneID,omitempty"` SceneName string `protobuf:"bytes,2,opt,name=sceneName,proto3" json:"sceneName,omitempty"` // contains filtered or unexported fields }
func (*LogActionScene) Descriptor
deprecated
func (*LogActionScene) Descriptor() ([]byte, []int)
Deprecated: Use LogActionScene.ProtoReflect.Descriptor instead.
func (*LogActionScene) GetSceneID ¶
func (x *LogActionScene) GetSceneID() int64
func (*LogActionScene) GetSceneName ¶
func (x *LogActionScene) GetSceneName() string
func (*LogActionScene) ProtoMessage ¶
func (*LogActionScene) ProtoMessage()
func (*LogActionScene) ProtoReflect ¶
func (x *LogActionScene) ProtoReflect() protoreflect.Message
func (*LogActionScene) Reset ¶
func (x *LogActionScene) Reset()
func (*LogActionScene) String ¶
func (x *LogActionScene) String() string
type PageInfo ¶
type PageInfo struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Orders []*PageInfo_OrderBy `protobuf:"bytes,3,rep,name=orders,proto3" json:"orders,omitempty"` // contains filtered or unexported fields }
func (*PageInfo) Descriptor
deprecated
func (*PageInfo) GetOrders ¶
func (x *PageInfo) GetOrders() []*PageInfo_OrderBy
func (*PageInfo) ProtoMessage ¶
func (*PageInfo) ProtoMessage()
func (*PageInfo) ProtoReflect ¶
func (x *PageInfo) ProtoReflect() protoreflect.Message
type PageInfo_OrderBy ¶
type PageInfo_OrderBy struct { // 排序的字段名 Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // 排序方式:1 从小到大, 2 从大到小 Sort int64 `protobuf:"varint,2,opt,name=sort,proto3" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*PageInfo_OrderBy) Descriptor
deprecated
func (*PageInfo_OrderBy) Descriptor() ([]byte, []int)
Deprecated: Use PageInfo_OrderBy.ProtoReflect.Descriptor instead.
func (*PageInfo_OrderBy) GetField ¶
func (x *PageInfo_OrderBy) GetField() string
func (*PageInfo_OrderBy) GetSort ¶
func (x *PageInfo_OrderBy) GetSort() int64
func (*PageInfo_OrderBy) ProtoMessage ¶
func (*PageInfo_OrderBy) ProtoMessage()
func (*PageInfo_OrderBy) ProtoReflect ¶
func (x *PageInfo_OrderBy) ProtoReflect() protoreflect.Message
func (*PageInfo_OrderBy) Reset ¶
func (x *PageInfo_OrderBy) Reset()
func (*PageInfo_OrderBy) String ¶
func (x *PageInfo_OrderBy) String() string
type RuleClient ¶
type RuleClient interface { // 场景 SceneInfoCreate(ctx context.Context, in *SceneInfo, opts ...grpc.CallOption) (*WithID, error) SceneInfoUpdate(ctx context.Context, in *SceneInfo, opts ...grpc.CallOption) (*Empty, error) SceneInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Empty, error) SceneInfoIndex(ctx context.Context, in *SceneInfoIndexReq, opts ...grpc.CallOption) (*SceneInfoIndexResp, error) SceneInfoRead(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*SceneInfo, error) SceneManuallyTrigger(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Empty, error) SceneLogIndex(ctx context.Context, in *SceneLogIndexReq, opts ...grpc.CallOption) (*SceneLogIndexResp, error) AlarmInfoCreate(ctx context.Context, in *AlarmInfo, opts ...grpc.CallOption) (*WithID, error) AlarmInfoUpdate(ctx context.Context, in *AlarmInfo, opts ...grpc.CallOption) (*Empty, error) AlarmInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Empty, error) AlarmInfoIndex(ctx context.Context, in *AlarmInfoIndexReq, opts ...grpc.CallOption) (*AlarmInfoIndexResp, error) AlarmInfoRead(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*AlarmInfo, error) // 告警关联场景联动 AlarmSceneMultiCreate(ctx context.Context, in *AlarmSceneMultiSaveReq, opts ...grpc.CallOption) (*Empty, error) AlarmSceneDelete(ctx context.Context, in *AlarmSceneDeleteReq, opts ...grpc.CallOption) (*Empty, error) AlarmSceneIndex(ctx context.Context, in *AlarmSceneIndexReq, opts ...grpc.CallOption) (*AlarmSceneIndexResp, error) // 告警记录 AlarmRecordIndex(ctx context.Context, in *AlarmRecordIndexReq, opts ...grpc.CallOption) (*AlarmRecordIndexResp, error) AlarmRecordCreate(ctx context.Context, in *AlarmRecordCreateReq, opts ...grpc.CallOption) (*Empty, error) AlarmRecordDeal(ctx context.Context, in *AlarmRecordDealReq, opts ...grpc.CallOption) (*Empty, error) }
RuleClient is the client API for Rule service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRuleClient ¶
func NewRuleClient(cc grpc.ClientConnInterface) RuleClient
type RuleServer ¶
type RuleServer interface { // 场景 SceneInfoCreate(context.Context, *SceneInfo) (*WithID, error) SceneInfoUpdate(context.Context, *SceneInfo) (*Empty, error) SceneInfoDelete(context.Context, *WithID) (*Empty, error) SceneInfoIndex(context.Context, *SceneInfoIndexReq) (*SceneInfoIndexResp, error) SceneInfoRead(context.Context, *WithID) (*SceneInfo, error) SceneManuallyTrigger(context.Context, *WithID) (*Empty, error) SceneLogIndex(context.Context, *SceneLogIndexReq) (*SceneLogIndexResp, error) AlarmInfoCreate(context.Context, *AlarmInfo) (*WithID, error) AlarmInfoUpdate(context.Context, *AlarmInfo) (*Empty, error) AlarmInfoDelete(context.Context, *WithID) (*Empty, error) AlarmInfoIndex(context.Context, *AlarmInfoIndexReq) (*AlarmInfoIndexResp, error) AlarmInfoRead(context.Context, *WithID) (*AlarmInfo, error) // 告警关联场景联动 AlarmSceneMultiCreate(context.Context, *AlarmSceneMultiSaveReq) (*Empty, error) AlarmSceneDelete(context.Context, *AlarmSceneDeleteReq) (*Empty, error) AlarmSceneIndex(context.Context, *AlarmSceneIndexReq) (*AlarmSceneIndexResp, error) // 告警记录 AlarmRecordIndex(context.Context, *AlarmRecordIndexReq) (*AlarmRecordIndexResp, error) AlarmRecordCreate(context.Context, *AlarmRecordCreateReq) (*Empty, error) AlarmRecordDeal(context.Context, *AlarmRecordDealReq) (*Empty, error) // contains filtered or unexported methods }
RuleServer is the server API for Rule service. All implementations must embed UnimplementedRuleServer for forward compatibility
type SceneFlowInfo ¶
type SceneFlowInfo struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` //if then SubType string `protobuf:"bytes,2,opt,name=subType,proto3" json:"subType,omitempty"` //timer:定时触发 notify: 通知 delay:延迟 device:设备输出或设备触发 Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` //内容 // contains filtered or unexported fields }
func (*SceneFlowInfo) Descriptor
deprecated
func (*SceneFlowInfo) Descriptor() ([]byte, []int)
Deprecated: Use SceneFlowInfo.ProtoReflect.Descriptor instead.
func (*SceneFlowInfo) GetInfo ¶
func (x *SceneFlowInfo) GetInfo() string
func (*SceneFlowInfo) GetSubType ¶
func (x *SceneFlowInfo) GetSubType() string
func (*SceneFlowInfo) GetType ¶
func (x *SceneFlowInfo) GetType() string
func (*SceneFlowInfo) ProtoMessage ¶
func (*SceneFlowInfo) ProtoMessage()
func (*SceneFlowInfo) ProtoReflect ¶
func (x *SceneFlowInfo) ProtoReflect() protoreflect.Message
func (*SceneFlowInfo) Reset ¶
func (x *SceneFlowInfo) Reset()
func (*SceneFlowInfo) String ¶
func (x *SceneFlowInfo) String() string
type SceneInfo ¶
type SceneInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //场景id Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //场景名 Desc string `protobuf:"bytes,4,opt,name=desc,proto3" json:"desc,omitempty"` //描述 AreaID int64 `protobuf:"varint,21,opt,name=areaID,proto3" json:"areaID,omitempty"` //区域id FlowPath []*SceneFlowInfo `protobuf:"bytes,15,rep,name=FlowPath,proto3" json:"FlowPath,omitempty"` //执行的流程 Tag string `protobuf:"bytes,12,opt,name=tag,proto3" json:"tag,omitempty"` //标签 admin: 管理员 normal: 普通 CreatedTime int64 `protobuf:"varint,5,opt,name=createdTime,proto3" json:"createdTime,omitempty"` //创建时间 秒级时间戳 只读 Type string `protobuf:"bytes,14,opt,name=type,proto3" json:"type,omitempty"` //auto:自动化 manual:手动触发 If string `protobuf:"bytes,6,opt,name=if,proto3" json:"if,omitempty"` //多种触发方式 When string `protobuf:"bytes,7,opt,name=when,proto3" json:"when,omitempty"` //手动触发模式不生效 Then string `protobuf:"bytes,8,opt,name=then,proto3" json:"then,omitempty"` //触发后执行的动作 Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // 状态(1启用 2禁用) HeadImg string `protobuf:"bytes,10,opt,name=headImg,proto3" json:"headImg,omitempty"` IsUpdateHeadImg bool `protobuf:"varint,11,opt,name=isUpdateHeadImg,proto3" json:"isUpdateHeadImg,omitempty"` //只有这个参数为true的时候才会更新图片,传参为图片的file path Logo string `protobuf:"bytes,23,opt,name=logo,proto3" json:"logo,omitempty"` //logoid LastRunTime int64 `protobuf:"varint,13,opt,name=lastRunTime,proto3" json:"lastRunTime,omitempty"` //最后一次执行时间 秒级时间戳 只读 ProductID string `protobuf:"bytes,16,opt,name=productID,proto3" json:"productID,omitempty"` //产品id DeviceName string `protobuf:"bytes,17,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备名称 DeviceAlias string `protobuf:"bytes,18,opt,name=deviceAlias,proto3" json:"deviceAlias,omitempty"` //设备别名(只读) DeviceMode string `protobuf:"bytes,19,opt,name=deviceMode,proto3" json:"deviceMode,omitempty"` //设备模式 single:单设备 multi:多设备 Body string `protobuf:"bytes,20,opt,name=body,proto3" json:"body,omitempty"` //自定义字段 UpdatedTime int64 `protobuf:"varint,22,opt,name=updatedTime,proto3" json:"updatedTime,omitempty"` //更新时间 IsCommon int64 `protobuf:"varint,24,opt,name=isCommon,proto3" json:"isCommon,omitempty"` //是否是常用的 // contains filtered or unexported fields }
func (*SceneInfo) Descriptor
deprecated
func (*SceneInfo) GetCreatedTime ¶
func (*SceneInfo) GetDeviceAlias ¶
func (*SceneInfo) GetDeviceMode ¶
func (*SceneInfo) GetDeviceName ¶
func (*SceneInfo) GetFlowPath ¶
func (x *SceneInfo) GetFlowPath() []*SceneFlowInfo
func (*SceneInfo) GetHeadImg ¶
func (*SceneInfo) GetIsCommon ¶
func (*SceneInfo) GetIsUpdateHeadImg ¶
func (*SceneInfo) GetLastRunTime ¶
func (*SceneInfo) GetProductID ¶
func (*SceneInfo) GetUpdatedTime ¶
func (*SceneInfo) ProtoMessage ¶
func (*SceneInfo) ProtoMessage()
func (*SceneInfo) ProtoReflect ¶
func (x *SceneInfo) ProtoReflect() protoreflect.Message
type SceneInfoIndexReq ¶
type SceneInfoIndexReq struct { Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` //分页信息 只获取一个则不填 AreaID int64 `protobuf:"varint,6,opt,name=areaID,proto3" json:"areaID,omitempty"` //所属区域 Tag string `protobuf:"bytes,7,opt,name=tag,proto3" json:"tag,omitempty"` //标签 admin: 管理员 normal: 普通 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //场景名 模糊查询 Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` //状态: 1启用 2禁用 Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` //auto:自动化 manual:手动触发 AlarmID int64 `protobuf:"varint,5,opt,name=alarmID,proto3" json:"alarmID,omitempty"` //告警配置ID过滤 DeviceMode string `protobuf:"bytes,10,opt,name=deviceMode,proto3" json:"deviceMode,omitempty"` //设备模式 single:单设备 multi:多设备 ProductID string `protobuf:"bytes,8,opt,name=productID,proto3" json:"productID,omitempty"` //产品id DeviceName string `protobuf:"bytes,9,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备名称 HasActionType string `protobuf:"bytes,11,opt,name=hasActionType,proto3" json:"hasActionType,omitempty"` //过滤有某个执行类型 SceneIDs []int64 `protobuf:"varint,12,rep,packed,name=sceneIDs,proto3" json:"sceneIDs,omitempty"` IsCommon int64 `protobuf:"varint,24,opt,name=isCommon,proto3" json:"isCommon,omitempty"` //是否是常用的 // contains filtered or unexported fields }
func (*SceneInfoIndexReq) Descriptor
deprecated
func (*SceneInfoIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use SceneInfoIndexReq.ProtoReflect.Descriptor instead.
func (*SceneInfoIndexReq) GetAlarmID ¶
func (x *SceneInfoIndexReq) GetAlarmID() int64
func (*SceneInfoIndexReq) GetAreaID ¶
func (x *SceneInfoIndexReq) GetAreaID() int64
func (*SceneInfoIndexReq) GetDeviceMode ¶
func (x *SceneInfoIndexReq) GetDeviceMode() string
func (*SceneInfoIndexReq) GetDeviceName ¶
func (x *SceneInfoIndexReq) GetDeviceName() string
func (*SceneInfoIndexReq) GetHasActionType ¶
func (x *SceneInfoIndexReq) GetHasActionType() string
func (*SceneInfoIndexReq) GetIsCommon ¶
func (x *SceneInfoIndexReq) GetIsCommon() int64
func (*SceneInfoIndexReq) GetName ¶
func (x *SceneInfoIndexReq) GetName() string
func (*SceneInfoIndexReq) GetPage ¶
func (x *SceneInfoIndexReq) GetPage() *PageInfo
func (*SceneInfoIndexReq) GetProductID ¶
func (x *SceneInfoIndexReq) GetProductID() string
func (*SceneInfoIndexReq) GetSceneIDs ¶
func (x *SceneInfoIndexReq) GetSceneIDs() []int64
func (*SceneInfoIndexReq) GetStatus ¶
func (x *SceneInfoIndexReq) GetStatus() int64
func (*SceneInfoIndexReq) GetTag ¶
func (x *SceneInfoIndexReq) GetTag() string
func (*SceneInfoIndexReq) GetType ¶
func (x *SceneInfoIndexReq) GetType() string
func (*SceneInfoIndexReq) ProtoMessage ¶
func (*SceneInfoIndexReq) ProtoMessage()
func (*SceneInfoIndexReq) ProtoReflect ¶
func (x *SceneInfoIndexReq) ProtoReflect() protoreflect.Message
func (*SceneInfoIndexReq) Reset ¶
func (x *SceneInfoIndexReq) Reset()
func (*SceneInfoIndexReq) String ¶
func (x *SceneInfoIndexReq) String() string
type SceneInfoIndexResp ¶
type SceneInfoIndexResp struct { List []*SceneInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` //设备信息 Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` //总数(只有分页的时候会返回) // contains filtered or unexported fields }
func (*SceneInfoIndexResp) Descriptor
deprecated
func (*SceneInfoIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use SceneInfoIndexResp.ProtoReflect.Descriptor instead.
func (*SceneInfoIndexResp) GetList ¶
func (x *SceneInfoIndexResp) GetList() []*SceneInfo
func (*SceneInfoIndexResp) GetTotal ¶
func (x *SceneInfoIndexResp) GetTotal() int64
func (*SceneInfoIndexResp) ProtoMessage ¶
func (*SceneInfoIndexResp) ProtoMessage()
func (*SceneInfoIndexResp) ProtoReflect ¶
func (x *SceneInfoIndexResp) ProtoReflect() protoreflect.Message
func (*SceneInfoIndexResp) Reset ¶
func (x *SceneInfoIndexResp) Reset()
func (*SceneInfoIndexResp) String ¶
func (x *SceneInfoIndexResp) String() string
type SceneLog ¶
type SceneLog struct { SceneID int64 `protobuf:"varint,1,opt,name=sceneID,proto3" json:"sceneID,omitempty"` //场景id SceneName string `protobuf:"bytes,2,opt,name=sceneName,proto3" json:"sceneName,omitempty"` //场景名 AreaID int64 `protobuf:"varint,3,opt,name=areaID,proto3" json:"areaID,omitempty"` //区域id CreatedTime int64 `protobuf:"varint,4,opt,name=createdTime,proto3" json:"createdTime,omitempty"` //创建时间 秒级时间戳 只读 Status int64 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // 状态(1成功 2失败) Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` //"manual":手动触发场景 "auto":自动化 Trigger *SceneLogTrigger `protobuf:"bytes,7,opt,name=trigger,proto3" json:"trigger,omitempty"` //触发 Actions []*SceneLogAction `protobuf:"bytes,8,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*SceneLog) Descriptor
deprecated
func (*SceneLog) GetActions ¶
func (x *SceneLog) GetActions() []*SceneLogAction
func (*SceneLog) GetCreatedTime ¶
func (*SceneLog) GetSceneID ¶
func (*SceneLog) GetSceneName ¶
func (*SceneLog) GetTrigger ¶
func (x *SceneLog) GetTrigger() *SceneLogTrigger
func (*SceneLog) ProtoMessage ¶
func (*SceneLog) ProtoMessage()
func (*SceneLog) ProtoReflect ¶
func (x *SceneLog) ProtoReflect() protoreflect.Message
type SceneLogAction ¶
type SceneLogAction struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` //执行类型(目前只记录设备属性控制) Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // 状态(1成功 2失败) Code int64 `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"` //错误码 Msg string `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"` //错误信息 MsgToken string `protobuf:"bytes,6,opt,name=msgToken,proto3" json:"msgToken,omitempty"` //调用id Device *SceneLogActionDevice `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` Alarm *SceneLogActionAlarm `protobuf:"bytes,7,opt,name=alarm,proto3" json:"alarm,omitempty"` Delay int64 `protobuf:"varint,8,opt,name=delay,proto3" json:"delay,omitempty"` //延时的秒数 Scene *LogActionScene `protobuf:"bytes,9,opt,name=scene,proto3" json:"scene,omitempty"` //执行场景 // contains filtered or unexported fields }
func (*SceneLogAction) Descriptor
deprecated
func (*SceneLogAction) Descriptor() ([]byte, []int)
Deprecated: Use SceneLogAction.ProtoReflect.Descriptor instead.
func (*SceneLogAction) GetAlarm ¶
func (x *SceneLogAction) GetAlarm() *SceneLogActionAlarm
func (*SceneLogAction) GetCode ¶
func (x *SceneLogAction) GetCode() int64
func (*SceneLogAction) GetDelay ¶
func (x *SceneLogAction) GetDelay() int64
func (*SceneLogAction) GetDevice ¶
func (x *SceneLogAction) GetDevice() *SceneLogActionDevice
func (*SceneLogAction) GetMsg ¶
func (x *SceneLogAction) GetMsg() string
func (*SceneLogAction) GetMsgToken ¶
func (x *SceneLogAction) GetMsgToken() string
func (*SceneLogAction) GetScene ¶
func (x *SceneLogAction) GetScene() *LogActionScene
func (*SceneLogAction) GetStatus ¶
func (x *SceneLogAction) GetStatus() int64
func (*SceneLogAction) GetType ¶
func (x *SceneLogAction) GetType() string
func (*SceneLogAction) ProtoMessage ¶
func (*SceneLogAction) ProtoMessage()
func (*SceneLogAction) ProtoReflect ¶
func (x *SceneLogAction) ProtoReflect() protoreflect.Message
func (*SceneLogAction) Reset ¶
func (x *SceneLogAction) Reset()
func (*SceneLogAction) String ¶
func (x *SceneLogAction) String() string
type SceneLogActionAlarm ¶
type SceneLogActionAlarm struct { Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` //告警模式 trigger: 触发告警 relieve: 解除告警 // contains filtered or unexported fields }
func (*SceneLogActionAlarm) Descriptor
deprecated
func (*SceneLogActionAlarm) Descriptor() ([]byte, []int)
Deprecated: Use SceneLogActionAlarm.ProtoReflect.Descriptor instead.
func (*SceneLogActionAlarm) GetMode ¶
func (x *SceneLogActionAlarm) GetMode() string
func (*SceneLogActionAlarm) ProtoMessage ¶
func (*SceneLogActionAlarm) ProtoMessage()
func (*SceneLogActionAlarm) ProtoReflect ¶
func (x *SceneLogActionAlarm) ProtoReflect() protoreflect.Message
func (*SceneLogActionAlarm) Reset ¶
func (x *SceneLogActionAlarm) Reset()
func (*SceneLogActionAlarm) String ¶
func (x *SceneLogActionAlarm) String() string
type SceneLogActionDevice ¶
type SceneLogActionDevice struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` //设备执行的类型 ProductID string `protobuf:"bytes,2,opt,name=productID,proto3" json:"productID,omitempty"` //产品ID ProductName string `protobuf:"bytes,3,opt,name=productName,proto3" json:"productName,omitempty"` //产品名称 DeviceName string `protobuf:"bytes,4,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备id DeviceAlias string `protobuf:"bytes,5,opt,name=deviceAlias,proto3" json:"deviceAlias,omitempty"` //设备昵称 Values []*SceneLogActionDeviceValue `protobuf:"bytes,8,rep,name=values,proto3" json:"values,omitempty"` //执行的值 // contains filtered or unexported fields }
func (*SceneLogActionDevice) Descriptor
deprecated
func (*SceneLogActionDevice) Descriptor() ([]byte, []int)
Deprecated: Use SceneLogActionDevice.ProtoReflect.Descriptor instead.
func (*SceneLogActionDevice) GetDeviceAlias ¶
func (x *SceneLogActionDevice) GetDeviceAlias() string
func (*SceneLogActionDevice) GetDeviceName ¶
func (x *SceneLogActionDevice) GetDeviceName() string
func (*SceneLogActionDevice) GetProductID ¶
func (x *SceneLogActionDevice) GetProductID() string
func (*SceneLogActionDevice) GetProductName ¶
func (x *SceneLogActionDevice) GetProductName() string
func (*SceneLogActionDevice) GetType ¶
func (x *SceneLogActionDevice) GetType() string
func (*SceneLogActionDevice) GetValues ¶
func (x *SceneLogActionDevice) GetValues() []*SceneLogActionDeviceValue
func (*SceneLogActionDevice) ProtoMessage ¶
func (*SceneLogActionDevice) ProtoMessage()
func (*SceneLogActionDevice) ProtoReflect ¶
func (x *SceneLogActionDevice) ProtoReflect() protoreflect.Message
func (*SceneLogActionDevice) Reset ¶
func (x *SceneLogActionDevice) Reset()
func (*SceneLogActionDevice) String ¶
func (x *SceneLogActionDevice) String() string
type SceneLogActionDeviceValue ¶
type SceneLogActionDeviceValue struct { DataID string `protobuf:"bytes,6,opt,name=dataID,proto3" json:"dataID,omitempty"` //触发的id DataName string `protobuf:"bytes,7,opt,name=dataName,proto3" json:"dataName,omitempty"` //触发id的名字 Value string `protobuf:"bytes,8,opt,name=value,proto3" json:"value,omitempty"` //执行的值 // contains filtered or unexported fields }
func (*SceneLogActionDeviceValue) Descriptor
deprecated
func (*SceneLogActionDeviceValue) Descriptor() ([]byte, []int)
Deprecated: Use SceneLogActionDeviceValue.ProtoReflect.Descriptor instead.
func (*SceneLogActionDeviceValue) GetDataID ¶
func (x *SceneLogActionDeviceValue) GetDataID() string
func (*SceneLogActionDeviceValue) GetDataName ¶
func (x *SceneLogActionDeviceValue) GetDataName() string
func (*SceneLogActionDeviceValue) GetValue ¶
func (x *SceneLogActionDeviceValue) GetValue() string
func (*SceneLogActionDeviceValue) ProtoMessage ¶
func (*SceneLogActionDeviceValue) ProtoMessage()
func (*SceneLogActionDeviceValue) ProtoReflect ¶
func (x *SceneLogActionDeviceValue) ProtoReflect() protoreflect.Message
func (*SceneLogActionDeviceValue) Reset ¶
func (x *SceneLogActionDeviceValue) Reset()
func (*SceneLogActionDeviceValue) String ¶
func (x *SceneLogActionDeviceValue) String() string
type SceneLogIndexReq ¶
type SceneLogIndexReq struct { Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // 分页信息 只获取一个则不填 SceneID int64 `protobuf:"varint,2,opt,name=sceneID,proto3" json:"sceneID,omitempty"` //场景id TimeRange *TimeRange `protobuf:"bytes,3,opt,name=timeRange,proto3" json:"timeRange,omitempty"` // 时间范围 Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 状态(1成功 2失败) // contains filtered or unexported fields }
func (*SceneLogIndexReq) Descriptor
deprecated
func (*SceneLogIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use SceneLogIndexReq.ProtoReflect.Descriptor instead.
func (*SceneLogIndexReq) GetPage ¶
func (x *SceneLogIndexReq) GetPage() *PageInfo
func (*SceneLogIndexReq) GetSceneID ¶
func (x *SceneLogIndexReq) GetSceneID() int64
func (*SceneLogIndexReq) GetStatus ¶
func (x *SceneLogIndexReq) GetStatus() int64
func (*SceneLogIndexReq) GetTimeRange ¶
func (x *SceneLogIndexReq) GetTimeRange() *TimeRange
func (*SceneLogIndexReq) ProtoMessage ¶
func (*SceneLogIndexReq) ProtoMessage()
func (*SceneLogIndexReq) ProtoReflect ¶
func (x *SceneLogIndexReq) ProtoReflect() protoreflect.Message
func (*SceneLogIndexReq) Reset ¶
func (x *SceneLogIndexReq) Reset()
func (*SceneLogIndexReq) String ¶
func (x *SceneLogIndexReq) String() string
type SceneLogIndexResp ¶
type SceneLogIndexResp struct { List []*SceneLog `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` //告警信息 Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` //总数(只有分页的时候会返回) // contains filtered or unexported fields }
func (*SceneLogIndexResp) Descriptor
deprecated
func (*SceneLogIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use SceneLogIndexResp.ProtoReflect.Descriptor instead.
func (*SceneLogIndexResp) GetList ¶
func (x *SceneLogIndexResp) GetList() []*SceneLog
func (*SceneLogIndexResp) GetTotal ¶
func (x *SceneLogIndexResp) GetTotal() int64
func (*SceneLogIndexResp) ProtoMessage ¶
func (*SceneLogIndexResp) ProtoMessage()
func (*SceneLogIndexResp) ProtoReflect ¶
func (x *SceneLogIndexResp) ProtoReflect() protoreflect.Message
func (*SceneLogIndexResp) Reset ¶
func (x *SceneLogIndexResp) Reset()
func (*SceneLogIndexResp) String ¶
func (x *SceneLogIndexResp) String() string
type SceneLogTrigger ¶
type SceneLogTrigger struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` //触发类型 Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` //触发时间 Device *SceneLogTriggerDevice `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"` //设备触发类型:触发设备 // contains filtered or unexported fields }
func (*SceneLogTrigger) Descriptor
deprecated
func (*SceneLogTrigger) Descriptor() ([]byte, []int)
Deprecated: Use SceneLogTrigger.ProtoReflect.Descriptor instead.
func (*SceneLogTrigger) GetDevice ¶
func (x *SceneLogTrigger) GetDevice() *SceneLogTriggerDevice
func (*SceneLogTrigger) GetTime ¶
func (x *SceneLogTrigger) GetTime() int64
func (*SceneLogTrigger) GetType ¶
func (x *SceneLogTrigger) GetType() string
func (*SceneLogTrigger) ProtoMessage ¶
func (*SceneLogTrigger) ProtoMessage()
func (*SceneLogTrigger) ProtoReflect ¶
func (x *SceneLogTrigger) ProtoReflect() protoreflect.Message
func (*SceneLogTrigger) Reset ¶
func (x *SceneLogTrigger) Reset()
func (*SceneLogTrigger) String ¶
func (x *SceneLogTrigger) String() string
type SceneLogTriggerDevice ¶
type SceneLogTriggerDevice struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` ////触发类型 connected:上线 disConnected:下线 reportProperty:属性上报 reportEvent: 事件上报 ProductID string `protobuf:"bytes,2,opt,name=productID,proto3" json:"productID,omitempty"` //设备触发 DeviceName string `protobuf:"bytes,3,opt,name=deviceName,proto3" json:"deviceName,omitempty"` //设备触发 DeviceAlias string `protobuf:"bytes,7,opt,name=deviceAlias,proto3" json:"deviceAlias,omitempty"` //设备昵称 DataID string `protobuf:"bytes,4,opt,name=dataID,proto3" json:"dataID,omitempty"` //触发的id DataName string `protobuf:"bytes,5,opt,name=dataName,proto3" json:"dataName,omitempty"` //触发id的名字 Value string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` //触发的值 // contains filtered or unexported fields }
func (*SceneLogTriggerDevice) Descriptor
deprecated
func (*SceneLogTriggerDevice) Descriptor() ([]byte, []int)
Deprecated: Use SceneLogTriggerDevice.ProtoReflect.Descriptor instead.
func (*SceneLogTriggerDevice) GetDataID ¶
func (x *SceneLogTriggerDevice) GetDataID() string
func (*SceneLogTriggerDevice) GetDataName ¶
func (x *SceneLogTriggerDevice) GetDataName() string
func (*SceneLogTriggerDevice) GetDeviceAlias ¶
func (x *SceneLogTriggerDevice) GetDeviceAlias() string
func (*SceneLogTriggerDevice) GetDeviceName ¶
func (x *SceneLogTriggerDevice) GetDeviceName() string
func (*SceneLogTriggerDevice) GetProductID ¶
func (x *SceneLogTriggerDevice) GetProductID() string
func (*SceneLogTriggerDevice) GetType ¶
func (x *SceneLogTriggerDevice) GetType() string
func (*SceneLogTriggerDevice) GetValue ¶
func (x *SceneLogTriggerDevice) GetValue() string
func (*SceneLogTriggerDevice) ProtoMessage ¶
func (*SceneLogTriggerDevice) ProtoMessage()
func (*SceneLogTriggerDevice) ProtoReflect ¶
func (x *SceneLogTriggerDevice) ProtoReflect() protoreflect.Message
func (*SceneLogTriggerDevice) Reset ¶
func (x *SceneLogTriggerDevice) Reset()
func (*SceneLogTriggerDevice) String ¶
func (x *SceneLogTriggerDevice) String() string
type TimeRange ¶
type TimeRange struct { Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*TimeRange) Descriptor
deprecated
func (*TimeRange) ProtoMessage ¶
func (*TimeRange) ProtoMessage()
func (*TimeRange) ProtoReflect ¶
func (x *TimeRange) ProtoReflect() protoreflect.Message
type UnimplementedRuleServer ¶
type UnimplementedRuleServer struct { }
UnimplementedRuleServer must be embedded to have forward compatible implementations.
func (UnimplementedRuleServer) AlarmInfoCreate ¶
func (UnimplementedRuleServer) AlarmInfoDelete ¶
func (UnimplementedRuleServer) AlarmInfoIndex ¶
func (UnimplementedRuleServer) AlarmInfoIndex(context.Context, *AlarmInfoIndexReq) (*AlarmInfoIndexResp, error)
func (UnimplementedRuleServer) AlarmInfoRead ¶
func (UnimplementedRuleServer) AlarmInfoUpdate ¶
func (UnimplementedRuleServer) AlarmRecordCreate ¶
func (UnimplementedRuleServer) AlarmRecordCreate(context.Context, *AlarmRecordCreateReq) (*Empty, error)
func (UnimplementedRuleServer) AlarmRecordDeal ¶
func (UnimplementedRuleServer) AlarmRecordDeal(context.Context, *AlarmRecordDealReq) (*Empty, error)
func (UnimplementedRuleServer) AlarmRecordIndex ¶
func (UnimplementedRuleServer) AlarmRecordIndex(context.Context, *AlarmRecordIndexReq) (*AlarmRecordIndexResp, error)
func (UnimplementedRuleServer) AlarmSceneDelete ¶
func (UnimplementedRuleServer) AlarmSceneDelete(context.Context, *AlarmSceneDeleteReq) (*Empty, error)
func (UnimplementedRuleServer) AlarmSceneIndex ¶
func (UnimplementedRuleServer) AlarmSceneIndex(context.Context, *AlarmSceneIndexReq) (*AlarmSceneIndexResp, error)
func (UnimplementedRuleServer) AlarmSceneMultiCreate ¶
func (UnimplementedRuleServer) AlarmSceneMultiCreate(context.Context, *AlarmSceneMultiSaveReq) (*Empty, error)
func (UnimplementedRuleServer) SceneInfoCreate ¶
func (UnimplementedRuleServer) SceneInfoDelete ¶
func (UnimplementedRuleServer) SceneInfoIndex ¶
func (UnimplementedRuleServer) SceneInfoIndex(context.Context, *SceneInfoIndexReq) (*SceneInfoIndexResp, error)
func (UnimplementedRuleServer) SceneInfoRead ¶
func (UnimplementedRuleServer) SceneInfoUpdate ¶
func (UnimplementedRuleServer) SceneLogIndex ¶
func (UnimplementedRuleServer) SceneLogIndex(context.Context, *SceneLogIndexReq) (*SceneLogIndexResp, error)
func (UnimplementedRuleServer) SceneManuallyTrigger ¶
type UnsafeRuleServer ¶
type UnsafeRuleServer interface {
// contains filtered or unexported methods
}
UnsafeRuleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuleServer will result in compilation errors.
type WithID ¶
type WithID struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*WithID) Descriptor
deprecated
func (*WithID) ProtoMessage ¶
func (*WithID) ProtoMessage()
func (*WithID) ProtoReflect ¶
func (x *WithID) ProtoReflect() protoreflect.Message