eventRules

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package eventRules is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricType_name = map[int32]string{
		0: "NOVAL",
		1: "GAUGE",
		2: "COUNTER",
		3: "HISTOGRAM",
	}
	MetricType_value = map[string]int32{
		"NOVAL":     0,
		"GAUGE":     1,
		"COUNTER":   2,
		"HISTOGRAM": 3,
	}
)

Enum value maps for MetricType.

View Source
var (
	SortOrderEnums_name = map[int32]string{
		0: "UNKNOWN",
		1: "ASC",
		2: "DESC",
	}
	SortOrderEnums_value = map[string]int32{
		"UNKNOWN": 0,
		"ASC":     1,
		"DESC":    2,
	}
)

Enum value maps for SortOrderEnums.

View Source
var File_api_proto_eventRules_proto protoreflect.FileDescriptor

Functions

func RegisterEventRulesServiceHandler

func RegisterEventRulesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEventRulesServiceHandler registers the http handlers for service EventRulesService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEventRulesServiceHandlerClient

func RegisterEventRulesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventRulesServiceClient) error

RegisterEventRulesServiceHandlerClient registers the http handlers for service EventRulesService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventRulesServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventRulesServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EventRulesServiceClient" to call the correct interceptors.

func RegisterEventRulesServiceHandlerFromEndpoint

func RegisterEventRulesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEventRulesServiceHandlerFromEndpoint is same as RegisterEventRulesServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEventRulesServiceHandlerServer

func RegisterEventRulesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventRulesServiceServer) error

RegisterEventRulesServiceHandlerServer registers the http handlers for service EventRulesService to "mux". UnaryRPC :call EventRulesServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventRulesServiceHandlerFromEndpoint instead.

func RegisterEventRulesServiceServer

func RegisterEventRulesServiceServer(s *grpc.Server, srv EventRulesServiceServer)

Types

type CheckDuplicateConditionRequest

