monitorv1alpha1

package
v0.0.0-...-6270634 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_guance_io_json_monitor_v1alpha1_monitor_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CheckerOpt

type CheckerOpt struct {
	Rules     []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	InfoEvent *bool   `protobuf:"varint,2,opt,name=info_event,json=infoEvent,proto3,oneof" json:"info_event,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckerOpt) Descriptor deprecated

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

Deprecated: Use CheckerOpt.ProtoReflect.Descriptor instead.

func (*CheckerOpt) GetInfoEvent

func (x *CheckerOpt) GetInfoEvent() bool

func (*CheckerOpt) GetRules

func (x *CheckerOpt) GetRules() []*Rule

func (*CheckerOpt) ProtoMessage

func (*CheckerOpt) ProtoMessage()

func (*CheckerOpt) ProtoReflect

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

func (*CheckerOpt) Reset

func (x *CheckerOpt) Reset()

func (*CheckerOpt) String

func (x *CheckerOpt) String() string

func (*CheckerOpt) Validate

func (m *CheckerOpt) Validate() error

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

func (m *CheckerOpt) ValidateAll() error

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

type CheckerOptMultiError

type CheckerOptMultiError []error

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

func (CheckerOptMultiError) AllErrors

func (m CheckerOptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CheckerOptMultiError) Error

func (m CheckerOptMultiError) Error() string

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

type CheckerOptValidationError

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

CheckerOptValidationError is the validation error returned by CheckerOpt.Validate if the designated constraints aren't met.

func (CheckerOptValidationError) Cause

func (e CheckerOptValidationError) Cause() error

Cause function returns cause value.

func (CheckerOptValidationError) Error

Error satisfies the builtin error interface

func (CheckerOptValidationError) ErrorName

func (e CheckerOptValidationError) ErrorName() string

ErrorName returns error name.

func (CheckerOptValidationError) Field

Field function returns field value.

func (CheckerOptValidationError) Key

Key function returns key value.

func (CheckerOptValidationError) Reason

func (e CheckerOptValidationError) Reason() string

Reason function returns reason value.

type Children

type Children struct {
	Alias       string        `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
	Code        string        `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	DataSource  string        `protobuf:"bytes,3,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
	Field       string        `protobuf:"bytes,4,opt,name=field,proto3" json:"field,omitempty"`
	FieldFunc   string        `protobuf:"bytes,5,opt,name=field_func,json=fieldFunc,proto3" json:"field_func,omitempty"`
	FieldType   string        `protobuf:"bytes,6,opt,name=field_type,json=fieldType,proto3" json:"field_type,omitempty"`
	GroupBy     []string      `protobuf:"bytes,7,rep,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	GroupByTime string        `protobuf:"bytes,8,opt,name=group_by_time,json=groupByTime,proto3" json:"group_by_time,omitempty"`
	Namespace   string        `protobuf:"bytes,9,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Q           string        `protobuf:"bytes,10,opt,name=q,proto3" json:"q,omitempty"`
	Type        string        `protobuf:"bytes,11,opt,name=type,proto3" json:"type,omitempty"`
	Filters     []*Filter     `protobuf:"bytes,12,rep,name=filters,proto3" json:"filters,omitempty"`
	QueryFuncs  []*QueryFuncs `protobuf:"bytes,13,rep,name=query_funcs,json=queryFuncs,proto3" json:"query_funcs,omitempty"`
	// contains filtered or unexported fields
}

func (*Children) Descriptor deprecated

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

Deprecated: Use Children.ProtoReflect.Descriptor instead.

func (*Children) GetAlias

func (x *Children) GetAlias() string

func (*Children) GetCode

func (x *Children) GetCode() string

func (*Children) GetDataSource

func (x *Children) GetDataSource() string

func (*Children) GetField

func (x *Children) GetField() string

func (*Children) GetFieldFunc

func (x *Children) GetFieldFunc() string

func (*Children) GetFieldType

func (x *Children) GetFieldType() string

func (*Children) GetFilters

func (x *Children) GetFilters() []*Filter

func (*Children) GetGroupBy

func (x *Children) GetGroupBy() []string

