v1

package
v0.0.0-...-80f207f Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 17 Imported by: 0

README

Mute Rule

Mute rule is a feature that allows you to temporarily stop receiving notifications for a specific alert. You can use mute rules to temporarily silence alerts that are not relevant to you, or to silence alerts that you are already aware of.

Guance Cloud supports the management of all mute rules in the current workspace. It supports muting different monitors, smart inspections, self-built inspections, SLOs, and alert policies, so that the muted objects do not send any alert notifications to any alert notification objects during the mute time.

Relationships:

graph LR
    A[Mute Rule] --> B[Alert Policy]

Documentation

Overview

Package v1

Mute Rule

Mute rule is a feature that allows you to temporarily stop receiving notifications for a specific alert. You can use mute rules to temporarily silence alerts that are not relevant to you, or to silence alerts that you are already aware of.

Guance Cloud supports the management of all mute rules in the current workspace. It supports muting different monitors, smart inspections, self-built inspections, SLOs, and alert policies, so that the muted objects do not send any alert notifications to any alert notification objects during the mute time.

Relationships:

```mermaid graph LR

A[Mute Rule] --> B[Alert Policy]

```

Code generated by Iacker. DO NOT EDIT IT.

Index

Constants

View Source
const (
	// MuteRangeTypeMonitor is the value of Monitor
	MuteRangeTypeMonitor = "monitor"
	// MuteRangeTypeAlertPolicy is the value of Alert Policy
	MuteRangeTypeAlertPolicy = "alert_policy"
)
View Source
const (
	// NotifyTargetTypeMemberGroup is the value of MemberGroup
	NotifyTargetTypeMemberGroup = "member_group"
	// NotifyTargetTypeNotification is the value of Notification
	NotifyTargetTypeNotification = "notification"
)
View Source
const ResourceType = "Mute"

ResourceType is the unique type name of Mute

Variables

View Source
var File_pkg_resources_mute_v1_mute_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Mute

