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

BlackList

Guance Cloud supports filtering data that meets the conditions by setting a blacklist. After configuring the blacklist, the data that meets the conditions will no longer be reported to the Guance Cloud workspace, helping you save data storage costs.

Documentation

Overview

Code generated by Iacker. DO NOT EDIT IT.

Package v1

BlackList

Guance Cloud supports filtering data that meets the conditions by setting a blacklist. After configuring the blacklist, the data that meets the conditions will no longer be reported to the Guance Cloud workspace, helping you save data storage costs.

Index

Constants

View Source
const (
	// FilterOperationIn is the value of Equal
	FilterOperationIn = "in"
	// FilterOperationNotIn is the value of Not equal
	FilterOperationNotIn = "not in"
	// FilterOperationMatch is the value of Match
	FilterOperationMatch = "match"
	// FilterOperationNotMatch is the value of Not match
	FilterOperationNotMatch = "not match"
)
View Source
const (
	// SourceTypeLogging is the value of logging
	SourceTypeLogging = "logging"
	// SourceTypeObject is the value of object
	SourceTypeObject = "object"
	// SourceTypeCustomObject is the value of custom_object
	SourceTypeCustomObject = "custom_object"
	// SourceTypeNetwork is the value of network
	SourceTypeNetwork = "network"
	// SourceTypeTracing is the value of tracing
	SourceTypeTracing = "tracing"
	// SourceTypeRum is the value of RUM
	SourceTypeRum = "rum"
	// SourceTypeSecurity is the value of security
	SourceTypeSecurity = "security"
	// SourceTypeKeyevent is the value of keyevent
	SourceTypeKeyevent = "keyevent"
	// SourceTypeMetric is the value of metric
	SourceTypeMetric = "metric"
)
View Source
const ResourceType = "BlackList"

ResourceType is the unique type name of BlackList

Variables

View Source
var File_pkg_resources_blacklist_v1_blacklist_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BlackList

type BlackList struct {

	// Source
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Filters
	FilterRules []*Filter `protobuf:"bytes,2,rep,name=filter_rules,json=filterRules,proto3" json:"filter_rules,omitempty"`
	// contains filtered or unexported fields
}

func (*BlackList) Descriptor deprecated

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

Deprecated: Use BlackList.ProtoReflect.Descriptor instead.

func (*BlackList) GetFilterRules

func (x *BlackList) GetFilterRules() []*Filter

func (*BlackList) GetSource

func (x *BlackList) GetSource() *Source

func (*BlackList) ProtoMessage

func (*BlackList) ProtoMessage()

func (*BlackList) ProtoReflect

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

func (*BlackList) Reset

func (x *BlackList) Reset()

func (*BlackList) String

func (x *BlackList) String() string

func (*BlackList) Validate

func (m *BlackList) Validate() error

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

func (m *BlackList) ValidateAll() error

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

type BlackListMultiError

type BlackListMultiError []error

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

func (BlackListMultiError) AllErrors

func (m BlackListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlackListMultiError) Error

func (m BlackListMultiError) Error() string

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

type BlackListValidationError

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

BlackListValidationError is the validation error returned by BlackList.Validate if the designated constraints aren't met.

func (BlackListValidationError) Cause

func (e BlackListValidationError) Cause() error

Cause function returns cause value.

func (BlackListValidationError) Error

func (e BlackListValidationError) Error() string

Error satisfies the builtin error interface

func (BlackListValidationError) ErrorName

func (e BlackListValidationError) ErrorName() string

ErrorName returns error name.

func (BlackListValidationError) Field

func (e BlackListValidationError) Field() string

Field function returns field value.

func (BlackListValidationError) Key

Key function returns key value.

func (BlackListValidationError) Reason

func (e BlackListValidationError) Reason() string

Reason function returns reason value.

type Filter

type Filter struct {

	// Name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Operation
	Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
	// Condition, represented by DQL
	Condition string `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"`
	// Values
	Values []string `protobuf:"bytes,4,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

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

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetCondition

func (x *Filter) GetCondition() string

func (*Filter) GetName

func (x *Filter) GetName() string

func (*Filter) GetOperation

func (x *Filter) GetOperation() string

func (*Filter) GetValues

func (x *Filter) GetValues() []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 Source

type Source struct {

	// Source Type
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Source
	Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Source) Descriptor deprecated

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

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetName

func (x *Source) GetName() string

func (*Source) GetType

func (x *Source) GetType() string

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

func (*Source) Validate

func (m *Source) Validate() error

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

func (m *Source) ValidateAll() error

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

type SourceMultiError

type SourceMultiError []error

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

func (SourceMultiError) AllErrors

func (m SourceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SourceMultiError) Error

func (m SourceMultiError) Error() string

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

type SourceValidationError

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

SourceValidationError is the validation error returned by Source.Validate if the designated constraints aren't met.

func (SourceValidationError) Cause

func (e SourceValidationError) Cause() error

Cause function returns cause value.

func (SourceValidationError) Error

func (e SourceValidationError) Error() string

Error satisfies the builtin error interface

func (SourceValidationError) ErrorName

func (e SourceValidationError) ErrorName() string

ErrorName returns error name.

func (SourceValidationError) Field

func (e SourceValidationError) Field() string

Field function returns field value.

func (SourceValidationError) Key

func (e SourceValidationError) Key() bool

Key function returns key value.

func (SourceValidationError) Reason

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