func (*Children) GetGroupByTime

func (x *Children) GetGroupByTime() string

func (*Children) GetNamespace

func (x *Children) GetNamespace() string

func (*Children) GetQ

func (x *Children) GetQ() string

func (*Children) GetQueryFuncs

func (x *Children) GetQueryFuncs() []*QueryFuncs

func (*Children) GetType

func (x *Children) GetType() string

func (*Children) ProtoMessage

func (*Children) ProtoMessage()

func (*Children) ProtoReflect

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

func (*Children) Reset

func (x *Children) Reset()

func (*Children) String

func (x *Children) String() string

func (*Children) Validate

func (m *Children) Validate() error

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

func (m *Children) ValidateAll() error

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

type ChildrenMultiError

type ChildrenMultiError []error

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

func (ChildrenMultiError) AllErrors

func (m ChildrenMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChildrenMultiError) Error

func (m ChildrenMultiError) Error() string

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

type ChildrenValidationError

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

ChildrenValidationError is the validation error returned by Children.Validate if the designated constraints aren't met.

func (ChildrenValidationError) Cause

func (e ChildrenValidationError) Cause() error

Cause function returns cause value.

func (ChildrenValidationError) Error

func (e ChildrenValidationError) Error() string

Error satisfies the builtin error interface

func (ChildrenValidationError) ErrorName

func (e ChildrenValidationError) ErrorName() string

ErrorName returns error name.

func (ChildrenValidationError) Field

func (e ChildrenValidationError) Field() string

Field function returns field value.

func (ChildrenValidationError) Key

func (e ChildrenValidationError) Key() bool

Key function returns key value.

func (ChildrenValidationError) Reason

func (e ChildrenValidationError) Reason() string

Reason function returns reason value.

type Conditions