type CheckDuplicateConditionRequest struct {

	// string condition = 1;
	RuleObject map[string]string `` /* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CheckDuplicateConditionRequest) Descriptor deprecated

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

Deprecated: Use CheckDuplicateConditionRequest.ProtoReflect.Descriptor instead.

func (*CheckDuplicateConditionRequest) GetRuleObject

func (x *CheckDuplicateConditionRequest) GetRuleObject() map[string]string

func (*CheckDuplicateConditionRequest) ProtoMessage

func (*CheckDuplicateConditionRequest) ProtoMessage()

func (*CheckDuplicateConditionRequest) ProtoReflect

func (*CheckDuplicateConditionRequest) Reset

func (x *CheckDuplicateConditionRequest) Reset()

func (*CheckDuplicateConditionRequest) String

type CheckDuplicateConditionResponse

type CheckDuplicateConditionResponse struct {
	Exists bool   `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
	Hash   string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Name   string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckDuplicateConditionResponse) Descriptor deprecated

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

Deprecated: Use CheckDuplicateConditionResponse.ProtoReflect.Descriptor instead.

func (*CheckDuplicateConditionResponse) GetExists

func (x *CheckDuplicateConditionResponse) GetExists() bool

func (*CheckDuplicateConditionResponse) GetHash

func (*CheckDuplicateConditionResponse) GetName

func (*CheckDuplicateConditionResponse) ProtoMessage

func (*CheckDuplicateConditionResponse) ProtoMessage()

func (*CheckDuplicateConditionResponse) ProtoReflect

func (*CheckDuplicateConditionResponse) Reset

func (*CheckDuplicateConditionResponse) String

type EventMetric

type EventMetric struct {
	Name         string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type         MetricType    `protobuf:"varint,2,opt,name=type,proto3,enum=eventRules.MetricType" json:"type,omitempty"`
	TargetField  string        `protobuf:"bytes,3,opt,name=targetField,proto3" json:"targetField,omitempty"`
	FieldType    string        `protobuf:"bytes,4,opt,name=fieldType,proto3" json:"fieldType,omitempty"`
	PlotType     string        `protobuf:"bytes,5,opt,name=plotType,proto3" json:"plotType,omitempty"`
	Regex        bool          `protobuf:"varint,6,opt,name=regex,proto3" json:"regex,omitempty"`
	PatternLabel *PatternLabel `protobuf:"bytes,7,opt,name=patternLabel,proto3" json:"patternLabel,omitempty"`
	UniqueHash   string        `protobuf:"bytes,8,opt,name=uniqueHash,proto3" json:"uniqueHash,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMetric) Descriptor deprecated

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

Deprecated: Use EventMetric.ProtoReflect.Descriptor instead.

func (*EventMetric) GetFieldType

func (x *EventMetric) GetFieldType() string

func (*EventMetric) GetName

func (x *EventMetric) GetName() string

func (*EventMetric) GetPatternLabel

func (x *EventMetric) GetPatternLabel() *PatternLabel

func (*EventMetric) GetPlotType

func (x *EventMetric) GetPlotType() string

func (*EventMetric) GetRegex

func (x *EventMetric) GetRegex() bool

func (*EventMetric) GetTargetField

func (x *EventMetric) GetTargetField() string

func (*EventMetric) GetType

func (x *EventMetric) GetType() MetricType

func (*EventMetric) GetUniqueHash

func (x *EventMetric) GetUniqueHash() string

func (*EventMetric) ProtoMessage

func (*EventMetric) ProtoMessage()

func (*EventMetric) ProtoReflect

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

func (*EventMetric) Reset

func (x *EventMetric) Reset()

func (*EventMetric) String

func (x *EventMetric) String() string

type EventRule

type EventRule struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Level       string `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
	Condition   string `protobuf:"bytes,4,opt,name=condition,proto3" json:"condition,omitempty"`
	Match       string `protobuf:"bytes,20,opt,name=match,proto3" json:"match,omitempty"`
	Rewrite     string `protobuf:"bytes,21,opt,name=rewrite,proto3" json:"rewrite,omitempty"`
	// map<string,string> extract = 5;
	GroupName         string          `protobuf:"bytes,6,opt,name=groupName,proto3" json:"groupName,omitempty"`
	Active            int32           `protobuf:"varint,7,opt,name=active,proto3" json:"active,omitempty"`       // used as boolean 0 to inactive and 1 to active
	Immutable         int32           `protobuf:"varint,8,opt,name=immutable,proto3" json:"immutable,omitempty"` // used as boolean 0 for mutable and 1 to immutable
	RuleType          string          `protobuf:"bytes,9,opt,name=ruleType,proto3" json:"ruleType,omitempty"`    // possible values {"REGEX", "EVALUATE"} Dectates how to apply rule to logline.
	ApplicationMatch  string          `protobuf:"bytes,10,opt,name=applicationMatch,proto3" json:"applicationMatch,omitempty"`
	AlertConfigured   int32           `protobuf:"varint,11,opt,name=alertConfigured,proto3" json:"alertConfigured,omitempty"`
	RecordMetricsOnly int32           `protobuf:"varint,12,opt,name=recordMetricsOnly,proto3" json:"recordMetricsOnly,omitempty"` // used as boolean, if 1 only record the event counter with prometheus and NOT store event in db
	EventMetrics      []*EventMetric  `protobuf:"bytes,13,rep,name=eventMetrics,proto3" json:"eventMetrics,omitempty"`
	AdditionalLabels  []string        `protobuf:"bytes,14,rep,name=additionalLabels,proto3" json:"additionalLabels,omitempty"`
	PatternLabels     []*PatternLabel `protobuf:"bytes,15,rep,name=patternLabels,proto3" json:"patternLabels,omitempty"`
	Tags              []string        `protobuf:"bytes,16,rep,name=tags,proto3" json:"tags,omitempty"`
	CreatedAt         int64           `protobuf:"varint,17,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	CreatedBy         string          `protobuf:"bytes,18,opt,name=createdBy,proto3" json:"createdBy,omitempty"`
	ExtRuleType       string          `protobuf:"bytes,19,opt,name=extRuleType,proto3" json:"extRuleType,omitempty"`
	Namespace         string          `protobuf:"bytes,22,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRule) Descriptor deprecated

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

Deprecated: Use EventRule.ProtoReflect.Descriptor instead.

func (*EventRule) GetActive

func (x *EventRule) GetActive() int32

func (*EventRule) GetAdditionalLabels

func (x *EventRule) GetAdditionalLabels() []string

func (*EventRule) GetAlertConfigured

func (x *EventRule) GetAlertConfigured() int32

func (*EventRule) GetApplicationMatch

func (x *EventRule) GetApplicationMatch() string

func (*EventRule) GetCondition

func (x *EventRule) GetCondition() string

func (*EventRule) GetCreatedAt

func (x *EventRule) GetCreatedAt() int64

func (*EventRule) GetCreatedBy

func (x *EventRule) GetCreatedBy() string

func (*EventRule) GetDescription

func (x *EventRule) GetDescription() string

func (*EventRule) GetEventMetrics

func (x *EventRule) GetEventMetrics() []*EventMetric

func (*EventRule) GetExtRuleType

func (x *EventRule) GetExtRuleType() string

func (*EventRule) GetGroupName

func (x *EventRule) GetGroupName() string

func (*EventRule) GetImmutable

func (x *EventRule) GetImmutable() int32

func (*EventRule) GetLevel

func (x *EventRule) GetLevel() string

func (*EventRule) GetMatch

func (x *EventRule) GetMatch() string

func (*EventRule) GetName

func (x *EventRule) GetName() string

func (*EventRule) GetNamespace

func (x *EventRule) GetNamespace() string

func (*EventRule) GetPatternLabels

func (x *EventRule) GetPatternLabels() []*PatternLabel

func (*EventRule) GetRecordMetricsOnly

func (x *EventRule) GetRecordMetricsOnly() int32

func (*EventRule) GetRewrite

func (x *EventRule) GetRewrite() string

func (*EventRule) GetRuleType

func (x *EventRule) GetRuleType() string

func (*EventRule) GetTags

func (x *EventRule) GetTags() []string

func (*EventRule) ProtoMessage

func (*EventRule) ProtoMessage()

func (*EventRule) ProtoReflect

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

func (*EventRule) Reset

func (x *EventRule) Reset()

func (*EventRule) String

func (x *EventRule) String() string

type EventRuleExistsRequest

type EventRuleExistsRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRuleExistsRequest) Descriptor deprecated

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

Deprecated: Use EventRuleExistsRequest.ProtoReflect.Descriptor instead.

func (*EventRuleExistsRequest) GetName

func (x *EventRuleExistsRequest) GetName() string

func (*EventRuleExistsRequest) ProtoMessage

func (*EventRuleExistsRequest) ProtoMessage()

func (*EventRuleExistsRequest) ProtoReflect

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

func (*EventRuleExistsRequest) Reset

func (x *EventRuleExistsRequest) Reset()

func (*EventRuleExistsRequest) String

func (x *EventRuleExistsRequest) String() string

type EventRuleExistsResponse

type EventRuleExistsResponse struct {
	Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRuleExistsResponse) Descriptor deprecated

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

Deprecated: Use EventRuleExistsResponse.ProtoReflect.Descriptor instead.

func (*EventRuleExistsResponse) GetExists

func (x *EventRuleExistsResponse) GetExists() bool

func (*EventRuleExistsResponse) ProtoMessage

func (*EventRuleExistsResponse) ProtoMessage()

func (*EventRuleExistsResponse) ProtoReflect

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

func (*EventRuleExistsResponse) Reset

func (x *EventRuleExistsResponse) Reset()

func (*EventRuleExistsResponse) String

func (x *EventRuleExistsResponse) String() string

type EventRuleGroupActiveConfig

type EventRuleGroupActiveConfig struct {
	GroupName string `protobuf:"bytes,1,opt,name=groupName,proto3" json:"groupName,omitempty"`
	Active    int32  `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty"` // used as boolean 0 to inactive and 1 to active
	// contains filtered or unexported fields
}

func (*EventRuleGroupActiveConfig) Descriptor deprecated

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

Deprecated: Use EventRuleGroupActiveConfig.ProtoReflect.Descriptor instead.

func (*EventRuleGroupActiveConfig) GetActive

func (x *EventRuleGroupActiveConfig) GetActive() int32

func (*EventRuleGroupActiveConfig) GetGroupName

func (x *EventRuleGroupActiveConfig) GetGroupName() string

func (*EventRuleGroupActiveConfig) ProtoMessage

func (*EventRuleGroupActiveConfig) ProtoMessage()

func (*EventRuleGroupActiveConfig) ProtoReflect

func (*EventRuleGroupActiveConfig) Reset

func (x *EventRuleGroupActiveConfig) Reset()

func (*EventRuleGroupActiveConfig) String

func (x *EventRuleGroupActiveConfig) String() string

type EventRulesFilter

type EventRulesFilter struct {
	Names       []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	Search      string   `protobuf:"bytes,2,opt,name=search,proto3" json:"search,omitempty"`
	Level       []string `protobuf:"bytes,3,rep,name=level,proto3" json:"level,omitempty"`
	GroupNames  []string `protobuf:"bytes,4,rep,name=groupNames,proto3" json:"groupNames,omitempty"`
	Active      int32    `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`       // used as boolean 0 to inactive and 1 to active
	Immutable   int32    `protobuf:"varint,6,opt,name=immutable,proto3" json:"immutable,omitempty"` // used as boolean 0 for mutable and 1 to immutable
	Tags        []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	CreatedBy   []string `protobuf:"bytes,8,rep,name=createdBy,proto3" json:"createdBy,omitempty"`
	ExtRuleType string   `protobuf:"bytes,10,opt,name=extRuleType,proto3" json:"extRuleType,omitempty"`
	RuleType    string   `protobuf:"bytes,11,opt,name=ruleType,proto3" json:"ruleType,omitempty"`
	CustomRules bool     `protobuf:"varint,12,opt,name=customRules,proto3" json:"customRules,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRulesFilter) Descriptor deprecated

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

Deprecated: Use EventRulesFilter.ProtoReflect.Descriptor instead.

func (*EventRulesFilter) GetActive

func (x *EventRulesFilter) GetActive() int32

func (*EventRulesFilter) GetCreatedBy

func (x *EventRulesFilter) GetCreatedBy() []string

func (*EventRulesFilter) GetCustomRules

func (x *EventRulesFilter) GetCustomRules() bool

func (*EventRulesFilter) GetExtRuleType

func (x *EventRulesFilter) GetExtRuleType() string

func (*EventRulesFilter) GetGroupNames

func (x *EventRulesFilter) GetGroupNames() []string

func (*EventRulesFilter) GetImmutable

func (x *EventRulesFilter) GetImmutable() int32

func (*EventRulesFilter) GetLevel

func (x *EventRulesFilter) GetLevel() []string

func (*EventRulesFilter) GetNames

func (x *EventRulesFilter) GetNames() []string

func (*EventRulesFilter) GetRuleType

func (x *EventRulesFilter) GetRuleType() string

func (*EventRulesFilter) GetSearch

func (x *EventRulesFilter) GetSearch() string

func (*EventRulesFilter) GetTags

func (x *EventRulesFilter) GetTags() []string

func (*EventRulesFilter) ProtoMessage

func (*EventRulesFilter) ProtoMessage()

func (*EventRulesFilter) ProtoReflect

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

func (*EventRulesFilter) Reset

func (x *EventRulesFilter) Reset()

func (*EventRulesFilter) String

func (x *EventRulesFilter) String() string

type EventRulesGroupResponse

type EventRulesGroupResponse struct {
	GroupNames []string `protobuf:"bytes,1,rep,name=groupNames,proto3" json:"groupNames,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRulesGroupResponse) Descriptor deprecated

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

Deprecated: Use EventRulesGroupResponse.ProtoReflect.Descriptor instead.

func (*EventRulesGroupResponse) GetGroupNames

func (x *EventRulesGroupResponse) GetGroupNames() []string

func (*EventRulesGroupResponse) ProtoMessage

func (*EventRulesGroupResponse) ProtoMessage()

func (*EventRulesGroupResponse) ProtoReflect

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

func (*EventRulesGroupResponse) Reset

func (x *EventRulesGroupResponse) Reset()

func (*EventRulesGroupResponse) String

func (x *EventRulesGroupResponse) String() string

type EventRulesQueryRequest

type EventRulesQueryRequest struct {
	Offset uint64            `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Count  uint64            `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Filter *EventRulesFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	Sort   *SortOrder        `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRulesQueryRequest) Descriptor deprecated

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

Deprecated: Use EventRulesQueryRequest.ProtoReflect.Descriptor instead.

func (*EventRulesQueryRequest) GetCount

func (x *EventRulesQueryRequest) GetCount() uint64

func (*EventRulesQueryRequest) GetFilter

func (x *EventRulesQueryRequest) GetFilter() *EventRulesFilter

func (*EventRulesQueryRequest) GetOffset

func (x *EventRulesQueryRequest) GetOffset() uint64

func (*EventRulesQueryRequest) GetSort

func (x *EventRulesQueryRequest) GetSort() *SortOrder

func (*EventRulesQueryRequest) ProtoMessage

func (*EventRulesQueryRequest) ProtoMessage()

func (*EventRulesQueryRequest) ProtoReflect

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

func (*EventRulesQueryRequest) Reset

func (x *EventRulesQueryRequest) Reset()

func (*EventRulesQueryRequest) String

func (x *EventRulesQueryRequest) String() string

type EventRulesResponse

type EventRulesResponse struct {
	Offset     int64        `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Count      int64        `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	TotalCount int64        `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	EventRules []*EventRule `protobuf:"bytes,4,rep,name=eventRules,proto3" json:"eventRules,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRulesResponse) Descriptor deprecated

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

Deprecated: Use EventRulesResponse.ProtoReflect.Descriptor instead.

func (*EventRulesResponse) GetCount

func (x *EventRulesResponse) GetCount() int64

func (*EventRulesResponse) GetEventRules

func (x *EventRulesResponse) GetEventRules() []*EventRule

func (*EventRulesResponse) GetOffset

func (x *EventRulesResponse) GetOffset() int64

func (*EventRulesResponse) GetTotalCount

func (x *EventRulesResponse) GetTotalCount() int64

func (*EventRulesResponse) ProtoMessage

func (*EventRulesResponse) ProtoMessage()

func (*EventRulesResponse) ProtoReflect

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

func (*EventRulesResponse) Reset

func (x *EventRulesResponse) Reset()

func (*EventRulesResponse) String

func (x *EventRulesResponse) String() string

type EventRulesResponseResult

type EventRulesResponseResult struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRulesResponseResult) Descriptor deprecated

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

Deprecated: Use EventRulesResponseResult.ProtoReflect.Descriptor instead.

func (*EventRulesResponseResult) GetError

func (x *EventRulesResponseResult) GetError() string

func (*EventRulesResponseResult) ProtoMessage

func (*EventRulesResponseResult) ProtoMessage()

func (*EventRulesResponseResult) ProtoReflect

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

func (*EventRulesResponseResult) Reset

func (x *EventRulesResponseResult) Reset()

func (*EventRulesResponseResult) String

func (x *EventRulesResponseResult) String() string

type EventRulesServiceClient

type EventRulesServiceClient interface {
	GetEventRuleGroups(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EventRulesGroupResponse, error)
	SetEventRuleGroupsActive(ctx context.Context, in *EventRuleGroupActiveConfig, opts ...grpc.CallOption) (*EventRulesResponseResult, error)
	GetEventRules(ctx context.Context, in *EventRulesQueryRequest, opts ...grpc.CallOption) (*EventRulesResponse, error)
	CreateEventRule(ctx context.Context, in *EventRule, opts ...grpc.CallOption) (*EventRulesResponseResult, error)
	UpdateEventRule(ctx context.Context, in *EventRule, opts ...grpc.CallOption) (*EventRulesResponseResult, error)
	DeleteEventRule(ctx context.Context, in *ProcessEventRuleByNameRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	GetEventRuleByName(ctx context.Context, in *GetEventRuleByNameRequest, opts ...grpc.CallOption) (*EventRule, error)
	TestEventRule(ctx context.Context, in *TestEventRulePayload, opts ...grpc.CallOption) (*TestEventRuleResponse, error)
	CheckEventRuleExists(ctx context.Context, in *EventRuleExistsRequest, opts ...grpc.CallOption) (*EventRuleExistsResponse, error)
	ValidateRuleForDuplicate(ctx context.Context, in *CheckDuplicateConditionRequest, opts ...grpc.CallOption) (*CheckDuplicateConditionResponse, error)
	GenerateEventSequence(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EventSequenceResponse, error)
}

EventRulesServiceClient is the client API for EventRulesService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type EventRulesServiceServer

EventRulesServiceServer is the server API for EventRulesService service.

type EventSequenceResponse

type EventSequenceResponse struct {
	Sequence *Sequence `protobuf:"bytes,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// contains filtered or unexported fields
}

func (*EventSequenceResponse) Descriptor deprecated

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

Deprecated: Use EventSequenceResponse.ProtoReflect.Descriptor instead.

func (*EventSequenceResponse) GetSequence

func (x *EventSequenceResponse) GetSequence() *Sequence

func (*EventSequenceResponse) ProtoMessage

func (*EventSequenceResponse) ProtoMessage()

func (*EventSequenceResponse) ProtoReflect

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

func (*EventSequenceResponse) Reset

func (x *EventSequenceResponse) Reset()

func (*EventSequenceResponse) String

func (x *EventSequenceResponse) String() string

type GetEventRuleByNameRequest

type GetEventRuleByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventRuleByNameRequest) Descriptor deprecated

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

Deprecated: Use GetEventRuleByNameRequest.ProtoReflect.Descriptor instead.

func (*GetEventRuleByNameRequest) GetName

func (x *GetEventRuleByNameRequest) GetName() string

func (*GetEventRuleByNameRequest) ProtoMessage

func (*GetEventRuleByNameRequest) ProtoMessage()

func (*GetEventRuleByNameRequest) ProtoReflect

func (*GetEventRuleByNameRequest) Reset

func (x *GetEventRuleByNameRequest) Reset()

func (*GetEventRuleByNameRequest) String

func (x *GetEventRuleByNameRequest) String() string

type MetricType

type MetricType int32
const (
	MetricType_NOVAL     MetricType = 0
	MetricType_GAUGE     MetricType = 1
	MetricType_COUNTER   MetricType = 2
	MetricType_HISTOGRAM MetricType = 3
)

func (MetricType) Descriptor

func (MetricType) Descriptor() protoreflect.EnumDescriptor

func (MetricType) Enum

func (x MetricType) Enum() *MetricType

func (MetricType) EnumDescriptor deprecated

func (MetricType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MetricType.Descriptor instead.

func (MetricType) Number

func (x MetricType) Number() protoreflect.EnumNumber

func (MetricType) String

func (x MetricType) String() string

func (MetricType) Type

type PatternLabel

type PatternLabel struct {
	Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
	// string matchedPattern = 2;
	MatchedNames []string `protobuf:"bytes,3,rep,name=matchedNames,proto3" json:"matchedNames,omitempty"`
	// contains filtered or unexported fields
}

func (*PatternLabel) Descriptor deprecated

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

Deprecated: Use PatternLabel.ProtoReflect.Descriptor instead.

func (*PatternLabel) GetMatchedNames

func (x *PatternLabel) GetMatchedNames() []string

func (*PatternLabel) GetPattern

func (x *PatternLabel) GetPattern() string

func (*PatternLabel) ProtoMessage

func (*PatternLabel) ProtoMessage()

func (*PatternLabel) ProtoReflect

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

func (*PatternLabel) Reset

func (x *PatternLabel) Reset()

func (*PatternLabel) String

func (x *PatternLabel) String() string

type ProcessEventRuleByNameRequest

type ProcessEventRuleByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessEventRuleByNameRequest) Descriptor deprecated

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

Deprecated: Use ProcessEventRuleByNameRequest.ProtoReflect.Descriptor instead.

func (*ProcessEventRuleByNameRequest) GetName

func (*ProcessEventRuleByNameRequest) ProtoMessage

func (*ProcessEventRuleByNameRequest) ProtoMessage()

func (*ProcessEventRuleByNameRequest) ProtoReflect

func (*ProcessEventRuleByNameRequest) Reset

func (x *ProcessEventRuleByNameRequest) Reset()

func (*ProcessEventRuleByNameRequest) String

type Sequence

type Sequence struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Sequence) Descriptor deprecated

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

Deprecated: Use Sequence.ProtoReflect.Descriptor instead.

func (*Sequence) GetId

func (x *Sequence) GetId() uint64

func (*Sequence) ProtoMessage

func (*Sequence) ProtoMessage()

func (*Sequence) ProtoReflect

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

func (*Sequence) Reset

func (x *Sequence) Reset()

func (*Sequence) String

func (x *Sequence) String() string

type SortOrder

type SortOrder struct {
	Attribute string         `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`
	Order     SortOrderEnums `protobuf:"varint,2,opt,name=order,proto3,enum=eventRules.SortOrderEnums" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*SortOrder) Descriptor deprecated

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

Deprecated: Use SortOrder.ProtoReflect.Descriptor instead.

func (*SortOrder) GetAttribute

func (x *SortOrder) GetAttribute() string

func (*SortOrder) GetOrder

func (x *SortOrder) GetOrder() SortOrderEnums

func (*SortOrder) ProtoMessage

func (*SortOrder) ProtoMessage()

func (*SortOrder) ProtoReflect

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

func (*SortOrder) Reset

func (x *SortOrder) Reset()

func (*SortOrder) String

func (x *SortOrder) String() string

type SortOrderEnums

type SortOrderEnums int32
const (
	SortOrderEnums_UNKNOWN SortOrderEnums = 0
	SortOrderEnums_ASC     SortOrderEnums = 1
	SortOrderEnums_DESC    SortOrderEnums = 2
)

func (SortOrderEnums) Descriptor

func (SortOrderEnums) Enum

func (x SortOrderEnums) Enum() *SortOrderEnums

func (SortOrderEnums) EnumDescriptor deprecated

func (SortOrderEnums) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortOrderEnums.Descriptor instead.

func (SortOrderEnums) Number

func (SortOrderEnums) String

func (x SortOrderEnums) String() string

func (SortOrderEnums) Type

type TestEventRulePayload

type TestEventRulePayload struct {
	RuleType  string            `protobuf:"bytes,1,opt,name=ruleType,proto3" json:"ruleType,omitempty"`
	Condition string            `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
	Params    map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestEventRulePayload) Descriptor deprecated

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

Deprecated: Use TestEventRulePayload.ProtoReflect.Descriptor instead.

func (*TestEventRulePayload) GetCondition

func (x *TestEventRulePayload) GetCondition() string

func (*TestEventRulePayload) GetParams

func (x *TestEventRulePayload) GetParams() map[string]string

func (*TestEventRulePayload) GetRuleType

func (x *TestEventRulePayload) GetRuleType() string

func (*TestEventRulePayload) ProtoMessage

func (*TestEventRulePayload) ProtoMessage()

func (*TestEventRulePayload) ProtoReflect

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

func (*TestEventRulePayload) Reset

func (x *TestEventRulePayload) Reset()

func (*TestEventRulePayload) String

func (x *TestEventRulePayload) String() string

type TestEventRuleResponse

type TestEventRuleResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*TestEventRuleResponse) Descriptor deprecated

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

Deprecated: Use TestEventRuleResponse.ProtoReflect.Descriptor instead.

func (*TestEventRuleResponse) GetResult

func (x *TestEventRuleResponse) GetResult() string

func (*TestEventRuleResponse) ProtoMessage

func (*TestEventRuleResponse) ProtoMessage()

func (*TestEventRuleResponse) ProtoReflect

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

func (*TestEventRuleResponse) Reset

func (x *TestEventRuleResponse) Reset()

func (*TestEventRuleResponse) String

func (x *TestEventRuleResponse) String() string

type UnimplementedEventRulesServiceServer

type UnimplementedEventRulesServiceServer struct {
}

UnimplementedEventRulesServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedEventRulesServiceServer) CheckEventRuleExists

func (*UnimplementedEventRulesServiceServer) CreateEventRule

func (*UnimplementedEventRulesServiceServer) DeleteEventRule

func (*UnimplementedEventRulesServiceServer) GenerateEventSequence

func (*UnimplementedEventRulesServiceServer) GetEventRuleByName

func (*UnimplementedEventRulesServiceServer) GetEventRuleGroups

func (*UnimplementedEventRulesServiceServer) GetEventRules

func (*UnimplementedEventRulesServiceServer) SetEventRuleGroupsActive

func (*UnimplementedEventRulesServiceServer) TestEventRule

func (*UnimplementedEventRulesServiceServer) UpdateEventRule

Jump to

Keyboard shortcuts

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