Documentation ¶
Index ¶
- Variables
- type Action
- type AlarmData
- func (*AlarmData) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmData) GetAlerts() []*Alert
- func (x *AlarmData) GetCommonAnnotations() map[string]string
- func (x *AlarmData) GetCommonLabels() map[string]string
- func (x *AlarmData) GetExternalURL() string
- func (x *AlarmData) GetGroupKey() string
- func (x *AlarmData) GetGroupLabels() map[string]string
- func (x *AlarmData) GetReceiver() string
- func (x *AlarmData) GetStatus() string
- func (x *AlarmData) GetTruncatedAlerts() int32
- func (x *AlarmData) GetVersion() string
- func (*AlarmData) ProtoMessage()
- func (x *AlarmData) ProtoReflect() protoreflect.Message
- func (x *AlarmData) Reset()
- func (x *AlarmData) String() string
- func (m *AlarmData) Validate() error
- func (m *AlarmData) ValidateAll() error
- type AlarmDataMultiError
- type AlarmDataValidationError
- type AlarmHistoryV1
- func (*AlarmHistoryV1) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmHistoryV1) GetAlarmId() uint32
- func (x *AlarmHistoryV1) GetAlarmLevel() *DictSelectV1
- func (x *AlarmHistoryV1) GetAlarmName() string
- func (x *AlarmHistoryV1) GetAlarmStatus() string
- func (x *AlarmHistoryV1) GetAnnotations() map[string]string
- func (x *AlarmHistoryV1) GetDatasource() string
- func (x *AlarmHistoryV1) GetDuration() string
- func (x *AlarmHistoryV1) GetEndAt() int64
- func (x *AlarmHistoryV1) GetExpr() string
- func (x *AlarmHistoryV1) GetId() uint32
- func (x *AlarmHistoryV1) GetLabels() map[string]string
- func (x *AlarmHistoryV1) GetStartAt() int64
- func (*AlarmHistoryV1) ProtoMessage()
- func (x *AlarmHistoryV1) ProtoReflect() protoreflect.Message
- func (x *AlarmHistoryV1) Reset()
- func (x *AlarmHistoryV1) String() string
- func (m *AlarmHistoryV1) Validate() error
- func (m *AlarmHistoryV1) ValidateAll() error
- type AlarmHistoryV1MultiError
- type AlarmHistoryV1ValidationError
- func (e AlarmHistoryV1ValidationError) Cause() error
- func (e AlarmHistoryV1ValidationError) Error() string
- func (e AlarmHistoryV1ValidationError) ErrorName() string
- func (e AlarmHistoryV1ValidationError) Field() string
- func (e AlarmHistoryV1ValidationError) Key() bool
- func (e AlarmHistoryV1ValidationError) Reason() string
- type AlarmStatus
- func (AlarmStatus) Descriptor() protoreflect.EnumDescriptor
- func (x AlarmStatus) Enum() *AlarmStatus
- func (AlarmStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x AlarmStatus) Number() protoreflect.EnumNumber
- func (x AlarmStatus) String() string
- func (AlarmStatus) Type() protoreflect.EnumType
- type AlarmSuppressInfo
- func (*AlarmSuppressInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmSuppressInfo) GetDuration() int64
- func (x *AlarmSuppressInfo) GetId() uint32
- func (x *AlarmSuppressInfo) GetRemark() string
- func (x *AlarmSuppressInfo) GetSuppressedAt() int64
- func (x *AlarmSuppressInfo) GetSuppressedUser() *UserSelectV1
- func (*AlarmSuppressInfo) ProtoMessage()
- func (x *AlarmSuppressInfo) ProtoReflect() protoreflect.Message
- func (x *AlarmSuppressInfo) Reset()
- func (x *AlarmSuppressInfo) String() string
- func (m *AlarmSuppressInfo) Validate() error
- func (m *AlarmSuppressInfo) ValidateAll() error
- type AlarmSuppressInfoMultiError
- type AlarmSuppressInfoValidationError
- func (e AlarmSuppressInfoValidationError) Cause() error
- func (e AlarmSuppressInfoValidationError) Error() string
- func (e AlarmSuppressInfoValidationError) ErrorName() string
- func (e AlarmSuppressInfoValidationError) Field() string
- func (e AlarmSuppressInfoValidationError) Key() bool
- func (e AlarmSuppressInfoValidationError) Reason() string
- type AlarmUpgradeInfo
- func (*AlarmUpgradeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AlarmUpgradeInfo) GetId() uint32
- func (x *AlarmUpgradeInfo) GetRemark() string
- func (x *AlarmUpgradeInfo) GetUpgradedAt() int64
- func (x *AlarmUpgradeInfo) GetUpgradedUser() *UserSelectV1
- func (*AlarmUpgradeInfo) ProtoMessage()
- func (x *AlarmUpgradeInfo) ProtoReflect() protoreflect.Message
- func (x *AlarmUpgradeInfo) Reset()
- func (x *AlarmUpgradeInfo) String() string
- func (m *AlarmUpgradeInfo) Validate() error
- func (m *AlarmUpgradeInfo) ValidateAll() error
- type AlarmUpgradeInfoMultiError
- type AlarmUpgradeInfoValidationError
- func (e AlarmUpgradeInfoValidationError) Cause() error
- func (e AlarmUpgradeInfoValidationError) Error() string
- func (e AlarmUpgradeInfoValidationError) ErrorName() string
- func (e AlarmUpgradeInfoValidationError) Field() string
- func (e AlarmUpgradeInfoValidationError) Key() bool
- func (e AlarmUpgradeInfoValidationError) Reason() string
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)deprecated
- func (x *Alert) GetAnnotations() map[string]string
- func (x *Alert) GetEndsAt() int64
- func (x *Alert) GetFingerprint() string
- func (x *Alert) GetGeneratorURL() string
- func (x *Alert) GetLabels() map[string]string
- func (x *Alert) GetStartsAt() int64
- func (x *Alert) GetStatus() string
- func (*Alert) ProtoMessage()
- func (x *Alert) ProtoReflect() protoreflect.Message
- func (x *Alert) Reset()
- func (x *Alert) String() string
- func (m *Alert) Validate() error
- func (m *Alert) ValidateAll() error
- type AlertMultiError
- type AlertValidationError
- type ApiSelectV1
- func (*ApiSelectV1) Descriptor() ([]byte, []int)deprecated
- func (x *ApiSelectV1) GetDomain() int32
- func (x *ApiSelectV1) GetLabel() string
- func (x *ApiSelectV1) GetModule() int32
- func (x *ApiSelectV1) GetRemark() string
- func (x *ApiSelectV1) GetStatus() int32
- func (x *ApiSelectV1) GetValue() uint32
- func (*ApiSelectV1) ProtoMessage()
- func (x *ApiSelectV1) ProtoReflect() protoreflect.Message
- func (x *ApiSelectV1) Reset()
- func (x *ApiSelectV1) String() string
- func (m *ApiSelectV1) Validate() error
- func (m *ApiSelectV1) ValidateAll() error
- type ApiSelectV1MultiError
- type ApiSelectV1ValidationError
- func (e ApiSelectV1ValidationError) Cause() error
- func (e ApiSelectV1ValidationError) Error() string
- func (e ApiSelectV1ValidationError) ErrorName() string
- func (e ApiSelectV1ValidationError) Field() string
- func (e ApiSelectV1ValidationError) Key() bool
- func (e ApiSelectV1ValidationError) Reason() string
- type ApiTree
- func (*ApiTree) Descriptor() ([]byte, []int)deprecated
- func (x *ApiTree) GetDomain() int32
- func (x *ApiTree) GetDomainName() string
- func (x *ApiTree) GetDomainRemark() string
- func (x *ApiTree) GetModule() []*Module
- func (*ApiTree) ProtoMessage()
- func (x *ApiTree) ProtoReflect() protoreflect.Message
- func (x *ApiTree) Reset()
- func (x *ApiTree) String() string
- func (m *ApiTree) Validate() error
- func (m *ApiTree) ValidateAll() error
- type ApiTreeMultiError
- type ApiTreeValidationError
- type ApiV1
- func (*ApiV1) Descriptor() ([]byte, []int)deprecated
- func (x *ApiV1) GetCreatedAt() int64
- func (x *ApiV1) GetDeletedAt() int64
- func (x *ApiV1) GetDomain() int32
- func (x *ApiV1) GetId() uint32
- func (x *ApiV1) GetMethod() string
- func (x *ApiV1) GetModule() int32
- func (x *ApiV1) GetName() string
- func (x *ApiV1) GetPath() string
- func (x *ApiV1) GetRemark() string
- func (x *ApiV1) GetStatus() int32
- func (x *ApiV1) GetUpdatedAt() int64
- func (*ApiV1) ProtoMessage()
- func (x *ApiV1) ProtoReflect() protoreflect.Message
- func (x *ApiV1) Reset()
- func (x *ApiV1) String() string
- func (m *ApiV1) Validate() error
- func (m *ApiV1) ValidateAll() error
- type ApiV1MultiError
- type ApiV1ValidationError
- type BeNotifyMember
- func (*BeNotifyMember) Descriptor() ([]byte, []int)deprecated
- func (x *BeNotifyMember) GetId() uint32
- func (x *BeNotifyMember) GetMemberId() uint32
- func (x *BeNotifyMember) GetNotifyType() NotifyType
- func (*BeNotifyMember) ProtoMessage()
- func (x *BeNotifyMember) ProtoReflect() protoreflect.Message
- func (x *BeNotifyMember) Reset()
- func (x *BeNotifyMember) String() string
- func (m *BeNotifyMember) Validate() error
- func (m *BeNotifyMember) ValidateAll() error
- type BeNotifyMemberDetail
- func (*BeNotifyMemberDetail) Descriptor() ([]byte, []int)deprecated
- func (x *BeNotifyMemberDetail) GetId() uint32
- func (x *BeNotifyMemberDetail) GetMemberId() uint32
- func (x *BeNotifyMemberDetail) GetNotifyType() int32
- func (x *BeNotifyMemberDetail) GetStatus() int32
- func (x *BeNotifyMemberDetail) GetUser() *UserSelectV1
- func (*BeNotifyMemberDetail) ProtoMessage()
- func (x *BeNotifyMemberDetail) ProtoReflect() protoreflect.Message
- func (x *BeNotifyMemberDetail) Reset()
- func (x *BeNotifyMemberDetail) String() string
- func (m *BeNotifyMemberDetail) Validate() error
- func (m *BeNotifyMemberDetail) ValidateAll() error
- type BeNotifyMemberDetailMultiError
- type BeNotifyMemberDetailValidationError
- func (e BeNotifyMemberDetailValidationError) Cause() error
- func (e BeNotifyMemberDetailValidationError) Error() string
- func (e BeNotifyMemberDetailValidationError) ErrorName() string
- func (e BeNotifyMemberDetailValidationError) Field() string
- func (e BeNotifyMemberDetailValidationError) Key() bool
- func (e BeNotifyMemberDetailValidationError) Reason() string
- type BeNotifyMemberMultiError
- type BeNotifyMemberValidationError
- func (e BeNotifyMemberValidationError) Cause() error
- func (e BeNotifyMemberValidationError) Error() string
- func (e BeNotifyMemberValidationError) ErrorName() string
- func (e BeNotifyMemberValidationError) Field() string
- func (e BeNotifyMemberValidationError) Key() bool
- func (e BeNotifyMemberValidationError) Reason() string
- type CaptchaType
- func (CaptchaType) Descriptor() protoreflect.EnumDescriptor
- func (x CaptchaType) Enum() *CaptchaType
- func (CaptchaType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CaptchaType) Number() protoreflect.EnumNumber
- func (x CaptchaType) String() string
- func (CaptchaType) Type() protoreflect.EnumType
- type Category
- type ChatGroup
- func (*ChatGroup) Descriptor() ([]byte, []int)deprecated
- func (x *ChatGroup) GetApp() int32
- func (x *ChatGroup) GetCreateUser() *UserSelectV1
- func (x *ChatGroup) GetCreatedAt() int64
- func (x *ChatGroup) GetHook() string
- func (x *ChatGroup) GetHookName() string
- func (x *ChatGroup) GetId() uint32
- func (x *ChatGroup) GetName() string
- func (x *ChatGroup) GetRemark() string
- func (x *ChatGroup) GetSecret() string
- func (x *ChatGroup) GetStatus() int32
- func (x *ChatGroup) GetUpdatedAt() int64
- func (*ChatGroup) ProtoMessage()
- func (x *ChatGroup) ProtoReflect() protoreflect.Message
- func (x *ChatGroup) Reset()
- func (x *ChatGroup) String() string
- func (m *ChatGroup) Validate() error
- func (m *ChatGroup) ValidateAll() error
- type ChatGroupMultiError
- type ChatGroupSelectV1
- func (*ChatGroupSelectV1) Descriptor() ([]byte, []int)deprecated
- func (x *ChatGroupSelectV1) GetApp() int32
- func (x *ChatGroupSelectV1) GetLabel() string
- func (x *ChatGroupSelectV1) GetStatus() int32
- func (x *ChatGroupSelectV1) GetValue() uint32
- func (*ChatGroupSelectV1) ProtoMessage()
- func (x *ChatGroupSelectV1) ProtoReflect() protoreflect.Message
- func (x *ChatGroupSelectV1) Reset()
- func (x *ChatGroupSelectV1) String() string
- func (m *ChatGroupSelectV1) Validate() error
- func (m *ChatGroupSelectV1) ValidateAll() error
- type ChatGroupSelectV1MultiError
- type ChatGroupSelectV1ValidationError
- func (e ChatGroupSelectV1ValidationError) Cause() error
- func (e ChatGroupSelectV1ValidationError) Error() string
- func (e ChatGroupSelectV1ValidationError) ErrorName() string
- func (e ChatGroupSelectV1ValidationError) Field() string
- func (e ChatGroupSelectV1ValidationError) Key() bool
- func (e ChatGroupSelectV1ValidationError) Reason() string
- type ChatGroupValidationError
- type DatasourceType
- func (DatasourceType) Descriptor() protoreflect.EnumDescriptor
- func (x DatasourceType) Enum() *DatasourceType
- func (DatasourceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DatasourceType) Number() protoreflect.EnumNumber
- func (x DatasourceType) String() string
- func (DatasourceType) Type() protoreflect.EnumType
- type DictSelectV1
- func (*DictSelectV1) Descriptor() ([]byte, []int)deprecated
- func (x *DictSelectV1) GetCategory() Category
- func (x *DictSelectV1) GetColor() string
- func (x *DictSelectV1) GetIsDeleted() bool
- func (x *DictSelectV1) GetLabel() string
- func (x *DictSelectV1) GetRemark() string
- func (x *DictSelectV1) GetStatus() Status
- func (x *DictSelectV1) GetValue() uint32
- func (*DictSelectV1) ProtoMessage()
- func (x *DictSelectV1) ProtoReflect() protoreflect.Message
- func (x *DictSelectV1) Reset()
- func (x *DictSelectV1) String() string
- func (m *DictSelectV1) Validate() error
- func (m *DictSelectV1) ValidateAll() error
- type DictSelectV1MultiError
- type DictSelectV1ValidationError
- func (e DictSelectV1ValidationError) Cause() error
- func (e DictSelectV1ValidationError) Error() string
- func (e DictSelectV1ValidationError) ErrorName() string
- func (e DictSelectV1ValidationError) Field() string
- func (e DictSelectV1ValidationError) Key() bool
- func (e DictSelectV1ValidationError) Reason() string
- type DictV1
- func (*DictV1) Descriptor() ([]byte, []int)deprecated
- func (x *DictV1) GetCategory() int32
- func (x *DictV1) GetColor() string
- func (x *DictV1) GetCreatedAt() int64
- func (x *DictV1) GetDeletedAt() int64
- func (x *DictV1) GetId() uint32
- func (x *DictV1) GetName() string
- func (x *DictV1) GetRemark() string
- func (x *DictV1) GetStatus() int32
- func (x *DictV1) GetUpdatedAt() int64
- func (*DictV1) ProtoMessage()
- func (x *DictV1) ProtoReflect() protoreflect.Message
- func (x *DictV1) Reset()
- func (x *DictV1) String() string
- func (m *DictV1) Validate() error
- func (m *DictV1) ValidateAll() error
- type DictV1MultiError
- type DictV1ValidationError
- type DomainType
- type Duration
- func (*Duration) Descriptor() ([]byte, []int)deprecated
- func (x *Duration) GetUnit() string
- func (x *Duration) GetValue() int64
- func (*Duration) ProtoMessage()
- func (x *Duration) ProtoReflect() protoreflect.Message
- func (x *Duration) Reset()
- func (x *Duration) String() string
- func (m *Duration) Validate() error
- func (m *Duration) ValidateAll() error
- type DurationMultiError
- type DurationValidationError
- type EvaluateGroup
- func (*EvaluateGroup) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateGroup) GetId() uint32
- func (x *EvaluateGroup) GetName() string
- func (x *EvaluateGroup) GetStrategies() []*EvaluateStrategyItem
- func (*EvaluateGroup) ProtoMessage()
- func (x *EvaluateGroup) ProtoReflect() protoreflect.Message
- func (x *EvaluateGroup) Reset()
- func (x *EvaluateGroup) String() string
- func (m *EvaluateGroup) Validate() error
- func (m *EvaluateGroup) ValidateAll() error
- type EvaluateGroupMultiError
- type EvaluateGroupValidationError
- func (e EvaluateGroupValidationError) Cause() error
- func (e EvaluateGroupValidationError) Error() string
- func (e EvaluateGroupValidationError) ErrorName() string
- func (e EvaluateGroupValidationError) Field() string
- func (e EvaluateGroupValidationError) Key() bool
- func (e EvaluateGroupValidationError) Reason() string
- type EvaluateStrategyItem
- func (*EvaluateStrategyItem) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateStrategyItem) GetAlert() string
- func (x *EvaluateStrategyItem) GetAnnotations() map[string]string
- func (x *EvaluateStrategyItem) GetDatasource() *StrategyDatasource
- func (x *EvaluateStrategyItem) GetDuration() *Duration
- func (x *EvaluateStrategyItem) GetExpr() string
- func (x *EvaluateStrategyItem) GetId() uint32
- func (x *EvaluateStrategyItem) GetLabels() map[string]string
- func (*EvaluateStrategyItem) ProtoMessage()
- func (x *EvaluateStrategyItem) ProtoReflect() protoreflect.Message
- func (x *EvaluateStrategyItem) Reset()
- func (x *EvaluateStrategyItem) String() string
- func (m *EvaluateStrategyItem) Validate() error
- func (m *EvaluateStrategyItem) ValidateAll() error
- type EvaluateStrategyItemMultiError
- type EvaluateStrategyItemValidationError
- func (e EvaluateStrategyItemValidationError) Cause() error
- func (e EvaluateStrategyItemValidationError) Error() string
- func (e EvaluateStrategyItemValidationError) ErrorName() string
- func (e EvaluateStrategyItemValidationError) Field() string
- func (e EvaluateStrategyItemValidationError) Key() bool
- func (e EvaluateStrategyItemValidationError) Reason() string
- type ExternalCustomer
- func (*ExternalCustomer) Descriptor() ([]byte, []int)deprecated
- func (x *ExternalCustomer) GetAddr() string
- func (x *ExternalCustomer) GetContact() string
- func (x *ExternalCustomer) GetCreatedAt() int64
- func (x *ExternalCustomer) GetDeletedAt() int64
- func (x *ExternalCustomer) GetEmail() string
- func (x *ExternalCustomer) GetExternalCustomerHookList() []*ExternalCustomerHook
- func (x *ExternalCustomer) GetId() uint32
- func (x *ExternalCustomer) GetName() string
- func (x *ExternalCustomer) GetPhone() string
- func (x *ExternalCustomer) GetRemark() string
- func (x *ExternalCustomer) GetStatus() int32
- func (x *ExternalCustomer) GetUpdatedAt() int64
- func (*ExternalCustomer) ProtoMessage()
- func (x *ExternalCustomer) ProtoReflect() protoreflect.Message
- func (x *ExternalCustomer) Reset()
- func (x *ExternalCustomer) String() string
- func (m *ExternalCustomer) Validate() error
- func (m *ExternalCustomer) ValidateAll() error
- type ExternalCustomerHook
- func (*ExternalCustomerHook) Descriptor() ([]byte, []int)deprecated
- func (x *ExternalCustomerHook) GetCreatedAt() int64
- func (x *ExternalCustomerHook) GetCustomerId() uint32
- func (x *ExternalCustomerHook) GetDeletedAt() int64
- func (x *ExternalCustomerHook) GetHook() string
- func (x *ExternalCustomerHook) GetHookName() string
- func (x *ExternalCustomerHook) GetId() uint32
- func (x *ExternalCustomerHook) GetNotifyApp() int32
- func (x *ExternalCustomerHook) GetRemark() string
- func (x *ExternalCustomerHook) GetStatus() int32
- func (x *ExternalCustomerHook) GetUpdatedAt() int64
- func (*ExternalCustomerHook) ProtoMessage()
- func (x *ExternalCustomerHook) ProtoReflect() protoreflect.Message
- func (x *ExternalCustomerHook) Reset()
- func (x *ExternalCustomerHook) String() string
- func (m *ExternalCustomerHook) Validate() error
- func (m *ExternalCustomerHook) ValidateAll() error
- type ExternalCustomerHookMultiError
- type ExternalCustomerHookValidationError
- func (e ExternalCustomerHookValidationError) Cause() error
- func (e ExternalCustomerHookValidationError) Error() string
- func (e ExternalCustomerHookValidationError) ErrorName() string
- func (e ExternalCustomerHookValidationError) Field() string
- func (e ExternalCustomerHookValidationError) Key() bool
- func (e ExternalCustomerHookValidationError) Reason() string
- type ExternalCustomerMultiError
- type ExternalCustomerValidationError
- func (e ExternalCustomerValidationError) Cause() error
- func (e ExternalCustomerValidationError) Error() string
- func (e ExternalCustomerValidationError) ErrorName() string
- func (e ExternalCustomerValidationError) Field() string
- func (e ExternalCustomerValidationError) Key() bool
- func (e ExternalCustomerValidationError) Reason() string
- type ExternalNotifyObj
- func (*ExternalNotifyObj) Descriptor() ([]byte, []int)deprecated
- func (x *ExternalNotifyObj) GetCreatedAt() int64
- func (x *ExternalNotifyObj) GetDeletedAt() int64
- func (x *ExternalNotifyObj) GetExternalCustomerHookList() []*ExternalCustomerHook
- func (x *ExternalNotifyObj) GetExternalCustomerList() []*ExternalCustomer
- func (x *ExternalNotifyObj) GetId() uint32
- func (x *ExternalNotifyObj) GetName() string
- func (x *ExternalNotifyObj) GetRemark() string
- func (x *ExternalNotifyObj) GetStatus() int32
- func (x *ExternalNotifyObj) GetUpdatedAt() int64
- func (*ExternalNotifyObj) ProtoMessage()
- func (x *ExternalNotifyObj) ProtoReflect() protoreflect.Message
- func (x *ExternalNotifyObj) Reset()
- func (x *ExternalNotifyObj) String() string
- func (m *ExternalNotifyObj) Validate() error
- func (m *ExternalNotifyObj) ValidateAll() error
- type ExternalNotifyObjMultiError
- type ExternalNotifyObjValidationError
- func (e ExternalNotifyObjValidationError) Cause() error
- func (e ExternalNotifyObjValidationError) Error() string
- func (e ExternalNotifyObjValidationError) ErrorName() string
- func (e ExternalNotifyObjValidationError) Field() string
- func (e ExternalNotifyObjValidationError) Key() bool
- func (e ExternalNotifyObjValidationError) Reason() string
- type Gender
- type GroupSimple
- func (*GroupSimple) Descriptor() ([]byte, []int)deprecated
- func (x *GroupSimple) GetId() uint32
- func (x *GroupSimple) GetName() string
- func (x *GroupSimple) GetStrategies() []*StrategySimple
- func (*GroupSimple) ProtoMessage()
- func (x *GroupSimple) ProtoReflect() protoreflect.Message
- func (x *GroupSimple) Reset()
- func (x *GroupSimple) String() string
- func (m *GroupSimple) Validate() error
- func (m *GroupSimple) ValidateAll() error
- type GroupSimpleMultiError
- type GroupSimpleValidationError
- func (e GroupSimpleValidationError) Cause() error
- func (e GroupSimpleValidationError) Error() string
- func (e GroupSimpleValidationError) ErrorName() string
- func (e GroupSimpleValidationError) Field() string
- func (e GroupSimpleValidationError) Key() bool
- func (e GroupSimpleValidationError) Reason() string
- type InterveneInfo
- func (*InterveneInfo) Descriptor() ([]byte, []int)deprecated
- func (x *InterveneInfo) GetId() uint32
- func (x *InterveneInfo) GetIntervenedAt() int64
- func (x *InterveneInfo) GetIntervenedUser() *UserSelectV1
- func (x *InterveneInfo) GetRemark() string
- func (*InterveneInfo) ProtoMessage()
- func (x *InterveneInfo) ProtoReflect() protoreflect.Message
- func (x *InterveneInfo) Reset()
- func (x *InterveneInfo) String() string
- func (m *InterveneInfo) Validate() error
- func (m *InterveneInfo) ValidateAll() error
- type InterveneInfoMultiError
- type InterveneInfoValidationError
- func (e InterveneInfoValidationError) Cause() error
- func (e InterveneInfoValidationError) Error() string
- func (e InterveneInfoValidationError) ErrorName() string
- func (e InterveneInfoValidationError) Field() string
- func (e InterveneInfoValidationError) Key() bool
- func (e InterveneInfoValidationError) Reason() string
- type Module
- func (*Module) Descriptor() ([]byte, []int)deprecated
- func (x *Module) GetApis() []*ApiSelectV1
- func (x *Module) GetModule() int32
- func (x *Module) GetName() string
- func (x *Module) GetRemark() string
- func (*Module) ProtoMessage()
- func (x *Module) ProtoReflect() protoreflect.Message
- func (x *Module) Reset()
- func (x *Module) String() string
- func (m *Module) Validate() error
- func (m *Module) ValidateAll() error
- type ModuleMultiError
- type ModuleType
- type ModuleValidationError
- type MyChart
- func (*MyChart) Descriptor() ([]byte, []int)deprecated
- func (x *MyChart) GetId() uint32
- func (x *MyChart) GetRemark() string
- func (x *MyChart) GetStatus() int32
- func (x *MyChart) GetTitle() string
- func (x *MyChart) GetUrl() string
- func (*MyChart) ProtoMessage()
- func (x *MyChart) ProtoReflect() protoreflect.Message
- func (x *MyChart) Reset()
- func (x *MyChart) String() string
- func (m *MyChart) Validate() error
- func (m *MyChart) ValidateAll() error
- type MyChartMultiError
- type MyChartValidationError
- type MyDashboardConfig
- func (*MyDashboardConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MyDashboardConfig) GetCharts() []*MyChart
- func (x *MyDashboardConfig) GetColor() string
- func (x *MyDashboardConfig) GetCreatedAt() int64
- func (x *MyDashboardConfig) GetDeletedAt() int64
- func (x *MyDashboardConfig) GetId() uint32
- func (x *MyDashboardConfig) GetRemark() string
- func (x *MyDashboardConfig) GetStatus() int32
- func (x *MyDashboardConfig) GetTitle() string
- func (x *MyDashboardConfig) GetUpdatedAt() int64
- func (*MyDashboardConfig) ProtoMessage()
- func (x *MyDashboardConfig) ProtoReflect() protoreflect.Message
- func (x *MyDashboardConfig) Reset()
- func (x *MyDashboardConfig) String() string
- func (m *MyDashboardConfig) Validate() error
- func (m *MyDashboardConfig) ValidateAll() error
- type MyDashboardConfigMultiError
- type MyDashboardConfigOption
- func (*MyDashboardConfigOption) Descriptor() ([]byte, []int)deprecated
- func (x *MyDashboardConfigOption) GetColor() string
- func (x *MyDashboardConfigOption) GetLabel() string
- func (x *MyDashboardConfigOption) GetValue() uint32
- func (*MyDashboardConfigOption) ProtoMessage()
- func (x *MyDashboardConfigOption) ProtoReflect() protoreflect.Message
- func (x *MyDashboardConfigOption) Reset()
- func (x *MyDashboardConfigOption) String() string
- func (m *MyDashboardConfigOption) Validate() error
- func (m *MyDashboardConfigOption) ValidateAll() error
- type MyDashboardConfigOptionMultiError
- type MyDashboardConfigOptionValidationError
- func (e MyDashboardConfigOptionValidationError) Cause() error
- func (e MyDashboardConfigOptionValidationError) Error() string
- func (e MyDashboardConfigOptionValidationError) ErrorName() string
- func (e MyDashboardConfigOptionValidationError) Field() string
- func (e MyDashboardConfigOptionValidationError) Key() bool
- func (e MyDashboardConfigOptionValidationError) Reason() string
- type MyDashboardConfigValidationError
- func (e MyDashboardConfigValidationError) Cause() error
- func (e MyDashboardConfigValidationError) Error() string
- func (e MyDashboardConfigValidationError) ErrorName() string
- func (e MyDashboardConfigValidationError) Field() string
- func (e MyDashboardConfigValidationError) Key() bool
- func (e MyDashboardConfigValidationError) Reason() string
- type NotifyApp
- type NotifySelectV1
- func (*NotifySelectV1) Descriptor() ([]byte, []int)deprecated
- func (x *NotifySelectV1) GetLabel() string
- func (x *NotifySelectV1) GetRemark() string
- func (x *NotifySelectV1) GetStatus() int32
- func (x *NotifySelectV1) GetValue() uint32
- func (*NotifySelectV1) ProtoMessage()
- func (x *NotifySelectV1) ProtoReflect() protoreflect.Message
- func (x *NotifySelectV1) Reset()
- func (x *NotifySelectV1) String() string
- func (m *NotifySelectV1) Validate() error
- func (m *NotifySelectV1) ValidateAll() error
- type NotifySelectV1MultiError
- type NotifySelectV1ValidationError
- func (e NotifySelectV1ValidationError) Cause() error
- func (e NotifySelectV1ValidationError) Error() string
- func (e NotifySelectV1ValidationError) ErrorName() string
- func (e NotifySelectV1ValidationError) Field() string
- func (e NotifySelectV1ValidationError) Key() bool
- func (e NotifySelectV1ValidationError) Reason() string
- type NotifyTemplateItem
- func (*NotifyTemplateItem) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyTemplateItem) GetContent() string
- func (x *NotifyTemplateItem) GetId() uint32
- func (x *NotifyTemplateItem) GetNotifyType() int32
- func (x *NotifyTemplateItem) GetStrategyId() uint32
- func (*NotifyTemplateItem) ProtoMessage()
- func (x *NotifyTemplateItem) ProtoReflect() protoreflect.Message
- func (x *NotifyTemplateItem) Reset()
- func (x *NotifyTemplateItem) String() string
- func (m *NotifyTemplateItem) Validate() error
- func (m *NotifyTemplateItem) ValidateAll() error
- type NotifyTemplateItemMultiError
- type NotifyTemplateItemValidationError
- func (e NotifyTemplateItemValidationError) Cause() error
- func (e NotifyTemplateItemValidationError) Error() string
- func (e NotifyTemplateItemValidationError) ErrorName() string
- func (e NotifyTemplateItemValidationError) Field() string
- func (e NotifyTemplateItemValidationError) Key() bool
- func (e NotifyTemplateItemValidationError) Reason() string
- type NotifyTemplateType
- func (NotifyTemplateType) Descriptor() protoreflect.EnumDescriptor
- func (x NotifyTemplateType) Enum() *NotifyTemplateType
- func (NotifyTemplateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x NotifyTemplateType) Number() protoreflect.EnumNumber
- func (x NotifyTemplateType) String() string
- func (NotifyTemplateType) Type() protoreflect.EnumType
- type NotifyType
- type NotifyV1
- func (*NotifyV1) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyV1) GetChatGroups() []*ChatGroupSelectV1
- func (x *NotifyV1) GetCreatedAt() int64
- func (x *NotifyV1) GetDeletedAt() int64
- func (x *NotifyV1) GetExternalNotifyObjs() []*ExternalNotifyObj
- func (x *NotifyV1) GetId() uint32
- func (x *NotifyV1) GetMembers() []*BeNotifyMemberDetail
- func (x *NotifyV1) GetName() string
- func (x *NotifyV1) GetRemark() string
- func (x *NotifyV1) GetStatus() int32
- func (x *NotifyV1) GetUpdatedAt() int64
- func (*NotifyV1) ProtoMessage()
- func (x *NotifyV1) ProtoReflect() protoreflect.Message
- func (x *NotifyV1) Reset()
- func (x *NotifyV1) String() string
- func (m *NotifyV1) Validate() error
- func (m *NotifyV1) ValidateAll() error
- type NotifyV1MultiError
- type NotifyV1ValidationError
- type PageReply
- func (*PageReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageReply) GetCurr() int32
- func (x *PageReply) GetSize() int32
- func (x *PageReply) GetTotal() int64
- func (*PageReply) ProtoMessage()
- func (x *PageReply) ProtoReflect() protoreflect.Message
- func (x *PageReply) Reset()
- func (x *PageReply) String() string
- func (m *PageReply) Validate() error
- func (m *PageReply) ValidateAll() error
- type PageReplyMultiError
- type PageReplyValidationError
- type PageRequest
- func (*PageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageRequest) GetCurr() int32
- func (x *PageRequest) GetSize() int32
- func (*PageRequest) ProtoMessage()
- func (x *PageRequest) ProtoReflect() protoreflect.Message
- func (x *PageRequest) Reset()
- func (x *PageRequest) String() string
- func (m *PageRequest) Validate() error
- func (m *PageRequest) ValidateAll() error
- type PageRequestMultiError
- type PageRequestValidationError
- func (e PageRequestValidationError) Cause() error
- func (e PageRequestValidationError) Error() string
- func (e PageRequestValidationError) ErrorName() string
- func (e PageRequestValidationError) Field() string
- func (e PageRequestValidationError) Key() bool
- func (e PageRequestValidationError) Reason() string
- type PromGroup
- func (*PromGroup) Descriptor() ([]byte, []int)deprecated
- func (x *PromGroup) GetCategories() []*DictSelectV1
- func (x *PromGroup) GetCreatedAt() int64
- func (x *PromGroup) GetDeletedAt() int64
- func (x *PromGroup) GetEnableStrategyCount() int64
- func (x *PromGroup) GetId() uint32
- func (x *PromGroup) GetName() string
- func (x *PromGroup) GetRemark() string
- func (x *PromGroup) GetStatus() int32
- func (x *PromGroup) GetStrategies() []*PromStrategyV1
- func (x *PromGroup) GetStrategyCount() int64
- func (x *PromGroup) GetUpdatedAt() int64
- func (*PromGroup) ProtoMessage()
- func (x *PromGroup) ProtoReflect() protoreflect.Message
- func (x *PromGroup) Reset()
- func (x *PromGroup) String() string
- func (m *PromGroup) Validate() error
- func (m *PromGroup) ValidateAll() error
- type PromGroupMultiError
- type PromGroupSelectV1
- func (*PromGroupSelectV1) Descriptor() ([]byte, []int)deprecated
- func (x *PromGroupSelectV1) GetCategory() []*DictSelectV1
- func (x *PromGroupSelectV1) GetLabel() string
- func (x *PromGroupSelectV1) GetRemark() string
- func (x *PromGroupSelectV1) GetStatus() int32
- func (x *PromGroupSelectV1) GetValue() uint32
- func (*PromGroupSelectV1) ProtoMessage()
- func (x *PromGroupSelectV1) ProtoReflect() protoreflect.Message
- func (x *PromGroupSelectV1) Reset()
- func (x *PromGroupSelectV1) String() string
- func (m *PromGroupSelectV1) Validate() error
- func (m *PromGroupSelectV1) ValidateAll() error
- type PromGroupSelectV1MultiError
- type PromGroupSelectV1ValidationError
- func (e PromGroupSelectV1ValidationError) Cause() error
- func (e PromGroupSelectV1ValidationError) Error() string
- func (e PromGroupSelectV1ValidationError) ErrorName() string
- func (e PromGroupSelectV1ValidationError) Field() string
- func (e PromGroupSelectV1ValidationError) Key() bool
- func (e PromGroupSelectV1ValidationError) Reason() string
- type PromGroupValidationError
- type PromRule
- func (*PromRule) Descriptor() ([]byte, []int)deprecated
- func (x *PromRule) GetAlert() string
- func (x *PromRule) GetAnnotations() map[string]string
- func (x *PromRule) GetExpr() string
- func (x *PromRule) GetFor() string
- func (x *PromRule) GetLabels() map[string]string
- func (*PromRule) ProtoMessage()
- func (x *PromRule) ProtoReflect() protoreflect.Message
- func (x *PromRule) Reset()
- func (x *PromRule) String() string
- func (m *PromRule) Validate() error
- func (m *PromRule) ValidateAll() error
- type PromRuleGroup
- func (*PromRuleGroup) Descriptor() ([]byte, []int)deprecated
- func (x *PromRuleGroup) GetName() string
- func (x *PromRuleGroup) GetRules() []*PromRule
- func (*PromRuleGroup) ProtoMessage()
- func (x *PromRuleGroup) ProtoReflect() protoreflect.Message
- func (x *PromRuleGroup) Reset()
- func (x *PromRuleGroup) String() string
- func (m *PromRuleGroup) Validate() error
- func (m *PromRuleGroup) ValidateAll() error
- type PromRuleGroupMultiError
- type PromRuleGroupValidationError
- func (e PromRuleGroupValidationError) Cause() error
- func (e PromRuleGroupValidationError) Error() string
- func (e PromRuleGroupValidationError) ErrorName() string
- func (e PromRuleGroupValidationError) Field() string
- func (e PromRuleGroupValidationError) Key() bool
- func (e PromRuleGroupValidationError) Reason() string
- type PromRuleMultiError
- type PromRuleValidationError
- type PromStrategySelectV1
- func (*PromStrategySelectV1) Descriptor() ([]byte, []int)deprecated
- func (x *PromStrategySelectV1) GetCategory() []*DictSelectV1
- func (x *PromStrategySelectV1) GetLabel() string
- func (x *PromStrategySelectV1) GetStatus() int32
- func (x *PromStrategySelectV1) GetValue() uint32
- func (*PromStrategySelectV1) ProtoMessage()
- func (x *PromStrategySelectV1) ProtoReflect() protoreflect.Message
- func (x *PromStrategySelectV1) Reset()
- func (x *PromStrategySelectV1) String() string
- func (m *PromStrategySelectV1) Validate() error
- func (m *PromStrategySelectV1) ValidateAll() error
- type PromStrategySelectV1MultiError
- type PromStrategySelectV1ValidationError
- func (e PromStrategySelectV1ValidationError) Cause() error
- func (e PromStrategySelectV1ValidationError) Error() string
- func (e PromStrategySelectV1ValidationError) ErrorName() string
- func (e PromStrategySelectV1ValidationError) Field() string
- func (e PromStrategySelectV1ValidationError) Key() bool
- func (e PromStrategySelectV1ValidationError) Reason() string
- type PromStrategyV1
- func (*PromStrategyV1) Descriptor() ([]byte, []int)deprecated
- func (x *PromStrategyV1) GetAlarmLevelId() uint32
- func (x *PromStrategyV1) GetAlarmLevelInfo() *DictSelectV1
- func (x *PromStrategyV1) GetAlarmPageIds() []uint32
- func (x *PromStrategyV1) GetAlarmPageInfo() []*DictSelectV1
- func (x *PromStrategyV1) GetAlert() string
- func (x *PromStrategyV1) GetAnnotations() map[string]string
- func (x *PromStrategyV1) GetCategoryIds() []uint32
- func (x *PromStrategyV1) GetCategoryInfo() []*DictSelectV1
- func (x *PromStrategyV1) GetCreatedAt() int64
- func (x *PromStrategyV1) GetDataSource() *PrometheusServerSelectItem
- func (x *PromStrategyV1) GetDataSourceId() uint32
- func (x *PromStrategyV1) GetDeletedAt() int64
- func (x *PromStrategyV1) GetDuration() *Duration
- func (x *PromStrategyV1) GetExpr() string
- func (x *PromStrategyV1) GetGroupId() uint32
- func (x *PromStrategyV1) GetGroupInfo() *PromGroupSelectV1
- func (x *PromStrategyV1) GetId() uint32
- func (x *PromStrategyV1) GetLabels() map[string]string
- func (x *PromStrategyV1) GetMaxSuppress() *Duration
- func (x *PromStrategyV1) GetRemark() string
- func (x *PromStrategyV1) GetSendInterval() *Duration
- func (x *PromStrategyV1) GetSendRecover() bool
- func (x *PromStrategyV1) GetStatus() int32
- func (x *PromStrategyV1) GetUpdatedAt() int64
- func (*PromStrategyV1) ProtoMessage()
- func (x *PromStrategyV1) ProtoReflect() protoreflect.Message
- func (x *PromStrategyV1) Reset()
- func (x *PromStrategyV1) String() string
- func (m *PromStrategyV1) Validate() error
- func (m *PromStrategyV1) ValidateAll() error
- type PromStrategyV1MultiError
- type PromStrategyV1ValidationError
- func (e PromStrategyV1ValidationError) Cause() error
- func (e PromStrategyV1ValidationError) Error() string
- func (e PromStrategyV1ValidationError) ErrorName() string
- func (e PromStrategyV1ValidationError) Field() string
- func (e PromStrategyV1ValidationError) Key() bool
- func (e PromStrategyV1ValidationError) Reason() string
- type PrometheusServerItem
- func (*PrometheusServerItem) Descriptor() ([]byte, []int)deprecated
- func (x *PrometheusServerItem) GetCreatedAt() int64
- func (x *PrometheusServerItem) GetDatasourceType() int32
- func (x *PrometheusServerItem) GetEndpoint() string
- func (x *PrometheusServerItem) GetId() uint32
- func (x *PrometheusServerItem) GetName() string
- func (x *PrometheusServerItem) GetRemark() string
- func (x *PrometheusServerItem) GetStatus() int32
- func (x *PrometheusServerItem) GetUpdatedAt() int64
- func (*PrometheusServerItem) ProtoMessage()
- func (x *PrometheusServerItem) ProtoReflect() protoreflect.Message
- func (x *PrometheusServerItem) Reset()
- func (x *PrometheusServerItem) String() string
- func (m *PrometheusServerItem) Validate() error
- func (m *PrometheusServerItem) ValidateAll() error
- type PrometheusServerItemMultiError
- type PrometheusServerItemValidationError
- func (e PrometheusServerItemValidationError) Cause() error
- func (e PrometheusServerItemValidationError) Error() string
- func (e PrometheusServerItemValidationError) ErrorName() string
- func (e PrometheusServerItemValidationError) Field() string
- func (e PrometheusServerItemValidationError) Key() bool
- func (e PrometheusServerItemValidationError) Reason() string
- type PrometheusServerSelectItem
- func (*PrometheusServerSelectItem) Descriptor() ([]byte, []int)deprecated
- func (x *PrometheusServerSelectItem) GetEndpoint() string
- func (x *PrometheusServerSelectItem) GetLabel() string
- func (x *PrometheusServerSelectItem) GetRemark() string
- func (x *PrometheusServerSelectItem) GetStatus() int32
- func (x *PrometheusServerSelectItem) GetValue() uint32
- func (*PrometheusServerSelectItem) ProtoMessage()
- func (x *PrometheusServerSelectItem) ProtoReflect() protoreflect.Message
- func (x *PrometheusServerSelectItem) Reset()
- func (x *PrometheusServerSelectItem) String() string
- func (m *PrometheusServerSelectItem) Validate() error
- func (m *PrometheusServerSelectItem) ValidateAll() error
- type PrometheusServerSelectItemMultiError
- type PrometheusServerSelectItemValidationError
- func (e PrometheusServerSelectItemValidationError) Cause() error
- func (e PrometheusServerSelectItemValidationError) Error() string
- func (e PrometheusServerSelectItemValidationError) ErrorName() string
- func (e PrometheusServerSelectItemValidationError) Field() string
- func (e PrometheusServerSelectItemValidationError) Key() bool
- func (e PrometheusServerSelectItemValidationError) Reason() string
- type RealtimeAlarmData
- func (*RealtimeAlarmData) Descriptor() ([]byte, []int)deprecated
- func (x *RealtimeAlarmData) GetBeenNotifyMembers() []*BeNotifyMemberDetail
- func (x *RealtimeAlarmData) GetCreatedAt() int64
- func (x *RealtimeAlarmData) GetDuration() string
- func (x *RealtimeAlarmData) GetEventAt() int64
- func (x *RealtimeAlarmData) GetHistoryId() uint32
- func (x *RealtimeAlarmData) GetId() uint32
- func (x *RealtimeAlarmData) GetInstance() string
- func (x *RealtimeAlarmData) GetIntervenedUser() []*InterveneInfo
- func (x *RealtimeAlarmData) GetLevel() *DictSelectV1
- func (x *RealtimeAlarmData) GetLevelId() uint32
- func (x *RealtimeAlarmData) GetNote() string
- func (x *RealtimeAlarmData) GetNotifiedAt() int64
- func (x *RealtimeAlarmData) GetNotifiedChatGroups() []*ChatGroupSelectV1
- func (x *RealtimeAlarmData) GetStatus() int32
- func (x *RealtimeAlarmData) GetStrategy() *PromStrategyV1
- func (x *RealtimeAlarmData) GetStrategyId() uint32
- func (x *RealtimeAlarmData) GetSuppressedUser() *AlarmSuppressInfo
- func (x *RealtimeAlarmData) GetUpdatedAt() int64
- func (x *RealtimeAlarmData) GetUpgradedUser() *AlarmUpgradeInfo
- func (*RealtimeAlarmData) ProtoMessage()
- func (x *RealtimeAlarmData) ProtoReflect() protoreflect.Message
- func (x *RealtimeAlarmData) Reset()
- func (x *RealtimeAlarmData) String() string
- func (m *RealtimeAlarmData) Validate() error
- func (m *RealtimeAlarmData) ValidateAll() error
- type RealtimeAlarmDataMultiError
- type RealtimeAlarmDataValidationError
- func (e RealtimeAlarmDataValidationError) Cause() error
- func (e RealtimeAlarmDataValidationError) Error() string
- func (e RealtimeAlarmDataValidationError) ErrorName() string
- func (e RealtimeAlarmDataValidationError) Field() string
- func (e RealtimeAlarmDataValidationError) Key() bool
- func (e RealtimeAlarmDataValidationError) Reason() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCode() int32
- func (x *Response) GetMsg() string
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- func (m *Response) Validate() error
- func (m *Response) ValidateAll() error
- type ResponseMultiError
- type ResponseValidationError
- type RoleSelectV1
- func (*RoleSelectV1) Descriptor() ([]byte, []int)deprecated
- func (x *RoleSelectV1) GetLabel() string
- func (x *RoleSelectV1) GetRemark() string
- func (x *RoleSelectV1) GetStatus() int32
- func (x *RoleSelectV1) GetValue() uint32
- func (*RoleSelectV1) ProtoMessage()
- func (x *RoleSelectV1) ProtoReflect() protoreflect.Message
- func (x *RoleSelectV1) Reset()
- func (x *RoleSelectV1) String() string
- func (m *RoleSelectV1) Validate() error
- func (m *RoleSelectV1) ValidateAll() error
- type RoleSelectV1MultiError
- type RoleSelectV1ValidationError
- func (e RoleSelectV1ValidationError) Cause() error
- func (e RoleSelectV1ValidationError) Error() string
- func (e RoleSelectV1ValidationError) ErrorName() string
- func (e RoleSelectV1ValidationError) Field() string
- func (e RoleSelectV1ValidationError) Key() bool
- func (e RoleSelectV1ValidationError) Reason() string
- type RoleV1
- func (*RoleV1) Descriptor() ([]byte, []int)deprecated
- func (x *RoleV1) GetApis() []*ApiSelectV1
- func (x *RoleV1) GetCreatedAt() int64
- func (x *RoleV1) GetDeletedAt() int64
- func (x *RoleV1) GetId() uint32
- func (x *RoleV1) GetName() string
- func (x *RoleV1) GetRemark() string
- func (x *RoleV1) GetStatus() int32
- func (x *RoleV1) GetUpdatedAt() int64
- func (x *RoleV1) GetUsers() []*UserSelectV1
- func (*RoleV1) ProtoMessage()
- func (x *RoleV1) ProtoReflect() protoreflect.Message
- func (x *RoleV1) Reset()
- func (x *RoleV1) String() string
- func (m *RoleV1) Validate() error
- func (m *RoleV1) ValidateAll() error
- type RoleV1MultiError
- type RoleV1ValidationError
- type Status
- type StrategyDatasource
- func (*StrategyDatasource) Descriptor() ([]byte, []int)deprecated
- func (x *StrategyDatasource) GetBasicAuth() string
- func (x *StrategyDatasource) GetDatasourceType() int32
- func (x *StrategyDatasource) GetEndpoint() string
- func (*StrategyDatasource) ProtoMessage()
- func (x *StrategyDatasource) ProtoReflect() protoreflect.Message
- func (x *StrategyDatasource) Reset()
- func (x *StrategyDatasource) String() string
- func (m *StrategyDatasource) Validate() error
- func (m *StrategyDatasource) ValidateAll() error
- type StrategyDatasourceMultiError
- type StrategyDatasourceValidationError
- func (e StrategyDatasourceValidationError) Cause() error
- func (e StrategyDatasourceValidationError) Error() string
- func (e StrategyDatasourceValidationError) ErrorName() string
- func (e StrategyDatasourceValidationError) Field() string
- func (e StrategyDatasourceValidationError) Key() bool
- func (e StrategyDatasourceValidationError) Reason() string
- type StrategySimple
- func (*StrategySimple) Descriptor() ([]byte, []int)deprecated
- func (x *StrategySimple) GetAlarmLevelId() uint32
- func (x *StrategySimple) GetAlert() string
- func (x *StrategySimple) GetAnnotations() map[string]string
- func (x *StrategySimple) GetBasicAuth() string
- func (x *StrategySimple) GetDuration() *Duration
- func (x *StrategySimple) GetEndpoint() string
- func (x *StrategySimple) GetExpr() string
- func (x *StrategySimple) GetGroupId() uint32
- func (x *StrategySimple) GetId() uint32
- func (x *StrategySimple) GetLabels() map[string]string
- func (*StrategySimple) ProtoMessage()
- func (x *StrategySimple) ProtoReflect() protoreflect.Message
- func (x *StrategySimple) Reset()
- func (x *StrategySimple) String() string
- func (m *StrategySimple) Validate() error
- func (m *StrategySimple) ValidateAll() error
- type StrategySimpleMultiError
- type StrategySimpleValidationError
- func (e StrategySimpleValidationError) Cause() error
- func (e StrategySimpleValidationError) Error() string
- func (e StrategySimpleValidationError) ErrorName() string
- func (e StrategySimpleValidationError) Field() string
- func (e StrategySimpleValidationError) Key() bool
- func (e StrategySimpleValidationError) Reason() string
- type SysLogAction
- func (SysLogAction) Descriptor() protoreflect.EnumDescriptor
- func (x SysLogAction) Enum() *SysLogAction
- func (SysLogAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x SysLogAction) Number() protoreflect.EnumNumber
- func (x SysLogAction) String() string
- func (SysLogAction) Type() protoreflect.EnumType
- type SysLogV1Item
- func (*SysLogV1Item) Descriptor() ([]byte, []int)deprecated
- func (x *SysLogV1Item) GetAction() int32
- func (x *SysLogV1Item) GetContent() string
- func (x *SysLogV1Item) GetCreatedAt() int64
- func (x *SysLogV1Item) GetModuleId() uint32
- func (x *SysLogV1Item) GetModuleName() ModuleType
- func (x *SysLogV1Item) GetTitle() string
- func (x *SysLogV1Item) GetUser() *UserSelectV1
- func (*SysLogV1Item) ProtoMessage()
- func (x *SysLogV1Item) ProtoReflect() protoreflect.Message
- func (x *SysLogV1Item) Reset()
- func (x *SysLogV1Item) String() string
- func (m *SysLogV1Item) Validate() error
- func (m *SysLogV1Item) ValidateAll() error
- type SysLogV1ItemMultiError
- type SysLogV1ItemValidationError
- func (e SysLogV1ItemValidationError) Cause() error
- func (e SysLogV1ItemValidationError) Error() string
- func (e SysLogV1ItemValidationError) ErrorName() string
- func (e SysLogV1ItemValidationError) Field() string
- func (e SysLogV1ItemValidationError) Key() bool
- func (e SysLogV1ItemValidationError) Reason() string
- type UserSelectV1
- func (*UserSelectV1) Descriptor() ([]byte, []int)deprecated
- func (x *UserSelectV1) GetAvatar() string
- func (x *UserSelectV1) GetGender() int32
- func (x *UserSelectV1) GetLabel() string
- func (x *UserSelectV1) GetNickname() string
- func (x *UserSelectV1) GetStatus() int32
- func (x *UserSelectV1) GetValue() uint32
- func (*UserSelectV1) ProtoMessage()
- func (x *UserSelectV1) ProtoReflect() protoreflect.Message
- func (x *UserSelectV1) Reset()
- func (x *UserSelectV1) String() string
- func (m *UserSelectV1) Validate() error
- func (m *UserSelectV1) ValidateAll() error
- type UserSelectV1MultiError
- type UserSelectV1ValidationError
- func (e UserSelectV1ValidationError) Cause() error
- func (e UserSelectV1ValidationError) Error() string
- func (e UserSelectV1ValidationError) ErrorName() string
- func (e UserSelectV1ValidationError) Field() string
- func (e UserSelectV1ValidationError) Key() bool
- func (e UserSelectV1ValidationError) Reason() string
- type UserV1
- func (*UserV1) Descriptor() ([]byte, []int)deprecated
- func (x *UserV1) GetAvatar() string
- func (x *UserV1) GetCreatedAt() int64
- func (x *UserV1) GetDeletedAt() int64
- func (x *UserV1) GetEmail() string
- func (x *UserV1) GetGender() int32
- func (x *UserV1) GetId() uint32
- func (x *UserV1) GetNickname() string
- func (x *UserV1) GetPhone() string
- func (x *UserV1) GetRemark() string
- func (x *UserV1) GetRoles() []*RoleSelectV1
- func (x *UserV1) GetStatus() int32
- func (x *UserV1) GetUpdatedAt() int64
- func (x *UserV1) GetUsername() string
- func (*UserV1) ProtoMessage()
- func (x *UserV1) ProtoReflect() protoreflect.Message
- func (x *UserV1) Reset()
- func (x *UserV1) String() string
- func (m *UserV1) Validate() error
- func (m *UserV1) ValidateAll() error
- type UserV1MultiError
- type UserV1ValidationError
Constants ¶
This section is empty.
Variables ¶
var ( Status_name = map[int32]string{ 0: "STATUS_UNKNOWN", 1: "STATUS_ENABLED", 2: "STATUS_DISABLED", } Status_value = map[string]int32{ "STATUS_UNKNOWN": 0, "STATUS_ENABLED": 1, "STATUS_DISABLED": 2, } )
Enum value maps for Status.
var ( AlarmStatus_name = map[int32]string{ 0: "ALARM_STATUS_UNKNOWN", 1: "ALARM_STATUS_ALARM", 2: "ALARM_STATUS_RESOLVE", } AlarmStatus_value = map[string]int32{ "ALARM_STATUS_UNKNOWN": 0, "ALARM_STATUS_ALARM": 1, "ALARM_STATUS_RESOLVE": 2, } )
Enum value maps for AlarmStatus.
var ( Category_name = map[int32]string{ 0: "CATEGORY_UNKNOWN", 1: "CATEGORY_PROM_LABEL", 2: "CATEGORY_PROM_ANNOTATION", 3: "CATEGORY_PROM_STRATEGY", 4: "CATEGORY_PROM_STRATEGY_GROUP", 5: "CATEGORY_ALARM_LEVEL", 6: "CATEGORY_ALARM_STATUS", 7: "CATEGORY_NOTIFY_TYPE", } Category_value = map[string]int32{ "CATEGORY_UNKNOWN": 0, "CATEGORY_PROM_LABEL": 1, "CATEGORY_PROM_ANNOTATION": 2, "CATEGORY_PROM_STRATEGY": 3, "CATEGORY_PROM_STRATEGY_GROUP": 4, "CATEGORY_ALARM_LEVEL": 5, "CATEGORY_ALARM_STATUS": 6, "CATEGORY_NOTIFY_TYPE": 7, } )
Enum value maps for Category.
var ( NotifyType_name = map[int32]string{ 0: "NOTIFY_TYPE_UNKNOWN", 2: "NOTIFY_TYPE_EMAIL", 4: "NOTIFY_TYPE_SMS", 8: "NOTIFY_TYPE_PHONE", } NotifyType_value = map[string]int32{ "NOTIFY_TYPE_UNKNOWN": 0, "NOTIFY_TYPE_EMAIL": 2, "NOTIFY_TYPE_SMS": 4, "NOTIFY_TYPE_PHONE": 8, } )
Enum value maps for NotifyType.
var ( NotifyApp_name = map[int32]string{ 0: "NOTIFY_APP_UNKNOWN", 1: "NOTIFY_APP_DINGTALK", 2: "NOTIFY_APP_WECHATWORK", 3: "NOTIFY_APP_FEISHU", 4: "NOTIFY_APP_CUSTOM", } NotifyApp_value = map[string]int32{ "NOTIFY_APP_UNKNOWN": 0, "NOTIFY_APP_DINGTALK": 1, "NOTIFY_APP_WECHATWORK": 2, "NOTIFY_APP_FEISHU": 3, "NOTIFY_APP_CUSTOM": 4, } )
Enum value maps for NotifyApp.
var ( Gender_name = map[int32]string{ 0: "Gender_UNKNOWN", 1: "Gender_MALE", 2: "Gender_FEMALE", } Gender_value = map[string]int32{ "Gender_UNKNOWN": 0, "Gender_MALE": 1, "Gender_FEMALE": 2, } )
Enum value maps for Gender.
var ( Action_name = map[int32]string{ 0: "ACTION_UNKNOWN", 1: "ACTION_CREATE", 2: "ACTION_UPDATE", 3: "ACTION_DELETE", 4: "ACTION_GET", 5: "ACTION_ALL", } Action_value = map[string]int32{ "ACTION_UNKNOWN": 0, "ACTION_CREATE": 1, "ACTION_UPDATE": 2, "ACTION_DELETE": 3, "ACTION_GET": 4, "ACTION_ALL": 5, } )
Enum value maps for Action.
var ( DatasourceType_name = map[int32]string{ 0: "DATASOURCE_TYPE_UNKNOWN", 1: "DATASOURCE_TYPE_PROMETHEUS", 2: "DATASOURCE_TYPE_VICTORIAMETRICS", 3: "DATASOURCE_TYPE_ELASTICSEARCH", 4: "DATASOURCE_TYPE_INFLUXDB", 5: "DATASOURCE_TYPE_CLICKHOUSE", 6: "DATASOURCE_TYPE_LOKI", } DatasourceType_value = map[string]int32{ "DATASOURCE_TYPE_UNKNOWN": 0, "DATASOURCE_TYPE_PROMETHEUS": 1, "DATASOURCE_TYPE_VICTORIAMETRICS": 2, "DATASOURCE_TYPE_ELASTICSEARCH": 3, "DATASOURCE_TYPE_INFLUXDB": 4, "DATASOURCE_TYPE_CLICKHOUSE": 5, "DATASOURCE_TYPE_LOKI": 6, } )
Enum value maps for DatasourceType.
var ( NotifyTemplateType_name = map[int32]string{ 0: "NotifyTemplateTypeCustom", 1: "NotifyTemplateTypeEmail", 2: "NotifyTemplateTypeSms", 3: "NotifyTemplateTypeWeChatWork", 4: "NotifyTemplateTypeFeiShu", 5: "NotifyTemplateTypeDingDing", } NotifyTemplateType_value = map[string]int32{ "NotifyTemplateTypeCustom": 0, "NotifyTemplateTypeEmail": 1, "NotifyTemplateTypeSms": 2, "NotifyTemplateTypeWeChatWork": 3, "NotifyTemplateTypeFeiShu": 4, "NotifyTemplateTypeDingDing": 5, } )
Enum value maps for NotifyTemplateType.
var ( CaptchaType_name = map[int32]string{ 0: "CaptchaTypeUnknown", 1: "CaptchaTypeAudio", 2: "CaptchaTypeString", 3: "CaptchaTypeMath", 4: "CaptchaTypeChinese", 5: "CaptchaTypeDigit", } CaptchaType_value = map[string]int32{ "CaptchaTypeUnknown": 0, "CaptchaTypeAudio": 1, "CaptchaTypeString": 2, "CaptchaTypeMath": 3, "CaptchaTypeChinese": 4, "CaptchaTypeDigit": 5, } )
Enum value maps for CaptchaType.
var ( DomainType_name = map[int32]string{ 0: "DomainTypeUnknown", 1: "DomainTypeSystem", 2: "DomainTypeMonitor", 3: "DomainTypeBusiness", 4: "DomainTypeOther", } DomainType_value = map[string]int32{ "DomainTypeUnknown": 0, "DomainTypeSystem": 1, "DomainTypeMonitor": 2, "DomainTypeBusiness": 3, "DomainTypeOther": 4, } )
Enum value maps for DomainType.
var ( ModuleType_name = map[int32]string{ 0: "ModuleTypeUnknown", 1: "ModelTypeApi", 2: "ModelTypeMenu", 3: "ModelTypeRole", 4: "ModelTypeUser", 5: "ModelTypeDict", 6: "ModelTypeConfig", 7: "ModelTypeLog", 8: "ModelTypeJob", 9: "ModelTypeNotify", 10: "ModelTypeSystem", 11: "ModelTypeMonitor", 12: "ModelTypeBusiness", 13: "ModelTypeOther", } ModuleType_value = map[string]int32{ "ModuleTypeUnknown": 0, "ModelTypeApi": 1, "ModelTypeMenu": 2, "ModelTypeRole": 3, "ModelTypeUser": 4, "ModelTypeDict": 5, "ModelTypeConfig": 6, "ModelTypeLog": 7, "ModelTypeJob": 8, "ModelTypeNotify": 9, "ModelTypeSystem": 10, "ModelTypeMonitor": 11, "ModelTypeBusiness": 12, "ModelTypeOther": 13, } )
Enum value maps for ModuleType.
var ( SysLogAction_name = map[int32]string{ 0: "SysLogActionUnknown", 1: "SysLogActionCreate", 2: "SysLogActionUpdate", 3: "SysLogActionDelete", 4: "SysLogActionQuery", 5: "SysLogActionImport", 6: "SysLogActionExport", } SysLogAction_value = map[string]int32{ "SysLogActionUnknown": 0, "SysLogActionCreate": 1, "SysLogActionUpdate": 2, "SysLogActionDelete": 3, "SysLogActionQuery": 4, "SysLogActionImport": 5, "SysLogActionExport": 6, } )
Enum value maps for SysLogAction.
var File_base_proto protoreflect.FileDescriptor
var File_model_proto protoreflect.FileDescriptor
var File_system_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int32
操作动作
func (Action) Descriptor ¶
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
func (Action) Number ¶
func (x Action) Number() protoreflect.EnumNumber
func (Action) Type ¶
func (Action) Type() protoreflect.EnumType
type AlarmData ¶
type AlarmData struct { // 接收者 Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"` // 状态 Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 报警列表 Alerts []*Alert `protobuf:"bytes,3,rep,name=alerts,proto3" json:"alerts,omitempty"` // 组标签 GroupLabels map[string]string `` /* 163-byte string literal not displayed */ // 公共标签 CommonLabels map[string]string `` /* 165-byte string literal not displayed */ // 公共注解 CommonAnnotations map[string]string `` /* 175-byte string literal not displayed */ // 外部链接 ExternalURL string `protobuf:"bytes,7,opt,name=externalURL,proto3" json:"externalURL,omitempty"` // 版本 Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` // 组键 GroupKey string `protobuf:"bytes,9,opt,name=groupKey,proto3" json:"groupKey,omitempty"` // 被截断的告警数量 TruncatedAlerts int32 `protobuf:"varint,10,opt,name=truncatedAlerts,proto3" json:"truncatedAlerts,omitempty"` // contains filtered or unexported fields }
告警数据基础类型
func (*AlarmData) Descriptor
deprecated
func (*AlarmData) GetCommonAnnotations ¶
func (*AlarmData) GetCommonLabels ¶
func (*AlarmData) GetExternalURL ¶
func (*AlarmData) GetGroupKey ¶
func (*AlarmData) GetGroupLabels ¶
func (*AlarmData) GetReceiver ¶
func (*AlarmData) GetTruncatedAlerts ¶
func (*AlarmData) GetVersion ¶
func (*AlarmData) ProtoMessage ¶
func (*AlarmData) ProtoMessage()
func (*AlarmData) ProtoReflect ¶
func (x *AlarmData) ProtoReflect() protoreflect.Message
func (*AlarmData) Validate ¶
Validate checks the field values on AlarmData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AlarmData) ValidateAll ¶
ValidateAll checks the field values on AlarmData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlarmDataMultiError, or nil if none found.
type AlarmDataMultiError ¶
type AlarmDataMultiError []error
AlarmDataMultiError is an error wrapping multiple validation errors returned by AlarmData.ValidateAll() if the designated constraints aren't met.
func (AlarmDataMultiError) AllErrors ¶
func (m AlarmDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AlarmDataMultiError) Error ¶
func (m AlarmDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AlarmDataValidationError ¶
type AlarmDataValidationError struct {
// contains filtered or unexported fields
}
AlarmDataValidationError is the validation error returned by AlarmData.Validate if the designated constraints aren't met.
func (AlarmDataValidationError) Cause ¶
func (e AlarmDataValidationError) Cause() error
Cause function returns cause value.
func (AlarmDataValidationError) Error ¶
func (e AlarmDataValidationError) Error() string
Error satisfies the builtin error interface
func (AlarmDataValidationError) ErrorName ¶
func (e AlarmDataValidationError) ErrorName() string
ErrorName returns error name.
func (AlarmDataValidationError) Field ¶
func (e AlarmDataValidationError) Field() string
Field function returns field value.
func (AlarmDataValidationError) Key ¶
func (e AlarmDataValidationError) Key() bool
Key function returns key value.
func (AlarmDataValidationError) Reason ¶
func (e AlarmDataValidationError) Reason() string
Reason function returns reason value.
type AlarmHistoryV1 ¶
type AlarmHistoryV1 struct { // 报警历史ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 报警ID AlarmId uint32 `protobuf:"varint,2,opt,name=alarmId,proto3" json:"alarmId,omitempty"` // 报警名称 AlarmName string `protobuf:"bytes,3,opt,name=alarmName,proto3" json:"alarmName,omitempty"` // 报警级别 AlarmLevel *DictSelectV1 `protobuf:"bytes,4,opt,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` // 报警状态 AlarmStatus string `protobuf:"bytes,5,opt,name=alarmStatus,proto3" json:"alarmStatus,omitempty"` // 报警标签 Labels map[string]string `` /* 153-byte string literal not displayed */ // 报警注解 Annotations map[string]string `` /* 163-byte string literal not displayed */ // 开始时间, unix时间戳 StartAt int64 `protobuf:"varint,8,opt,name=startAt,proto3" json:"startAt,omitempty"` // 结束时间, unix时间戳 EndAt int64 `protobuf:"varint,9,opt,name=endAt,proto3" json:"endAt,omitempty"` // 持续时间 Duration string `protobuf:"bytes,10,opt,name=duration,proto3" json:"duration,omitempty"` // 告警规则 Expr string `protobuf:"bytes,11,opt,name=expr,proto3" json:"expr,omitempty"` // 数据源 Datasource string `protobuf:"bytes,12,opt,name=datasource,proto3" json:"datasource,omitempty"` // contains filtered or unexported fields }
告警历史基础类型
func (*AlarmHistoryV1) Descriptor
deprecated
func (*AlarmHistoryV1) Descriptor() ([]byte, []int)
Deprecated: Use AlarmHistoryV1.ProtoReflect.Descriptor instead.
func (*AlarmHistoryV1) GetAlarmId ¶
func (x *AlarmHistoryV1) GetAlarmId() uint32
func (*AlarmHistoryV1) GetAlarmLevel ¶
func (x *AlarmHistoryV1) GetAlarmLevel() *DictSelectV1
func (*AlarmHistoryV1) GetAlarmName ¶
func (x *AlarmHistoryV1) GetAlarmName() string
func (*AlarmHistoryV1) GetAlarmStatus ¶
func (x *AlarmHistoryV1) GetAlarmStatus() string
func (*AlarmHistoryV1) GetAnnotations ¶
func (x *AlarmHistoryV1) GetAnnotations() map[string]string
func (*AlarmHistoryV1) GetDatasource ¶
func (x *AlarmHistoryV1) GetDatasource() string
func (*AlarmHistoryV1) GetDuration ¶
func (x *AlarmHistoryV1) GetDuration() string
func (*AlarmHistoryV1) GetEndAt ¶
func (x *AlarmHistoryV1) GetEndAt() int64
func (*AlarmHistoryV1) GetExpr ¶
func (x *AlarmHistoryV1) GetExpr() string
func (*AlarmHistoryV1) GetId ¶
func (x *AlarmHistoryV1) GetId() uint32
func (*AlarmHistoryV1) GetLabels ¶
func (x *AlarmHistoryV1) GetLabels() map[string]string
func (*AlarmHistoryV1) GetStartAt ¶
func (x *AlarmHistoryV1) GetStartAt() int64
func (*AlarmHistoryV1) ProtoMessage ¶
func (*AlarmHistoryV1) ProtoMessage()
func (*AlarmHistoryV1) ProtoReflect ¶
func (x *AlarmHistoryV1) ProtoReflect() protoreflect.Message
func (*AlarmHistoryV1) Reset ¶
func (x *AlarmHistoryV1) Reset()
func (*AlarmHistoryV1) String ¶
func (x *AlarmHistoryV1) String() string
func (*AlarmHistoryV1) Validate ¶
func (m *AlarmHistoryV1) Validate() error
Validate checks the field values on AlarmHistoryV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AlarmHistoryV1) ValidateAll ¶
func (m *AlarmHistoryV1) ValidateAll() error
ValidateAll checks the field values on AlarmHistoryV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlarmHistoryV1MultiError, or nil if none found.
type AlarmHistoryV1MultiError ¶
type AlarmHistoryV1MultiError []error
AlarmHistoryV1MultiError is an error wrapping multiple validation errors returned by AlarmHistoryV1.ValidateAll() if the designated constraints aren't met.
func (AlarmHistoryV1MultiError) AllErrors ¶
func (m AlarmHistoryV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AlarmHistoryV1MultiError) Error ¶
func (m AlarmHistoryV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AlarmHistoryV1ValidationError ¶
type AlarmHistoryV1ValidationError struct {
// contains filtered or unexported fields
}
AlarmHistoryV1ValidationError is the validation error returned by AlarmHistoryV1.Validate if the designated constraints aren't met.
func (AlarmHistoryV1ValidationError) Cause ¶
func (e AlarmHistoryV1ValidationError) Cause() error
Cause function returns cause value.
func (AlarmHistoryV1ValidationError) Error ¶
func (e AlarmHistoryV1ValidationError) Error() string
Error satisfies the builtin error interface
func (AlarmHistoryV1ValidationError) ErrorName ¶
func (e AlarmHistoryV1ValidationError) ErrorName() string
ErrorName returns error name.
func (AlarmHistoryV1ValidationError) Field ¶
func (e AlarmHistoryV1ValidationError) Field() string
Field function returns field value.
func (AlarmHistoryV1ValidationError) Key ¶
func (e AlarmHistoryV1ValidationError) Key() bool
Key function returns key value.
func (AlarmHistoryV1ValidationError) Reason ¶
func (e AlarmHistoryV1ValidationError) Reason() string
Reason function returns reason value.
type AlarmStatus ¶
type AlarmStatus int32
告警状态
const ( // UNKNOWN 未知, 用于默认值 AlarmStatus_ALARM_STATUS_UNKNOWN AlarmStatus = 0 // ALARM 告警 AlarmStatus_ALARM_STATUS_ALARM AlarmStatus = 1 // RESOLVE 已解决 AlarmStatus_ALARM_STATUS_RESOLVE AlarmStatus = 2 )
func (AlarmStatus) Descriptor ¶
func (AlarmStatus) Descriptor() protoreflect.EnumDescriptor
func (AlarmStatus) Enum ¶
func (x AlarmStatus) Enum() *AlarmStatus
func (AlarmStatus) EnumDescriptor
deprecated
func (AlarmStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use AlarmStatus.Descriptor instead.
func (AlarmStatus) Number ¶
func (x AlarmStatus) Number() protoreflect.EnumNumber
func (AlarmStatus) String ¶
func (x AlarmStatus) String() string
func (AlarmStatus) Type ¶
func (AlarmStatus) Type() protoreflect.EnumType
type AlarmSuppressInfo ¶
type AlarmSuppressInfo struct { // 抑制人 SuppressedUser *UserSelectV1 `protobuf:"bytes,1,opt,name=suppressedUser,proto3" json:"suppressedUser,omitempty"` // 抑制时间, unix时间戳 SuppressedAt int64 `protobuf:"varint,2,opt,name=suppressedAt,proto3" json:"suppressedAt,omitempty"` // 抑制备注 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 抑制时长, 单位: 秒 Duration int64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` // 主键 Id uint32 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
告警抑制信息
func (*AlarmSuppressInfo) Descriptor
deprecated
func (*AlarmSuppressInfo) Descriptor() ([]byte, []int)
Deprecated: Use AlarmSuppressInfo.ProtoReflect.Descriptor instead.
func (*AlarmSuppressInfo) GetDuration ¶
func (x *AlarmSuppressInfo) GetDuration() int64
func (*AlarmSuppressInfo) GetId ¶
func (x *AlarmSuppressInfo) GetId() uint32
func (*AlarmSuppressInfo) GetRemark ¶
func (x *AlarmSuppressInfo) GetRemark() string
func (*AlarmSuppressInfo) GetSuppressedAt ¶
func (x *AlarmSuppressInfo) GetSuppressedAt() int64
func (*AlarmSuppressInfo) GetSuppressedUser ¶
func (x *AlarmSuppressInfo) GetSuppressedUser() *UserSelectV1
func (*AlarmSuppressInfo) ProtoMessage ¶
func (*AlarmSuppressInfo) ProtoMessage()
func (*AlarmSuppressInfo) ProtoReflect ¶
func (x *AlarmSuppressInfo) ProtoReflect() protoreflect.Message
func (*AlarmSuppressInfo) Reset ¶
func (x *AlarmSuppressInfo) Reset()
func (*AlarmSuppressInfo) String ¶
func (x *AlarmSuppressInfo) String() string
func (*AlarmSuppressInfo) Validate ¶
func (m *AlarmSuppressInfo) Validate() error
Validate checks the field values on AlarmSuppressInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AlarmSuppressInfo) ValidateAll ¶
func (m *AlarmSuppressInfo) ValidateAll() error
ValidateAll checks the field values on AlarmSuppressInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlarmSuppressInfoMultiError, or nil if none found.
type AlarmSuppressInfoMultiError ¶
type AlarmSuppressInfoMultiError []error
AlarmSuppressInfoMultiError is an error wrapping multiple validation errors returned by AlarmSuppressInfo.ValidateAll() if the designated constraints aren't met.
func (AlarmSuppressInfoMultiError) AllErrors ¶
func (m AlarmSuppressInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AlarmSuppressInfoMultiError) Error ¶
func (m AlarmSuppressInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AlarmSuppressInfoValidationError ¶
type AlarmSuppressInfoValidationError struct {
// contains filtered or unexported fields
}
AlarmSuppressInfoValidationError is the validation error returned by AlarmSuppressInfo.Validate if the designated constraints aren't met.
func (AlarmSuppressInfoValidationError) Cause ¶
func (e AlarmSuppressInfoValidationError) Cause() error
Cause function returns cause value.
func (AlarmSuppressInfoValidationError) Error ¶
func (e AlarmSuppressInfoValidationError) Error() string
Error satisfies the builtin error interface
func (AlarmSuppressInfoValidationError) ErrorName ¶
func (e AlarmSuppressInfoValidationError) ErrorName() string
ErrorName returns error name.
func (AlarmSuppressInfoValidationError) Field ¶
func (e AlarmSuppressInfoValidationError) Field() string
Field function returns field value.
func (AlarmSuppressInfoValidationError) Key ¶
func (e AlarmSuppressInfoValidationError) Key() bool
Key function returns key value.
func (AlarmSuppressInfoValidationError) Reason ¶
func (e AlarmSuppressInfoValidationError) Reason() string
Reason function returns reason value.
type AlarmUpgradeInfo ¶
type AlarmUpgradeInfo struct { // 升级人 UpgradedUser *UserSelectV1 `protobuf:"bytes,1,opt,name=upgradedUser,proto3" json:"upgradedUser,omitempty"` // 升级时间, unix时间戳 UpgradedAt int64 `protobuf:"varint,2,opt,name=upgradedAt,proto3" json:"upgradedAt,omitempty"` // 升级备注 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 主键 Id uint32 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
告警升级信息
func (*AlarmUpgradeInfo) Descriptor
deprecated
func (*AlarmUpgradeInfo) Descriptor() ([]byte, []int)
Deprecated: Use AlarmUpgradeInfo.ProtoReflect.Descriptor instead.
func (*AlarmUpgradeInfo) GetId ¶
func (x *AlarmUpgradeInfo) GetId() uint32
func (*AlarmUpgradeInfo) GetRemark ¶
func (x *AlarmUpgradeInfo) GetRemark() string
func (*AlarmUpgradeInfo) GetUpgradedAt ¶
func (x *AlarmUpgradeInfo) GetUpgradedAt() int64
func (*AlarmUpgradeInfo) GetUpgradedUser ¶
func (x *AlarmUpgradeInfo) GetUpgradedUser() *UserSelectV1
func (*AlarmUpgradeInfo) ProtoMessage ¶
func (*AlarmUpgradeInfo) ProtoMessage()
func (*AlarmUpgradeInfo) ProtoReflect ¶
func (x *AlarmUpgradeInfo) ProtoReflect() protoreflect.Message
func (*AlarmUpgradeInfo) Reset ¶
func (x *AlarmUpgradeInfo) Reset()
func (*AlarmUpgradeInfo) String ¶
func (x *AlarmUpgradeInfo) String() string
func (*AlarmUpgradeInfo) Validate ¶
func (m *AlarmUpgradeInfo) Validate() error
Validate checks the field values on AlarmUpgradeInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AlarmUpgradeInfo) ValidateAll ¶
func (m *AlarmUpgradeInfo) ValidateAll() error
ValidateAll checks the field values on AlarmUpgradeInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlarmUpgradeInfoMultiError, or nil if none found.
type AlarmUpgradeInfoMultiError ¶
type AlarmUpgradeInfoMultiError []error
AlarmUpgradeInfoMultiError is an error wrapping multiple validation errors returned by AlarmUpgradeInfo.ValidateAll() if the designated constraints aren't met.
func (AlarmUpgradeInfoMultiError) AllErrors ¶
func (m AlarmUpgradeInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AlarmUpgradeInfoMultiError) Error ¶
func (m AlarmUpgradeInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AlarmUpgradeInfoValidationError ¶
type AlarmUpgradeInfoValidationError struct {
// contains filtered or unexported fields
}
AlarmUpgradeInfoValidationError is the validation error returned by AlarmUpgradeInfo.Validate if the designated constraints aren't met.
func (AlarmUpgradeInfoValidationError) Cause ¶
func (e AlarmUpgradeInfoValidationError) Cause() error
Cause function returns cause value.
func (AlarmUpgradeInfoValidationError) Error ¶
func (e AlarmUpgradeInfoValidationError) Error() string
Error satisfies the builtin error interface
func (AlarmUpgradeInfoValidationError) ErrorName ¶
func (e AlarmUpgradeInfoValidationError) ErrorName() string
ErrorName returns error name.
func (AlarmUpgradeInfoValidationError) Field ¶
func (e AlarmUpgradeInfoValidationError) Field() string
Field function returns field value.
func (AlarmUpgradeInfoValidationError) Key ¶
func (e AlarmUpgradeInfoValidationError) Key() bool
Key function returns key value.
func (AlarmUpgradeInfoValidationError) Reason ¶
func (e AlarmUpgradeInfoValidationError) Reason() string
Reason function returns reason value.
type Alert ¶
type Alert struct { // 状态 Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 标签 Labels map[string]string `` /* 153-byte string literal not displayed */ // 注解 Annotations map[string]string `` /* 163-byte string literal not displayed */ // 开始时间, unix时间戳 StartsAt int64 `protobuf:"varint,4,opt,name=startsAt,proto3" json:"startsAt,omitempty"` // 结束时间, unix时间戳 EndsAt int64 `protobuf:"varint,5,opt,name=endsAt,proto3" json:"endsAt,omitempty"` // 生成页面链接 GeneratorURL string `protobuf:"bytes,6,opt,name=generatorURL,proto3" json:"generatorURL,omitempty"` // 指纹 Fingerprint string `protobuf:"bytes,7,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` // contains filtered or unexported fields }
告警基础类型
func (*Alert) Descriptor
deprecated
func (*Alert) GetAnnotations ¶
func (*Alert) GetFingerprint ¶
func (*Alert) GetGeneratorURL ¶
func (*Alert) GetStartsAt ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶
func (x *Alert) ProtoReflect() protoreflect.Message
func (*Alert) Validate ¶
Validate checks the field values on Alert with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Alert) ValidateAll ¶
ValidateAll checks the field values on Alert with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlertMultiError, or nil if none found.
type AlertMultiError ¶
type AlertMultiError []error
AlertMultiError is an error wrapping multiple validation errors returned by Alert.ValidateAll() if the designated constraints aren't met.
func (AlertMultiError) AllErrors ¶
func (m AlertMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AlertMultiError) Error ¶
func (m AlertMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AlertValidationError ¶
type AlertValidationError struct {
// contains filtered or unexported fields
}
AlertValidationError is the validation error returned by Alert.Validate if the designated constraints aren't met.
func (AlertValidationError) Cause ¶
func (e AlertValidationError) Cause() error
Cause function returns cause value.
func (AlertValidationError) Error ¶
func (e AlertValidationError) Error() string
Error satisfies the builtin error interface
func (AlertValidationError) ErrorName ¶
func (e AlertValidationError) ErrorName() string
ErrorName returns error name.
func (AlertValidationError) Field ¶
func (e AlertValidationError) Field() string
Field function returns field value.
func (AlertValidationError) Key ¶
func (e AlertValidationError) Key() bool
Key function returns key value.
func (AlertValidationError) Reason ¶
func (e AlertValidationError) Reason() string
Reason function returns reason value.
type ApiSelectV1 ¶
type ApiSelectV1 struct { // 接口值, 对应接口的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 接口标签, 对应接口的name Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 接口状态 Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // 备注 Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` // 所属模块 Module int32 `protobuf:"varint,5,opt,name=module,proto3" json:"module,omitempty"` // 所属领域 Domain int32 `protobuf:"varint,6,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
系统接口下拉信息
func (*ApiSelectV1) Descriptor
deprecated
func (*ApiSelectV1) Descriptor() ([]byte, []int)
Deprecated: Use ApiSelectV1.ProtoReflect.Descriptor instead.
func (*ApiSelectV1) GetDomain ¶
func (x *ApiSelectV1) GetDomain() int32
func (*ApiSelectV1) GetLabel ¶
func (x *ApiSelectV1) GetLabel() string
func (*ApiSelectV1) GetModule ¶
func (x *ApiSelectV1) GetModule() int32
func (*ApiSelectV1) GetRemark ¶
func (x *ApiSelectV1) GetRemark() string
func (*ApiSelectV1) GetStatus ¶
func (x *ApiSelectV1) GetStatus() int32
func (*ApiSelectV1) GetValue ¶
func (x *ApiSelectV1) GetValue() uint32
func (*ApiSelectV1) ProtoMessage ¶
func (*ApiSelectV1) ProtoMessage()
func (*ApiSelectV1) ProtoReflect ¶
func (x *ApiSelectV1) ProtoReflect() protoreflect.Message
func (*ApiSelectV1) Reset ¶
func (x *ApiSelectV1) Reset()
func (*ApiSelectV1) String ¶
func (x *ApiSelectV1) String() string
func (*ApiSelectV1) Validate ¶
func (m *ApiSelectV1) Validate() error
Validate checks the field values on ApiSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApiSelectV1) ValidateAll ¶
func (m *ApiSelectV1) ValidateAll() error
ValidateAll checks the field values on ApiSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApiSelectV1MultiError, or nil if none found.
type ApiSelectV1MultiError ¶
type ApiSelectV1MultiError []error
ApiSelectV1MultiError is an error wrapping multiple validation errors returned by ApiSelectV1.ValidateAll() if the designated constraints aren't met.
func (ApiSelectV1MultiError) AllErrors ¶
func (m ApiSelectV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApiSelectV1MultiError) Error ¶
func (m ApiSelectV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApiSelectV1ValidationError ¶
type ApiSelectV1ValidationError struct {
// contains filtered or unexported fields
}
ApiSelectV1ValidationError is the validation error returned by ApiSelectV1.Validate if the designated constraints aren't met.
func (ApiSelectV1ValidationError) Cause ¶
func (e ApiSelectV1ValidationError) Cause() error
Cause function returns cause value.
func (ApiSelectV1ValidationError) Error ¶
func (e ApiSelectV1ValidationError) Error() string
Error satisfies the builtin error interface
func (ApiSelectV1ValidationError) ErrorName ¶
func (e ApiSelectV1ValidationError) ErrorName() string
ErrorName returns error name.
func (ApiSelectV1ValidationError) Field ¶
func (e ApiSelectV1ValidationError) Field() string
Field function returns field value.
func (ApiSelectV1ValidationError) Key ¶
func (e ApiSelectV1ValidationError) Key() bool
Key function returns key value.
func (ApiSelectV1ValidationError) Reason ¶
func (e ApiSelectV1ValidationError) Reason() string
Reason function returns reason value.
type ApiTree ¶
type ApiTree struct { // 所属领域 Domain int32 `protobuf:"varint,1,opt,name=domain,proto3" json:"domain,omitempty"` // 所属模块 Module []*Module `protobuf:"bytes,2,rep,name=module,proto3" json:"module,omitempty"` // 领域名称 DomainName string `protobuf:"bytes,3,opt,name=domainName,proto3" json:"domainName,omitempty"` // 领域说明 DomainRemark string `protobuf:"bytes,4,opt,name=domainRemark,proto3" json:"domainRemark,omitempty"` // contains filtered or unexported fields }
API权限树节点
func (*ApiTree) Descriptor
deprecated
func (*ApiTree) GetDomainName ¶
func (*ApiTree) GetDomainRemark ¶
func (*ApiTree) ProtoMessage ¶
func (*ApiTree) ProtoMessage()
func (*ApiTree) ProtoReflect ¶
func (x *ApiTree) ProtoReflect() protoreflect.Message
func (*ApiTree) Validate ¶
Validate checks the field values on ApiTree with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApiTree) ValidateAll ¶
ValidateAll checks the field values on ApiTree with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApiTreeMultiError, or nil if none found.
type ApiTreeMultiError ¶
type ApiTreeMultiError []error
ApiTreeMultiError is an error wrapping multiple validation errors returned by ApiTree.ValidateAll() if the designated constraints aren't met.
func (ApiTreeMultiError) AllErrors ¶
func (m ApiTreeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApiTreeMultiError) Error ¶
func (m ApiTreeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApiTreeValidationError ¶
type ApiTreeValidationError struct {
// contains filtered or unexported fields
}
ApiTreeValidationError is the validation error returned by ApiTree.Validate if the designated constraints aren't met.
func (ApiTreeValidationError) Cause ¶
func (e ApiTreeValidationError) Cause() error
Cause function returns cause value.
func (ApiTreeValidationError) Error ¶
func (e ApiTreeValidationError) Error() string
Error satisfies the builtin error interface
func (ApiTreeValidationError) ErrorName ¶
func (e ApiTreeValidationError) ErrorName() string
ErrorName returns error name.
func (ApiTreeValidationError) Field ¶
func (e ApiTreeValidationError) Field() string
Field function returns field value.
func (ApiTreeValidationError) Key ¶
func (e ApiTreeValidationError) Key() bool
Key function returns key value.
func (ApiTreeValidationError) Reason ¶
func (e ApiTreeValidationError) Reason() string
Reason function returns reason value.
type ApiV1 ¶
type ApiV1 struct { // 接口ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 接口名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 接口路径 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // 接口请求方法 Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` // 接口状态 Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // 备注 Remark string `protobuf:"bytes,6,opt,name=remark,proto3" json:"remark,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间, unix时间戳 DeletedAt int64 `protobuf:"varint,9,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // 所属模块 Module int32 `protobuf:"varint,10,opt,name=module,proto3" json:"module,omitempty"` // 所属领域 Domain int32 `protobuf:"varint,11,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
系统接口信息
func (*ApiV1) Descriptor
deprecated
func (*ApiV1) GetCreatedAt ¶
func (*ApiV1) GetDeletedAt ¶
func (*ApiV1) GetUpdatedAt ¶
func (*ApiV1) ProtoMessage ¶
func (*ApiV1) ProtoMessage()
func (*ApiV1) ProtoReflect ¶
func (x *ApiV1) ProtoReflect() protoreflect.Message
func (*ApiV1) Validate ¶
Validate checks the field values on ApiV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApiV1) ValidateAll ¶
ValidateAll checks the field values on ApiV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApiV1MultiError, or nil if none found.
type ApiV1MultiError ¶
type ApiV1MultiError []error
ApiV1MultiError is an error wrapping multiple validation errors returned by ApiV1.ValidateAll() if the designated constraints aren't met.
func (ApiV1MultiError) AllErrors ¶
func (m ApiV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApiV1MultiError) Error ¶
func (m ApiV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApiV1ValidationError ¶
type ApiV1ValidationError struct {
// contains filtered or unexported fields
}
ApiV1ValidationError is the validation error returned by ApiV1.Validate if the designated constraints aren't met.
func (ApiV1ValidationError) Cause ¶
func (e ApiV1ValidationError) Cause() error
Cause function returns cause value.
func (ApiV1ValidationError) Error ¶
func (e ApiV1ValidationError) Error() string
Error satisfies the builtin error interface
func (ApiV1ValidationError) ErrorName ¶
func (e ApiV1ValidationError) ErrorName() string
ErrorName returns error name.
func (ApiV1ValidationError) Field ¶
func (e ApiV1ValidationError) Field() string
Field function returns field value.
func (ApiV1ValidationError) Key ¶
func (e ApiV1ValidationError) Key() bool
Key function returns key value.
func (ApiV1ValidationError) Reason ¶
func (e ApiV1ValidationError) Reason() string
Reason function returns reason value.
type BeNotifyMember ¶
type BeNotifyMember struct { // 通知人ID, 对应用户的id MemberId uint32 `protobuf:"varint,1,opt,name=memberId,proto3" json:"memberId,omitempty"` // 通知方式, 可以同时多种类型 NotifyType NotifyType `protobuf:"varint,2,opt,name=notifyType,proto3,enum=api.NotifyType" json:"notifyType,omitempty"` // 数据ID Id uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
通知基础类型
func (*BeNotifyMember) Descriptor
deprecated
func (*BeNotifyMember) Descriptor() ([]byte, []int)
Deprecated: Use BeNotifyMember.ProtoReflect.Descriptor instead.
func (*BeNotifyMember) GetId ¶
func (x *BeNotifyMember) GetId() uint32
func (*BeNotifyMember) GetMemberId ¶
func (x *BeNotifyMember) GetMemberId() uint32
func (*BeNotifyMember) GetNotifyType ¶
func (x *BeNotifyMember) GetNotifyType() NotifyType
func (*BeNotifyMember) ProtoMessage ¶
func (*BeNotifyMember) ProtoMessage()
func (*BeNotifyMember) ProtoReflect ¶
func (x *BeNotifyMember) ProtoReflect() protoreflect.Message
func (*BeNotifyMember) Reset ¶
func (x *BeNotifyMember) Reset()
func (*BeNotifyMember) String ¶
func (x *BeNotifyMember) String() string
func (*BeNotifyMember) Validate ¶
func (m *BeNotifyMember) Validate() error
Validate checks the field values on BeNotifyMember with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BeNotifyMember) ValidateAll ¶
func (m *BeNotifyMember) ValidateAll() error
ValidateAll checks the field values on BeNotifyMember with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BeNotifyMemberMultiError, or nil if none found.
type BeNotifyMemberDetail ¶
type BeNotifyMemberDetail struct { // 通知人ID, 对应用户的id MemberId uint32 `protobuf:"varint,1,opt,name=memberId,proto3" json:"memberId,omitempty"` // 通知方式, 可以同时多种类型 NotifyType int32 `protobuf:"varint,2,opt,name=notifyType,proto3" json:"notifyType,omitempty"` // 通知人明细 User *UserSelectV1 `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // 通知人状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 数据ID Id uint32 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
通知成员详情
func (*BeNotifyMemberDetail) Descriptor
deprecated
func (*BeNotifyMemberDetail) Descriptor() ([]byte, []int)
Deprecated: Use BeNotifyMemberDetail.ProtoReflect.Descriptor instead.
func (*BeNotifyMemberDetail) GetId ¶
func (x *BeNotifyMemberDetail) GetId() uint32
func (*BeNotifyMemberDetail) GetMemberId ¶
func (x *BeNotifyMemberDetail) GetMemberId() uint32
func (*BeNotifyMemberDetail) GetNotifyType ¶
func (x *BeNotifyMemberDetail) GetNotifyType() int32
func (*BeNotifyMemberDetail) GetStatus ¶
func (x *BeNotifyMemberDetail) GetStatus() int32
func (*BeNotifyMemberDetail) GetUser ¶
func (x *BeNotifyMemberDetail) GetUser() *UserSelectV1
func (*BeNotifyMemberDetail) ProtoMessage ¶
func (*BeNotifyMemberDetail) ProtoMessage()
func (*BeNotifyMemberDetail) ProtoReflect ¶
func (x *BeNotifyMemberDetail) ProtoReflect() protoreflect.Message
func (*BeNotifyMemberDetail) Reset ¶
func (x *BeNotifyMemberDetail) Reset()
func (*BeNotifyMemberDetail) String ¶
func (x *BeNotifyMemberDetail) String() string
func (*BeNotifyMemberDetail) Validate ¶
func (m *BeNotifyMemberDetail) Validate() error
Validate checks the field values on BeNotifyMemberDetail with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BeNotifyMemberDetail) ValidateAll ¶
func (m *BeNotifyMemberDetail) ValidateAll() error
ValidateAll checks the field values on BeNotifyMemberDetail with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BeNotifyMemberDetailMultiError, or nil if none found.
type BeNotifyMemberDetailMultiError ¶
type BeNotifyMemberDetailMultiError []error
BeNotifyMemberDetailMultiError is an error wrapping multiple validation errors returned by BeNotifyMemberDetail.ValidateAll() if the designated constraints aren't met.
func (BeNotifyMemberDetailMultiError) AllErrors ¶
func (m BeNotifyMemberDetailMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BeNotifyMemberDetailMultiError) Error ¶
func (m BeNotifyMemberDetailMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BeNotifyMemberDetailValidationError ¶
type BeNotifyMemberDetailValidationError struct {
// contains filtered or unexported fields
}
BeNotifyMemberDetailValidationError is the validation error returned by BeNotifyMemberDetail.Validate if the designated constraints aren't met.
func (BeNotifyMemberDetailValidationError) Cause ¶
func (e BeNotifyMemberDetailValidationError) Cause() error
Cause function returns cause value.
func (BeNotifyMemberDetailValidationError) Error ¶
func (e BeNotifyMemberDetailValidationError) Error() string
Error satisfies the builtin error interface
func (BeNotifyMemberDetailValidationError) ErrorName ¶
func (e BeNotifyMemberDetailValidationError) ErrorName() string
ErrorName returns error name.
func (BeNotifyMemberDetailValidationError) Field ¶
func (e BeNotifyMemberDetailValidationError) Field() string
Field function returns field value.
func (BeNotifyMemberDetailValidationError) Key ¶
func (e BeNotifyMemberDetailValidationError) Key() bool
Key function returns key value.
func (BeNotifyMemberDetailValidationError) Reason ¶
func (e BeNotifyMemberDetailValidationError) Reason() string
Reason function returns reason value.
type BeNotifyMemberMultiError ¶
type BeNotifyMemberMultiError []error
BeNotifyMemberMultiError is an error wrapping multiple validation errors returned by BeNotifyMember.ValidateAll() if the designated constraints aren't met.
func (BeNotifyMemberMultiError) AllErrors ¶
func (m BeNotifyMemberMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BeNotifyMemberMultiError) Error ¶
func (m BeNotifyMemberMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BeNotifyMemberValidationError ¶
type BeNotifyMemberValidationError struct {
// contains filtered or unexported fields
}
BeNotifyMemberValidationError is the validation error returned by BeNotifyMember.Validate if the designated constraints aren't met.
func (BeNotifyMemberValidationError) Cause ¶
func (e BeNotifyMemberValidationError) Cause() error
Cause function returns cause value.
func (BeNotifyMemberValidationError) Error ¶
func (e BeNotifyMemberValidationError) Error() string
Error satisfies the builtin error interface
func (BeNotifyMemberValidationError) ErrorName ¶
func (e BeNotifyMemberValidationError) ErrorName() string
ErrorName returns error name.
func (BeNotifyMemberValidationError) Field ¶
func (e BeNotifyMemberValidationError) Field() string
Field function returns field value.
func (BeNotifyMemberValidationError) Key ¶
func (e BeNotifyMemberValidationError) Key() bool
Key function returns key value.
func (BeNotifyMemberValidationError) Reason ¶
func (e BeNotifyMemberValidationError) Reason() string
Reason function returns reason value.
type CaptchaType ¶
type CaptchaType int32
验证码类型枚举
const ( CaptchaType_CaptchaTypeUnknown CaptchaType = 0 // audio captcha 音频形式的验证码 CaptchaType_CaptchaTypeAudio CaptchaType = 1 // string captcha 字符串形式的验证码 CaptchaType_CaptchaTypeString CaptchaType = 2 // math captcha 数学公式形式的验证码 CaptchaType_CaptchaTypeMath CaptchaType = 3 // chinese captcha 中文形式的验证码 CaptchaType_CaptchaTypeChinese CaptchaType = 4 // digit captcha 数字形式的验证码 CaptchaType_CaptchaTypeDigit CaptchaType = 5 )
func (CaptchaType) Descriptor ¶
func (CaptchaType) Descriptor() protoreflect.EnumDescriptor
func (CaptchaType) Enum ¶
func (x CaptchaType) Enum() *CaptchaType
func (CaptchaType) EnumDescriptor
deprecated
func (CaptchaType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CaptchaType.Descriptor instead.
func (CaptchaType) Number ¶
func (x CaptchaType) Number() protoreflect.EnumNumber
func (CaptchaType) String ¶
func (x CaptchaType) String() string
func (CaptchaType) Type ¶
func (CaptchaType) Type() protoreflect.EnumType
type Category ¶
type Category int32
分类, 区分字典中的各个模块数据
const ( // UNKNOWN 未知, 用于默认值 Category_CATEGORY_UNKNOWN Category = 0 // PromLabel 标签 Category_CATEGORY_PROM_LABEL Category = 1 // PromAnnotation 注解 Category_CATEGORY_PROM_ANNOTATION Category = 2 // PromStrategy 策略 Category_CATEGORY_PROM_STRATEGY Category = 3 // PromStrategyGroup 策略组 Category_CATEGORY_PROM_STRATEGY_GROUP Category = 4 // AlarmLevel 告警级别 Category_CATEGORY_ALARM_LEVEL Category = 5 // AlarmStatus 告警状态 Category_CATEGORY_ALARM_STATUS Category = 6 // NotifyType 通知类型 Category_CATEGORY_NOTIFY_TYPE Category = 7 )
func (Category) Descriptor ¶
func (Category) Descriptor() protoreflect.EnumDescriptor
func (Category) EnumDescriptor
deprecated
func (Category) Number ¶
func (x Category) Number() protoreflect.EnumNumber
func (Category) Type ¶
func (Category) Type() protoreflect.EnumType
type ChatGroup ¶
type ChatGroup struct { // 群组ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 群组名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 备注 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,5,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 钩子 Hook string `protobuf:"bytes,6,opt,name=hook,proto3" json:"hook,omitempty"` // 群组状态 Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // 通知应用 App int32 `protobuf:"varint,8,opt,name=app,proto3" json:"app,omitempty"` // 钩子名称 HookName string `protobuf:"bytes,9,opt,name=hookName,proto3" json:"hookName,omitempty"` // 密钥 Secret string `protobuf:"bytes,12,opt,name=secret,proto3" json:"secret,omitempty"` // 创建者 CreateUser *UserSelectV1 `protobuf:"bytes,13,opt,name=createUser,proto3" json:"createUser,omitempty"` // contains filtered or unexported fields }
告警通知的hook群组基础类型
func (*ChatGroup) Descriptor
deprecated
func (*ChatGroup) GetCreateUser ¶
func (x *ChatGroup) GetCreateUser() *UserSelectV1
func (*ChatGroup) GetCreatedAt ¶
func (*ChatGroup) GetHookName ¶
func (*ChatGroup) GetUpdatedAt ¶
func (*ChatGroup) ProtoMessage ¶
func (*ChatGroup) ProtoMessage()
func (*ChatGroup) ProtoReflect ¶
func (x *ChatGroup) ProtoReflect() protoreflect.Message
func (*ChatGroup) Validate ¶
Validate checks the field values on ChatGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ChatGroup) ValidateAll ¶
ValidateAll checks the field values on ChatGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChatGroupMultiError, or nil if none found.
type ChatGroupMultiError ¶
type ChatGroupMultiError []error
ChatGroupMultiError is an error wrapping multiple validation errors returned by ChatGroup.ValidateAll() if the designated constraints aren't met.
func (ChatGroupMultiError) AllErrors ¶
func (m ChatGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChatGroupMultiError) Error ¶
func (m ChatGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChatGroupSelectV1 ¶
type ChatGroupSelectV1 struct { // 群组值, 对应群组的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 所属APP App int32 `protobuf:"varint,2,opt,name=app,proto3" json:"app,omitempty"` // 群组标签, 对应群组的name Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // 群组状态 Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
告警通知的hook群组选择类型
func (*ChatGroupSelectV1) Descriptor
deprecated
func (*ChatGroupSelectV1) Descriptor() ([]byte, []int)
Deprecated: Use ChatGroupSelectV1.ProtoReflect.Descriptor instead.
func (*ChatGroupSelectV1) GetApp ¶
func (x *ChatGroupSelectV1) GetApp() int32
func (*ChatGroupSelectV1) GetLabel ¶
func (x *ChatGroupSelectV1) GetLabel() string
func (*ChatGroupSelectV1) GetStatus ¶
func (x *ChatGroupSelectV1) GetStatus() int32
func (*ChatGroupSelectV1) GetValue ¶
func (x *ChatGroupSelectV1) GetValue() uint32
func (*ChatGroupSelectV1) ProtoMessage ¶
func (*ChatGroupSelectV1) ProtoMessage()
func (*ChatGroupSelectV1) ProtoReflect ¶
func (x *ChatGroupSelectV1) ProtoReflect() protoreflect.Message
func (*ChatGroupSelectV1) Reset ¶
func (x *ChatGroupSelectV1) Reset()
func (*ChatGroupSelectV1) String ¶
func (x *ChatGroupSelectV1) String() string
func (*ChatGroupSelectV1) Validate ¶
func (m *ChatGroupSelectV1) Validate() error
Validate checks the field values on ChatGroupSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ChatGroupSelectV1) ValidateAll ¶
func (m *ChatGroupSelectV1) ValidateAll() error
ValidateAll checks the field values on ChatGroupSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChatGroupSelectV1MultiError, or nil if none found.
type ChatGroupSelectV1MultiError ¶
type ChatGroupSelectV1MultiError []error
ChatGroupSelectV1MultiError is an error wrapping multiple validation errors returned by ChatGroupSelectV1.ValidateAll() if the designated constraints aren't met.
func (ChatGroupSelectV1MultiError) AllErrors ¶
func (m ChatGroupSelectV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ChatGroupSelectV1MultiError) Error ¶
func (m ChatGroupSelectV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ChatGroupSelectV1ValidationError ¶
type ChatGroupSelectV1ValidationError struct {
// contains filtered or unexported fields
}
ChatGroupSelectV1ValidationError is the validation error returned by ChatGroupSelectV1.Validate if the designated constraints aren't met.
func (ChatGroupSelectV1ValidationError) Cause ¶
func (e ChatGroupSelectV1ValidationError) Cause() error
Cause function returns cause value.
func (ChatGroupSelectV1ValidationError) Error ¶
func (e ChatGroupSelectV1ValidationError) Error() string
Error satisfies the builtin error interface
func (ChatGroupSelectV1ValidationError) ErrorName ¶
func (e ChatGroupSelectV1ValidationError) ErrorName() string
ErrorName returns error name.
func (ChatGroupSelectV1ValidationError) Field ¶
func (e ChatGroupSelectV1ValidationError) Field() string
Field function returns field value.
func (ChatGroupSelectV1ValidationError) Key ¶
func (e ChatGroupSelectV1ValidationError) Key() bool
Key function returns key value.
func (ChatGroupSelectV1ValidationError) Reason ¶
func (e ChatGroupSelectV1ValidationError) Reason() string
Reason function returns reason value.
type ChatGroupValidationError ¶
type ChatGroupValidationError struct {
// contains filtered or unexported fields
}
ChatGroupValidationError is the validation error returned by ChatGroup.Validate if the designated constraints aren't met.
func (ChatGroupValidationError) Cause ¶
func (e ChatGroupValidationError) Cause() error
Cause function returns cause value.
func (ChatGroupValidationError) Error ¶
func (e ChatGroupValidationError) Error() string
Error satisfies the builtin error interface
func (ChatGroupValidationError) ErrorName ¶
func (e ChatGroupValidationError) ErrorName() string
ErrorName returns error name.
func (ChatGroupValidationError) Field ¶
func (e ChatGroupValidationError) Field() string
Field function returns field value.
func (ChatGroupValidationError) Key ¶
func (e ChatGroupValidationError) Key() bool
Key function returns key value.
func (ChatGroupValidationError) Reason ¶
func (e ChatGroupValidationError) Reason() string
Reason function returns reason value.
type DatasourceType ¶ added in v0.0.16
type DatasourceType int32
const ( // UNKNOWN 未知, 用于默认值 DatasourceType_DATASOURCE_TYPE_UNKNOWN DatasourceType = 0 // Prometheus DatasourceType_DATASOURCE_TYPE_PROMETHEUS DatasourceType = 1 // VictoriaMetrics DatasourceType_DATASOURCE_TYPE_VICTORIAMETRICS DatasourceType = 2 // Elasticsearch DatasourceType_DATASOURCE_TYPE_ELASTICSEARCH DatasourceType = 3 // Influxdb DatasourceType_DATASOURCE_TYPE_INFLUXDB DatasourceType = 4 // Clickhouse DatasourceType_DATASOURCE_TYPE_CLICKHOUSE DatasourceType = 5 // loki DatasourceType_DATASOURCE_TYPE_LOKI DatasourceType = 6 )
func (DatasourceType) Descriptor ¶ added in v0.0.16
func (DatasourceType) Descriptor() protoreflect.EnumDescriptor
func (DatasourceType) Enum ¶ added in v0.0.16
func (x DatasourceType) Enum() *DatasourceType
func (DatasourceType) EnumDescriptor
deprecated
added in
v0.0.16
func (DatasourceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DatasourceType.Descriptor instead.
func (DatasourceType) Number ¶ added in v0.0.16
func (x DatasourceType) Number() protoreflect.EnumNumber
func (DatasourceType) String ¶ added in v0.0.16
func (x DatasourceType) String() string
func (DatasourceType) Type ¶ added in v0.0.16
func (DatasourceType) Type() protoreflect.EnumType
type DictSelectV1 ¶
type DictSelectV1 struct { // 字典值, 对应字典的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 字典标签, 对应字典的name Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 字典分类 Category Category `protobuf:"varint,3,opt,name=category,proto3,enum=api.Category" json:"category,omitempty"` // 字典颜色 Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` // 字典状态 Status Status `protobuf:"varint,5,opt,name=status,proto3,enum=api.Status" json:"status,omitempty"` // 字典备注 Remark string `protobuf:"bytes,6,opt,name=remark,proto3" json:"remark,omitempty"` // 是否已删除 IsDeleted bool `protobuf:"varint,7,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"` // contains filtered or unexported fields }
字典选择类型
func (*DictSelectV1) Descriptor
deprecated
func (*DictSelectV1) Descriptor() ([]byte, []int)
Deprecated: Use DictSelectV1.ProtoReflect.Descriptor instead.
func (*DictSelectV1) GetCategory ¶
func (x *DictSelectV1) GetCategory() Category
func (*DictSelectV1) GetColor ¶
func (x *DictSelectV1) GetColor() string
func (*DictSelectV1) GetIsDeleted ¶
func (x *DictSelectV1) GetIsDeleted() bool
func (*DictSelectV1) GetLabel ¶
func (x *DictSelectV1) GetLabel() string
func (*DictSelectV1) GetRemark ¶
func (x *DictSelectV1) GetRemark() string
func (*DictSelectV1) GetStatus ¶
func (x *DictSelectV1) GetStatus() Status
func (*DictSelectV1) GetValue ¶
func (x *DictSelectV1) GetValue() uint32
func (*DictSelectV1) ProtoMessage ¶
func (*DictSelectV1) ProtoMessage()
func (*DictSelectV1) ProtoReflect ¶
func (x *DictSelectV1) ProtoReflect() protoreflect.Message
func (*DictSelectV1) Reset ¶
func (x *DictSelectV1) Reset()
func (*DictSelectV1) String ¶
func (x *DictSelectV1) String() string
func (*DictSelectV1) Validate ¶
func (m *DictSelectV1) Validate() error
Validate checks the field values on DictSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DictSelectV1) ValidateAll ¶
func (m *DictSelectV1) ValidateAll() error
ValidateAll checks the field values on DictSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DictSelectV1MultiError, or nil if none found.
type DictSelectV1MultiError ¶
type DictSelectV1MultiError []error
DictSelectV1MultiError is an error wrapping multiple validation errors returned by DictSelectV1.ValidateAll() if the designated constraints aren't met.
func (DictSelectV1MultiError) AllErrors ¶
func (m DictSelectV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DictSelectV1MultiError) Error ¶
func (m DictSelectV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DictSelectV1ValidationError ¶
type DictSelectV1ValidationError struct {
// contains filtered or unexported fields
}
DictSelectV1ValidationError is the validation error returned by DictSelectV1.Validate if the designated constraints aren't met.
func (DictSelectV1ValidationError) Cause ¶
func (e DictSelectV1ValidationError) Cause() error
Cause function returns cause value.
func (DictSelectV1ValidationError) Error ¶
func (e DictSelectV1ValidationError) Error() string
Error satisfies the builtin error interface
func (DictSelectV1ValidationError) ErrorName ¶
func (e DictSelectV1ValidationError) ErrorName() string
ErrorName returns error name.
func (DictSelectV1ValidationError) Field ¶
func (e DictSelectV1ValidationError) Field() string
Field function returns field value.
func (DictSelectV1ValidationError) Key ¶
func (e DictSelectV1ValidationError) Key() bool
Key function returns key value.
func (DictSelectV1ValidationError) Reason ¶
func (e DictSelectV1ValidationError) Reason() string
Reason function returns reason value.
type DictV1 ¶
type DictV1 struct { // 字典ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 字典名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 字典分类 Category int32 `protobuf:"varint,3,opt,name=category,proto3" json:"category,omitempty"` // 字典颜色 Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` // 字典状态 Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // 字典备注 Remark string `protobuf:"bytes,6,opt,name=remark,proto3" json:"remark,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间, unix时间戳 DeletedAt int64 `protobuf:"varint,9,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // contains filtered or unexported fields }
字典基础类型
func (*DictV1) Descriptor
deprecated
func (*DictV1) GetCategory ¶
func (*DictV1) GetCreatedAt ¶
func (*DictV1) GetDeletedAt ¶
func (*DictV1) GetUpdatedAt ¶
func (*DictV1) ProtoMessage ¶
func (*DictV1) ProtoMessage()
func (*DictV1) ProtoReflect ¶
func (x *DictV1) ProtoReflect() protoreflect.Message
func (*DictV1) Validate ¶
Validate checks the field values on DictV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DictV1) ValidateAll ¶
ValidateAll checks the field values on DictV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DictV1MultiError, or nil if none found.
type DictV1MultiError ¶
type DictV1MultiError []error
DictV1MultiError is an error wrapping multiple validation errors returned by DictV1.ValidateAll() if the designated constraints aren't met.
func (DictV1MultiError) AllErrors ¶
func (m DictV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DictV1MultiError) Error ¶
func (m DictV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DictV1ValidationError ¶
type DictV1ValidationError struct {
// contains filtered or unexported fields
}
DictV1ValidationError is the validation error returned by DictV1.Validate if the designated constraints aren't met.
func (DictV1ValidationError) Cause ¶
func (e DictV1ValidationError) Cause() error
Cause function returns cause value.
func (DictV1ValidationError) Error ¶
func (e DictV1ValidationError) Error() string
Error satisfies the builtin error interface
func (DictV1ValidationError) ErrorName ¶
func (e DictV1ValidationError) ErrorName() string
ErrorName returns error name.
func (DictV1ValidationError) Field ¶
func (e DictV1ValidationError) Field() string
Field function returns field value.
func (DictV1ValidationError) Key ¶
func (e DictV1ValidationError) Key() bool
Key function returns key value.
func (DictV1ValidationError) Reason ¶
func (e DictV1ValidationError) Reason() string
Reason function returns reason value.
type DomainType ¶
type DomainType int32
领域类型枚举
const ( // 未知领域类型 DomainType_DomainTypeUnknown DomainType = 0 // 系统领域 DomainType_DomainTypeSystem DomainType = 1 // 监控领域 DomainType_DomainTypeMonitor DomainType = 2 // 业务领域 DomainType_DomainTypeBusiness DomainType = 3 // 其他领域 DomainType_DomainTypeOther DomainType = 4 )
func (DomainType) Descriptor ¶
func (DomainType) Descriptor() protoreflect.EnumDescriptor
func (DomainType) Enum ¶
func (x DomainType) Enum() *DomainType
func (DomainType) EnumDescriptor
deprecated
func (DomainType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DomainType.Descriptor instead.
func (DomainType) Number ¶
func (x DomainType) Number() protoreflect.EnumNumber
func (DomainType) String ¶
func (x DomainType) String() string
func (DomainType) Type ¶
func (DomainType) Type() protoreflect.EnumType
type Duration ¶
type Duration struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Unit string `protobuf:"bytes,2,opt,name=unit,proto3" json:"unit,omitempty"` // contains filtered or unexported fields }
func (*Duration) Descriptor
deprecated
func (*Duration) ProtoMessage ¶
func (*Duration) ProtoMessage()
func (*Duration) ProtoReflect ¶
func (x *Duration) ProtoReflect() protoreflect.Message
func (*Duration) Validate ¶
Validate checks the field values on Duration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Duration) ValidateAll ¶
ValidateAll checks the field values on Duration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DurationMultiError, or nil if none found.
type DurationMultiError ¶
type DurationMultiError []error
DurationMultiError is an error wrapping multiple validation errors returned by Duration.ValidateAll() if the designated constraints aren't met.
func (DurationMultiError) AllErrors ¶
func (m DurationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DurationMultiError) Error ¶
func (m DurationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DurationValidationError ¶
type DurationValidationError struct {
// contains filtered or unexported fields
}
DurationValidationError is the validation error returned by Duration.Validate if the designated constraints aren't met.
func (DurationValidationError) Cause ¶
func (e DurationValidationError) Cause() error
Cause function returns cause value.
func (DurationValidationError) Error ¶
func (e DurationValidationError) Error() string
Error satisfies the builtin error interface
func (DurationValidationError) ErrorName ¶
func (e DurationValidationError) ErrorName() string
ErrorName returns error name.
func (DurationValidationError) Field ¶
func (e DurationValidationError) Field() string
Field function returns field value.
func (DurationValidationError) Key ¶
func (e DurationValidationError) Key() bool
Key function returns key value.
func (DurationValidationError) Reason ¶
func (e DurationValidationError) Reason() string
Reason function returns reason value.
type EvaluateGroup ¶ added in v0.0.16
type EvaluateGroup struct { // 策略组ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 策略组名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Strategies []*EvaluateStrategyItem `protobuf:"bytes,3,rep,name=strategies,proto3" json:"strategies,omitempty"` // contains filtered or unexported fields }
func (*EvaluateGroup) Descriptor
deprecated
added in
v0.0.16
func (*EvaluateGroup) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateGroup.ProtoReflect.Descriptor instead.
func (*EvaluateGroup) GetId ¶ added in v0.0.16
func (x *EvaluateGroup) GetId() uint32
func (*EvaluateGroup) GetName ¶ added in v0.0.16
func (x *EvaluateGroup) GetName() string
func (*EvaluateGroup) GetStrategies ¶ added in v0.0.16
func (x *EvaluateGroup) GetStrategies() []*EvaluateStrategyItem
func (*EvaluateGroup) ProtoMessage ¶ added in v0.0.16
func (*EvaluateGroup) ProtoMessage()
func (*EvaluateGroup) ProtoReflect ¶ added in v0.0.16
func (x *EvaluateGroup) ProtoReflect() protoreflect.Message
func (*EvaluateGroup) Reset ¶ added in v0.0.16
func (x *EvaluateGroup) Reset()
func (*EvaluateGroup) String ¶ added in v0.0.16
func (x *EvaluateGroup) String() string
func (*EvaluateGroup) Validate ¶ added in v0.0.16
func (m *EvaluateGroup) Validate() error
Validate checks the field values on EvaluateGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EvaluateGroup) ValidateAll ¶ added in v0.0.16
func (m *EvaluateGroup) ValidateAll() error
ValidateAll checks the field values on EvaluateGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EvaluateGroupMultiError, or nil if none found.
type EvaluateGroupMultiError ¶ added in v0.0.16
type EvaluateGroupMultiError []error
EvaluateGroupMultiError is an error wrapping multiple validation errors returned by EvaluateGroup.ValidateAll() if the designated constraints aren't met.
func (EvaluateGroupMultiError) AllErrors ¶ added in v0.0.16
func (m EvaluateGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EvaluateGroupMultiError) Error ¶ added in v0.0.16
func (m EvaluateGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EvaluateGroupValidationError ¶ added in v0.0.16
type EvaluateGroupValidationError struct {
// contains filtered or unexported fields
}
EvaluateGroupValidationError is the validation error returned by EvaluateGroup.Validate if the designated constraints aren't met.
func (EvaluateGroupValidationError) Cause ¶ added in v0.0.16
func (e EvaluateGroupValidationError) Cause() error
Cause function returns cause value.
func (EvaluateGroupValidationError) Error ¶ added in v0.0.16
func (e EvaluateGroupValidationError) Error() string
Error satisfies the builtin error interface
func (EvaluateGroupValidationError) ErrorName ¶ added in v0.0.16
func (e EvaluateGroupValidationError) ErrorName() string
ErrorName returns error name.
func (EvaluateGroupValidationError) Field ¶ added in v0.0.16
func (e EvaluateGroupValidationError) Field() string
Field function returns field value.
func (EvaluateGroupValidationError) Key ¶ added in v0.0.16
func (e EvaluateGroupValidationError) Key() bool
Key function returns key value.
func (EvaluateGroupValidationError) Reason ¶ added in v0.0.16
func (e EvaluateGroupValidationError) Reason() string
Reason function returns reason value.
type EvaluateStrategyItem ¶ added in v0.0.16
type EvaluateStrategyItem struct { // 策略ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 告警名称 Alert string `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"` // 表达式 Expr string `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"` // 持续时间 Duration *Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` // 标签 Labels map[string]string `` /* 153-byte string literal not displayed */ // 注解 Annotations map[string]string `` /* 163-byte string literal not displayed */ Datasource *StrategyDatasource `protobuf:"bytes,7,opt,name=datasource,proto3" json:"datasource,omitempty"` // contains filtered or unexported fields }
func (*EvaluateStrategyItem) Descriptor
deprecated
added in
v0.0.16
func (*EvaluateStrategyItem) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateStrategyItem.ProtoReflect.Descriptor instead.
func (*EvaluateStrategyItem) GetAlert ¶ added in v0.0.16
func (x *EvaluateStrategyItem) GetAlert() string
func (*EvaluateStrategyItem) GetAnnotations ¶ added in v0.0.16
func (x *EvaluateStrategyItem) GetAnnotations() map[string]string
func (*EvaluateStrategyItem) GetDatasource ¶ added in v0.0.16
func (x *EvaluateStrategyItem) GetDatasource() *StrategyDatasource
func (*EvaluateStrategyItem) GetDuration ¶ added in v0.0.16
func (x *EvaluateStrategyItem) GetDuration() *Duration
func (*EvaluateStrategyItem) GetExpr ¶ added in v0.0.16
func (x *EvaluateStrategyItem) GetExpr() string
func (*EvaluateStrategyItem) GetId ¶ added in v0.0.16
func (x *EvaluateStrategyItem) GetId() uint32
func (*EvaluateStrategyItem) GetLabels ¶ added in v0.0.16
func (x *EvaluateStrategyItem) GetLabels() map[string]string
func (*EvaluateStrategyItem) ProtoMessage ¶ added in v0.0.16
func (*EvaluateStrategyItem) ProtoMessage()
func (*EvaluateStrategyItem) ProtoReflect ¶ added in v0.0.16
func (x *EvaluateStrategyItem) ProtoReflect() protoreflect.Message
func (*EvaluateStrategyItem) Reset ¶ added in v0.0.16
func (x *EvaluateStrategyItem) Reset()
func (*EvaluateStrategyItem) String ¶ added in v0.0.16
func (x *EvaluateStrategyItem) String() string
func (*EvaluateStrategyItem) Validate ¶ added in v0.0.16
func (m *EvaluateStrategyItem) Validate() error
Validate checks the field values on EvaluateStrategyItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EvaluateStrategyItem) ValidateAll ¶ added in v0.0.16
func (m *EvaluateStrategyItem) ValidateAll() error
ValidateAll checks the field values on EvaluateStrategyItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EvaluateStrategyItemMultiError, or nil if none found.
type EvaluateStrategyItemMultiError ¶ added in v0.0.16
type EvaluateStrategyItemMultiError []error
EvaluateStrategyItemMultiError is an error wrapping multiple validation errors returned by EvaluateStrategyItem.ValidateAll() if the designated constraints aren't met.
func (EvaluateStrategyItemMultiError) AllErrors ¶ added in v0.0.16
func (m EvaluateStrategyItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EvaluateStrategyItemMultiError) Error ¶ added in v0.0.16
func (m EvaluateStrategyItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EvaluateStrategyItemValidationError ¶ added in v0.0.16
type EvaluateStrategyItemValidationError struct {
// contains filtered or unexported fields
}
EvaluateStrategyItemValidationError is the validation error returned by EvaluateStrategyItem.Validate if the designated constraints aren't met.
func (EvaluateStrategyItemValidationError) Cause ¶ added in v0.0.16
func (e EvaluateStrategyItemValidationError) Cause() error
Cause function returns cause value.
func (EvaluateStrategyItemValidationError) Error ¶ added in v0.0.16
func (e EvaluateStrategyItemValidationError) Error() string
Error satisfies the builtin error interface
func (EvaluateStrategyItemValidationError) ErrorName ¶ added in v0.0.16
func (e EvaluateStrategyItemValidationError) ErrorName() string
ErrorName returns error name.
func (EvaluateStrategyItemValidationError) Field ¶ added in v0.0.16
func (e EvaluateStrategyItemValidationError) Field() string
Field function returns field value.
func (EvaluateStrategyItemValidationError) Key ¶ added in v0.0.16
func (e EvaluateStrategyItemValidationError) Key() bool
Key function returns key value.
func (EvaluateStrategyItemValidationError) Reason ¶ added in v0.0.16
func (e EvaluateStrategyItemValidationError) Reason() string
Reason function returns reason value.
type ExternalCustomer ¶
type ExternalCustomer struct { // 外部客户ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 外部客户名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 外部客户说明 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 外部客户状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 外部客户地址 Addr string `protobuf:"bytes,5,opt,name=addr,proto3" json:"addr,omitempty"` // 外部客户联系人 Contact string `protobuf:"bytes,6,opt,name=contact,proto3" json:"contact,omitempty"` // 外部客户联系方式 Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty"` // 外部客户邮箱 Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"` // 创建时间 CreatedAt int64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间 UpdatedAt int64 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间 DeletedAt int64 `protobuf:"varint,11,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // 外部客户钩子列表 ExternalCustomerHookList []*ExternalCustomerHook `protobuf:"bytes,12,rep,name=externalCustomerHookList,proto3" json:"externalCustomerHookList,omitempty"` // contains filtered or unexported fields }
外部客户
func (*ExternalCustomer) Descriptor
deprecated
func (*ExternalCustomer) Descriptor() ([]byte, []int)
Deprecated: Use ExternalCustomer.ProtoReflect.Descriptor instead.
func (*ExternalCustomer) GetAddr ¶
func (x *ExternalCustomer) GetAddr() string
func (*ExternalCustomer) GetContact ¶
func (x *ExternalCustomer) GetContact() string
func (*ExternalCustomer) GetCreatedAt ¶
func (x *ExternalCustomer) GetCreatedAt() int64
func (*ExternalCustomer) GetDeletedAt ¶
func (x *ExternalCustomer) GetDeletedAt() int64
func (*ExternalCustomer) GetEmail ¶
func (x *ExternalCustomer) GetEmail() string
func (*ExternalCustomer) GetExternalCustomerHookList ¶
func (x *ExternalCustomer) GetExternalCustomerHookList() []*ExternalCustomerHook
func (*ExternalCustomer) GetId ¶
func (x *ExternalCustomer) GetId() uint32
func (*ExternalCustomer) GetName ¶
func (x *ExternalCustomer) GetName() string
func (*ExternalCustomer) GetPhone ¶
func (x *ExternalCustomer) GetPhone() string
func (*ExternalCustomer) GetRemark ¶
func (x *ExternalCustomer) GetRemark() string
func (*ExternalCustomer) GetStatus ¶
func (x *ExternalCustomer) GetStatus() int32
func (*ExternalCustomer) GetUpdatedAt ¶
func (x *ExternalCustomer) GetUpdatedAt() int64
func (*ExternalCustomer) ProtoMessage ¶
func (*ExternalCustomer) ProtoMessage()
func (*ExternalCustomer) ProtoReflect ¶
func (x *ExternalCustomer) ProtoReflect() protoreflect.Message
func (*ExternalCustomer) Reset ¶
func (x *ExternalCustomer) Reset()
func (*ExternalCustomer) String ¶
func (x *ExternalCustomer) String() string
func (*ExternalCustomer) Validate ¶
func (m *ExternalCustomer) Validate() error
Validate checks the field values on ExternalCustomer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExternalCustomer) ValidateAll ¶
func (m *ExternalCustomer) ValidateAll() error
ValidateAll checks the field values on ExternalCustomer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExternalCustomerMultiError, or nil if none found.
type ExternalCustomerHook ¶
type ExternalCustomerHook struct { // 外部客户钩子ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 外部客户钩子名称 HookName string `protobuf:"bytes,2,opt,name=hookName,proto3" json:"hookName,omitempty"` // 外部客户钩子说明 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 外部客户钩子状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 外部客户ID CustomerId uint32 `protobuf:"varint,5,opt,name=customerId,proto3" json:"customerId,omitempty"` // 外部客户钩子地址 Hook string `protobuf:"bytes,6,opt,name=hook,proto3" json:"hook,omitempty"` // 外部客户钩子类型 NotifyApp int32 `protobuf:"varint,7,opt,name=notifyApp,proto3" json:"notifyApp,omitempty"` // 创建时间 CreatedAt int64 `protobuf:"varint,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间 UpdatedAt int64 `protobuf:"varint,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间 DeletedAt int64 `protobuf:"varint,10,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // contains filtered or unexported fields }
外部客户钩子
func (*ExternalCustomerHook) Descriptor
deprecated
func (*ExternalCustomerHook) Descriptor() ([]byte, []int)
Deprecated: Use ExternalCustomerHook.ProtoReflect.Descriptor instead.
func (*ExternalCustomerHook) GetCreatedAt ¶
func (x *ExternalCustomerHook) GetCreatedAt() int64
func (*ExternalCustomerHook) GetCustomerId ¶
func (x *ExternalCustomerHook) GetCustomerId() uint32
func (*ExternalCustomerHook) GetDeletedAt ¶
func (x *ExternalCustomerHook) GetDeletedAt() int64
func (*ExternalCustomerHook) GetHook ¶
func (x *ExternalCustomerHook) GetHook() string
func (*ExternalCustomerHook) GetHookName ¶
func (x *ExternalCustomerHook) GetHookName() string
func (*ExternalCustomerHook) GetId ¶
func (x *ExternalCustomerHook) GetId() uint32
func (*ExternalCustomerHook) GetNotifyApp ¶
func (x *ExternalCustomerHook) GetNotifyApp() int32
func (*ExternalCustomerHook) GetRemark ¶
func (x *ExternalCustomerHook) GetRemark() string
func (*ExternalCustomerHook) GetStatus ¶
func (x *ExternalCustomerHook) GetStatus() int32
func (*ExternalCustomerHook) GetUpdatedAt ¶
func (x *ExternalCustomerHook) GetUpdatedAt() int64
func (*ExternalCustomerHook) ProtoMessage ¶
func (*ExternalCustomerHook) ProtoMessage()
func (*ExternalCustomerHook) ProtoReflect ¶
func (x *ExternalCustomerHook) ProtoReflect() protoreflect.Message
func (*ExternalCustomerHook) Reset ¶
func (x *ExternalCustomerHook) Reset()
func (*ExternalCustomerHook) String ¶
func (x *ExternalCustomerHook) String() string
func (*ExternalCustomerHook) Validate ¶
func (m *ExternalCustomerHook) Validate() error
Validate checks the field values on ExternalCustomerHook with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExternalCustomerHook) ValidateAll ¶
func (m *ExternalCustomerHook) ValidateAll() error
ValidateAll checks the field values on ExternalCustomerHook with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExternalCustomerHookMultiError, or nil if none found.
type ExternalCustomerHookMultiError ¶
type ExternalCustomerHookMultiError []error
ExternalCustomerHookMultiError is an error wrapping multiple validation errors returned by ExternalCustomerHook.ValidateAll() if the designated constraints aren't met.
func (ExternalCustomerHookMultiError) AllErrors ¶
func (m ExternalCustomerHookMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExternalCustomerHookMultiError) Error ¶
func (m ExternalCustomerHookMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExternalCustomerHookValidationError ¶
type ExternalCustomerHookValidationError struct {
// contains filtered or unexported fields
}
ExternalCustomerHookValidationError is the validation error returned by ExternalCustomerHook.Validate if the designated constraints aren't met.
func (ExternalCustomerHookValidationError) Cause ¶
func (e ExternalCustomerHookValidationError) Cause() error
Cause function returns cause value.
func (ExternalCustomerHookValidationError) Error ¶
func (e ExternalCustomerHookValidationError) Error() string
Error satisfies the builtin error interface
func (ExternalCustomerHookValidationError) ErrorName ¶
func (e ExternalCustomerHookValidationError) ErrorName() string
ErrorName returns error name.
func (ExternalCustomerHookValidationError) Field ¶
func (e ExternalCustomerHookValidationError) Field() string
Field function returns field value.
func (ExternalCustomerHookValidationError) Key ¶
func (e ExternalCustomerHookValidationError) Key() bool
Key function returns key value.
func (ExternalCustomerHookValidationError) Reason ¶
func (e ExternalCustomerHookValidationError) Reason() string
Reason function returns reason value.
type ExternalCustomerMultiError ¶
type ExternalCustomerMultiError []error
ExternalCustomerMultiError is an error wrapping multiple validation errors returned by ExternalCustomer.ValidateAll() if the designated constraints aren't met.
func (ExternalCustomerMultiError) AllErrors ¶
func (m ExternalCustomerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExternalCustomerMultiError) Error ¶
func (m ExternalCustomerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExternalCustomerValidationError ¶
type ExternalCustomerValidationError struct {
// contains filtered or unexported fields
}
ExternalCustomerValidationError is the validation error returned by ExternalCustomer.Validate if the designated constraints aren't met.
func (ExternalCustomerValidationError) Cause ¶
func (e ExternalCustomerValidationError) Cause() error
Cause function returns cause value.
func (ExternalCustomerValidationError) Error ¶
func (e ExternalCustomerValidationError) Error() string
Error satisfies the builtin error interface
func (ExternalCustomerValidationError) ErrorName ¶
func (e ExternalCustomerValidationError) ErrorName() string
ErrorName returns error name.
func (ExternalCustomerValidationError) Field ¶
func (e ExternalCustomerValidationError) Field() string
Field function returns field value.
func (ExternalCustomerValidationError) Key ¶
func (e ExternalCustomerValidationError) Key() bool
Key function returns key value.
func (ExternalCustomerValidationError) Reason ¶
func (e ExternalCustomerValidationError) Reason() string
Reason function returns reason value.
type ExternalNotifyObj ¶
type ExternalNotifyObj struct { // 外部通知对象ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 外部通知对象名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 外部通知对象说明 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 外部通知对象状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 外部客户列表 ExternalCustomerList []*ExternalCustomer `protobuf:"bytes,5,rep,name=externalCustomerList,proto3" json:"externalCustomerList,omitempty"` // 外部客户hook列表 ExternalCustomerHookList []*ExternalCustomerHook `protobuf:"bytes,6,rep,name=externalCustomerHookList,proto3" json:"externalCustomerHookList,omitempty"` // 创建时间 CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间 UpdatedAt int64 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间 DeletedAt int64 `protobuf:"varint,11,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // contains filtered or unexported fields }
外部通知对象
func (*ExternalNotifyObj) Descriptor
deprecated
func (*ExternalNotifyObj) Descriptor() ([]byte, []int)
Deprecated: Use ExternalNotifyObj.ProtoReflect.Descriptor instead.
func (*ExternalNotifyObj) GetCreatedAt ¶
func (x *ExternalNotifyObj) GetCreatedAt() int64
func (*ExternalNotifyObj) GetDeletedAt ¶
func (x *ExternalNotifyObj) GetDeletedAt() int64
func (*ExternalNotifyObj) GetExternalCustomerHookList ¶
func (x *ExternalNotifyObj) GetExternalCustomerHookList() []*ExternalCustomerHook
func (*ExternalNotifyObj) GetExternalCustomerList ¶
func (x *ExternalNotifyObj) GetExternalCustomerList() []*ExternalCustomer
func (*ExternalNotifyObj) GetId ¶
func (x *ExternalNotifyObj) GetId() uint32
func (*ExternalNotifyObj) GetName ¶
func (x *ExternalNotifyObj) GetName() string
func (*ExternalNotifyObj) GetRemark ¶
func (x *ExternalNotifyObj) GetRemark() string
func (*ExternalNotifyObj) GetStatus ¶
func (x *ExternalNotifyObj) GetStatus() int32
func (*ExternalNotifyObj) GetUpdatedAt ¶
func (x *ExternalNotifyObj) GetUpdatedAt() int64
func (*ExternalNotifyObj) ProtoMessage ¶
func (*ExternalNotifyObj) ProtoMessage()
func (*ExternalNotifyObj) ProtoReflect ¶
func (x *ExternalNotifyObj) ProtoReflect() protoreflect.Message
func (*ExternalNotifyObj) Reset ¶
func (x *ExternalNotifyObj) Reset()
func (*ExternalNotifyObj) String ¶
func (x *ExternalNotifyObj) String() string
func (*ExternalNotifyObj) Validate ¶
func (m *ExternalNotifyObj) Validate() error
Validate checks the field values on ExternalNotifyObj with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExternalNotifyObj) ValidateAll ¶
func (m *ExternalNotifyObj) ValidateAll() error
ValidateAll checks the field values on ExternalNotifyObj with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExternalNotifyObjMultiError, or nil if none found.
type ExternalNotifyObjMultiError ¶
type ExternalNotifyObjMultiError []error
ExternalNotifyObjMultiError is an error wrapping multiple validation errors returned by ExternalNotifyObj.ValidateAll() if the designated constraints aren't met.
func (ExternalNotifyObjMultiError) AllErrors ¶
func (m ExternalNotifyObjMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExternalNotifyObjMultiError) Error ¶
func (m ExternalNotifyObjMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExternalNotifyObjValidationError ¶
type ExternalNotifyObjValidationError struct {
// contains filtered or unexported fields
}
ExternalNotifyObjValidationError is the validation error returned by ExternalNotifyObj.Validate if the designated constraints aren't met.
func (ExternalNotifyObjValidationError) Cause ¶
func (e ExternalNotifyObjValidationError) Cause() error
Cause function returns cause value.
func (ExternalNotifyObjValidationError) Error ¶
func (e ExternalNotifyObjValidationError) Error() string
Error satisfies the builtin error interface
func (ExternalNotifyObjValidationError) ErrorName ¶
func (e ExternalNotifyObjValidationError) ErrorName() string
ErrorName returns error name.
func (ExternalNotifyObjValidationError) Field ¶
func (e ExternalNotifyObjValidationError) Field() string
Field function returns field value.
func (ExternalNotifyObjValidationError) Key ¶
func (e ExternalNotifyObjValidationError) Key() bool
Key function returns key value.
func (ExternalNotifyObjValidationError) Reason ¶
func (e ExternalNotifyObjValidationError) Reason() string
Reason function returns reason value.
type Gender ¶
type Gender int32
性别, 用于区分用户性别
func (Gender) Descriptor ¶
func (Gender) Descriptor() protoreflect.EnumDescriptor
func (Gender) EnumDescriptor
deprecated
func (Gender) Number ¶
func (x Gender) Number() protoreflect.EnumNumber
func (Gender) Type ¶
func (Gender) Type() protoreflect.EnumType
type GroupSimple ¶
type GroupSimple struct { // 策略组ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 策略组名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Strategies []*StrategySimple `protobuf:"bytes,3,rep,name=strategies,proto3" json:"strategies,omitempty"` // contains filtered or unexported fields }
func (*GroupSimple) Descriptor
deprecated
func (*GroupSimple) Descriptor() ([]byte, []int)
Deprecated: Use GroupSimple.ProtoReflect.Descriptor instead.
func (*GroupSimple) GetId ¶
func (x *GroupSimple) GetId() uint32
func (*GroupSimple) GetName ¶
func (x *GroupSimple) GetName() string
func (*GroupSimple) GetStrategies ¶
func (x *GroupSimple) GetStrategies() []*StrategySimple
func (*GroupSimple) ProtoMessage ¶
func (*GroupSimple) ProtoMessage()
func (*GroupSimple) ProtoReflect ¶
func (x *GroupSimple) ProtoReflect() protoreflect.Message
func (*GroupSimple) Reset ¶
func (x *GroupSimple) Reset()
func (*GroupSimple) String ¶
func (x *GroupSimple) String() string
func (*GroupSimple) Validate ¶
func (m *GroupSimple) Validate() error
Validate checks the field values on GroupSimple with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GroupSimple) ValidateAll ¶
func (m *GroupSimple) ValidateAll() error
ValidateAll checks the field values on GroupSimple with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GroupSimpleMultiError, or nil if none found.
type GroupSimpleMultiError ¶
type GroupSimpleMultiError []error
GroupSimpleMultiError is an error wrapping multiple validation errors returned by GroupSimple.ValidateAll() if the designated constraints aren't met.
func (GroupSimpleMultiError) AllErrors ¶
func (m GroupSimpleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GroupSimpleMultiError) Error ¶
func (m GroupSimpleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GroupSimpleValidationError ¶
type GroupSimpleValidationError struct {
// contains filtered or unexported fields
}
GroupSimpleValidationError is the validation error returned by GroupSimple.Validate if the designated constraints aren't met.
func (GroupSimpleValidationError) Cause ¶
func (e GroupSimpleValidationError) Cause() error
Cause function returns cause value.
func (GroupSimpleValidationError) Error ¶
func (e GroupSimpleValidationError) Error() string
Error satisfies the builtin error interface
func (GroupSimpleValidationError) ErrorName ¶
func (e GroupSimpleValidationError) ErrorName() string
ErrorName returns error name.
func (GroupSimpleValidationError) Field ¶
func (e GroupSimpleValidationError) Field() string
Field function returns field value.
func (GroupSimpleValidationError) Key ¶
func (e GroupSimpleValidationError) Key() bool
Key function returns key value.
func (GroupSimpleValidationError) Reason ¶
func (e GroupSimpleValidationError) Reason() string
Reason function returns reason value.
type InterveneInfo ¶
type InterveneInfo struct { // 介入人 IntervenedUser *UserSelectV1 `protobuf:"bytes,1,opt,name=intervenedUser,proto3" json:"intervenedUser,omitempty"` // 介入时间, unix时间戳 IntervenedAt int64 `protobuf:"varint,2,opt,name=intervenedAt,proto3" json:"intervenedAt,omitempty"` // 介入备注 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 主键 Id uint32 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
介入信息
func (*InterveneInfo) Descriptor
deprecated
func (*InterveneInfo) Descriptor() ([]byte, []int)
Deprecated: Use InterveneInfo.ProtoReflect.Descriptor instead.
func (*InterveneInfo) GetId ¶
func (x *InterveneInfo) GetId() uint32
func (*InterveneInfo) GetIntervenedAt ¶
func (x *InterveneInfo) GetIntervenedAt() int64
func (*InterveneInfo) GetIntervenedUser ¶
func (x *InterveneInfo) GetIntervenedUser() *UserSelectV1
func (*InterveneInfo) GetRemark ¶
func (x *InterveneInfo) GetRemark() string
func (*InterveneInfo) ProtoMessage ¶
func (*InterveneInfo) ProtoMessage()
func (*InterveneInfo) ProtoReflect ¶
func (x *InterveneInfo) ProtoReflect() protoreflect.Message
func (*InterveneInfo) Reset ¶
func (x *InterveneInfo) Reset()
func (*InterveneInfo) String ¶
func (x *InterveneInfo) String() string
func (*InterveneInfo) Validate ¶
func (m *InterveneInfo) Validate() error
Validate checks the field values on InterveneInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*InterveneInfo) ValidateAll ¶
func (m *InterveneInfo) ValidateAll() error
ValidateAll checks the field values on InterveneInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InterveneInfoMultiError, or nil if none found.
type InterveneInfoMultiError ¶
type InterveneInfoMultiError []error
InterveneInfoMultiError is an error wrapping multiple validation errors returned by InterveneInfo.ValidateAll() if the designated constraints aren't met.
func (InterveneInfoMultiError) AllErrors ¶
func (m InterveneInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InterveneInfoMultiError) Error ¶
func (m InterveneInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InterveneInfoValidationError ¶
type InterveneInfoValidationError struct {
// contains filtered or unexported fields
}
InterveneInfoValidationError is the validation error returned by InterveneInfo.Validate if the designated constraints aren't met.
func (InterveneInfoValidationError) Cause ¶
func (e InterveneInfoValidationError) Cause() error
Cause function returns cause value.
func (InterveneInfoValidationError) Error ¶
func (e InterveneInfoValidationError) Error() string
Error satisfies the builtin error interface
func (InterveneInfoValidationError) ErrorName ¶
func (e InterveneInfoValidationError) ErrorName() string
ErrorName returns error name.
func (InterveneInfoValidationError) Field ¶
func (e InterveneInfoValidationError) Field() string
Field function returns field value.
func (InterveneInfoValidationError) Key ¶
func (e InterveneInfoValidationError) Key() bool
Key function returns key value.
func (InterveneInfoValidationError) Reason ¶
func (e InterveneInfoValidationError) Reason() string
Reason function returns reason value.
type Module ¶
type Module struct { // 所属模块 Module int32 `protobuf:"varint,1,opt,name=module,proto3" json:"module,omitempty"` // 接口列表 Apis []*ApiSelectV1 `protobuf:"bytes,2,rep,name=apis,proto3" json:"apis,omitempty"` // 模块名称 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 模块说明 Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` // contains filtered or unexported fields }
API模块
func (*Module) Descriptor
deprecated
func (*Module) GetApis ¶
func (x *Module) GetApis() []*ApiSelectV1
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) ProtoReflect ¶
func (x *Module) ProtoReflect() protoreflect.Message
func (*Module) Validate ¶
Validate checks the field values on Module with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Module) ValidateAll ¶
ValidateAll checks the field values on Module with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ModuleMultiError, or nil if none found.
type ModuleMultiError ¶
type ModuleMultiError []error
ModuleMultiError is an error wrapping multiple validation errors returned by Module.ValidateAll() if the designated constraints aren't met.
func (ModuleMultiError) AllErrors ¶
func (m ModuleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ModuleMultiError) Error ¶
func (m ModuleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ModuleType ¶
type ModuleType int32
模块类型枚举
const ( // 未知模块类型 ModuleType_ModuleTypeUnknown ModuleType = 0 // 接口模块 ModuleType_ModelTypeApi ModuleType = 1 // 菜单模块 ModuleType_ModelTypeMenu ModuleType = 2 // 角色模块 ModuleType_ModelTypeRole ModuleType = 3 // 用户模块 ModuleType_ModelTypeUser ModuleType = 4 // 字典模块 ModuleType_ModelTypeDict ModuleType = 5 // 配置模块 ModuleType_ModelTypeConfig ModuleType = 6 // 日志模块 ModuleType_ModelTypeLog ModuleType = 7 // 任务模块 ModuleType_ModelTypeJob ModuleType = 8 // 通知模块 ModuleType_ModelTypeNotify ModuleType = 9 // 系统模块 ModuleType_ModelTypeSystem ModuleType = 10 // 监控模块 ModuleType_ModelTypeMonitor ModuleType = 11 // 业务模块 ModuleType_ModelTypeBusiness ModuleType = 12 // 其他模块 ModuleType_ModelTypeOther ModuleType = 13 )
func (ModuleType) Descriptor ¶
func (ModuleType) Descriptor() protoreflect.EnumDescriptor
func (ModuleType) Enum ¶
func (x ModuleType) Enum() *ModuleType
func (ModuleType) EnumDescriptor
deprecated
func (ModuleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModuleType.Descriptor instead.
func (ModuleType) Number ¶
func (x ModuleType) Number() protoreflect.EnumNumber
func (ModuleType) String ¶
func (x ModuleType) String() string
func (ModuleType) Type ¶
func (ModuleType) Type() protoreflect.EnumType
type ModuleValidationError ¶
type ModuleValidationError struct {
// contains filtered or unexported fields
}
ModuleValidationError is the validation error returned by Module.Validate if the designated constraints aren't met.
func (ModuleValidationError) Cause ¶
func (e ModuleValidationError) Cause() error
Cause function returns cause value.
func (ModuleValidationError) Error ¶
func (e ModuleValidationError) Error() string
Error satisfies the builtin error interface
func (ModuleValidationError) ErrorName ¶
func (e ModuleValidationError) ErrorName() string
ErrorName returns error name.
func (ModuleValidationError) Field ¶
func (e ModuleValidationError) Field() string
Field function returns field value.
func (ModuleValidationError) Key ¶
func (e ModuleValidationError) Key() bool
Key function returns key value.
func (ModuleValidationError) Reason ¶
func (e ModuleValidationError) Reason() string
Reason function returns reason value.
type MyChart ¶
type MyChart struct { // 图表标题 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // 图表说明 Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"` // 图表url Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` Id uint32 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*MyChart) Descriptor
deprecated
func (*MyChart) ProtoMessage ¶
func (*MyChart) ProtoMessage()
func (*MyChart) ProtoReflect ¶
func (x *MyChart) ProtoReflect() protoreflect.Message
func (*MyChart) Validate ¶
Validate checks the field values on MyChart with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MyChart) ValidateAll ¶
ValidateAll checks the field values on MyChart with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MyChartMultiError, or nil if none found.
type MyChartMultiError ¶
type MyChartMultiError []error
MyChartMultiError is an error wrapping multiple validation errors returned by MyChart.ValidateAll() if the designated constraints aren't met.
func (MyChartMultiError) AllErrors ¶
func (m MyChartMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MyChartMultiError) Error ¶
func (m MyChartMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MyChartValidationError ¶
type MyChartValidationError struct {
// contains filtered or unexported fields
}
MyChartValidationError is the validation error returned by MyChart.Validate if the designated constraints aren't met.
func (MyChartValidationError) Cause ¶
func (e MyChartValidationError) Cause() error
Cause function returns cause value.
func (MyChartValidationError) Error ¶
func (e MyChartValidationError) Error() string
Error satisfies the builtin error interface
func (MyChartValidationError) ErrorName ¶
func (e MyChartValidationError) ErrorName() string
ErrorName returns error name.
func (MyChartValidationError) Field ¶
func (e MyChartValidationError) Field() string
Field function returns field value.
func (MyChartValidationError) Key ¶
func (e MyChartValidationError) Key() bool
Key function returns key value.
func (MyChartValidationError) Reason ¶
func (e MyChartValidationError) Reason() string
Reason function returns reason value.
type MyDashboardConfig ¶
type MyDashboardConfig struct { // 仪表板ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 仪表板名称 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // 仪表板说明 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 仪表板创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 仪表板更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,5,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 仪表板删除时间, unix时间戳 DeletedAt int64 `protobuf:"varint,6,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` Color string `protobuf:"bytes,7,opt,name=color,proto3" json:"color,omitempty"` // 图表列表 Charts []*MyChart `protobuf:"bytes,8,rep,name=charts,proto3" json:"charts,omitempty"` Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*MyDashboardConfig) Descriptor
deprecated
func (*MyDashboardConfig) Descriptor() ([]byte, []int)
Deprecated: Use MyDashboardConfig.ProtoReflect.Descriptor instead.
func (*MyDashboardConfig) GetCharts ¶
func (x *MyDashboardConfig) GetCharts() []*MyChart
func (*MyDashboardConfig) GetColor ¶
func (x *MyDashboardConfig) GetColor() string
func (*MyDashboardConfig) GetCreatedAt ¶
func (x *MyDashboardConfig) GetCreatedAt() int64
func (*MyDashboardConfig) GetDeletedAt ¶
func (x *MyDashboardConfig) GetDeletedAt() int64
func (*MyDashboardConfig) GetId ¶
func (x *MyDashboardConfig) GetId() uint32
func (*MyDashboardConfig) GetRemark ¶
func (x *MyDashboardConfig) GetRemark() string
func (*MyDashboardConfig) GetStatus ¶
func (x *MyDashboardConfig) GetStatus() int32
func (*MyDashboardConfig) GetTitle ¶
func (x *MyDashboardConfig) GetTitle() string
func (*MyDashboardConfig) GetUpdatedAt ¶
func (x *MyDashboardConfig) GetUpdatedAt() int64
func (*MyDashboardConfig) ProtoMessage ¶
func (*MyDashboardConfig) ProtoMessage()
func (*MyDashboardConfig) ProtoReflect ¶
func (x *MyDashboardConfig) ProtoReflect() protoreflect.Message
func (*MyDashboardConfig) Reset ¶
func (x *MyDashboardConfig) Reset()
func (*MyDashboardConfig) String ¶
func (x *MyDashboardConfig) String() string
func (*MyDashboardConfig) Validate ¶
func (m *MyDashboardConfig) Validate() error
Validate checks the field values on MyDashboardConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MyDashboardConfig) ValidateAll ¶
func (m *MyDashboardConfig) ValidateAll() error
ValidateAll checks the field values on MyDashboardConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MyDashboardConfigMultiError, or nil if none found.
type MyDashboardConfigMultiError ¶
type MyDashboardConfigMultiError []error
MyDashboardConfigMultiError is an error wrapping multiple validation errors returned by MyDashboardConfig.ValidateAll() if the designated constraints aren't met.
func (MyDashboardConfigMultiError) AllErrors ¶
func (m MyDashboardConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MyDashboardConfigMultiError) Error ¶
func (m MyDashboardConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MyDashboardConfigOption ¶
type MyDashboardConfigOption struct { Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` // contains filtered or unexported fields }
func (*MyDashboardConfigOption) Descriptor
deprecated
func (*MyDashboardConfigOption) Descriptor() ([]byte, []int)
Deprecated: Use MyDashboardConfigOption.ProtoReflect.Descriptor instead.
func (*MyDashboardConfigOption) GetColor ¶
func (x *MyDashboardConfigOption) GetColor() string
func (*MyDashboardConfigOption) GetLabel ¶
func (x *MyDashboardConfigOption) GetLabel() string
func (*MyDashboardConfigOption) GetValue ¶
func (x *MyDashboardConfigOption) GetValue() uint32
func (*MyDashboardConfigOption) ProtoMessage ¶
func (*MyDashboardConfigOption) ProtoMessage()
func (*MyDashboardConfigOption) ProtoReflect ¶
func (x *MyDashboardConfigOption) ProtoReflect() protoreflect.Message
func (*MyDashboardConfigOption) Reset ¶
func (x *MyDashboardConfigOption) Reset()
func (*MyDashboardConfigOption) String ¶
func (x *MyDashboardConfigOption) String() string
func (*MyDashboardConfigOption) Validate ¶
func (m *MyDashboardConfigOption) Validate() error
Validate checks the field values on MyDashboardConfigOption with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MyDashboardConfigOption) ValidateAll ¶
func (m *MyDashboardConfigOption) ValidateAll() error
ValidateAll checks the field values on MyDashboardConfigOption with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MyDashboardConfigOptionMultiError, or nil if none found.
type MyDashboardConfigOptionMultiError ¶
type MyDashboardConfigOptionMultiError []error
MyDashboardConfigOptionMultiError is an error wrapping multiple validation errors returned by MyDashboardConfigOption.ValidateAll() if the designated constraints aren't met.
func (MyDashboardConfigOptionMultiError) AllErrors ¶
func (m MyDashboardConfigOptionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MyDashboardConfigOptionMultiError) Error ¶
func (m MyDashboardConfigOptionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MyDashboardConfigOptionValidationError ¶
type MyDashboardConfigOptionValidationError struct {
// contains filtered or unexported fields
}
MyDashboardConfigOptionValidationError is the validation error returned by MyDashboardConfigOption.Validate if the designated constraints aren't met.
func (MyDashboardConfigOptionValidationError) Cause ¶
func (e MyDashboardConfigOptionValidationError) Cause() error
Cause function returns cause value.
func (MyDashboardConfigOptionValidationError) Error ¶
func (e MyDashboardConfigOptionValidationError) Error() string
Error satisfies the builtin error interface
func (MyDashboardConfigOptionValidationError) ErrorName ¶
func (e MyDashboardConfigOptionValidationError) ErrorName() string
ErrorName returns error name.
func (MyDashboardConfigOptionValidationError) Field ¶
func (e MyDashboardConfigOptionValidationError) Field() string
Field function returns field value.
func (MyDashboardConfigOptionValidationError) Key ¶
func (e MyDashboardConfigOptionValidationError) Key() bool
Key function returns key value.
func (MyDashboardConfigOptionValidationError) Reason ¶
func (e MyDashboardConfigOptionValidationError) Reason() string
Reason function returns reason value.
type MyDashboardConfigValidationError ¶
type MyDashboardConfigValidationError struct {
// contains filtered or unexported fields
}
MyDashboardConfigValidationError is the validation error returned by MyDashboardConfig.Validate if the designated constraints aren't met.
func (MyDashboardConfigValidationError) Cause ¶
func (e MyDashboardConfigValidationError) Cause() error
Cause function returns cause value.
func (MyDashboardConfigValidationError) Error ¶
func (e MyDashboardConfigValidationError) Error() string
Error satisfies the builtin error interface
func (MyDashboardConfigValidationError) ErrorName ¶
func (e MyDashboardConfigValidationError) ErrorName() string
ErrorName returns error name.
func (MyDashboardConfigValidationError) Field ¶
func (e MyDashboardConfigValidationError) Field() string
Field function returns field value.
func (MyDashboardConfigValidationError) Key ¶
func (e MyDashboardConfigValidationError) Key() bool
Key function returns key value.
func (MyDashboardConfigValidationError) Reason ¶
func (e MyDashboardConfigValidationError) Reason() string
Reason function returns reason value.
type NotifyApp ¶
type NotifyApp int32
通知应用, 用于区分通知方式
const ( // UNKNOWN 未知, 用于默认值 NotifyApp_NOTIFY_APP_UNKNOWN NotifyApp = 0 // DINGTALK 钉钉 NotifyApp_NOTIFY_APP_DINGTALK NotifyApp = 1 // WECHATWORK 企业微信 NotifyApp_NOTIFY_APP_WECHATWORK NotifyApp = 2 // FEISHU 飞书 NotifyApp_NOTIFY_APP_FEISHU NotifyApp = 3 // 自定义 NotifyApp_NOTIFY_APP_CUSTOM NotifyApp = 4 )
func (NotifyApp) Descriptor ¶
func (NotifyApp) Descriptor() protoreflect.EnumDescriptor
func (NotifyApp) EnumDescriptor
deprecated
func (NotifyApp) Number ¶
func (x NotifyApp) Number() protoreflect.EnumNumber
func (NotifyApp) Type ¶
func (NotifyApp) Type() protoreflect.EnumType
type NotifySelectV1 ¶
type NotifySelectV1 struct { // 通知值, 对应通知的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 通知标签, 对应通知的name Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 备注 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
通知选择类型
func (*NotifySelectV1) Descriptor
deprecated
func (*NotifySelectV1) Descriptor() ([]byte, []int)
Deprecated: Use NotifySelectV1.ProtoReflect.Descriptor instead.
func (*NotifySelectV1) GetLabel ¶
func (x *NotifySelectV1) GetLabel() string
func (*NotifySelectV1) GetRemark ¶
func (x *NotifySelectV1) GetRemark() string
func (*NotifySelectV1) GetStatus ¶
func (x *NotifySelectV1) GetStatus() int32
func (*NotifySelectV1) GetValue ¶
func (x *NotifySelectV1) GetValue() uint32
func (*NotifySelectV1) ProtoMessage ¶
func (*NotifySelectV1) ProtoMessage()
func (*NotifySelectV1) ProtoReflect ¶
func (x *NotifySelectV1) ProtoReflect() protoreflect.Message
func (*NotifySelectV1) Reset ¶
func (x *NotifySelectV1) Reset()
func (*NotifySelectV1) String ¶
func (x *NotifySelectV1) String() string
func (*NotifySelectV1) Validate ¶
func (m *NotifySelectV1) Validate() error
Validate checks the field values on NotifySelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*NotifySelectV1) ValidateAll ¶
func (m *NotifySelectV1) ValidateAll() error
ValidateAll checks the field values on NotifySelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NotifySelectV1MultiError, or nil if none found.
type NotifySelectV1MultiError ¶
type NotifySelectV1MultiError []error
NotifySelectV1MultiError is an error wrapping multiple validation errors returned by NotifySelectV1.ValidateAll() if the designated constraints aren't met.
func (NotifySelectV1MultiError) AllErrors ¶
func (m NotifySelectV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NotifySelectV1MultiError) Error ¶
func (m NotifySelectV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NotifySelectV1ValidationError ¶
type NotifySelectV1ValidationError struct {
// contains filtered or unexported fields
}
NotifySelectV1ValidationError is the validation error returned by NotifySelectV1.Validate if the designated constraints aren't met.
func (NotifySelectV1ValidationError) Cause ¶
func (e NotifySelectV1ValidationError) Cause() error
Cause function returns cause value.
func (NotifySelectV1ValidationError) Error ¶
func (e NotifySelectV1ValidationError) Error() string
Error satisfies the builtin error interface
func (NotifySelectV1ValidationError) ErrorName ¶
func (e NotifySelectV1ValidationError) ErrorName() string
ErrorName returns error name.
func (NotifySelectV1ValidationError) Field ¶
func (e NotifySelectV1ValidationError) Field() string
Field function returns field value.
func (NotifySelectV1ValidationError) Key ¶
func (e NotifySelectV1ValidationError) Key() bool
Key function returns key value.
func (NotifySelectV1ValidationError) Reason ¶
func (e NotifySelectV1ValidationError) Reason() string
Reason function returns reason value.
type NotifyTemplateItem ¶
type NotifyTemplateItem struct { // 模板ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 模板内容 Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 所属策略 StrategyId uint32 `protobuf:"varint,3,opt,name=strategyId,proto3" json:"strategyId,omitempty"` // 模板类型 NotifyType int32 `protobuf:"varint,4,opt,name=notifyType,proto3" json:"notifyType,omitempty"` // contains filtered or unexported fields }
通知模板
func (*NotifyTemplateItem) Descriptor
deprecated
func (*NotifyTemplateItem) Descriptor() ([]byte, []int)
Deprecated: Use NotifyTemplateItem.ProtoReflect.Descriptor instead.
func (*NotifyTemplateItem) GetContent ¶
func (x *NotifyTemplateItem) GetContent() string
func (*NotifyTemplateItem) GetId ¶
func (x *NotifyTemplateItem) GetId() uint32
func (*NotifyTemplateItem) GetNotifyType ¶
func (x *NotifyTemplateItem) GetNotifyType() int32
func (*NotifyTemplateItem) GetStrategyId ¶
func (x *NotifyTemplateItem) GetStrategyId() uint32
func (*NotifyTemplateItem) ProtoMessage ¶
func (*NotifyTemplateItem) ProtoMessage()
func (*NotifyTemplateItem) ProtoReflect ¶
func (x *NotifyTemplateItem) ProtoReflect() protoreflect.Message
func (*NotifyTemplateItem) Reset ¶
func (x *NotifyTemplateItem) Reset()
func (*NotifyTemplateItem) String ¶
func (x *NotifyTemplateItem) String() string
func (*NotifyTemplateItem) Validate ¶
func (m *NotifyTemplateItem) Validate() error
Validate checks the field values on NotifyTemplateItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*NotifyTemplateItem) ValidateAll ¶
func (m *NotifyTemplateItem) ValidateAll() error
ValidateAll checks the field values on NotifyTemplateItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NotifyTemplateItemMultiError, or nil if none found.
type NotifyTemplateItemMultiError ¶
type NotifyTemplateItemMultiError []error
NotifyTemplateItemMultiError is an error wrapping multiple validation errors returned by NotifyTemplateItem.ValidateAll() if the designated constraints aren't met.
func (NotifyTemplateItemMultiError) AllErrors ¶
func (m NotifyTemplateItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NotifyTemplateItemMultiError) Error ¶
func (m NotifyTemplateItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NotifyTemplateItemValidationError ¶
type NotifyTemplateItemValidationError struct {
// contains filtered or unexported fields
}
NotifyTemplateItemValidationError is the validation error returned by NotifyTemplateItem.Validate if the designated constraints aren't met.
func (NotifyTemplateItemValidationError) Cause ¶
func (e NotifyTemplateItemValidationError) Cause() error
Cause function returns cause value.
func (NotifyTemplateItemValidationError) Error ¶
func (e NotifyTemplateItemValidationError) Error() string
Error satisfies the builtin error interface
func (NotifyTemplateItemValidationError) ErrorName ¶
func (e NotifyTemplateItemValidationError) ErrorName() string
ErrorName returns error name.
func (NotifyTemplateItemValidationError) Field ¶
func (e NotifyTemplateItemValidationError) Field() string
Field function returns field value.
func (NotifyTemplateItemValidationError) Key ¶
func (e NotifyTemplateItemValidationError) Key() bool
Key function returns key value.
func (NotifyTemplateItemValidationError) Reason ¶
func (e NotifyTemplateItemValidationError) Reason() string
Reason function returns reason value.
type NotifyTemplateType ¶
type NotifyTemplateType int32
const ( // NotifyTemplateTypeCustom 自定义通知模板 NotifyTemplateTypeCustom NotifyTemplateType = iota // NotifyTemplateTypeEmail 邮件通知模板 NotifyTemplateTypeEmail // NotifyTemplateTypeSms 短信通知模板 NotifyTemplateTypeSms // NotifyTemplateTypeWeChatWork 企业微信通知模板 NotifyTemplateTypeWeChatWork // NotifyTemplateTypeFeiShu 飞书通知模板 NotifyTemplateTypeFeiShu // NotifyTemplateTypeDingDing 钉钉通知模板 NotifyTemplateTypeDingDing )
const ( // 自定义通知模板 NotifyTemplateType_NotifyTemplateTypeCustom NotifyTemplateType = 0 // 邮件通知模板 NotifyTemplateType_NotifyTemplateTypeEmail NotifyTemplateType = 1 // 短信通知模板 NotifyTemplateType_NotifyTemplateTypeSms NotifyTemplateType = 2 // 企业微信通知模板 NotifyTemplateType_NotifyTemplateTypeWeChatWork NotifyTemplateType = 3 // 飞书通知模板 NotifyTemplateType_NotifyTemplateTypeFeiShu NotifyTemplateType = 4 // 钉钉通知模板 NotifyTemplateType_NotifyTemplateTypeDingDing NotifyTemplateType = 5 )
func (NotifyTemplateType) Descriptor ¶
func (NotifyTemplateType) Descriptor() protoreflect.EnumDescriptor
func (NotifyTemplateType) Enum ¶
func (x NotifyTemplateType) Enum() *NotifyTemplateType
func (NotifyTemplateType) EnumDescriptor
deprecated
func (NotifyTemplateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotifyTemplateType.Descriptor instead.
func (NotifyTemplateType) Number ¶
func (x NotifyTemplateType) Number() protoreflect.EnumNumber
func (NotifyTemplateType) String ¶
func (x NotifyTemplateType) String() string
func (NotifyTemplateType) Type ¶
func (NotifyTemplateType) Type() protoreflect.EnumType
type NotifyType ¶
type NotifyType int32
通知类型, 用于区分通知方式
const ( // UNKNOWN 未知, 用于默认值 NotifyType_NOTIFY_TYPE_UNKNOWN NotifyType = 0 // EMAIL 邮件 NotifyType_NOTIFY_TYPE_EMAIL NotifyType = 2 // SMS 短信 NotifyType_NOTIFY_TYPE_SMS NotifyType = 4 // phone 电话 NotifyType_NOTIFY_TYPE_PHONE NotifyType = 8 )
func (NotifyType) Descriptor ¶
func (NotifyType) Descriptor() protoreflect.EnumDescriptor
func (NotifyType) Enum ¶
func (x NotifyType) Enum() *NotifyType
func (NotifyType) EnumDescriptor
deprecated
func (NotifyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NotifyType.Descriptor instead.
func (NotifyType) Number ¶
func (x NotifyType) Number() protoreflect.EnumNumber
func (NotifyType) String ¶
func (x NotifyType) String() string
func (NotifyType) Type ¶
func (NotifyType) Type() protoreflect.EnumType
type NotifyV1 ¶
type NotifyV1 struct { // 通知ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 通知名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 备注 Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // 状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 通知成员 Members []*BeNotifyMemberDetail `protobuf:"bytes,5,rep,name=members,proto3" json:"members,omitempty"` // 通知群组 ChatGroups []*ChatGroupSelectV1 `protobuf:"bytes,6,rep,name=chatGroups,proto3" json:"chatGroups,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间, unix时间戳 DeletedAt int64 `protobuf:"varint,9,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // 外部通知对象 ExternalNotifyObjs []*ExternalNotifyObj `protobuf:"bytes,10,rep,name=externalNotifyObjs,proto3" json:"externalNotifyObjs,omitempty"` // contains filtered or unexported fields }
通知基础类型
func (*NotifyV1) Descriptor
deprecated
func (*NotifyV1) GetChatGroups ¶
func (x *NotifyV1) GetChatGroups() []*ChatGroupSelectV1
func (*NotifyV1) GetCreatedAt ¶
func (*NotifyV1) GetDeletedAt ¶
func (*NotifyV1) GetExternalNotifyObjs ¶
func (x *NotifyV1) GetExternalNotifyObjs() []*ExternalNotifyObj
func (*NotifyV1) GetMembers ¶
func (x *NotifyV1) GetMembers() []*BeNotifyMemberDetail
func (*NotifyV1) GetUpdatedAt ¶
func (*NotifyV1) ProtoMessage ¶
func (*NotifyV1) ProtoMessage()
func (*NotifyV1) ProtoReflect ¶
func (x *NotifyV1) ProtoReflect() protoreflect.Message
func (*NotifyV1) Validate ¶
Validate checks the field values on NotifyV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*NotifyV1) ValidateAll ¶
ValidateAll checks the field values on NotifyV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NotifyV1MultiError, or nil if none found.
type NotifyV1MultiError ¶
type NotifyV1MultiError []error
NotifyV1MultiError is an error wrapping multiple validation errors returned by NotifyV1.ValidateAll() if the designated constraints aren't met.
func (NotifyV1MultiError) AllErrors ¶
func (m NotifyV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NotifyV1MultiError) Error ¶
func (m NotifyV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NotifyV1ValidationError ¶
type NotifyV1ValidationError struct {
// contains filtered or unexported fields
}
NotifyV1ValidationError is the validation error returned by NotifyV1.Validate if the designated constraints aren't met.
func (NotifyV1ValidationError) Cause ¶
func (e NotifyV1ValidationError) Cause() error
Cause function returns cause value.
func (NotifyV1ValidationError) Error ¶
func (e NotifyV1ValidationError) Error() string
Error satisfies the builtin error interface
func (NotifyV1ValidationError) ErrorName ¶
func (e NotifyV1ValidationError) ErrorName() string
ErrorName returns error name.
func (NotifyV1ValidationError) Field ¶
func (e NotifyV1ValidationError) Field() string
Field function returns field value.
func (NotifyV1ValidationError) Key ¶
func (e NotifyV1ValidationError) Key() bool
Key function returns key value.
func (NotifyV1ValidationError) Reason ¶
func (e NotifyV1ValidationError) Reason() string
Reason function returns reason value.
type PageReply ¶
type PageReply struct { // 当前页码 Curr int32 `protobuf:"varint,1,opt,name=curr,proto3" json:"curr,omitempty"` // 每页大小 Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 总数 Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
分页返回参数
func (*PageReply) Descriptor
deprecated
func (*PageReply) ProtoMessage ¶
func (*PageReply) ProtoMessage()
func (*PageReply) ProtoReflect ¶
func (x *PageReply) ProtoReflect() protoreflect.Message
func (*PageReply) Validate ¶
Validate checks the field values on PageReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PageReply) ValidateAll ¶
ValidateAll checks the field values on PageReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PageReplyMultiError, or nil if none found.
type PageReplyMultiError ¶
type PageReplyMultiError []error
PageReplyMultiError is an error wrapping multiple validation errors returned by PageReply.ValidateAll() if the designated constraints aren't met.
func (PageReplyMultiError) AllErrors ¶
func (m PageReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageReplyMultiError) Error ¶
func (m PageReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageReplyValidationError ¶
type PageReplyValidationError struct {
// contains filtered or unexported fields
}
PageReplyValidationError is the validation error returned by PageReply.Validate if the designated constraints aren't met.
func (PageReplyValidationError) Cause ¶
func (e PageReplyValidationError) Cause() error
Cause function returns cause value.
func (PageReplyValidationError) Error ¶
func (e PageReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageReplyValidationError) ErrorName ¶
func (e PageReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageReplyValidationError) Field ¶
func (e PageReplyValidationError) Field() string
Field function returns field value.
func (PageReplyValidationError) Key ¶
func (e PageReplyValidationError) Key() bool
Key function returns key value.
func (PageReplyValidationError) Reason ¶
func (e PageReplyValidationError) Reason() string
Reason function returns reason value.
type PageRequest ¶
type PageRequest struct { // 当前页, 从1开始 Curr int32 `protobuf:"varint,1,opt,name=curr,proto3" json:"curr,omitempty"` // 每页大小, 1 < size <= 200 Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
分页请求参数
func (*PageRequest) Descriptor
deprecated
func (*PageRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageRequest.ProtoReflect.Descriptor instead.
func (*PageRequest) GetCurr ¶
func (x *PageRequest) GetCurr() int32
func (*PageRequest) GetSize ¶
func (x *PageRequest) GetSize() int32
func (*PageRequest) ProtoMessage ¶
func (*PageRequest) ProtoMessage()
func (*PageRequest) ProtoReflect ¶
func (x *PageRequest) ProtoReflect() protoreflect.Message
func (*PageRequest) Reset ¶
func (x *PageRequest) Reset()
func (*PageRequest) String ¶
func (x *PageRequest) String() string
func (*PageRequest) Validate ¶
func (m *PageRequest) Validate() error
Validate checks the field values on PageRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PageRequest) ValidateAll ¶
func (m *PageRequest) ValidateAll() error
ValidateAll checks the field values on PageRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PageRequestMultiError, or nil if none found.
type PageRequestMultiError ¶
type PageRequestMultiError []error
PageRequestMultiError is an error wrapping multiple validation errors returned by PageRequest.ValidateAll() if the designated constraints aren't met.
func (PageRequestMultiError) AllErrors ¶
func (m PageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageRequestMultiError) Error ¶
func (m PageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageRequestValidationError ¶
type PageRequestValidationError struct {
// contains filtered or unexported fields
}
PageRequestValidationError is the validation error returned by PageRequest.Validate if the designated constraints aren't met.
func (PageRequestValidationError) Cause ¶
func (e PageRequestValidationError) Cause() error
Cause function returns cause value.
func (PageRequestValidationError) Error ¶
func (e PageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageRequestValidationError) ErrorName ¶
func (e PageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageRequestValidationError) Field ¶
func (e PageRequestValidationError) Field() string
Field function returns field value.
func (PageRequestValidationError) Key ¶
func (e PageRequestValidationError) Key() bool
Key function returns key value.
func (PageRequestValidationError) Reason ¶
func (e PageRequestValidationError) Reason() string
Reason function returns reason value.
type PromGroup ¶
type PromGroup struct { // 策略组ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 策略组名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 策略组分类 Categories []*DictSelectV1 `protobuf:"bytes,3,rep,name=categories,proto3" json:"categories,omitempty"` // 策略组状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 策略组备注 Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间, unix时间戳 DeletedAt int64 `protobuf:"varint,8,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // 策略数量 StrategyCount int64 `protobuf:"varint,9,opt,name=strategyCount,proto3" json:"strategyCount,omitempty"` // 启用中的策略数量 EnableStrategyCount int64 `protobuf:"varint,10,opt,name=enableStrategyCount,proto3" json:"enableStrategyCount,omitempty"` // 策略列表(用于agent加载规则, 普通列表查询时候没有数据) Strategies []*PromStrategyV1 `protobuf:"bytes,11,rep,name=strategies,proto3" json:"strategies,omitempty"` // contains filtered or unexported fields }
策略组基础类型
func (*PromGroup) Descriptor
deprecated
func (*PromGroup) GetCategories ¶
func (x *PromGroup) GetCategories() []*DictSelectV1
func (*PromGroup) GetCreatedAt ¶
func (*PromGroup) GetDeletedAt ¶
func (*PromGroup) GetEnableStrategyCount ¶
func (*PromGroup) GetStrategies ¶
func (x *PromGroup) GetStrategies() []*PromStrategyV1
func (*PromGroup) GetStrategyCount ¶
func (*PromGroup) GetUpdatedAt ¶
func (*PromGroup) ProtoMessage ¶
func (*PromGroup) ProtoMessage()
func (*PromGroup) ProtoReflect ¶
func (x *PromGroup) ProtoReflect() protoreflect.Message
func (*PromGroup) Validate ¶
Validate checks the field values on PromGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PromGroup) ValidateAll ¶
ValidateAll checks the field values on PromGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PromGroupMultiError, or nil if none found.
type PromGroupMultiError ¶
type PromGroupMultiError []error
PromGroupMultiError is an error wrapping multiple validation errors returned by PromGroup.ValidateAll() if the designated constraints aren't met.
func (PromGroupMultiError) AllErrors ¶
func (m PromGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PromGroupMultiError) Error ¶
func (m PromGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PromGroupSelectV1 ¶
type PromGroupSelectV1 struct { // 策略组值, 对应策略组的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 策略组标签, 对应策略组的name Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 策略组分类 Category []*DictSelectV1 `protobuf:"bytes,3,rep,name=category,proto3" json:"category,omitempty"` // 策略组状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 策略组备注 Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` // contains filtered or unexported fields }
策略组选择类型
func (*PromGroupSelectV1) Descriptor
deprecated
func (*PromGroupSelectV1) Descriptor() ([]byte, []int)
Deprecated: Use PromGroupSelectV1.ProtoReflect.Descriptor instead.
func (*PromGroupSelectV1) GetCategory ¶
func (x *PromGroupSelectV1) GetCategory() []*DictSelectV1
func (*PromGroupSelectV1) GetLabel ¶
func (x *PromGroupSelectV1) GetLabel() string
func (*PromGroupSelectV1) GetRemark ¶
func (x *PromGroupSelectV1) GetRemark() string
func (*PromGroupSelectV1) GetStatus ¶
func (x *PromGroupSelectV1) GetStatus() int32
func (*PromGroupSelectV1) GetValue ¶
func (x *PromGroupSelectV1) GetValue() uint32
func (*PromGroupSelectV1) ProtoMessage ¶
func (*PromGroupSelectV1) ProtoMessage()
func (*PromGroupSelectV1) ProtoReflect ¶
func (x *PromGroupSelectV1) ProtoReflect() protoreflect.Message
func (*PromGroupSelectV1) Reset ¶
func (x *PromGroupSelectV1) Reset()
func (*PromGroupSelectV1) String ¶
func (x *PromGroupSelectV1) String() string
func (*PromGroupSelectV1) Validate ¶
func (m *PromGroupSelectV1) Validate() error
Validate checks the field values on PromGroupSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PromGroupSelectV1) ValidateAll ¶
func (m *PromGroupSelectV1) ValidateAll() error
ValidateAll checks the field values on PromGroupSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PromGroupSelectV1MultiError, or nil if none found.
type PromGroupSelectV1MultiError ¶
type PromGroupSelectV1MultiError []error
PromGroupSelectV1MultiError is an error wrapping multiple validation errors returned by PromGroupSelectV1.ValidateAll() if the designated constraints aren't met.
func (PromGroupSelectV1MultiError) AllErrors ¶
func (m PromGroupSelectV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PromGroupSelectV1MultiError) Error ¶
func (m PromGroupSelectV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PromGroupSelectV1ValidationError ¶
type PromGroupSelectV1ValidationError struct {
// contains filtered or unexported fields
}
PromGroupSelectV1ValidationError is the validation error returned by PromGroupSelectV1.Validate if the designated constraints aren't met.
func (PromGroupSelectV1ValidationError) Cause ¶
func (e PromGroupSelectV1ValidationError) Cause() error
Cause function returns cause value.
func (PromGroupSelectV1ValidationError) Error ¶
func (e PromGroupSelectV1ValidationError) Error() string
Error satisfies the builtin error interface
func (PromGroupSelectV1ValidationError) ErrorName ¶
func (e PromGroupSelectV1ValidationError) ErrorName() string
ErrorName returns error name.
func (PromGroupSelectV1ValidationError) Field ¶
func (e PromGroupSelectV1ValidationError) Field() string
Field function returns field value.
func (PromGroupSelectV1ValidationError) Key ¶
func (e PromGroupSelectV1ValidationError) Key() bool
Key function returns key value.
func (PromGroupSelectV1ValidationError) Reason ¶
func (e PromGroupSelectV1ValidationError) Reason() string
Reason function returns reason value.
type PromGroupValidationError ¶
type PromGroupValidationError struct {
// contains filtered or unexported fields
}
PromGroupValidationError is the validation error returned by PromGroup.Validate if the designated constraints aren't met.
func (PromGroupValidationError) Cause ¶
func (e PromGroupValidationError) Cause() error
Cause function returns cause value.
func (PromGroupValidationError) Error ¶
func (e PromGroupValidationError) Error() string
Error satisfies the builtin error interface
func (PromGroupValidationError) ErrorName ¶
func (e PromGroupValidationError) ErrorName() string
ErrorName returns error name.
func (PromGroupValidationError) Field ¶
func (e PromGroupValidationError) Field() string
Field function returns field value.
func (PromGroupValidationError) Key ¶
func (e PromGroupValidationError) Key() bool
Key function returns key value.
func (PromGroupValidationError) Reason ¶
func (e PromGroupValidationError) Reason() string
Reason function returns reason value.
type PromRule ¶
type PromRule struct { // 规则名称 Alert string `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"` // 规则表达式 Expr string `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"` // 规则标签 Labels map[string]string `` /* 153-byte string literal not displayed */ // 注解 Annotations map[string]string `` /* 163-byte string literal not displayed */ // 持续时间 For string `protobuf:"bytes,5,opt,name=for,proto3" json:"for,omitempty"` // contains filtered or unexported fields }
Prometheus原始规则
func (*PromRule) Descriptor
deprecated
func (*PromRule) GetAnnotations ¶
func (*PromRule) ProtoMessage ¶
func (*PromRule) ProtoMessage()
func (*PromRule) ProtoReflect ¶
func (x *PromRule) ProtoReflect() protoreflect.Message
func (*PromRule) Validate ¶
Validate checks the field values on PromRule with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PromRule) ValidateAll ¶
ValidateAll checks the field values on PromRule with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PromRuleMultiError, or nil if none found.
type PromRuleGroup ¶
type PromRuleGroup struct { // 规则组名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Prometheus原始规则列表 Rules []*PromRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
Prometheus原始规则组
func (*PromRuleGroup) Descriptor
deprecated
func (*PromRuleGroup) Descriptor() ([]byte, []int)
Deprecated: Use PromRuleGroup.ProtoReflect.Descriptor instead.
func (*PromRuleGroup) GetName ¶
func (x *PromRuleGroup) GetName() string
func (*PromRuleGroup) GetRules ¶
func (x *PromRuleGroup) GetRules() []*PromRule
func (*PromRuleGroup) ProtoMessage ¶
func (*PromRuleGroup) ProtoMessage()
func (*PromRuleGroup) ProtoReflect ¶
func (x *PromRuleGroup) ProtoReflect() protoreflect.Message
func (*PromRuleGroup) Reset ¶
func (x *PromRuleGroup) Reset()
func (*PromRuleGroup) String ¶
func (x *PromRuleGroup) String() string
func (*PromRuleGroup) Validate ¶
func (m *PromRuleGroup) Validate() error
Validate checks the field values on PromRuleGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PromRuleGroup) ValidateAll ¶
func (m *PromRuleGroup) ValidateAll() error
ValidateAll checks the field values on PromRuleGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PromRuleGroupMultiError, or nil if none found.
type PromRuleGroupMultiError ¶
type PromRuleGroupMultiError []error
PromRuleGroupMultiError is an error wrapping multiple validation errors returned by PromRuleGroup.ValidateAll() if the designated constraints aren't met.
func (PromRuleGroupMultiError) AllErrors ¶
func (m PromRuleGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PromRuleGroupMultiError) Error ¶
func (m PromRuleGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PromRuleGroupValidationError ¶
type PromRuleGroupValidationError struct {
// contains filtered or unexported fields
}
PromRuleGroupValidationError is the validation error returned by PromRuleGroup.Validate if the designated constraints aren't met.
func (PromRuleGroupValidationError) Cause ¶
func (e PromRuleGroupValidationError) Cause() error
Cause function returns cause value.
func (PromRuleGroupValidationError) Error ¶
func (e PromRuleGroupValidationError) Error() string
Error satisfies the builtin error interface
func (PromRuleGroupValidationError) ErrorName ¶
func (e PromRuleGroupValidationError) ErrorName() string
ErrorName returns error name.
func (PromRuleGroupValidationError) Field ¶
func (e PromRuleGroupValidationError) Field() string
Field function returns field value.
func (PromRuleGroupValidationError) Key ¶
func (e PromRuleGroupValidationError) Key() bool
Key function returns key value.
func (PromRuleGroupValidationError) Reason ¶
func (e PromRuleGroupValidationError) Reason() string
Reason function returns reason value.
type PromRuleMultiError ¶
type PromRuleMultiError []error
PromRuleMultiError is an error wrapping multiple validation errors returned by PromRule.ValidateAll() if the designated constraints aren't met.
func (PromRuleMultiError) AllErrors ¶
func (m PromRuleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PromRuleMultiError) Error ¶
func (m PromRuleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PromRuleValidationError ¶
type PromRuleValidationError struct {
// contains filtered or unexported fields
}
PromRuleValidationError is the validation error returned by PromRule.Validate if the designated constraints aren't met.
func (PromRuleValidationError) Cause ¶
func (e PromRuleValidationError) Cause() error
Cause function returns cause value.
func (PromRuleValidationError) Error ¶
func (e PromRuleValidationError) Error() string
Error satisfies the builtin error interface
func (PromRuleValidationError) ErrorName ¶
func (e PromRuleValidationError) ErrorName() string
ErrorName returns error name.
func (PromRuleValidationError) Field ¶
func (e PromRuleValidationError) Field() string
Field function returns field value.
func (PromRuleValidationError) Key ¶
func (e PromRuleValidationError) Key() bool
Key function returns key value.
func (PromRuleValidationError) Reason ¶
func (e PromRuleValidationError) Reason() string
Reason function returns reason value.
type PromStrategySelectV1 ¶
type PromStrategySelectV1 struct { // 策略值, 对应策略的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 策略标签, 对应策略的alert Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 策略分类 Category []*DictSelectV1 `protobuf:"bytes,3,rep,name=category,proto3" json:"category,omitempty"` // 策略状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
策略选择类型
func (*PromStrategySelectV1) Descriptor
deprecated
func (*PromStrategySelectV1) Descriptor() ([]byte, []int)
Deprecated: Use PromStrategySelectV1.ProtoReflect.Descriptor instead.
func (*PromStrategySelectV1) GetCategory ¶
func (x *PromStrategySelectV1) GetCategory() []*DictSelectV1
func (*PromStrategySelectV1) GetLabel ¶
func (x *PromStrategySelectV1) GetLabel() string
func (*PromStrategySelectV1) GetStatus ¶
func (x *PromStrategySelectV1) GetStatus() int32
func (*PromStrategySelectV1) GetValue ¶
func (x *PromStrategySelectV1) GetValue() uint32
func (*PromStrategySelectV1) ProtoMessage ¶
func (*PromStrategySelectV1) ProtoMessage()
func (*PromStrategySelectV1) ProtoReflect ¶
func (x *PromStrategySelectV1) ProtoReflect() protoreflect.Message
func (*PromStrategySelectV1) Reset ¶
func (x *PromStrategySelectV1) Reset()
func (*PromStrategySelectV1) String ¶
func (x *PromStrategySelectV1) String() string
func (*PromStrategySelectV1) Validate ¶
func (m *PromStrategySelectV1) Validate() error
Validate checks the field values on PromStrategySelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PromStrategySelectV1) ValidateAll ¶
func (m *PromStrategySelectV1) ValidateAll() error
ValidateAll checks the field values on PromStrategySelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PromStrategySelectV1MultiError, or nil if none found.
type PromStrategySelectV1MultiError ¶
type PromStrategySelectV1MultiError []error
PromStrategySelectV1MultiError is an error wrapping multiple validation errors returned by PromStrategySelectV1.ValidateAll() if the designated constraints aren't met.
func (PromStrategySelectV1MultiError) AllErrors ¶
func (m PromStrategySelectV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PromStrategySelectV1MultiError) Error ¶
func (m PromStrategySelectV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PromStrategySelectV1ValidationError ¶
type PromStrategySelectV1ValidationError struct {
// contains filtered or unexported fields
}
PromStrategySelectV1ValidationError is the validation error returned by PromStrategySelectV1.Validate if the designated constraints aren't met.
func (PromStrategySelectV1ValidationError) Cause ¶
func (e PromStrategySelectV1ValidationError) Cause() error
Cause function returns cause value.
func (PromStrategySelectV1ValidationError) Error ¶
func (e PromStrategySelectV1ValidationError) Error() string
Error satisfies the builtin error interface
func (PromStrategySelectV1ValidationError) ErrorName ¶
func (e PromStrategySelectV1ValidationError) ErrorName() string
ErrorName returns error name.
func (PromStrategySelectV1ValidationError) Field ¶
func (e PromStrategySelectV1ValidationError) Field() string
Field function returns field value.
func (PromStrategySelectV1ValidationError) Key ¶
func (e PromStrategySelectV1ValidationError) Key() bool
Key function returns key value.
func (PromStrategySelectV1ValidationError) Reason ¶
func (e PromStrategySelectV1ValidationError) Reason() string
Reason function returns reason value.
type PromStrategyV1 ¶
type PromStrategyV1 struct { // 策略ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 告警名称 Alert string `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"` // 表达式 Expr string `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"` // 持续时间 Duration *Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` // 标签 Labels map[string]string `` /* 153-byte string literal not displayed */ // 注解 Annotations map[string]string `` /* 163-byte string literal not displayed */ // 策略状态 Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // 策略组ID GroupId uint32 `protobuf:"varint,8,opt,name=groupId,proto3" json:"groupId,omitempty"` // 策略组信息 GroupInfo *PromGroupSelectV1 `protobuf:"bytes,9,opt,name=groupInfo,proto3" json:"groupInfo,omitempty"` // 告警级别ID AlarmLevelId uint32 `protobuf:"varint,10,opt,name=alarmLevelId,proto3" json:"alarmLevelId,omitempty"` // 告警级别信息 AlarmLevelInfo *DictSelectV1 `protobuf:"bytes,11,opt,name=alarmLevelInfo,proto3" json:"alarmLevelInfo,omitempty"` // 告警页面ID列表 AlarmPageIds []uint32 `protobuf:"varint,12,rep,packed,name=alarmPageIds,proto3" json:"alarmPageIds,omitempty"` // 告警页面信息 AlarmPageInfo []*DictSelectV1 `protobuf:"bytes,13,rep,name=alarmPageInfo,proto3" json:"alarmPageInfo,omitempty"` // 分类ID列表 CategoryIds []uint32 `protobuf:"varint,14,rep,packed,name=categoryIds,proto3" json:"categoryIds,omitempty"` // 分类信息 CategoryInfo []*DictSelectV1 `protobuf:"bytes,15,rep,name=categoryInfo,proto3" json:"categoryInfo,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,16,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,17,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间, unix时间戳 DeletedAt int64 `protobuf:"varint,18,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // 策略备注 Remark string `protobuf:"bytes,19,opt,name=remark,proto3" json:"remark,omitempty"` // 数据源 DataSource *PrometheusServerSelectItem `protobuf:"bytes,20,opt,name=dataSource,proto3" json:"dataSource,omitempty"` DataSourceId uint32 `protobuf:"varint,21,opt,name=dataSourceId,proto3" json:"dataSourceId,omitempty"` // 最大抑制时常 MaxSuppress *Duration `protobuf:"bytes,22,opt,name=maxSuppress,proto3" json:"maxSuppress,omitempty"` // 告警通知间隔 SendInterval *Duration `protobuf:"bytes,23,opt,name=sendInterval,proto3" json:"sendInterval,omitempty"` // 是否发送告警通知 SendRecover bool `protobuf:"varint,24,opt,name=sendRecover,proto3" json:"sendRecover,omitempty"` // contains filtered or unexported fields }
策略基础类型
func (*PromStrategyV1) Descriptor
deprecated
func (*PromStrategyV1) Descriptor() ([]byte, []int)
Deprecated: Use PromStrategyV1.ProtoReflect.Descriptor instead.
func (*PromStrategyV1) GetAlarmLevelId ¶
func (x *PromStrategyV1) GetAlarmLevelId() uint32
func (*PromStrategyV1) GetAlarmLevelInfo ¶
func (x *PromStrategyV1) GetAlarmLevelInfo() *DictSelectV1
func (*PromStrategyV1) GetAlarmPageIds ¶
func (x *PromStrategyV1) GetAlarmPageIds() []uint32
func (*PromStrategyV1) GetAlarmPageInfo ¶
func (x *PromStrategyV1) GetAlarmPageInfo() []*DictSelectV1
func (*PromStrategyV1) GetAlert ¶
func (x *PromStrategyV1) GetAlert() string
func (*PromStrategyV1) GetAnnotations ¶
func (x *PromStrategyV1) GetAnnotations() map[string]string
func (*PromStrategyV1) GetCategoryIds ¶
func (x *PromStrategyV1) GetCategoryIds() []uint32
func (*PromStrategyV1) GetCategoryInfo ¶
func (x *PromStrategyV1) GetCategoryInfo() []*DictSelectV1
func (*PromStrategyV1) GetCreatedAt ¶
func (x *PromStrategyV1) GetCreatedAt() int64
func (*PromStrategyV1) GetDataSource ¶
func (x *PromStrategyV1) GetDataSource() *PrometheusServerSelectItem
func (*PromStrategyV1) GetDataSourceId ¶
func (x *PromStrategyV1) GetDataSourceId() uint32
func (*PromStrategyV1) GetDeletedAt ¶
func (x *PromStrategyV1) GetDeletedAt() int64
func (*PromStrategyV1) GetDuration ¶
func (x *PromStrategyV1) GetDuration() *Duration
func (*PromStrategyV1) GetExpr ¶
func (x *PromStrategyV1) GetExpr() string
func (*PromStrategyV1) GetGroupId ¶
func (x *PromStrategyV1) GetGroupId() uint32
func (*PromStrategyV1) GetGroupInfo ¶
func (x *PromStrategyV1) GetGroupInfo() *PromGroupSelectV1
func (*PromStrategyV1) GetId ¶
func (x *PromStrategyV1) GetId() uint32
func (*PromStrategyV1) GetLabels ¶
func (x *PromStrategyV1) GetLabels() map[string]string
func (*PromStrategyV1) GetMaxSuppress ¶
func (x *PromStrategyV1) GetMaxSuppress() *Duration
func (*PromStrategyV1) GetRemark ¶
func (x *PromStrategyV1) GetRemark() string
func (*PromStrategyV1) GetSendInterval ¶
func (x *PromStrategyV1) GetSendInterval() *Duration
func (*PromStrategyV1) GetSendRecover ¶
func (x *PromStrategyV1) GetSendRecover() bool
func (*PromStrategyV1) GetStatus ¶
func (x *PromStrategyV1) GetStatus() int32
func (*PromStrategyV1) GetUpdatedAt ¶
func (x *PromStrategyV1) GetUpdatedAt() int64
func (*PromStrategyV1) ProtoMessage ¶
func (*PromStrategyV1) ProtoMessage()
func (*PromStrategyV1) ProtoReflect ¶
func (x *PromStrategyV1) ProtoReflect() protoreflect.Message
func (*PromStrategyV1) Reset ¶
func (x *PromStrategyV1) Reset()
func (*PromStrategyV1) String ¶
func (x *PromStrategyV1) String() string
func (*PromStrategyV1) Validate ¶
func (m *PromStrategyV1) Validate() error
Validate checks the field values on PromStrategyV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PromStrategyV1) ValidateAll ¶
func (m *PromStrategyV1) ValidateAll() error
ValidateAll checks the field values on PromStrategyV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PromStrategyV1MultiError, or nil if none found.
type PromStrategyV1MultiError ¶
type PromStrategyV1MultiError []error
PromStrategyV1MultiError is an error wrapping multiple validation errors returned by PromStrategyV1.ValidateAll() if the designated constraints aren't met.
func (PromStrategyV1MultiError) AllErrors ¶
func (m PromStrategyV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PromStrategyV1MultiError) Error ¶
func (m PromStrategyV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PromStrategyV1ValidationError ¶
type PromStrategyV1ValidationError struct {
// contains filtered or unexported fields
}
PromStrategyV1ValidationError is the validation error returned by PromStrategyV1.Validate if the designated constraints aren't met.
func (PromStrategyV1ValidationError) Cause ¶
func (e PromStrategyV1ValidationError) Cause() error
Cause function returns cause value.
func (PromStrategyV1ValidationError) Error ¶
func (e PromStrategyV1ValidationError) Error() string
Error satisfies the builtin error interface
func (PromStrategyV1ValidationError) ErrorName ¶
func (e PromStrategyV1ValidationError) ErrorName() string
ErrorName returns error name.
func (PromStrategyV1ValidationError) Field ¶
func (e PromStrategyV1ValidationError) Field() string
Field function returns field value.
func (PromStrategyV1ValidationError) Key ¶
func (e PromStrategyV1ValidationError) Key() bool
Key function returns key value.
func (PromStrategyV1ValidationError) Reason ¶
func (e PromStrategyV1ValidationError) Reason() string
Reason function returns reason value.
type PrometheusServerItem ¶
type PrometheusServerItem struct { // 端点ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 采集器名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 端点 Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 端点状态 Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` // 备注 Remark string `protobuf:"bytes,5,opt,name=remark,proto3" json:"remark,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 数据源类型 DatasourceType int32 `protobuf:"varint,8,opt,name=datasourceType,proto3" json:"datasourceType,omitempty"` // contains filtered or unexported fields }
Prometheus服务端点基础类型
func (*PrometheusServerItem) Descriptor
deprecated
func (*PrometheusServerItem) Descriptor() ([]byte, []int)
Deprecated: Use PrometheusServerItem.ProtoReflect.Descriptor instead.
func (*PrometheusServerItem) GetCreatedAt ¶
func (x *PrometheusServerItem) GetCreatedAt() int64
func (*PrometheusServerItem) GetDatasourceType ¶ added in v0.0.18
func (x *PrometheusServerItem) GetDatasourceType() int32
func (*PrometheusServerItem) GetEndpoint ¶
func (x *PrometheusServerItem) GetEndpoint() string
func (*PrometheusServerItem) GetId ¶
func (x *PrometheusServerItem) GetId() uint32
func (*PrometheusServerItem) GetName ¶
func (x *PrometheusServerItem) GetName() string
func (*PrometheusServerItem) GetRemark ¶
func (x *PrometheusServerItem) GetRemark() string
func (*PrometheusServerItem) GetStatus ¶
func (x *PrometheusServerItem) GetStatus() int32
func (*PrometheusServerItem) GetUpdatedAt ¶
func (x *PrometheusServerItem) GetUpdatedAt() int64
func (*PrometheusServerItem) ProtoMessage ¶
func (*PrometheusServerItem) ProtoMessage()
func (*PrometheusServerItem) ProtoReflect ¶
func (x *PrometheusServerItem) ProtoReflect() protoreflect.Message
func (*PrometheusServerItem) Reset ¶
func (x *PrometheusServerItem) Reset()
func (*PrometheusServerItem) String ¶
func (x *PrometheusServerItem) String() string
func (*PrometheusServerItem) Validate ¶
func (m *PrometheusServerItem) Validate() error
Validate checks the field values on PrometheusServerItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrometheusServerItem) ValidateAll ¶
func (m *PrometheusServerItem) ValidateAll() error
ValidateAll checks the field values on PrometheusServerItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrometheusServerItemMultiError, or nil if none found.
type PrometheusServerItemMultiError ¶
type PrometheusServerItemMultiError []error
PrometheusServerItemMultiError is an error wrapping multiple validation errors returned by PrometheusServerItem.ValidateAll() if the designated constraints aren't met.
func (PrometheusServerItemMultiError) AllErrors ¶
func (m PrometheusServerItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrometheusServerItemMultiError) Error ¶
func (m PrometheusServerItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrometheusServerItemValidationError ¶
type PrometheusServerItemValidationError struct {
// contains filtered or unexported fields
}
PrometheusServerItemValidationError is the validation error returned by PrometheusServerItem.Validate if the designated constraints aren't met.
func (PrometheusServerItemValidationError) Cause ¶
func (e PrometheusServerItemValidationError) Cause() error
Cause function returns cause value.
func (PrometheusServerItemValidationError) Error ¶
func (e PrometheusServerItemValidationError) Error() string
Error satisfies the builtin error interface
func (PrometheusServerItemValidationError) ErrorName ¶
func (e PrometheusServerItemValidationError) ErrorName() string
ErrorName returns error name.
func (PrometheusServerItemValidationError) Field ¶
func (e PrometheusServerItemValidationError) Field() string
Field function returns field value.
func (PrometheusServerItemValidationError) Key ¶
func (e PrometheusServerItemValidationError) Key() bool
Key function returns key value.
func (PrometheusServerItemValidationError) Reason ¶
func (e PrometheusServerItemValidationError) Reason() string
Reason function returns reason value.
type PrometheusServerSelectItem ¶
type PrometheusServerSelectItem struct { // 端点值, 对应端点的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 端点标签, 对应端点的name Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 端点状态 Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // 备注 Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` // 端点 Endpoint string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // contains filtered or unexported fields }
Prometheus服务端点选择类型(用于下拉列表)
func (*PrometheusServerSelectItem) Descriptor
deprecated
func (*PrometheusServerSelectItem) Descriptor() ([]byte, []int)
Deprecated: Use PrometheusServerSelectItem.ProtoReflect.Descriptor instead.
func (*PrometheusServerSelectItem) GetEndpoint ¶
func (x *PrometheusServerSelectItem) GetEndpoint() string
func (*PrometheusServerSelectItem) GetLabel ¶
func (x *PrometheusServerSelectItem) GetLabel() string
func (*PrometheusServerSelectItem) GetRemark ¶
func (x *PrometheusServerSelectItem) GetRemark() string
func (*PrometheusServerSelectItem) GetStatus ¶
func (x *PrometheusServerSelectItem) GetStatus() int32
func (*PrometheusServerSelectItem) GetValue ¶
func (x *PrometheusServerSelectItem) GetValue() uint32
func (*PrometheusServerSelectItem) ProtoMessage ¶
func (*PrometheusServerSelectItem) ProtoMessage()
func (*PrometheusServerSelectItem) ProtoReflect ¶
func (x *PrometheusServerSelectItem) ProtoReflect() protoreflect.Message
func (*PrometheusServerSelectItem) Reset ¶
func (x *PrometheusServerSelectItem) Reset()
func (*PrometheusServerSelectItem) String ¶
func (x *PrometheusServerSelectItem) String() string
func (*PrometheusServerSelectItem) Validate ¶
func (m *PrometheusServerSelectItem) Validate() error
Validate checks the field values on PrometheusServerSelectItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrometheusServerSelectItem) ValidateAll ¶
func (m *PrometheusServerSelectItem) ValidateAll() error
ValidateAll checks the field values on PrometheusServerSelectItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrometheusServerSelectItemMultiError, or nil if none found.
type PrometheusServerSelectItemMultiError ¶
type PrometheusServerSelectItemMultiError []error
PrometheusServerSelectItemMultiError is an error wrapping multiple validation errors returned by PrometheusServerSelectItem.ValidateAll() if the designated constraints aren't met.
func (PrometheusServerSelectItemMultiError) AllErrors ¶
func (m PrometheusServerSelectItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrometheusServerSelectItemMultiError) Error ¶
func (m PrometheusServerSelectItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrometheusServerSelectItemValidationError ¶
type PrometheusServerSelectItemValidationError struct {
// contains filtered or unexported fields
}
PrometheusServerSelectItemValidationError is the validation error returned by PrometheusServerSelectItem.Validate if the designated constraints aren't met.
func (PrometheusServerSelectItemValidationError) Cause ¶
func (e PrometheusServerSelectItemValidationError) Cause() error
Cause function returns cause value.
func (PrometheusServerSelectItemValidationError) Error ¶
func (e PrometheusServerSelectItemValidationError) Error() string
Error satisfies the builtin error interface
func (PrometheusServerSelectItemValidationError) ErrorName ¶
func (e PrometheusServerSelectItemValidationError) ErrorName() string
ErrorName returns error name.
func (PrometheusServerSelectItemValidationError) Field ¶
func (e PrometheusServerSelectItemValidationError) Field() string
Field function returns field value.
func (PrometheusServerSelectItemValidationError) Key ¶
func (e PrometheusServerSelectItemValidationError) Key() bool
Key function returns key value.
func (PrometheusServerSelectItemValidationError) Reason ¶
func (e PrometheusServerSelectItemValidationError) Reason() string
Reason function returns reason value.
type RealtimeAlarmData ¶
type RealtimeAlarmData struct { // 告警ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 实例 Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // 告警内容 Note string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"` // 告警级别 LevelId uint32 `protobuf:"varint,4,opt,name=levelId,proto3" json:"levelId,omitempty"` // 告警时间, unix时间戳 EventAt int64 `protobuf:"varint,5,opt,name=eventAt,proto3" json:"eventAt,omitempty"` // 告警状态 Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 介入信息 IntervenedUser []*InterveneInfo `protobuf:"bytes,8,rep,name=intervenedUser,proto3" json:"intervenedUser,omitempty"` // 已通知的对象 BeenNotifyMembers []*BeNotifyMemberDetail `protobuf:"bytes,9,rep,name=beenNotifyMembers,proto3" json:"beenNotifyMembers,omitempty"` // 通知时间, unix时间戳 NotifiedAt int64 `protobuf:"varint,10,opt,name=notifiedAt,proto3" json:"notifiedAt,omitempty"` // 报警历史ID, 可以通过报警历史ID查询报警更加原始的信息 HistoryId uint32 `protobuf:"varint,11,opt,name=historyId,proto3" json:"historyId,omitempty"` // 升级信息 UpgradedUser *AlarmUpgradeInfo `protobuf:"bytes,12,opt,name=upgradedUser,proto3" json:"upgradedUser,omitempty"` // 抑制信息 SuppressedUser *AlarmSuppressInfo `protobuf:"bytes,13,opt,name=suppressedUser,proto3" json:"suppressedUser,omitempty"` // 所属策略ID StrategyId uint32 `protobuf:"varint,14,opt,name=strategyId,proto3" json:"strategyId,omitempty"` // 已通知的群组 NotifiedChatGroups []*ChatGroupSelectV1 `protobuf:"bytes,15,rep,name=notifiedChatGroups,proto3" json:"notifiedChatGroups,omitempty"` // 创建时间 CreatedAt int64 `protobuf:"varint,16,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间 UpdatedAt int64 `protobuf:"varint,17,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 告警等级 Level *DictSelectV1 `protobuf:"bytes,18,opt,name=level,proto3" json:"level,omitempty"` // 策略详情 Strategy *PromStrategyV1 `protobuf:"bytes,19,opt,name=strategy,proto3" json:"strategy,omitempty"` // 持续时间 Duration string `protobuf:"bytes,20,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
实时告警数据明细
func (*RealtimeAlarmData) Descriptor
deprecated
func (*RealtimeAlarmData) Descriptor() ([]byte, []int)
Deprecated: Use RealtimeAlarmData.ProtoReflect.Descriptor instead.
func (*RealtimeAlarmData) GetBeenNotifyMembers ¶
func (x *RealtimeAlarmData) GetBeenNotifyMembers() []*BeNotifyMemberDetail
func (*RealtimeAlarmData) GetCreatedAt ¶
func (x *RealtimeAlarmData) GetCreatedAt() int64
func (*RealtimeAlarmData) GetDuration ¶
func (x *RealtimeAlarmData) GetDuration() string
func (*RealtimeAlarmData) GetEventAt ¶
func (x *RealtimeAlarmData) GetEventAt() int64
func (*RealtimeAlarmData) GetHistoryId ¶
func (x *RealtimeAlarmData) GetHistoryId() uint32
func (*RealtimeAlarmData) GetId ¶
func (x *RealtimeAlarmData) GetId() uint32
func (*RealtimeAlarmData) GetInstance ¶
func (x *RealtimeAlarmData) GetInstance() string
func (*RealtimeAlarmData) GetIntervenedUser ¶
func (x *RealtimeAlarmData) GetIntervenedUser() []*InterveneInfo
func (*RealtimeAlarmData) GetLevel ¶
func (x *RealtimeAlarmData) GetLevel() *DictSelectV1
func (*RealtimeAlarmData) GetLevelId ¶
func (x *RealtimeAlarmData) GetLevelId() uint32
func (*RealtimeAlarmData) GetNote ¶
func (x *RealtimeAlarmData) GetNote() string
func (*RealtimeAlarmData) GetNotifiedAt ¶
func (x *RealtimeAlarmData) GetNotifiedAt() int64
func (*RealtimeAlarmData) GetNotifiedChatGroups ¶
func (x *RealtimeAlarmData) GetNotifiedChatGroups() []*ChatGroupSelectV1
func (*RealtimeAlarmData) GetStatus ¶
func (x *RealtimeAlarmData) GetStatus() int32
func (*RealtimeAlarmData) GetStrategy ¶
func (x *RealtimeAlarmData) GetStrategy() *PromStrategyV1
func (*RealtimeAlarmData) GetStrategyId ¶
func (x *RealtimeAlarmData) GetStrategyId() uint32
func (*RealtimeAlarmData) GetSuppressedUser ¶
func (x *RealtimeAlarmData) GetSuppressedUser() *AlarmSuppressInfo
func (*RealtimeAlarmData) GetUpdatedAt ¶
func (x *RealtimeAlarmData) GetUpdatedAt() int64
func (*RealtimeAlarmData) GetUpgradedUser ¶
func (x *RealtimeAlarmData) GetUpgradedUser() *AlarmUpgradeInfo
func (*RealtimeAlarmData) ProtoMessage ¶
func (*RealtimeAlarmData) ProtoMessage()
func (*RealtimeAlarmData) ProtoReflect ¶
func (x *RealtimeAlarmData) ProtoReflect() protoreflect.Message
func (*RealtimeAlarmData) Reset ¶
func (x *RealtimeAlarmData) Reset()
func (*RealtimeAlarmData) String ¶
func (x *RealtimeAlarmData) String() string
func (*RealtimeAlarmData) Validate ¶
func (m *RealtimeAlarmData) Validate() error
Validate checks the field values on RealtimeAlarmData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RealtimeAlarmData) ValidateAll ¶
func (m *RealtimeAlarmData) ValidateAll() error
ValidateAll checks the field values on RealtimeAlarmData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RealtimeAlarmDataMultiError, or nil if none found.
type RealtimeAlarmDataMultiError ¶
type RealtimeAlarmDataMultiError []error
RealtimeAlarmDataMultiError is an error wrapping multiple validation errors returned by RealtimeAlarmData.ValidateAll() if the designated constraints aren't met.
func (RealtimeAlarmDataMultiError) AllErrors ¶
func (m RealtimeAlarmDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RealtimeAlarmDataMultiError) Error ¶
func (m RealtimeAlarmDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RealtimeAlarmDataValidationError ¶
type RealtimeAlarmDataValidationError struct {
// contains filtered or unexported fields
}
RealtimeAlarmDataValidationError is the validation error returned by RealtimeAlarmData.Validate if the designated constraints aren't met.
func (RealtimeAlarmDataValidationError) Cause ¶
func (e RealtimeAlarmDataValidationError) Cause() error
Cause function returns cause value.
func (RealtimeAlarmDataValidationError) Error ¶
func (e RealtimeAlarmDataValidationError) Error() string
Error satisfies the builtin error interface
func (RealtimeAlarmDataValidationError) ErrorName ¶
func (e RealtimeAlarmDataValidationError) ErrorName() string
ErrorName returns error name.
func (RealtimeAlarmDataValidationError) Field ¶
func (e RealtimeAlarmDataValidationError) Field() string
Field function returns field value.
func (RealtimeAlarmDataValidationError) Key ¶
func (e RealtimeAlarmDataValidationError) Key() bool
Key function returns key value.
func (RealtimeAlarmDataValidationError) Reason ¶
func (e RealtimeAlarmDataValidationError) Reason() string
Reason function returns reason value.
type Response ¶
type Response struct { // 状态码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 返回信息 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
返回参数
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) Validate ¶
Validate checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Response) ValidateAll ¶
ValidateAll checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResponseMultiError, or nil if none found.
type ResponseMultiError ¶
type ResponseMultiError []error
ResponseMultiError is an error wrapping multiple validation errors returned by Response.ValidateAll() if the designated constraints aren't met.
func (ResponseMultiError) AllErrors ¶
func (m ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseMultiError) Error ¶
func (m ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseValidationError ¶
type ResponseValidationError struct {
// contains filtered or unexported fields
}
ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.
func (ResponseValidationError) Cause ¶
func (e ResponseValidationError) Cause() error
Cause function returns cause value.
func (ResponseValidationError) Error ¶
func (e ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseValidationError) ErrorName ¶
func (e ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseValidationError) Field ¶
func (e ResponseValidationError) Field() string
Field function returns field value.
func (ResponseValidationError) Key ¶
func (e ResponseValidationError) Key() bool
Key function returns key value.
func (ResponseValidationError) Reason ¶
func (e ResponseValidationError) Reason() string
Reason function returns reason value.
type RoleSelectV1 ¶
type RoleSelectV1 struct { // 角色值, 对应角色的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 角色标签, 对应角色的name Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 角色状态 Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // 备注 Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` // contains filtered or unexported fields }
系统角色下拉信息
func (*RoleSelectV1) Descriptor
deprecated
func (*RoleSelectV1) Descriptor() ([]byte, []int)
Deprecated: Use RoleSelectV1.ProtoReflect.Descriptor instead.
func (*RoleSelectV1) GetLabel ¶
func (x *RoleSelectV1) GetLabel() string
func (*RoleSelectV1) GetRemark ¶
func (x *RoleSelectV1) GetRemark() string
func (*RoleSelectV1) GetStatus ¶
func (x *RoleSelectV1) GetStatus() int32
func (*RoleSelectV1) GetValue ¶
func (x *RoleSelectV1) GetValue() uint32
func (*RoleSelectV1) ProtoMessage ¶
func (*RoleSelectV1) ProtoMessage()
func (*RoleSelectV1) ProtoReflect ¶
func (x *RoleSelectV1) ProtoReflect() protoreflect.Message
func (*RoleSelectV1) Reset ¶
func (x *RoleSelectV1) Reset()
func (*RoleSelectV1) String ¶
func (x *RoleSelectV1) String() string
func (*RoleSelectV1) Validate ¶
func (m *RoleSelectV1) Validate() error
Validate checks the field values on RoleSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RoleSelectV1) ValidateAll ¶
func (m *RoleSelectV1) ValidateAll() error
ValidateAll checks the field values on RoleSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleSelectV1MultiError, or nil if none found.
type RoleSelectV1MultiError ¶
type RoleSelectV1MultiError []error
RoleSelectV1MultiError is an error wrapping multiple validation errors returned by RoleSelectV1.ValidateAll() if the designated constraints aren't met.
func (RoleSelectV1MultiError) AllErrors ¶
func (m RoleSelectV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleSelectV1MultiError) Error ¶
func (m RoleSelectV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleSelectV1ValidationError ¶
type RoleSelectV1ValidationError struct {
// contains filtered or unexported fields
}
RoleSelectV1ValidationError is the validation error returned by RoleSelectV1.Validate if the designated constraints aren't met.
func (RoleSelectV1ValidationError) Cause ¶
func (e RoleSelectV1ValidationError) Cause() error
Cause function returns cause value.
func (RoleSelectV1ValidationError) Error ¶
func (e RoleSelectV1ValidationError) Error() string
Error satisfies the builtin error interface
func (RoleSelectV1ValidationError) ErrorName ¶
func (e RoleSelectV1ValidationError) ErrorName() string
ErrorName returns error name.
func (RoleSelectV1ValidationError) Field ¶
func (e RoleSelectV1ValidationError) Field() string
Field function returns field value.
func (RoleSelectV1ValidationError) Key ¶
func (e RoleSelectV1ValidationError) Key() bool
Key function returns key value.
func (RoleSelectV1ValidationError) Reason ¶
func (e RoleSelectV1ValidationError) Reason() string
Reason function returns reason value.
type RoleV1 ¶
type RoleV1 struct { // 角色ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 角色名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 角色状态 Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // 备注 Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,6,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间, unix时间戳 DeletedAt int64 `protobuf:"varint,7,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // 用户列表 Users []*UserSelectV1 `protobuf:"bytes,8,rep,name=users,proto3" json:"users,omitempty"` // 权限列表 Apis []*ApiSelectV1 `protobuf:"bytes,9,rep,name=apis,proto3" json:"apis,omitempty"` // contains filtered or unexported fields }
系统角色信息
func (*RoleV1) Descriptor
deprecated
func (*RoleV1) GetApis ¶
func (x *RoleV1) GetApis() []*ApiSelectV1
func (*RoleV1) GetCreatedAt ¶
func (*RoleV1) GetDeletedAt ¶
func (*RoleV1) GetUpdatedAt ¶
func (*RoleV1) GetUsers ¶
func (x *RoleV1) GetUsers() []*UserSelectV1
func (*RoleV1) ProtoMessage ¶
func (*RoleV1) ProtoMessage()
func (*RoleV1) ProtoReflect ¶
func (x *RoleV1) ProtoReflect() protoreflect.Message
func (*RoleV1) Validate ¶
Validate checks the field values on RoleV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RoleV1) ValidateAll ¶
ValidateAll checks the field values on RoleV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleV1MultiError, or nil if none found.
type RoleV1MultiError ¶
type RoleV1MultiError []error
RoleV1MultiError is an error wrapping multiple validation errors returned by RoleV1.ValidateAll() if the designated constraints aren't met.
func (RoleV1MultiError) AllErrors ¶
func (m RoleV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleV1MultiError) Error ¶
func (m RoleV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleV1ValidationError ¶
type RoleV1ValidationError struct {
// contains filtered or unexported fields
}
RoleV1ValidationError is the validation error returned by RoleV1.Validate if the designated constraints aren't met.
func (RoleV1ValidationError) Cause ¶
func (e RoleV1ValidationError) Cause() error
Cause function returns cause value.
func (RoleV1ValidationError) Error ¶
func (e RoleV1ValidationError) Error() string
Error satisfies the builtin error interface
func (RoleV1ValidationError) ErrorName ¶
func (e RoleV1ValidationError) ErrorName() string
ErrorName returns error name.
func (RoleV1ValidationError) Field ¶
func (e RoleV1ValidationError) Field() string
Field function returns field value.
func (RoleV1ValidationError) Key ¶
func (e RoleV1ValidationError) Key() bool
Key function returns key value.
func (RoleV1ValidationError) Reason ¶
func (e RoleV1ValidationError) Reason() string
Reason function returns reason value.
type Status ¶
type Status int32
系统状态, 用于表达数据是否可用
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type StrategyDatasource ¶ added in v0.0.16
type StrategyDatasource struct { // 数据源 Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 基础认证字符串 BasicAuth string `protobuf:"bytes,2,opt,name=basicAuth,proto3" json:"basicAuth,omitempty"` // 数据源类型 DatasourceType int32 `protobuf:"varint,3,opt,name=datasourceType,proto3" json:"datasourceType,omitempty"` // contains filtered or unexported fields }
func (*StrategyDatasource) Descriptor
deprecated
added in
v0.0.16
func (*StrategyDatasource) Descriptor() ([]byte, []int)
Deprecated: Use StrategyDatasource.ProtoReflect.Descriptor instead.
func (*StrategyDatasource) GetBasicAuth ¶ added in v0.0.16
func (x *StrategyDatasource) GetBasicAuth() string
func (*StrategyDatasource) GetDatasourceType ¶ added in v0.0.16
func (x *StrategyDatasource) GetDatasourceType() int32
func (*StrategyDatasource) GetEndpoint ¶ added in v0.0.16
func (x *StrategyDatasource) GetEndpoint() string
func (*StrategyDatasource) ProtoMessage ¶ added in v0.0.16
func (*StrategyDatasource) ProtoMessage()
func (*StrategyDatasource) ProtoReflect ¶ added in v0.0.16
func (x *StrategyDatasource) ProtoReflect() protoreflect.Message
func (*StrategyDatasource) Reset ¶ added in v0.0.16
func (x *StrategyDatasource) Reset()
func (*StrategyDatasource) String ¶ added in v0.0.16
func (x *StrategyDatasource) String() string
func (*StrategyDatasource) Validate ¶ added in v0.0.16
func (m *StrategyDatasource) Validate() error
Validate checks the field values on StrategyDatasource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StrategyDatasource) ValidateAll ¶ added in v0.0.16
func (m *StrategyDatasource) ValidateAll() error
ValidateAll checks the field values on StrategyDatasource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StrategyDatasourceMultiError, or nil if none found.
type StrategyDatasourceMultiError ¶ added in v0.0.16
type StrategyDatasourceMultiError []error
StrategyDatasourceMultiError is an error wrapping multiple validation errors returned by StrategyDatasource.ValidateAll() if the designated constraints aren't met.
func (StrategyDatasourceMultiError) AllErrors ¶ added in v0.0.16
func (m StrategyDatasourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StrategyDatasourceMultiError) Error ¶ added in v0.0.16
func (m StrategyDatasourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StrategyDatasourceValidationError ¶ added in v0.0.16
type StrategyDatasourceValidationError struct {
// contains filtered or unexported fields
}
StrategyDatasourceValidationError is the validation error returned by StrategyDatasource.Validate if the designated constraints aren't met.
func (StrategyDatasourceValidationError) Cause ¶ added in v0.0.16
func (e StrategyDatasourceValidationError) Cause() error
Cause function returns cause value.
func (StrategyDatasourceValidationError) Error ¶ added in v0.0.16
func (e StrategyDatasourceValidationError) Error() string
Error satisfies the builtin error interface
func (StrategyDatasourceValidationError) ErrorName ¶ added in v0.0.16
func (e StrategyDatasourceValidationError) ErrorName() string
ErrorName returns error name.
func (StrategyDatasourceValidationError) Field ¶ added in v0.0.16
func (e StrategyDatasourceValidationError) Field() string
Field function returns field value.
func (StrategyDatasourceValidationError) Key ¶ added in v0.0.16
func (e StrategyDatasourceValidationError) Key() bool
Key function returns key value.
func (StrategyDatasourceValidationError) Reason ¶ added in v0.0.16
func (e StrategyDatasourceValidationError) Reason() string
Reason function returns reason value.
type StrategySimple ¶
type StrategySimple struct { // 策略ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 告警名称 Alert string `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"` // 表达式 Expr string `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"` // 持续时间 Duration *Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` // 标签 Labels map[string]string `` /* 153-byte string literal not displayed */ // 注解 Annotations map[string]string `` /* 163-byte string literal not displayed */ // 策略组ID GroupId uint32 `protobuf:"varint,7,opt,name=groupId,proto3" json:"groupId,omitempty"` // 告警级别ID AlarmLevelId uint32 `protobuf:"varint,8,opt,name=alarmLevelId,proto3" json:"alarmLevelId,omitempty"` // 数据源 Endpoint string `protobuf:"bytes,9,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 基础认证字符串 BasicAuth string `protobuf:"bytes,10,opt,name=basicAuth,proto3" json:"basicAuth,omitempty"` // contains filtered or unexported fields }
func (*StrategySimple) Descriptor
deprecated
func (*StrategySimple) Descriptor() ([]byte, []int)
Deprecated: Use StrategySimple.ProtoReflect.Descriptor instead.
func (*StrategySimple) GetAlarmLevelId ¶
func (x *StrategySimple) GetAlarmLevelId() uint32
func (*StrategySimple) GetAlert ¶
func (x *StrategySimple) GetAlert() string
func (*StrategySimple) GetAnnotations ¶
func (x *StrategySimple) GetAnnotations() map[string]string
func (*StrategySimple) GetBasicAuth ¶
func (x *StrategySimple) GetBasicAuth() string
func (*StrategySimple) GetDuration ¶
func (x *StrategySimple) GetDuration() *Duration
func (*StrategySimple) GetEndpoint ¶
func (x *StrategySimple) GetEndpoint() string
func (*StrategySimple) GetExpr ¶
func (x *StrategySimple) GetExpr() string
func (*StrategySimple) GetGroupId ¶
func (x *StrategySimple) GetGroupId() uint32
func (*StrategySimple) GetId ¶
func (x *StrategySimple) GetId() uint32
func (*StrategySimple) GetLabels ¶
func (x *StrategySimple) GetLabels() map[string]string
func (*StrategySimple) ProtoMessage ¶
func (*StrategySimple) ProtoMessage()
func (*StrategySimple) ProtoReflect ¶
func (x *StrategySimple) ProtoReflect() protoreflect.Message
func (*StrategySimple) Reset ¶
func (x *StrategySimple) Reset()
func (*StrategySimple) String ¶
func (x *StrategySimple) String() string
func (*StrategySimple) Validate ¶
func (m *StrategySimple) Validate() error
Validate checks the field values on StrategySimple with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StrategySimple) ValidateAll ¶
func (m *StrategySimple) ValidateAll() error
ValidateAll checks the field values on StrategySimple with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StrategySimpleMultiError, or nil if none found.
type StrategySimpleMultiError ¶
type StrategySimpleMultiError []error
StrategySimpleMultiError is an error wrapping multiple validation errors returned by StrategySimple.ValidateAll() if the designated constraints aren't met.
func (StrategySimpleMultiError) AllErrors ¶
func (m StrategySimpleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StrategySimpleMultiError) Error ¶
func (m StrategySimpleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StrategySimpleValidationError ¶
type StrategySimpleValidationError struct {
// contains filtered or unexported fields
}
StrategySimpleValidationError is the validation error returned by StrategySimple.Validate if the designated constraints aren't met.
func (StrategySimpleValidationError) Cause ¶
func (e StrategySimpleValidationError) Cause() error
Cause function returns cause value.
func (StrategySimpleValidationError) Error ¶
func (e StrategySimpleValidationError) Error() string
Error satisfies the builtin error interface
func (StrategySimpleValidationError) ErrorName ¶
func (e StrategySimpleValidationError) ErrorName() string
ErrorName returns error name.
func (StrategySimpleValidationError) Field ¶
func (e StrategySimpleValidationError) Field() string
Field function returns field value.
func (StrategySimpleValidationError) Key ¶
func (e StrategySimpleValidationError) Key() bool
Key function returns key value.
func (StrategySimpleValidationError) Reason ¶
func (e StrategySimpleValidationError) Reason() string
Reason function returns reason value.
type SysLogAction ¶
type SysLogAction int32
系统日志操作类型
const ( // 未知操作类型 SysLogAction_SysLogActionUnknown SysLogAction = 0 // 创建 SysLogAction_SysLogActionCreate SysLogAction = 1 // 更新 SysLogAction_SysLogActionUpdate SysLogAction = 2 // 删除 SysLogAction_SysLogActionDelete SysLogAction = 3 // 查询 SysLogAction_SysLogActionQuery SysLogAction = 4 // 导入 SysLogAction_SysLogActionImport SysLogAction = 5 // 导出 SysLogAction_SysLogActionExport SysLogAction = 6 )
func (SysLogAction) Descriptor ¶
func (SysLogAction) Descriptor() protoreflect.EnumDescriptor
func (SysLogAction) Enum ¶
func (x SysLogAction) Enum() *SysLogAction
func (SysLogAction) EnumDescriptor
deprecated
func (SysLogAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use SysLogAction.Descriptor instead.
func (SysLogAction) Number ¶
func (x SysLogAction) Number() protoreflect.EnumNumber
func (SysLogAction) String ¶
func (x SysLogAction) String() string
func (SysLogAction) Type ¶
func (SysLogAction) Type() protoreflect.EnumType
type SysLogV1Item ¶
type SysLogV1Item struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` ModuleId uint32 `protobuf:"varint,3,opt,name=moduleId,proto3" json:"moduleId,omitempty"` ModuleName ModuleType `protobuf:"varint,4,opt,name=moduleName,proto3,enum=api.ModuleType" json:"moduleName,omitempty"` CreatedAt int64 `protobuf:"varint,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` User *UserSelectV1 `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"` Action int32 `protobuf:"varint,7,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
SysLog 日志信息
func (*SysLogV1Item) Descriptor
deprecated
func (*SysLogV1Item) Descriptor() ([]byte, []int)
Deprecated: Use SysLogV1Item.ProtoReflect.Descriptor instead.
func (*SysLogV1Item) GetAction ¶
func (x *SysLogV1Item) GetAction() int32
func (*SysLogV1Item) GetContent ¶
func (x *SysLogV1Item) GetContent() string
func (*SysLogV1Item) GetCreatedAt ¶
func (x *SysLogV1Item) GetCreatedAt() int64
func (*SysLogV1Item) GetModuleId ¶
func (x *SysLogV1Item) GetModuleId() uint32
func (*SysLogV1Item) GetModuleName ¶
func (x *SysLogV1Item) GetModuleName() ModuleType
func (*SysLogV1Item) GetTitle ¶
func (x *SysLogV1Item) GetTitle() string
func (*SysLogV1Item) GetUser ¶
func (x *SysLogV1Item) GetUser() *UserSelectV1
func (*SysLogV1Item) ProtoMessage ¶
func (*SysLogV1Item) ProtoMessage()
func (*SysLogV1Item) ProtoReflect ¶
func (x *SysLogV1Item) ProtoReflect() protoreflect.Message
func (*SysLogV1Item) Reset ¶
func (x *SysLogV1Item) Reset()
func (*SysLogV1Item) String ¶
func (x *SysLogV1Item) String() string
func (*SysLogV1Item) Validate ¶
func (m *SysLogV1Item) Validate() error
Validate checks the field values on SysLogV1Item with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SysLogV1Item) ValidateAll ¶
func (m *SysLogV1Item) ValidateAll() error
ValidateAll checks the field values on SysLogV1Item with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SysLogV1ItemMultiError, or nil if none found.
type SysLogV1ItemMultiError ¶
type SysLogV1ItemMultiError []error
SysLogV1ItemMultiError is an error wrapping multiple validation errors returned by SysLogV1Item.ValidateAll() if the designated constraints aren't met.
func (SysLogV1ItemMultiError) AllErrors ¶
func (m SysLogV1ItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SysLogV1ItemMultiError) Error ¶
func (m SysLogV1ItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SysLogV1ItemValidationError ¶
type SysLogV1ItemValidationError struct {
// contains filtered or unexported fields
}
SysLogV1ItemValidationError is the validation error returned by SysLogV1Item.Validate if the designated constraints aren't met.
func (SysLogV1ItemValidationError) Cause ¶
func (e SysLogV1ItemValidationError) Cause() error
Cause function returns cause value.
func (SysLogV1ItemValidationError) Error ¶
func (e SysLogV1ItemValidationError) Error() string
Error satisfies the builtin error interface
func (SysLogV1ItemValidationError) ErrorName ¶
func (e SysLogV1ItemValidationError) ErrorName() string
ErrorName returns error name.
func (SysLogV1ItemValidationError) Field ¶
func (e SysLogV1ItemValidationError) Field() string
Field function returns field value.
func (SysLogV1ItemValidationError) Key ¶
func (e SysLogV1ItemValidationError) Key() bool
Key function returns key value.
func (SysLogV1ItemValidationError) Reason ¶
func (e SysLogV1ItemValidationError) Reason() string
Reason function returns reason value.
type UserSelectV1 ¶
type UserSelectV1 struct { // 用户值, 对应用户的id Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // 用户标签, 对应用户的username Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // 用户状态 Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // 备注 // // string remark = 4; // // 头像 Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` // 昵称 Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname,omitempty"` // 性别 Gender int32 `protobuf:"varint,7,opt,name=gender,proto3" json:"gender,omitempty"` // contains filtered or unexported fields }
系统用户下拉信息
func (*UserSelectV1) Descriptor
deprecated
func (*UserSelectV1) Descriptor() ([]byte, []int)
Deprecated: Use UserSelectV1.ProtoReflect.Descriptor instead.
func (*UserSelectV1) GetAvatar ¶
func (x *UserSelectV1) GetAvatar() string
func (*UserSelectV1) GetGender ¶
func (x *UserSelectV1) GetGender() int32
func (*UserSelectV1) GetLabel ¶
func (x *UserSelectV1) GetLabel() string
func (*UserSelectV1) GetNickname ¶
func (x *UserSelectV1) GetNickname() string
func (*UserSelectV1) GetStatus ¶
func (x *UserSelectV1) GetStatus() int32
func (*UserSelectV1) GetValue ¶
func (x *UserSelectV1) GetValue() uint32
func (*UserSelectV1) ProtoMessage ¶
func (*UserSelectV1) ProtoMessage()
func (*UserSelectV1) ProtoReflect ¶
func (x *UserSelectV1) ProtoReflect() protoreflect.Message
func (*UserSelectV1) Reset ¶
func (x *UserSelectV1) Reset()
func (*UserSelectV1) String ¶
func (x *UserSelectV1) String() string
func (*UserSelectV1) Validate ¶
func (m *UserSelectV1) Validate() error
Validate checks the field values on UserSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserSelectV1) ValidateAll ¶
func (m *UserSelectV1) ValidateAll() error
ValidateAll checks the field values on UserSelectV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserSelectV1MultiError, or nil if none found.
type UserSelectV1MultiError ¶
type UserSelectV1MultiError []error
UserSelectV1MultiError is an error wrapping multiple validation errors returned by UserSelectV1.ValidateAll() if the designated constraints aren't met.
func (UserSelectV1MultiError) AllErrors ¶
func (m UserSelectV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserSelectV1MultiError) Error ¶
func (m UserSelectV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserSelectV1ValidationError ¶
type UserSelectV1ValidationError struct {
// contains filtered or unexported fields
}
UserSelectV1ValidationError is the validation error returned by UserSelectV1.Validate if the designated constraints aren't met.
func (UserSelectV1ValidationError) Cause ¶
func (e UserSelectV1ValidationError) Cause() error
Cause function returns cause value.
func (UserSelectV1ValidationError) Error ¶
func (e UserSelectV1ValidationError) Error() string
Error satisfies the builtin error interface
func (UserSelectV1ValidationError) ErrorName ¶
func (e UserSelectV1ValidationError) ErrorName() string
ErrorName returns error name.
func (UserSelectV1ValidationError) Field ¶
func (e UserSelectV1ValidationError) Field() string
Field function returns field value.
func (UserSelectV1ValidationError) Key ¶
func (e UserSelectV1ValidationError) Key() bool
Key function returns key value.
func (UserSelectV1ValidationError) Reason ¶
func (e UserSelectV1ValidationError) Reason() string
Reason function returns reason value.
type UserV1 ¶
type UserV1 struct { // 用户ID Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 密码 // // string password = 3; // // 邮箱 Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // 手机号 Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` // 用户状态 Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 备注 Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` // 头像 Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` // 创建时间, unix时间戳 CreatedAt int64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // 更新时间, unix时间戳 UpdatedAt int64 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // 删除时间, unix时间戳 DeletedAt int64 `protobuf:"varint,11,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"` // 角色列表 Roles []*RoleSelectV1 `protobuf:"bytes,12,rep,name=roles,proto3" json:"roles,omitempty"` // 昵称 Nickname string `protobuf:"bytes,13,opt,name=nickname,proto3" json:"nickname,omitempty"` // 性别 Gender int32 `protobuf:"varint,14,opt,name=gender,proto3" json:"gender,omitempty"` // contains filtered or unexported fields }
系统用户信息
func (*UserV1) Descriptor
deprecated
func (*UserV1) GetCreatedAt ¶
func (*UserV1) GetDeletedAt ¶
func (*UserV1) GetNickname ¶
func (*UserV1) GetRoles ¶
func (x *UserV1) GetRoles() []*RoleSelectV1
func (*UserV1) GetUpdatedAt ¶
func (*UserV1) GetUsername ¶
func (*UserV1) ProtoMessage ¶
func (*UserV1) ProtoMessage()
func (*UserV1) ProtoReflect ¶
func (x *UserV1) ProtoReflect() protoreflect.Message
func (*UserV1) Validate ¶
Validate checks the field values on UserV1 with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserV1) ValidateAll ¶
ValidateAll checks the field values on UserV1 with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserV1MultiError, or nil if none found.
type UserV1MultiError ¶
type UserV1MultiError []error
UserV1MultiError is an error wrapping multiple validation errors returned by UserV1.ValidateAll() if the designated constraints aren't met.
func (UserV1MultiError) AllErrors ¶
func (m UserV1MultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserV1MultiError) Error ¶
func (m UserV1MultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserV1ValidationError ¶
type UserV1ValidationError struct {
// contains filtered or unexported fields
}
UserV1ValidationError is the validation error returned by UserV1.Validate if the designated constraints aren't met.
func (UserV1ValidationError) Cause ¶
func (e UserV1ValidationError) Cause() error
Cause function returns cause value.
func (UserV1ValidationError) Error ¶
func (e UserV1ValidationError) Error() string
Error satisfies the builtin error interface
func (UserV1ValidationError) ErrorName ¶
func (e UserV1ValidationError) ErrorName() string
ErrorName returns error name.
func (UserV1ValidationError) Field ¶
func (e UserV1ValidationError) Field() string
Field function returns field value.
func (UserV1ValidationError) Key ¶
func (e UserV1ValidationError) Key() bool
Key function returns key value.
func (UserV1ValidationError) Reason ¶
func (e UserV1ValidationError) Reason() string
Reason function returns reason value.