type Conditions struct {
	Alias    string   `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
	Operands []string `protobuf:"bytes,2,rep,name=operands,proto3" json:"operands,omitempty"`
	Operator string   `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

func (*Conditions) Descriptor deprecated

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

Deprecated: Use Conditions.ProtoReflect.Descriptor instead.

func (*Conditions) GetAlias

func (x *Conditions) GetAlias() string

func (*Conditions) GetOperands

func (x *Conditions) GetOperands() []string

func (*Conditions) GetOperator

func (x *Conditions) GetOperator() string

func (*Conditions) ProtoMessage

func (*Conditions) ProtoMessage()

func (*Conditions) ProtoReflect

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

func (*Conditions) Reset

func (x *Conditions) Reset()

func (*Conditions) String

func (x *Conditions) String() string

func (*Conditions) Validate

func (m *Conditions) Validate() error

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

func (m *Conditions) ValidateAll() error

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

type ConditionsMultiError

type ConditionsMultiError []error

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

func (ConditionsMultiError) AllErrors

func (m ConditionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConditionsMultiError) Error

func (m ConditionsMultiError) Error() string

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

type ConditionsValidationError

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

ConditionsValidationError is the validation error returned by Conditions.Validate if the designated constraints aren't met.

func (ConditionsValidationError) Cause

func (e ConditionsValidationError) Cause() error

Cause function returns cause value.

func (ConditionsValidationError) Error

Error satisfies the builtin error interface

func (ConditionsValidationError) ErrorName

func (e ConditionsValidationError) ErrorName() string

ErrorName returns error name.

func (ConditionsValidationError) Field

Field function returns field value.

func (ConditionsValidationError) Key

Key function returns key value.

func (ConditionsValidationError) Reason

func (e ConditionsValidationError) Reason() string

Reason function returns reason value.

type Extend

type Extend struct {
	FuncName               string       `protobuf:"bytes,1,opt,name=func_name,json=funcName,proto3" json:"func_name,omitempty"`
	Querylist              []*QueryList `protobuf:"bytes,2,rep,name=querylist,proto3" json:"querylist,omitempty"`
	Rules                  []*Rule      `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
	NoDataPeriodCount      int64        `protobuf:"varint,4,opt,name=no_data_period_count,json=noDataPeriodCount,proto3" json:"no_data_period_count,omitempty"`
	RecoverNeedPeriodCount int64        `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Extend) Descriptor deprecated

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

Deprecated: Use Extend.ProtoReflect.Descriptor instead.

func (*Extend) GetFuncName

func (x *Extend) GetFuncName() string

func (*Extend) GetNoDataPeriodCount

func (x *Extend) GetNoDataPeriodCount() int64

func (*Extend) GetQuerylist

func (x *Extend) GetQuerylist() []*QueryList

func (*Extend) GetRecoverNeedPeriodCount

func (x *Extend) GetRecoverNeedPeriodCount() int64

func (*Extend) GetRules

func (x *Extend) GetRules() []*Rule

func (*Extend) ProtoMessage

func (*Extend) ProtoMessage()

func (*Extend) ProtoReflect

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

func (*Extend) Reset

func (x *Extend) Reset()

func (*Extend) String

func (x *Extend) String() string

func (*Extend) Validate

func (m *Extend) Validate() error

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

func (m *Extend) ValidateAll() error

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

type ExtendMultiError

type ExtendMultiError []error

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

func (ExtendMultiError) AllErrors

func (m ExtendMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExtendMultiError) Error

func (m ExtendMultiError) Error() string

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

type ExtendValidationError

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

ExtendValidationError is the validation error returned by Extend.Validate if the designated constraints aren't met.

func (ExtendValidationError) Cause

func (e ExtendValidationError) Cause() error

Cause function returns cause value.

func (ExtendValidationError) Error

func (e ExtendValidationError) Error() string

Error satisfies the builtin error interface

func (ExtendValidationError) ErrorName

func (e ExtendValidationError) ErrorName() string

ErrorName returns error name.

func (ExtendValidationError) Field

func (e ExtendValidationError) Field() string

Field function returns field value.

func (ExtendValidationError) Key

func (e ExtendValidationError) Key() bool

Key function returns key value.

func (ExtendValidationError) Reason

func (e ExtendValidationError) Reason() string

Reason function returns reason value.

type Filter

type Filter struct {
	Id    string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Logic string  `protobuf:"bytes,2,opt,name=logic,proto3" json:"logic,omitempty"`
	Name  string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Op    string  `protobuf:"bytes,4,opt,name=op,proto3" json:"op,omitempty"`
	Value string  `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	Type  *string `protobuf:"bytes,6,opt,name=type,proto3,oneof" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

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

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetId

func (x *Filter) GetId() string

func (*Filter) GetLogic

func (x *Filter) GetLogic() string

func (*Filter) GetName

func (x *Filter) GetName() string

func (*Filter) GetOp

func (x *Filter) GetOp() string

func (*Filter) GetType

func (x *Filter) GetType() string

func (*Filter) GetValue

func (x *Filter) GetValue() string

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

func (*Filter) Validate

func (m *Filter) Validate() error

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

func (m *Filter) ValidateAll() error

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

type FilterMultiError

type FilterMultiError []error

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

func (FilterMultiError) AllErrors

func (m FilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FilterMultiError) Error

func (m FilterMultiError) Error() string

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

type FilterValidationError

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

FilterValidationError is the validation error returned by Filter.Validate if the designated constraints aren't met.

func (FilterValidationError) Cause

func (e FilterValidationError) Cause() error

Cause function returns cause value.

func (FilterValidationError) Error

func (e FilterValidationError) Error() string

Error satisfies the builtin error interface

func (FilterValidationError) ErrorName

func (e FilterValidationError) ErrorName() string

ErrorName returns error name.

func (FilterValidationError) Field

func (e FilterValidationError) Field() string

Field function returns field value.

func (FilterValidationError) Key

func (e FilterValidationError) Key() bool

Key function returns key value.

func (FilterValidationError) Reason

func (e FilterValidationError) Reason() string

Reason function returns reason value.

type JsonScript

type JsonScript struct {
	CheckerOpt             *CheckerOpt `protobuf:"bytes,1,opt,name=checker_opt,json=checkerOpt,proto3" json:"checker_opt,omitempty"`
	Every                  string      `protobuf:"bytes,2,opt,name=every,proto3" json:"every,omitempty"`
	GroupBy                []string    `protobuf:"bytes,3,rep,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	Interval               int64       `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"`
	Message                string      `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	Targets                []*Target   `protobuf:"bytes,6,rep,name=targets,proto3" json:"targets,omitempty"`
	Title                  string      `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	Type                   string      `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
	NoDataPeriodCount      int64       `protobuf:"varint,9,opt,name=no_data_period_count,json=noDataPeriodCount,proto3" json:"no_data_period_count,omitempty"`
	RecoverNeedPeriodCount int64       `` /* 133-byte string literal not displayed */
	NoDataMessage          *string     `protobuf:"bytes,11,opt,name=no_data_message,json=noDataMessage,proto3,oneof" json:"no_data_message,omitempty"`
	NoDataTitle            *string     `protobuf:"bytes,12,opt,name=no_data_title,json=noDataTitle,proto3,oneof" json:"no_data_title,omitempty"`
	Channels               []*Unknown  `protobuf:"bytes,13,rep,name=channels,proto3" json:"channels,omitempty"`
	AtAccounts             []*Unknown  `protobuf:"bytes,14,rep,name=at_accounts,json=atAccounts,proto3" json:"at_accounts,omitempty"`
	AtNoDataAccounts       []*Unknown  `protobuf:"bytes,15,rep,name=at_no_data_accounts,json=atNoDataAccounts,proto3" json:"at_no_data_accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*JsonScript) Descriptor deprecated

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

Deprecated: Use JsonScript.ProtoReflect.Descriptor instead.

func (*JsonScript) GetAtAccounts

func (x *JsonScript) GetAtAccounts() []*Unknown

func (*JsonScript) GetAtNoDataAccounts

func (x *JsonScript) GetAtNoDataAccounts() []*Unknown

func (*JsonScript) GetChannels

func (x *JsonScript) GetChannels() []*Unknown

func (*JsonScript) GetCheckerOpt

func (x *JsonScript) GetCheckerOpt() *CheckerOpt

func (*JsonScript) GetEvery

func (x *JsonScript) GetEvery() string

func (*JsonScript) GetGroupBy

func (x *JsonScript) GetGroupBy() []string

func (*JsonScript) GetInterval

func (x *JsonScript) GetInterval() int64

func (*JsonScript) GetMessage

func (x *JsonScript) GetMessage() string

func (*JsonScript) GetNoDataMessage

func (x *JsonScript) GetNoDataMessage() string

func (*JsonScript) GetNoDataPeriodCount

func (x *JsonScript) GetNoDataPeriodCount() int64

func (*JsonScript) GetNoDataTitle

func (x *JsonScript) GetNoDataTitle() string

func (*JsonScript) GetRecoverNeedPeriodCount

func (x *JsonScript) GetRecoverNeedPeriodCount() int64

func (*JsonScript) GetTargets

func (x *JsonScript) GetTargets() []*Target

func (*JsonScript) GetTitle

func (x *JsonScript) GetTitle() string

func (*JsonScript) GetType

func (x *JsonScript) GetType() string

func (*JsonScript) ProtoMessage

func (*JsonScript) ProtoMessage()

func (*JsonScript) ProtoReflect

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

func (*JsonScript) Reset

func (x *JsonScript) Reset()

func (*JsonScript) String

func (x *JsonScript) String() string

func (*JsonScript) Validate

func (m *JsonScript) Validate() error

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

func (m *JsonScript) ValidateAll() error

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

type JsonScriptMultiError

type JsonScriptMultiError []error

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

func (JsonScriptMultiError) AllErrors

func (m JsonScriptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JsonScriptMultiError) Error

func (m JsonScriptMultiError) Error() string

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

type JsonScriptValidationError

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

JsonScriptValidationError is the validation error returned by JsonScript.Validate if the designated constraints aren't met.

func (JsonScriptValidationError) Cause

func (e JsonScriptValidationError) Cause() error

Cause function returns cause value.

func (JsonScriptValidationError) Error

Error satisfies the builtin error interface

func (JsonScriptValidationError) ErrorName

func (e JsonScriptValidationError) ErrorName() string

ErrorName returns error name.

func (JsonScriptValidationError) Field

Field function returns field value.

func (JsonScriptValidationError) Key

Key function returns key value.

func (JsonScriptValidationError) Reason

func (e JsonScriptValidationError) Reason() string

Reason function returns reason value.

type Monitor

type Monitor struct {
	Extend        *Extend     `protobuf:"bytes,1,opt,name=extend,proto3" json:"extend,omitempty"`
	JsonScript    *JsonScript `protobuf:"bytes,2,opt,name=json_script,json=jsonScript,proto3" json:"json_script,omitempty"`
	MonitorName   string      `protobuf:"bytes,3,opt,name=monitor_name,json=monitorName,proto3" json:"monitor_name,omitempty"`
	IsDisable     bool        `protobuf:"varint,4,opt,name=is_disable,json=isDisable,proto3" json:"is_disable,omitempty"`
	DashboardName *string     `protobuf:"bytes,5,opt,name=dashboard_name,json=dashboardName,proto3,oneof" json:"dashboard_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Monitor) Descriptor deprecated

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

Deprecated: Use Monitor.ProtoReflect.Descriptor instead.

func (*Monitor) GetDashboardName

func (x *Monitor) GetDashboardName() string

func (*Monitor) GetExtend

func (x *Monitor) GetExtend() *Extend

func (*Monitor) GetIsDisable

func (x *Monitor) GetIsDisable() bool

func (*Monitor) GetJsonScript

func (x *Monitor) GetJsonScript() *JsonScript

func (*Monitor) GetMonitorName

func (x *Monitor) GetMonitorName() string

func (*Monitor) ProtoMessage

func (*Monitor) ProtoMessage()

func (*Monitor) ProtoReflect

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

func (*Monitor) Reset

func (x *Monitor) Reset()

func (*Monitor) String

func (x *Monitor) String() string

func (*Monitor) Validate

func (m *Monitor) Validate() error

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

func (m *Monitor) ValidateAll() error

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

type MonitorMultiError

type MonitorMultiError []error

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

func (MonitorMultiError) AllErrors

func (m MonitorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MonitorMultiError) Error

func (m MonitorMultiError) Error() string

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

type MonitorValidationError

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

MonitorValidationError is the validation error returned by Monitor.Validate if the designated constraints aren't met.

func (MonitorValidationError) Cause

func (e MonitorValidationError) Cause() error

Cause function returns cause value.

func (MonitorValidationError) Error

func (e MonitorValidationError) Error() string

Error satisfies the builtin error interface

func (MonitorValidationError) ErrorName

func (e MonitorValidationError) ErrorName() string

ErrorName returns error name.

func (MonitorValidationError) Field

func (e MonitorValidationError) Field() string

Field function returns field value.

func (MonitorValidationError) Key

func (e MonitorValidationError) Key() bool

Key function returns key value.

func (MonitorValidationError) Reason

func (e MonitorValidationError) Reason() string

Reason function returns reason value.

type Query

type Query struct {
	Children    []*Children   `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
	Code        string        `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Expression  string        `protobuf:"bytes,3,opt,name=expression,proto3" json:"expression,omitempty"`
	FuncList    []string      `protobuf:"bytes,4,rep,name=func_list,json=funcList,proto3" json:"func_list,omitempty"`
	Q           string        `protobuf:"bytes,5,opt,name=q,proto3" json:"q,omitempty"`
	Type        string        `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	Alias       string        `protobuf:"bytes,7,opt,name=alias,proto3" json:"alias,omitempty"`
	DataSource  string        `protobuf:"bytes,8,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
	Field       string        `protobuf:"bytes,9,opt,name=field,proto3" json:"field,omitempty"`
	FieldFunc   string        `protobuf:"bytes,10,opt,name=field_func,json=fieldFunc,proto3" json:"field_func,omitempty"`
	FieldType   string        `protobuf:"bytes,11,opt,name=field_type,json=fieldType,proto3" json:"field_type,omitempty"`
	GroupBy     []string      `protobuf:"bytes,12,rep,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"`
	GroupByTime string        `protobuf:"bytes,13,opt,name=group_by_time,json=groupByTime,proto3" json:"group_by_time,omitempty"`
	Namespace   string        `protobuf:"bytes,14,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Filters     []*Filter     `protobuf:"bytes,15,rep,name=filters,proto3" json:"filters,omitempty"`
	Fill        *string       `protobuf:"bytes,16,opt,name=fill,proto3,oneof" json:"fill,omitempty"`
	QueryFuncs  []*QueryFuncs `protobuf:"bytes,17,rep,name=query_funcs,json=queryFuncs,proto3" json:"query_funcs,omitempty"`
	// contains filtered or unexported fields
}

func (*Query) Descriptor deprecated

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetAlias

func (x *Query) GetAlias() string

func (*Query) GetChildren

func (x *Query) GetChildren() []*Children

func (*Query) GetCode

func (x *Query) GetCode() string

func (*Query) GetDataSource

func (x *Query) GetDataSource() string

func (*Query) GetExpression

func (x *Query) GetExpression() string

func (*Query) GetField

func (x *Query) GetField() string

func (*Query) GetFieldFunc

func (x *Query) GetFieldFunc() string

func (*Query) GetFieldType

func (x *Query) GetFieldType() string

func (*Query) GetFill

func (x *Query) GetFill() string

func (*Query) GetFilters

func (x *Query) GetFilters() []*Filter

func (*Query) GetFuncList

func (x *Query) GetFuncList() []string

func (*Query) GetGroupBy

func (x *Query) GetGroupBy() []string

func (*Query) GetGroupByTime

func (x *Query) GetGroupByTime() string

func (*Query) GetNamespace

func (x *Query) GetNamespace() string

func (*Query) GetQ

func (x *Query) GetQ() string

func (*Query) GetQueryFuncs

func (x *Query) GetQueryFuncs() []*QueryFuncs

func (*Query) GetType

func (x *Query) GetType() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

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

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

func (*Query) Validate

func (m *Query) Validate() error

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

func (m *Query) ValidateAll() error

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

type QueryFuncs

type QueryFuncs struct {
	Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	Name string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryFuncs) Descriptor deprecated

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

Deprecated: Use QueryFuncs.ProtoReflect.Descriptor instead.

func (*QueryFuncs) GetArgs

func (x *QueryFuncs) GetArgs() []string

func (*QueryFuncs) GetName

func (x *QueryFuncs) GetName() string

func (*QueryFuncs) ProtoMessage

func (*QueryFuncs) ProtoMessage()

func (*QueryFuncs) ProtoReflect

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

func (*QueryFuncs) Reset

func (x *QueryFuncs) Reset()

func (*QueryFuncs) String

func (x *QueryFuncs) String() string

func (*QueryFuncs) Validate

func (m *QueryFuncs) Validate() error

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

func (m *QueryFuncs) ValidateAll() error

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

type QueryFuncsMultiError

type QueryFuncsMultiError []error

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

func (QueryFuncsMultiError) AllErrors

func (m QueryFuncsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryFuncsMultiError) Error

func (m QueryFuncsMultiError) Error() string

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

type QueryFuncsValidationError

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

QueryFuncsValidationError is the validation error returned by QueryFuncs.Validate if the designated constraints aren't met.

func (QueryFuncsValidationError) Cause

func (e QueryFuncsValidationError) Cause() error

Cause function returns cause value.

func (QueryFuncsValidationError) Error

Error satisfies the builtin error interface

func (QueryFuncsValidationError) ErrorName

func (e QueryFuncsValidationError) ErrorName() string

ErrorName returns error name.

func (QueryFuncsValidationError) Field

Field function returns field value.

func (QueryFuncsValidationError) Key

Key function returns key value.

func (QueryFuncsValidationError) Reason

func (e QueryFuncsValidationError) Reason() string

Reason function returns reason value.

type QueryList

type QueryList struct {
	Datasource string `protobuf:"bytes,1,opt,name=datasource,proto3" json:"datasource,omitempty"`
	Qtype      string `protobuf:"bytes,2,opt,name=qtype,proto3" json:"qtype,omitempty"`
	Query      *Query `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
	Uuid       string `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryList) Descriptor deprecated

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

Deprecated: Use QueryList.ProtoReflect.Descriptor instead.

func (*QueryList) GetDatasource

func (x *QueryList) GetDatasource() string

func (*QueryList) GetQtype

func (x *QueryList) GetQtype() string

func (*QueryList) GetQuery

func (x *QueryList) GetQuery() *Query

func (*QueryList) GetUuid

func (x *QueryList) GetUuid() string

func (*QueryList) ProtoMessage

func (*QueryList) ProtoMessage()

func (*QueryList) ProtoReflect

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

func (*QueryList) Reset

func (x *QueryList) Reset()

func (*QueryList) String

func (x *QueryList) String() string

func (*QueryList) Validate

func (m *QueryList) Validate() error

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

func (m *QueryList) ValidateAll() error

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

type QueryListMultiError

type QueryListMultiError []error

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

func (QueryListMultiError) AllErrors

func (m QueryListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryListMultiError) Error

func (m QueryListMultiError) Error() string

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

type QueryListValidationError

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

QueryListValidationError is the validation error returned by QueryList.Validate if the designated constraints aren't met.

func (QueryListValidationError) Cause

func (e QueryListValidationError) Cause() error

Cause function returns cause value.

func (QueryListValidationError) Error

func (e QueryListValidationError) Error() string

Error satisfies the builtin error interface

func (QueryListValidationError) ErrorName

func (e QueryListValidationError) ErrorName() string

ErrorName returns error name.

func (QueryListValidationError) Field

func (e QueryListValidationError) Field() string

Field function returns field value.

func (QueryListValidationError) Key

Key function returns key value.

func (QueryListValidationError) Reason

func (e QueryListValidationError) Reason() string

Reason function returns reason value.

type QueryMultiError

type QueryMultiError []error

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

func (QueryMultiError) AllErrors

func (m QueryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryMultiError) Error

func (m QueryMultiError) Error() string

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

type QueryValidationError

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

QueryValidationError is the validation error returned by Query.Validate if the designated constraints aren't met.

func (QueryValidationError) Cause

func (e QueryValidationError) Cause() error

Cause function returns cause value.

func (QueryValidationError) Error

func (e QueryValidationError) Error() string

Error satisfies the builtin error interface

func (QueryValidationError) ErrorName

func (e QueryValidationError) ErrorName() string

ErrorName returns error name.

func (QueryValidationError) Field

func (e QueryValidationError) Field() string

Field function returns field value.

func (QueryValidationError) Key

func (e QueryValidationError) Key() bool

Key function returns key value.

func (QueryValidationError) Reason

func (e QueryValidationError) Reason() string

Reason function returns reason value.

type Rule

type Rule struct {
	ConditionLogic string        `protobuf:"bytes,1,opt,name=condition_logic,json=conditionLogic,proto3" json:"condition_logic,omitempty"`
	PeriodNum      int64         `protobuf:"varint,2,opt,name=period_num,json=periodNum,proto3" json:"period_num,omitempty"`
	Status         string        `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	CheckCount     *int64        `protobuf:"varint,4,opt,name=check_count,json=checkCount,proto3,oneof" json:"check_count,omitempty"`
	Strength       *int64        `protobuf:"varint,5,opt,name=strength,proto3,oneof" json:"strength,omitempty"`
	Direction      *string       `protobuf:"bytes,6,opt,name=direction,proto3,oneof" json:"direction,omitempty"`
	Conditions     []*Conditions `protobuf:"bytes,7,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// contains filtered or unexported fields
}

func (*Rule) Descriptor deprecated

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

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetCheckCount

func (x *Rule) GetCheckCount() int64

func (*Rule) GetConditionLogic

func (x *Rule) GetConditionLogic() string

func (*Rule) GetConditions

func (x *Rule) GetConditions() []*Conditions

func (*Rule) GetDirection

func (x *Rule) GetDirection() string

func (*Rule) GetPeriodNum

func (x *Rule) GetPeriodNum() int64

func (*Rule) GetStatus

func (x *Rule) GetStatus() string

func (*Rule) GetStrength

func (x *Rule) GetStrength() int64

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

func (*Rule) Validate

func (m *Rule) Validate() error

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

func (m *Rule) ValidateAll() error

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

type RuleMultiError

type RuleMultiError []error

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

func (RuleMultiError) AllErrors

func (m RuleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RuleMultiError) Error

func (m RuleMultiError) Error() string

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

type RuleValidationError

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

RuleValidationError is the validation error returned by Rule.Validate if the designated constraints aren't met.

func (RuleValidationError) Cause

func (e RuleValidationError) Cause() error

Cause function returns cause value.

func (RuleValidationError) Error

func (e RuleValidationError) Error() string

Error satisfies the builtin error interface

func (RuleValidationError) ErrorName

func (e RuleValidationError) ErrorName() string

ErrorName returns error name.

func (RuleValidationError) Field

func (e RuleValidationError) Field() string

Field function returns field value.

func (RuleValidationError) Key

func (e RuleValidationError) Key() bool

Key function returns key value.

func (RuleValidationError) Reason

func (e RuleValidationError) Reason() string

Reason function returns reason value.

type Target

type Target struct {
	Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
	Dql   string `protobuf:"bytes,2,opt,name=dql,proto3" json:"dql,omitempty"`
	// contains filtered or unexported fields
}

func (*Target) Descriptor deprecated

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

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetAlias

func (x *Target) GetAlias() string

func (*Target) GetDql

func (x *Target) GetDql() string

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

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

func (*Target) Reset

func (x *Target) Reset()

func (*Target) String

func (x *Target) String() string

func (*Target) Validate

func (m *Target) Validate() error

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

func (m *Target) ValidateAll() error

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

type TargetMultiError

type TargetMultiError []error

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

func (TargetMultiError) AllErrors

func (m TargetMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TargetMultiError) Error

func (m TargetMultiError) Error() string

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

type TargetValidationError

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

TargetValidationError is the validation error returned by Target.Validate if the designated constraints aren't met.

func (TargetValidationError) Cause

func (e TargetValidationError) Cause() error

Cause function returns cause value.

func (TargetValidationError) Error

func (e TargetValidationError) Error() string

Error satisfies the builtin error interface

func (TargetValidationError) ErrorName

func (e TargetValidationError) ErrorName() string

ErrorName returns error name.

func (TargetValidationError) Field

func (e TargetValidationError) Field() string

Field function returns field value.

func (TargetValidationError) Key

func (e TargetValidationError) Key() bool

Key function returns key value.

func (TargetValidationError) Reason

func (e TargetValidationError) Reason() string

Reason function returns reason value.

type Unknown

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

func (*Unknown) Descriptor deprecated

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

Deprecated: Use Unknown.ProtoReflect.Descriptor instead.

func (*Unknown) ProtoMessage

func (*Unknown) ProtoMessage()

func (*Unknown) ProtoReflect

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

func (*Unknown) Reset

func (x *Unknown) Reset()

func (*Unknown) String

func (x *Unknown) String() string

func (*Unknown) Validate

func (m *Unknown) Validate() error

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

func (m *Unknown) ValidateAll() error

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

type UnknownMultiError

type UnknownMultiError []error

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

func (UnknownMultiError) AllErrors

func (m UnknownMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnknownMultiError) Error

func (m UnknownMultiError) Error() string

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

type UnknownValidationError

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

UnknownValidationError is the validation error returned by Unknown.Validate if the designated constraints aren't met.

func (UnknownValidationError) Cause

func (e UnknownValidationError) Cause() error

Cause function returns cause value.

func (UnknownValidationError) Error

func (e UnknownValidationError) Error() string

Error satisfies the builtin error interface

func (UnknownValidationError) ErrorName

func (e UnknownValidationError) ErrorName() string

ErrorName returns error name.

func (UnknownValidationError) Field

func (e UnknownValidationError) Field() string

Field function returns field value.

func (UnknownValidationError) Key

func (e UnknownValidationError) Key() bool

Key function returns key value.

func (UnknownValidationError) Reason

func (e UnknownValidationError) 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