type Mute struct {

	// Mute Ranges
	MuteRanges []*MuteRange `protobuf:"bytes,1,rep,name=mute_ranges,json=muteRanges,proto3" json:"mute_ranges,omitempty"`
	// Notify Options
	Notify *NotifyOptions `protobuf:"bytes,2,opt,name=notify,proto3" json:"notify,omitempty"`
	// Notify targets
	NotifyTargets []*NotifyTarget `protobuf:"bytes,3,rep,name=notify_targets,json=notifyTargets,proto3" json:"notify_targets,omitempty"`
	// Onetime
	Onetime *OnetimeOptions `protobuf:"bytes,4,opt,name=onetime,proto3" json:"onetime,omitempty"`
	// Repeat
	Repeat *RepeatOptions `protobuf:"bytes,5,opt,name=repeat,proto3" json:"repeat,omitempty"`
	// Tags
	MuteTags []*Tag `protobuf:"bytes,6,rep,name=mute_tags,json=muteTags,proto3" json:"mute_tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Mute) Descriptor deprecated

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

Deprecated: Use Mute.ProtoReflect.Descriptor instead.

func (*Mute) GetMuteRanges

func (x *Mute) GetMuteRanges() []*MuteRange

func (*Mute) GetMuteTags

func (x *Mute) GetMuteTags() []*Tag

func (*Mute) GetNotify

func (x *Mute) GetNotify() *NotifyOptions

func (*Mute) GetNotifyTargets

func (x *Mute) GetNotifyTargets() []*NotifyTarget

func (*Mute) GetOnetime

func (x *Mute) GetOnetime() *OnetimeOptions

func (*Mute) GetRepeat

func (x *Mute) GetRepeat() *RepeatOptions

func (*Mute) ProtoMessage

func (*Mute) ProtoMessage()

func (*Mute) ProtoReflect

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

func (*Mute) Reset

func (x *Mute) Reset()

func (*Mute) String

func (x *Mute) String() string

func (*Mute) Validate

func (m *Mute) Validate() error

Validate checks the field values on Mute 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 (*Mute) ValidateAll

func (m *Mute) ValidateAll() error

ValidateAll checks the field values on Mute 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 MuteMultiError, or nil if none found.

type MuteMultiError

type MuteMultiError []error

MuteMultiError is an error wrapping multiple validation errors returned by Mute.ValidateAll() if the designated constraints aren't met.

func (MuteMultiError) AllErrors

func (m MuteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MuteMultiError) Error

func (m MuteMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MuteRange

type MuteRange struct {

	// Mute Range Type
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Monitor configuration
	Monitor *MuteRangeMonitor `protobuf:"bytes,2,opt,name=monitor,proto3" json:"monitor,omitempty"`
	// Alert Policy configuration
	AlertPolicy *MuteRangeAlertPolicy `protobuf:"bytes,3,opt,name=alert_policy,json=alertPolicy,proto3" json:"alert_policy,omitempty"`
	// contains filtered or unexported fields
}

func (*MuteRange) Descriptor deprecated

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

Deprecated: Use MuteRange.ProtoReflect.Descriptor instead.

func (*MuteRange) GetAlertPolicy

func (x *MuteRange) GetAlertPolicy() *MuteRangeAlertPolicy

func (*MuteRange) GetMonitor

func (x *MuteRange) GetMonitor() *MuteRangeMonitor

func (*MuteRange) GetType

func (x *MuteRange) GetType() string

func (*MuteRange) ProtoMessage

func (*MuteRange) ProtoMessage()

func (*MuteRange) ProtoReflect

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

func (*MuteRange) Reset

func (x *MuteRange) Reset()

func (*MuteRange) String

func (x *MuteRange) String() string

func (*MuteRange) Validate

func (m *MuteRange) Validate() error

Validate checks the field values on MuteRange 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 (*MuteRange) ValidateAll

func (m *MuteRange) ValidateAll() error

ValidateAll checks the field values on MuteRange 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 MuteRangeMultiError, or nil if none found.

type MuteRangeAlertPolicy

type MuteRangeAlertPolicy struct {

	// Alert Policy ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*MuteRangeAlertPolicy) Descriptor deprecated

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

Deprecated: Use MuteRangeAlertPolicy.ProtoReflect.Descriptor instead.

func (*MuteRangeAlertPolicy) GetId

func (x *MuteRangeAlertPolicy) GetId() string

func (*MuteRangeAlertPolicy) ProtoMessage

func (*MuteRangeAlertPolicy) ProtoMessage()

func (*MuteRangeAlertPolicy) ProtoReflect

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

func (*MuteRangeAlertPolicy) Reset

func (x *MuteRangeAlertPolicy) Reset()

func (*MuteRangeAlertPolicy) String

func (x *MuteRangeAlertPolicy) String() string

func (*MuteRangeAlertPolicy) Validate

func (m *MuteRangeAlertPolicy) Validate() error

Validate checks the field values on MuteRangeAlertPolicy 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 (*MuteRangeAlertPolicy) ValidateAll

func (m *MuteRangeAlertPolicy) ValidateAll() error

ValidateAll checks the field values on MuteRangeAlertPolicy 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 MuteRangeAlertPolicyMultiError, or nil if none found.

type MuteRangeAlertPolicyMultiError

type MuteRangeAlertPolicyMultiError []error

MuteRangeAlertPolicyMultiError is an error wrapping multiple validation errors returned by MuteRangeAlertPolicy.ValidateAll() if the designated constraints aren't met.

func (MuteRangeAlertPolicyMultiError) AllErrors

func (m MuteRangeAlertPolicyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MuteRangeAlertPolicyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MuteRangeAlertPolicyValidationError

type MuteRangeAlertPolicyValidationError struct {
	// contains filtered or unexported fields
}

MuteRangeAlertPolicyValidationError is the validation error returned by MuteRangeAlertPolicy.Validate if the designated constraints aren't met.

func (MuteRangeAlertPolicyValidationError) Cause

Cause function returns cause value.

func (MuteRangeAlertPolicyValidationError) Error

Error satisfies the builtin error interface

func (MuteRangeAlertPolicyValidationError) ErrorName

ErrorName returns error name.

func (MuteRangeAlertPolicyValidationError) Field

Field function returns field value.

func (MuteRangeAlertPolicyValidationError) Key

Key function returns key value.

func (MuteRangeAlertPolicyValidationError) Reason

Reason function returns reason value.

type MuteRangeMonitor

type MuteRangeMonitor struct {

	// Monitor ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*MuteRangeMonitor) Descriptor deprecated

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

Deprecated: Use MuteRangeMonitor.ProtoReflect.Descriptor instead.

func (*MuteRangeMonitor) GetId

func (x *MuteRangeMonitor) GetId() string

func (*MuteRangeMonitor) ProtoMessage

func (*MuteRangeMonitor) ProtoMessage()

func (*MuteRangeMonitor) ProtoReflect

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

func (*MuteRangeMonitor) Reset

func (x *MuteRangeMonitor) Reset()

func (*MuteRangeMonitor) String

func (x *MuteRangeMonitor) String() string

func (*MuteRangeMonitor) Validate

func (m *MuteRangeMonitor) Validate() error

Validate checks the field values on MuteRangeMonitor 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 (*MuteRangeMonitor) ValidateAll

func (m *MuteRangeMonitor) ValidateAll() error

ValidateAll checks the field values on MuteRangeMonitor 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 MuteRangeMonitorMultiError, or nil if none found.

type MuteRangeMonitorMultiError

type MuteRangeMonitorMultiError []error

MuteRangeMonitorMultiError is an error wrapping multiple validation errors returned by MuteRangeMonitor.ValidateAll() if the designated constraints aren't met.

func (MuteRangeMonitorMultiError) AllErrors

func (m MuteRangeMonitorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MuteRangeMonitorMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MuteRangeMonitorValidationError

type MuteRangeMonitorValidationError struct {
	// contains filtered or unexported fields
}

MuteRangeMonitorValidationError is the validation error returned by MuteRangeMonitor.Validate if the designated constraints aren't met.

func (MuteRangeMonitorValidationError) Cause

Cause function returns cause value.

func (MuteRangeMonitorValidationError) Error

Error satisfies the builtin error interface

func (MuteRangeMonitorValidationError) ErrorName

ErrorName returns error name.

func (MuteRangeMonitorValidationError) Field

Field function returns field value.

func (MuteRangeMonitorValidationError) Key

Key function returns key value.

func (MuteRangeMonitorValidationError) Reason

Reason function returns reason value.

type MuteRangeMultiError

type MuteRangeMultiError []error

MuteRangeMultiError is an error wrapping multiple validation errors returned by MuteRange.ValidateAll() if the designated constraints aren't met.

func (MuteRangeMultiError) AllErrors

func (m MuteRangeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MuteRangeMultiError) Error

func (m MuteRangeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MuteRangeValidationError

type MuteRangeValidationError struct {
	// contains filtered or unexported fields
}

MuteRangeValidationError is the validation error returned by MuteRange.Validate if the designated constraints aren't met.

func (MuteRangeValidationError) Cause

func (e MuteRangeValidationError) Cause() error

Cause function returns cause value.

func (MuteRangeValidationError) Error

func (e MuteRangeValidationError) Error() string

Error satisfies the builtin error interface

func (MuteRangeValidationError) ErrorName

func (e MuteRangeValidationError) ErrorName() string

ErrorName returns error name.

func (MuteRangeValidationError) Field

func (e MuteRangeValidationError) Field() string

Field function returns field value.

func (MuteRangeValidationError) Key

Key function returns key value.

func (MuteRangeValidationError) Reason

func (e MuteRangeValidationError) Reason() string

Reason function returns reason value.

type MuteValidationError

type MuteValidationError struct {
	// contains filtered or unexported fields
}

MuteValidationError is the validation error returned by Mute.Validate if the designated constraints aren't met.

func (MuteValidationError) Cause

func (e MuteValidationError) Cause() error

Cause function returns cause value.

func (MuteValidationError) Error

func (e MuteValidationError) Error() string

Error satisfies the builtin error interface

func (MuteValidationError) ErrorName

func (e MuteValidationError) ErrorName() string

ErrorName returns error name.

func (MuteValidationError) Field

func (e MuteValidationError) Field() string

Field function returns field value.

func (MuteValidationError) Key

func (e MuteValidationError) Key() bool

Key function returns key value.

func (MuteValidationError) Reason

func (e MuteValidationError) Reason() string

Reason function returns reason value.

type NotifyOptions

type NotifyOptions struct {

	// Notify Message
	Message *string `protobuf:"bytes,1,opt,name=message,proto3,oneof" json:"message,omitempty"`
	// Notify Time
	BeforeTime *string `protobuf:"bytes,2,opt,name=before_time,json=beforeTime,proto3,oneof" json:"before_time,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyOptions) Descriptor deprecated

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

Deprecated: Use NotifyOptions.ProtoReflect.Descriptor instead.

func (*NotifyOptions) GetBeforeTime

func (x *NotifyOptions) GetBeforeTime() string

func (*NotifyOptions) GetMessage

func (x *NotifyOptions) GetMessage() string

func (*NotifyOptions) ProtoMessage

func (*NotifyOptions) ProtoMessage()

func (*NotifyOptions) ProtoReflect

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

func (*NotifyOptions) Reset

func (x *NotifyOptions) Reset()

func (*NotifyOptions) String

func (x *NotifyOptions) String() string

func (*NotifyOptions) Validate

func (m *NotifyOptions) Validate() error

Validate checks the field values on NotifyOptions 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 (*NotifyOptions) ValidateAll

func (m *NotifyOptions) ValidateAll() error

ValidateAll checks the field values on NotifyOptions 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 NotifyOptionsMultiError, or nil if none found.

type NotifyOptionsMultiError

type NotifyOptionsMultiError []error

NotifyOptionsMultiError is an error wrapping multiple validation errors returned by NotifyOptions.ValidateAll() if the designated constraints aren't met.

func (NotifyOptionsMultiError) AllErrors

func (m NotifyOptionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotifyOptionsMultiError) Error

func (m NotifyOptionsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type NotifyOptionsValidationError

type NotifyOptionsValidationError struct {
	// contains filtered or unexported fields
}

NotifyOptionsValidationError is the validation error returned by NotifyOptions.Validate if the designated constraints aren't met.

func (NotifyOptionsValidationError) Cause

Cause function returns cause value.

func (NotifyOptionsValidationError) Error

Error satisfies the builtin error interface

func (NotifyOptionsValidationError) ErrorName

func (e NotifyOptionsValidationError) ErrorName() string

ErrorName returns error name.

func (NotifyOptionsValidationError) Field

Field function returns field value.

func (NotifyOptionsValidationError) Key

Key function returns key value.

func (NotifyOptionsValidationError) Reason

Reason function returns reason value.

type NotifyTarget

type NotifyTarget struct {

	// Notify Type
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// MemberGroup
	MemberGroup *NotifyTargetMemberGroup `protobuf:"bytes,2,opt,name=member_group,json=memberGroup,proto3" json:"member_group,omitempty"`
	// Notification
	Notification *NotifyTargetNotification `protobuf:"bytes,3,opt,name=notification,proto3" json:"notification,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyTarget) Descriptor deprecated

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

Deprecated: Use NotifyTarget.ProtoReflect.Descriptor instead.

func (*NotifyTarget) GetMemberGroup

func (x *NotifyTarget) GetMemberGroup() *NotifyTargetMemberGroup

func (*NotifyTarget) GetNotification

func (x *NotifyTarget) GetNotification() *NotifyTargetNotification

func (*NotifyTarget) GetType

func (x *NotifyTarget) GetType() string

func (*NotifyTarget) ProtoMessage

func (*NotifyTarget) ProtoMessage()

func (*NotifyTarget) ProtoReflect

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

func (*NotifyTarget) Reset

func (x *NotifyTarget) Reset()

func (*NotifyTarget) String

func (x *NotifyTarget) String() string

func (*NotifyTarget) Validate

func (m *NotifyTarget) Validate() error

Validate checks the field values on NotifyTarget 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 (*NotifyTarget) ValidateAll

func (m *NotifyTarget) ValidateAll() error

ValidateAll checks the field values on NotifyTarget 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 NotifyTargetMultiError, or nil if none found.

type NotifyTargetMemberGroup

type NotifyTargetMemberGroup struct {

	// MemberGroup ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyTargetMemberGroup) Descriptor deprecated

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

Deprecated: Use NotifyTargetMemberGroup.ProtoReflect.Descriptor instead.

func (*NotifyTargetMemberGroup) GetId

func (x *NotifyTargetMemberGroup) GetId() string

func (*NotifyTargetMemberGroup) ProtoMessage

func (*NotifyTargetMemberGroup) ProtoMessage()

func (*NotifyTargetMemberGroup) ProtoReflect

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

func (*NotifyTargetMemberGroup) Reset

func (x *NotifyTargetMemberGroup) Reset()

func (*NotifyTargetMemberGroup) String

func (x *NotifyTargetMemberGroup) String() string

func (*NotifyTargetMemberGroup) Validate

func (m *NotifyTargetMemberGroup) Validate() error

Validate checks the field values on NotifyTargetMemberGroup 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 (*NotifyTargetMemberGroup) ValidateAll

func (m *NotifyTargetMemberGroup) ValidateAll() error

ValidateAll checks the field values on NotifyTargetMemberGroup 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 NotifyTargetMemberGroupMultiError, or nil if none found.

type NotifyTargetMemberGroupMultiError

type NotifyTargetMemberGroupMultiError []error

NotifyTargetMemberGroupMultiError is an error wrapping multiple validation errors returned by NotifyTargetMemberGroup.ValidateAll() if the designated constraints aren't met.

func (NotifyTargetMemberGroupMultiError) AllErrors

func (m NotifyTargetMemberGroupMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotifyTargetMemberGroupMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type NotifyTargetMemberGroupValidationError

type NotifyTargetMemberGroupValidationError struct {
	// contains filtered or unexported fields
}

NotifyTargetMemberGroupValidationError is the validation error returned by NotifyTargetMemberGroup.Validate if the designated constraints aren't met.

func (NotifyTargetMemberGroupValidationError) Cause

Cause function returns cause value.

func (NotifyTargetMemberGroupValidationError) Error

Error satisfies the builtin error interface

func (NotifyTargetMemberGroupValidationError) ErrorName

ErrorName returns error name.

func (NotifyTargetMemberGroupValidationError) Field

Field function returns field value.

func (NotifyTargetMemberGroupValidationError) Key

Key function returns key value.

func (NotifyTargetMemberGroupValidationError) Reason

Reason function returns reason value.

type NotifyTargetMultiError

type NotifyTargetMultiError []error

NotifyTargetMultiError is an error wrapping multiple validation errors returned by NotifyTarget.ValidateAll() if the designated constraints aren't met.

func (NotifyTargetMultiError) AllErrors

func (m NotifyTargetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotifyTargetMultiError) Error

func (m NotifyTargetMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type NotifyTargetNotification

type NotifyTargetNotification struct {

	// Notification ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyTargetNotification) Descriptor deprecated

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

Deprecated: Use NotifyTargetNotification.ProtoReflect.Descriptor instead.

func (*NotifyTargetNotification) GetId

func (x *NotifyTargetNotification) GetId() string

func (*NotifyTargetNotification) ProtoMessage

func (*NotifyTargetNotification) ProtoMessage()

func (*NotifyTargetNotification) ProtoReflect

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

func (*NotifyTargetNotification) Reset

func (x *NotifyTargetNotification) Reset()

func (*NotifyTargetNotification) String

func (x *NotifyTargetNotification) String() string

func (*NotifyTargetNotification) Validate

func (m *NotifyTargetNotification) Validate() error

Validate checks the field values on NotifyTargetNotification 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 (*NotifyTargetNotification) ValidateAll

func (m *NotifyTargetNotification) ValidateAll() error

ValidateAll checks the field values on NotifyTargetNotification 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 NotifyTargetNotificationMultiError, or nil if none found.

type NotifyTargetNotificationMultiError

type NotifyTargetNotificationMultiError []error

NotifyTargetNotificationMultiError is an error wrapping multiple validation errors returned by NotifyTargetNotification.ValidateAll() if the designated constraints aren't met.

func (NotifyTargetNotificationMultiError) AllErrors

func (m NotifyTargetNotificationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotifyTargetNotificationMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type NotifyTargetNotificationValidationError

type NotifyTargetNotificationValidationError struct {
	// contains filtered or unexported fields
}

NotifyTargetNotificationValidationError is the validation error returned by NotifyTargetNotification.Validate if the designated constraints aren't met.

func (NotifyTargetNotificationValidationError) Cause

Cause function returns cause value.

func (NotifyTargetNotificationValidationError) Error

Error satisfies the builtin error interface

func (NotifyTargetNotificationValidationError) ErrorName

ErrorName returns error name.

func (NotifyTargetNotificationValidationError) Field

Field function returns field value.

func (NotifyTargetNotificationValidationError) Key

Key function returns key value.

func (NotifyTargetNotificationValidationError) Reason

Reason function returns reason value.

type NotifyTargetValidationError

type NotifyTargetValidationError struct {
	// contains filtered or unexported fields
}

NotifyTargetValidationError is the validation error returned by NotifyTarget.Validate if the designated constraints aren't met.

func (NotifyTargetValidationError) Cause

Cause function returns cause value.

func (NotifyTargetValidationError) Error

Error satisfies the builtin error interface

func (NotifyTargetValidationError) ErrorName

func (e NotifyTargetValidationError) ErrorName() string

ErrorName returns error name.

func (NotifyTargetValidationError) Field

Field function returns field value.

func (NotifyTargetValidationError) Key

Key function returns key value.

func (NotifyTargetValidationError) Reason

Reason function returns reason value.

type OnetimeOptions

type OnetimeOptions struct {

	// Start
	Start *string `protobuf:"bytes,1,opt,name=start,proto3,oneof" json:"start,omitempty"`
	// End
	End *string `protobuf:"bytes,2,opt,name=end,proto3,oneof" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*OnetimeOptions) Descriptor deprecated

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

Deprecated: Use OnetimeOptions.ProtoReflect.Descriptor instead.

func (*OnetimeOptions) GetEnd

func (x *OnetimeOptions) GetEnd() string

func (*OnetimeOptions) GetStart

func (x *OnetimeOptions) GetStart() string

func (*OnetimeOptions) ProtoMessage

func (*OnetimeOptions) ProtoMessage()

func (*OnetimeOptions) ProtoReflect

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

func (*OnetimeOptions) Reset

func (x *OnetimeOptions) Reset()

func (*OnetimeOptions) String

func (x *OnetimeOptions) String() string

func (*OnetimeOptions) Validate

func (m *OnetimeOptions) Validate() error

Validate checks the field values on OnetimeOptions 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 (*OnetimeOptions) ValidateAll

func (m *OnetimeOptions) ValidateAll() error

ValidateAll checks the field values on OnetimeOptions 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 OnetimeOptionsMultiError, or nil if none found.

type OnetimeOptionsMultiError

type OnetimeOptionsMultiError []error

OnetimeOptionsMultiError is an error wrapping multiple validation errors returned by OnetimeOptions.ValidateAll() if the designated constraints aren't met.

func (OnetimeOptionsMultiError) AllErrors

func (m OnetimeOptionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OnetimeOptionsMultiError) Error

func (m OnetimeOptionsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OnetimeOptionsValidationError

type OnetimeOptionsValidationError struct {
	// contains filtered or unexported fields
}

OnetimeOptionsValidationError is the validation error returned by OnetimeOptions.Validate if the designated constraints aren't met.

func (OnetimeOptionsValidationError) Cause

Cause function returns cause value.

func (OnetimeOptionsValidationError) Error

Error satisfies the builtin error interface

func (OnetimeOptionsValidationError) ErrorName

func (e OnetimeOptionsValidationError) ErrorName() string

ErrorName returns error name.

func (OnetimeOptionsValidationError) Field

Field function returns field value.

func (OnetimeOptionsValidationError) Key

Key function returns key value.

func (OnetimeOptionsValidationError) Reason

Reason function returns reason value.

type RepeatCrontabSet

type RepeatCrontabSet struct {

	// Min
	Min *string `protobuf:"bytes,1,opt,name=min,proto3,oneof" json:"min,omitempty"`
	// Hour
	Hour *string `protobuf:"bytes,2,opt,name=hour,proto3,oneof" json:"hour,omitempty"`
	// Day
	Day *string `protobuf:"bytes,3,opt,name=day,proto3,oneof" json:"day,omitempty"`
	// Month
	Month *string `protobuf:"bytes,4,opt,name=month,proto3,oneof" json:"month,omitempty"`
	// Week
	Week *string `protobuf:"bytes,5,opt,name=week,proto3,oneof" json:"week,omitempty"`
	// contains filtered or unexported fields
}

func (*RepeatCrontabSet) Descriptor deprecated

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

Deprecated: Use RepeatCrontabSet.ProtoReflect.Descriptor instead.

func (*RepeatCrontabSet) GetDay

func (x *RepeatCrontabSet) GetDay() string

func (*RepeatCrontabSet) GetHour

func (x *RepeatCrontabSet) GetHour() string

func (*RepeatCrontabSet) GetMin

func (x *RepeatCrontabSet) GetMin() string

func (*RepeatCrontabSet) GetMonth

func (x *RepeatCrontabSet) GetMonth() string

func (*RepeatCrontabSet) GetWeek

func (x *RepeatCrontabSet) GetWeek() string

func (*RepeatCrontabSet) ProtoMessage

func (*RepeatCrontabSet) ProtoMessage()

func (*RepeatCrontabSet) ProtoReflect

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

func (*RepeatCrontabSet) Reset

func (x *RepeatCrontabSet) Reset()

func (*RepeatCrontabSet) String

func (x *RepeatCrontabSet) String() string

func (*RepeatCrontabSet) Validate

func (m *RepeatCrontabSet) Validate() error

Validate checks the field values on RepeatCrontabSet 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 (*RepeatCrontabSet) ValidateAll

func (m *RepeatCrontabSet) ValidateAll() error

ValidateAll checks the field values on RepeatCrontabSet 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 RepeatCrontabSetMultiError, or nil if none found.

type RepeatCrontabSetMultiError

type RepeatCrontabSetMultiError []error

RepeatCrontabSetMultiError is an error wrapping multiple validation errors returned by RepeatCrontabSet.ValidateAll() if the designated constraints aren't met.

func (RepeatCrontabSetMultiError) AllErrors

func (m RepeatCrontabSetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RepeatCrontabSetMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RepeatCrontabSetValidationError

type RepeatCrontabSetValidationError struct {
	// contains filtered or unexported fields
}

RepeatCrontabSetValidationError is the validation error returned by RepeatCrontabSet.Validate if the designated constraints aren't met.

func (RepeatCrontabSetValidationError) Cause

Cause function returns cause value.

func (RepeatCrontabSetValidationError) Error

Error satisfies the builtin error interface

func (RepeatCrontabSetValidationError) ErrorName

ErrorName returns error name.

func (RepeatCrontabSetValidationError) Field

Field function returns field value.

func (RepeatCrontabSetValidationError) Key

Key function returns key value.

func (RepeatCrontabSetValidationError) Reason

Reason function returns reason value.

type RepeatOptions

type RepeatOptions struct {

	// Start
	Start *string `protobuf:"bytes,1,opt,name=start,proto3,oneof" json:"start,omitempty"`
	// End
	End *string `protobuf:"bytes,2,opt,name=end,proto3,oneof" json:"end,omitempty"`
	// Crontab Duration
	CrontabDuration *string `protobuf:"bytes,3,opt,name=crontab_duration,json=crontabDuration,proto3,oneof" json:"crontab_duration,omitempty"`
	// Repeat Expire
	Expire *string `protobuf:"bytes,4,opt,name=expire,proto3,oneof" json:"expire,omitempty"`
	// Crontab configuration
	Crontab *RepeatCrontabSet `protobuf:"bytes,5,opt,name=crontab,proto3" json:"crontab,omitempty"`
	// contains filtered or unexported fields
}

func (*RepeatOptions) Descriptor deprecated

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

Deprecated: Use RepeatOptions.ProtoReflect.Descriptor instead.

func (*RepeatOptions) GetCrontab

func (x *RepeatOptions) GetCrontab() *RepeatCrontabSet

func (*RepeatOptions) GetCrontabDuration

func (x *RepeatOptions) GetCrontabDuration() string

func (*RepeatOptions) GetEnd

func (x *RepeatOptions) GetEnd() string

func (*RepeatOptions) GetExpire

func (x *RepeatOptions) GetExpire() string

func (*RepeatOptions) GetStart

func (x *RepeatOptions) GetStart() string

func (*RepeatOptions) ProtoMessage

func (*RepeatOptions) ProtoMessage()

func (*RepeatOptions) ProtoReflect

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

func (*RepeatOptions) Reset

func (x *RepeatOptions) Reset()

func (*RepeatOptions) String

func (x *RepeatOptions) String() string

func (*RepeatOptions) Validate

func (m *RepeatOptions) Validate() error

Validate checks the field values on RepeatOptions 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 (*RepeatOptions) ValidateAll

func (m *RepeatOptions) ValidateAll() error

ValidateAll checks the field values on RepeatOptions 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 RepeatOptionsMultiError, or nil if none found.

type RepeatOptionsMultiError

type RepeatOptionsMultiError []error

RepeatOptionsMultiError is an error wrapping multiple validation errors returned by RepeatOptions.ValidateAll() if the designated constraints aren't met.

func (RepeatOptionsMultiError) AllErrors

func (m RepeatOptionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RepeatOptionsMultiError) Error

func (m RepeatOptionsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RepeatOptionsValidationError

type RepeatOptionsValidationError struct {
	// contains filtered or unexported fields
}

RepeatOptionsValidationError is the validation error returned by RepeatOptions.Validate if the designated constraints aren't met.

func (RepeatOptionsValidationError) Cause

Cause function returns cause value.

func (RepeatOptionsValidationError) Error

Error satisfies the builtin error interface

func (RepeatOptionsValidationError) ErrorName

func (e RepeatOptionsValidationError) ErrorName() string

ErrorName returns error name.

func (RepeatOptionsValidationError) Field

Field function returns field value.

func (RepeatOptionsValidationError) Key

Key function returns key value.

func (RepeatOptionsValidationError) Reason

Reason function returns reason value.

type Tag

type Tag struct {

	// Tag
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Tag Value
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetKey

func (x *Tag) GetKey() string

func (*Tag) GetValue

func (x *Tag) GetValue() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

func (*Tag) Validate

func (m *Tag) Validate() error

Validate checks the field values on Tag 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 (*Tag) ValidateAll

func (m *Tag) ValidateAll() error

ValidateAll checks the field values on Tag 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 TagMultiError, or nil if none found.

type TagMultiError

type TagMultiError []error

TagMultiError is an error wrapping multiple validation errors returned by Tag.ValidateAll() if the designated constraints aren't met.

func (TagMultiError) AllErrors

func (m TagMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TagMultiError) Error

func (m TagMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TagValidationError

type TagValidationError struct {
	// contains filtered or unexported fields
}

TagValidationError is the validation error returned by Tag.Validate if the designated constraints aren't met.

func (TagValidationError) Cause

func (e TagValidationError) Cause() error

Cause function returns cause value.

func (TagValidationError) Error

func (e TagValidationError) Error() string

Error satisfies the builtin error interface

func (TagValidationError) ErrorName

func (e TagValidationError) ErrorName() string

ErrorName returns error name.

func (TagValidationError) Field

func (e TagValidationError) Field() string

Field function returns field value.

func (TagValidationError) Key

func (e TagValidationError) Key() bool

Key function returns key value.

func (TagValidationError) Reason

func (e TagValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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