v1alpha

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package v1alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	AlertConditionState_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "OK",
		2: "FIRING",
		3: "SILENCED",
	}
	AlertConditionState_value = map[string]int32{
		"UNSPECIFIED": 0,
		"OK":          1,
		"FIRING":      2,
		"SILENCED":    3,
	}
)

Enum value maps for AlertConditionState.

View Source
var (
	Severity_name = map[int32]string{
		0: "INFO",
		1: "WARNING",
		2: "ERROR",
		3: "CRITICAL",
	}
	Severity_value = map[string]int32{
		"INFO":     0,
		"WARNING":  1,
		"ERROR":    2,
		"CRITICAL": 3,
	}
)

Enum value maps for Severity.

View Source
var (
	AlertType_name = map[int32]string{
		0: "SYSTEM",
		1: "KUBE_STATE",
		2: "COMPOSITION",
		3: "CONTROL_FLOW",
	}
	AlertType_value = map[string]int32{
		"SYSTEM":       0,
		"KUBE_STATE":   1,
		"COMPOSITION":  2,
		"CONTROL_FLOW": 3,
	}
)

Enum value maps for AlertType.

View Source
var (
	CompositionAction_name = map[int32]string{
		0: "AND",
		1: "OR",
	}
	CompositionAction_value = map[string]int32{
		"AND": 0,
		"OR":  1,
	}
)

Enum value maps for CompositionAction.

View Source
var (
	ControlFlowAction_name = map[int32]string{
		0: "IF_THEN",
		1: "IF_NOT_THEN",
	}
	ControlFlowAction_value = map[string]int32{
		"IF_THEN":     0,
		"IF_NOT_THEN": 1,
	}
)

Enum value maps for ControlFlowAction.

View Source
var Alerting_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Alerting",
	HandlerType: (*AlertingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "TriggerAlerts",
			Handler:    _Alerting_TriggerAlerts_Handler,
		},
		{
			MethodName: "CreateAlertLog",
			Handler:    _Alerting_CreateAlertLog_Handler,
		},
		{
			MethodName: "ListAlertLogs",
			Handler:    _Alerting_ListAlertLogs_Handler,
		},
		{
			MethodName: "CreateAlertCondition",
			Handler:    _Alerting_CreateAlertCondition_Handler,
		},
		{
			MethodName: "GetAlertCondition",
			Handler:    _Alerting_GetAlertCondition_Handler,
		},
		{
			MethodName: "ListAlertConditions",
			Handler:    _Alerting_ListAlertConditions_Handler,
		},
		{
			MethodName: "UpdateAlertCondition",
			Handler:    _Alerting_UpdateAlertCondition_Handler,
		},
		{
			MethodName: "ListAlertConditionChoices",
			Handler:    _Alerting_ListAlertConditionChoices_Handler,
		},
		{
			MethodName: "DeleteAlertCondition",
			Handler:    _Alerting_DeleteAlertCondition_Handler,
		},
		{
			MethodName: "ListAvailableTemplatesForType",
			Handler:    _Alerting_ListAvailableTemplatesForType_Handler,
		},
		{
			MethodName: "AlertConditionStatus",
			Handler:    _Alerting_AlertConditionStatus_Handler,
		},
		{
			MethodName: "PreviewAlertCondition",
			Handler:    _Alerting_PreviewAlertCondition_Handler,
		},
		{
			MethodName: "ActivateSilence",
			Handler:    _Alerting_ActivateSilence_Handler,
		},
		{
			MethodName: "DeactivateSilence",
			Handler:    _Alerting_DeactivateSilence_Handler,
		},
		{
			MethodName: "CreateAlertEndpoint",
			Handler:    _Alerting_CreateAlertEndpoint_Handler,
		},
		{
			MethodName: "GetAlertEndpoint",
			Handler:    _Alerting_GetAlertEndpoint_Handler,
		},
		{
			MethodName: "ListAlertEndpoints",
			Handler:    _Alerting_ListAlertEndpoints_Handler,
		},
		{
			MethodName: "UpdateAlertEndpoint",
			Handler:    _Alerting_UpdateAlertEndpoint_Handler,
		},
		{
			MethodName: "DeleteAlertEndpoint",
			Handler:    _Alerting_DeleteAlertEndpoint_Handler,
		},
		{
			MethodName: "TestAlertEndpoint",
			Handler:    _Alerting_TestAlertEndpoint_Handler,
		},
		{
			MethodName: "CreateEndpointImplementation",
			Handler:    _Alerting_CreateEndpointImplementation_Handler,
		},
		{
			MethodName: "UpdateEndpointImplementation",
			Handler:    _Alerting_UpdateEndpointImplementation_Handler,
		},
		{
			MethodName: "DeleteEndpointImplementation",
			Handler:    _Alerting_DeleteEndpointImplementation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/rancher/opni/pkg/alerting/v1alpha/alerting.proto",
}

Alerting_ServiceDesc is the grpc.ServiceDesc for Alerting service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EnumConditionToDatasource = make(map[AlertType]*string)

EnumConditionToDatasource

nil values indicate they are composition alerts we need this since each alert tree must only have one datasource atm

View Source
var EnumConditionToImplementation = make(map[AlertType]AlertTypeDetails)
View Source
var File_github_com_rancher_opni_pkg_alerting_v1alpha_alerting_proto protoreflect.FileDescriptor

Functions

func DetailsHasImplementation added in v0.6.0

func DetailsHasImplementation(a *AlertTypeDetails) error

func EnumHasImplementation added in v0.6.0

func EnumHasImplementation(a AlertType) error

func RegisterAlertingHandler

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

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

func RegisterAlertingHandlerClient

func RegisterAlertingHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertingClient) error

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

func RegisterAlertingHandlerFromEndpoint

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

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

func RegisterAlertingHandlerServer

func RegisterAlertingHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlertingServer) error

RegisterAlertingHandlerServer registers the http handlers for service Alerting to "mux". UnaryRPC :call AlertingServer 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 RegisterAlertingHandlerFromEndpoint instead.

func RegisterAlertingServer

func RegisterAlertingServer(s grpc.ServiceRegistrar, srv AlertingServer)

Types

type AlertCondition

type AlertCondition 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"`
	Labels         []string                `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
	Severity       Severity                `protobuf:"varint,4,opt,name=severity,proto3,enum=Severity" json:"severity,omitempty"`
	AlertType      *AlertTypeDetails       `protobuf:"bytes,5,opt,name=alertType,proto3" json:"alertType,omitempty"`
	NotificationId *string                 `protobuf:"bytes,6,opt,name=notificationId,proto3,oneof" json:"notificationId,omitempty"`
	Details        *EndpointImplementation `protobuf:"bytes,7,opt,name=details,proto3" json:"details,omitempty"`
	// Set & Unset via the silence API
	Silence *SilenceInfo `protobuf:"bytes,8,opt,name=silence,proto3" json:"silence,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertCondition) Descriptor deprecated

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

Deprecated: Use AlertCondition.ProtoReflect.Descriptor instead.

func (*AlertCondition) GetAlertType added in v0.6.0

func (x *AlertCondition) GetAlertType() *AlertTypeDetails

func (*AlertCondition) GetDescription added in v0.6.0

func (x *AlertCondition) GetDescription() string

func (*AlertCondition) GetDetails added in v0.6.0

func (x *AlertCondition) GetDetails() *EndpointImplementation

func (*AlertCondition) GetLabels added in v0.6.0

func (x *AlertCondition) GetLabels() []string

func (*AlertCondition) GetName added in v0.6.0

func (x *AlertCondition) GetName() string

func (*AlertCondition) GetNotificationId added in v0.6.0

func (x *AlertCondition) GetNotificationId() string

func (*AlertCondition) GetSeverity added in v0.6.0

func (x *AlertCondition) GetSeverity() Severity

func (*AlertCondition) GetSilence added in v0.6.0

func (x *AlertCondition) GetSilence() *SilenceInfo

func (*AlertCondition) ProtoMessage

func (*AlertCondition) ProtoMessage()

func (*AlertCondition) ProtoReflect

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

func (*AlertCondition) Reset

func (x *AlertCondition) Reset()

func (*AlertCondition) String

func (x *AlertCondition) String() string

func (*AlertCondition) Validate added in v0.6.0

func (a *AlertCondition) Validate() error

type AlertConditionComposition added in v0.6.0

type AlertConditionComposition struct {
	Action CompositionAction `protobuf:"varint,1,opt,name=action,proto3,enum=CompositionAction" json:"action,omitempty"`
	X      *v1.Reference     `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"`
	Y      *v1.Reference     `protobuf:"bytes,3,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertConditionComposition) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertConditionComposition.ProtoReflect.Descriptor instead.

func (*AlertConditionComposition) GetAction added in v0.6.0

func (*AlertConditionComposition) GetX added in v0.6.0

func (*AlertConditionComposition) GetY added in v0.6.0

func (*AlertConditionComposition) ListTemplates added in v0.6.0

func (a *AlertConditionComposition) ListTemplates() []string

func (*AlertConditionComposition) ProtoMessage added in v0.6.0

func (*AlertConditionComposition) ProtoMessage()

func (*AlertConditionComposition) ProtoReflect added in v0.6.0

func (*AlertConditionComposition) Reset added in v0.6.0

func (x *AlertConditionComposition) Reset()

func (*AlertConditionComposition) String added in v0.6.0

func (x *AlertConditionComposition) String() string

func (*AlertConditionComposition) Validate added in v0.6.0

func (c *AlertConditionComposition) Validate() error

type AlertConditionControlFlow added in v0.6.0

type AlertConditionControlFlow struct {
	Action ControlFlowAction    `protobuf:"varint,1,opt,name=action,proto3,enum=ControlFlowAction" json:"action,omitempty"`
	X      *v1.Reference        `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"`
	Y      *v1.Reference        `protobuf:"bytes,3,opt,name=y,proto3" json:"y,omitempty"`
	For    *durationpb.Duration `protobuf:"bytes,4,opt,name=for,proto3" json:"for,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertConditionControlFlow) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertConditionControlFlow.ProtoReflect.Descriptor instead.

func (*AlertConditionControlFlow) GetAction added in v0.6.0

func (*AlertConditionControlFlow) GetFor added in v0.6.0

func (*AlertConditionControlFlow) GetX added in v0.6.0

func (*AlertConditionControlFlow) GetY added in v0.6.0

func (*AlertConditionControlFlow) ListTemplates added in v0.6.0

func (a *AlertConditionControlFlow) ListTemplates() []string

func (*AlertConditionControlFlow) ProtoMessage added in v0.6.0

func (*AlertConditionControlFlow) ProtoMessage()

func (*AlertConditionControlFlow) ProtoReflect added in v0.6.0

func (*AlertConditionControlFlow) Reset added in v0.6.0

func (x *AlertConditionControlFlow) Reset()

func (*AlertConditionControlFlow) String added in v0.6.0

func (x *AlertConditionControlFlow) String() string

func (*AlertConditionControlFlow) Validate added in v0.6.0

func (c *AlertConditionControlFlow) Validate() error

type AlertConditionKubeState added in v0.6.0

type AlertConditionKubeState struct {
	ClusterId string `protobuf:"bytes,1,opt,name=clusterId,proto3" json:"clusterId,omitempty"`
	// must be one of the listed kube objects
	ObjectType string `protobuf:"bytes,2,opt,name=objectType,proto3" json:"objectType,omitempty"`
	// kubernetes object name
	ObjectName string `protobuf:"bytes,3,opt,name=objectName,proto3" json:"objectName,omitempty"`
	// kubernetes namespace
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// must be one of the listed kube states
	State string               `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
	For   *durationpb.Duration `protobuf:"bytes,6,opt,name=for,proto3" json:"for,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertConditionKubeState) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertConditionKubeState.ProtoReflect.Descriptor instead.

func (*AlertConditionKubeState) GetClusterId added in v0.6.0

func (x *AlertConditionKubeState) GetClusterId() string

func (*AlertConditionKubeState) GetFor added in v0.6.0

func (*AlertConditionKubeState) GetNamespace added in v0.6.0

func (x *AlertConditionKubeState) GetNamespace() string

func (*AlertConditionKubeState) GetObjectName added in v0.6.0

func (x *AlertConditionKubeState) GetObjectName() string

func (*AlertConditionKubeState) GetObjectType added in v0.6.0

func (x *AlertConditionKubeState) GetObjectType() string

func (*AlertConditionKubeState) GetState added in v0.6.0

func (x *AlertConditionKubeState) GetState() string

func (*AlertConditionKubeState) ListTemplates added in v0.6.0

func (a *AlertConditionKubeState) ListTemplates() []string

func (*AlertConditionKubeState) ProtoMessage added in v0.6.0

func (*AlertConditionKubeState) ProtoMessage()

func (*AlertConditionKubeState) ProtoReflect added in v0.6.0

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

func (*AlertConditionKubeState) Reset added in v0.6.0

func (x *AlertConditionKubeState) Reset()

func (*AlertConditionKubeState) String added in v0.6.0

func (x *AlertConditionKubeState) String() string

func (*AlertConditionKubeState) Validate added in v0.6.0

func (k *AlertConditionKubeState) Validate() error

type AlertConditionList

type AlertConditionList struct {
	Items []*AlertConditionWithId `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertConditionList) Descriptor deprecated

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

Deprecated: Use AlertConditionList.ProtoReflect.Descriptor instead.

func (*AlertConditionList) GetItems

func (x *AlertConditionList) GetItems() []*AlertConditionWithId

func (*AlertConditionList) ProtoMessage

func (*AlertConditionList) ProtoMessage()

func (*AlertConditionList) ProtoReflect

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

func (*AlertConditionList) Reset

func (x *AlertConditionList) Reset()

func (*AlertConditionList) String

func (x *AlertConditionList) String() string

type AlertConditionState added in v0.6.0

type AlertConditionState int32
const (
	AlertConditionState_UNSPECIFIED AlertConditionState = 0
	AlertConditionState_OK          AlertConditionState = 1
	AlertConditionState_FIRING      AlertConditionState = 2
	AlertConditionState_SILENCED    AlertConditionState = 3
)

func (AlertConditionState) Descriptor added in v0.6.0

func (AlertConditionState) Enum added in v0.6.0

func (AlertConditionState) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use AlertConditionState.Descriptor instead.

func (AlertConditionState) Number added in v0.6.0

func (AlertConditionState) String added in v0.6.0

func (x AlertConditionState) String() string

func (AlertConditionState) Type added in v0.6.0

type AlertConditionSystem added in v0.6.0

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

func (*AlertConditionSystem) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertConditionSystem.ProtoReflect.Descriptor instead.

func (*AlertConditionSystem) ListTemplates added in v0.6.0

func (a *AlertConditionSystem) ListTemplates() []string

func (*AlertConditionSystem) ProtoMessage added in v0.6.0

func (*AlertConditionSystem) ProtoMessage()

func (*AlertConditionSystem) ProtoReflect added in v0.6.0

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

func (*AlertConditionSystem) Reset added in v0.6.0

func (x *AlertConditionSystem) Reset()

func (*AlertConditionSystem) String added in v0.6.0

func (x *AlertConditionSystem) String() string

func (*AlertConditionSystem) Validate added in v0.6.0

func (s *AlertConditionSystem) Validate() error

type AlertConditionWithId added in v0.6.0

type AlertConditionWithId struct {
	Id             *v1.Reference   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AlertCondition *AlertCondition `protobuf:"bytes,2,opt,name=alertCondition,proto3" json:"alertCondition,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertConditionWithId) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertConditionWithId.ProtoReflect.Descriptor instead.

func (*AlertConditionWithId) GetAlertCondition added in v0.6.0

func (x *AlertConditionWithId) GetAlertCondition() *AlertCondition

func (*AlertConditionWithId) GetId added in v0.6.0

func (x *AlertConditionWithId) GetId() *v1.Reference

func (*AlertConditionWithId) ProtoMessage added in v0.6.0

func (*AlertConditionWithId) ProtoMessage()

func (*AlertConditionWithId) ProtoReflect added in v0.6.0

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

func (*AlertConditionWithId) Reset added in v0.6.0

func (x *AlertConditionWithId) Reset()

func (*AlertConditionWithId) String added in v0.6.0

func (x *AlertConditionWithId) String() string

type AlertDetailChoicesRequest added in v0.6.0

type AlertDetailChoicesRequest struct {
	AlertType AlertType `protobuf:"varint,1,opt,name=alertType,proto3,enum=AlertType" json:"alertType,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertDetailChoicesRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertDetailChoicesRequest.ProtoReflect.Descriptor instead.

func (*AlertDetailChoicesRequest) GetAlertType added in v0.6.0

func (x *AlertDetailChoicesRequest) GetAlertType() AlertType

func (*AlertDetailChoicesRequest) ProtoMessage added in v0.6.0

func (*AlertDetailChoicesRequest) ProtoMessage()

func (*AlertDetailChoicesRequest) ProtoReflect added in v0.6.0

func (*AlertDetailChoicesRequest) Reset added in v0.6.0

func (x *AlertDetailChoicesRequest) Reset()

func (*AlertDetailChoicesRequest) String added in v0.6.0

func (x *AlertDetailChoicesRequest) String() string

func (*AlertDetailChoicesRequest) Validate added in v0.6.0

func (a *AlertDetailChoicesRequest) Validate() error

type AlertDetailChoicesResponse added in v0.6.0

type AlertDetailChoicesResponse struct {
	Choices []*AlertTypeDetails `protobuf:"bytes,1,rep,name=choices,proto3" json:"choices,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertDetailChoicesResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertDetailChoicesResponse.ProtoReflect.Descriptor instead.

func (*AlertDetailChoicesResponse) GetChoices added in v0.6.0

func (x *AlertDetailChoicesResponse) GetChoices() []*AlertTypeDetails

func (*AlertDetailChoicesResponse) ProtoMessage added in v0.6.0

func (*AlertDetailChoicesResponse) ProtoMessage()

func (*AlertDetailChoicesResponse) ProtoReflect added in v0.6.0

func (*AlertDetailChoicesResponse) Reset added in v0.6.0

func (x *AlertDetailChoicesResponse) Reset()

func (*AlertDetailChoicesResponse) String added in v0.6.0

func (x *AlertDetailChoicesResponse) String() string

type AlertEndpoint

type AlertEndpoint 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"`
	// Types that are assignable to Endpoint:
	//
	//	*AlertEndpoint_Slack
	//	*AlertEndpoint_Email
	//	*AlertEndpoint_Msteams
	//	*AlertEndpoint_Webhook
	Endpoint isAlertEndpoint_Endpoint `protobuf_oneof:"endpoint"`
	// contains filtered or unexported fields
}

func (*AlertEndpoint) Descriptor deprecated

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

Deprecated: Use AlertEndpoint.ProtoReflect.Descriptor instead.

func (*AlertEndpoint) GetDescription added in v0.6.0

func (x *AlertEndpoint) GetDescription() string

func (*AlertEndpoint) GetEmail added in v0.6.0

func (x *AlertEndpoint) GetEmail() *EmailEndpoint

func (*AlertEndpoint) GetEndpoint added in v0.6.0

func (m *AlertEndpoint) GetEndpoint() isAlertEndpoint_Endpoint

func (*AlertEndpoint) GetMsteams added in v0.6.0

func (x *AlertEndpoint) GetMsteams() *TeamsEndpoint

func (*AlertEndpoint) GetName added in v0.6.0

func (x *AlertEndpoint) GetName() string

func (*AlertEndpoint) GetSlack added in v0.6.0

func (x *AlertEndpoint) GetSlack() *SlackEndpoint

func (*AlertEndpoint) GetWebhook added in v0.6.0

func (x *AlertEndpoint) GetWebhook() *WebhookEndpoint

func (*AlertEndpoint) ProtoMessage

func (*AlertEndpoint) ProtoMessage()

func (*AlertEndpoint) ProtoReflect

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

func (*AlertEndpoint) Reset

func (x *AlertEndpoint) Reset()

func (*AlertEndpoint) String

func (x *AlertEndpoint) String() string

func (*AlertEndpoint) Validate added in v0.6.0

func (a *AlertEndpoint) Validate() error

type AlertEndpointList

type AlertEndpointList struct {
	Items []*AlertEndpointWithId `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertEndpointList) Descriptor deprecated

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

Deprecated: Use AlertEndpointList.ProtoReflect.Descriptor instead.

func (*AlertEndpointList) GetItems

func (x *AlertEndpointList) GetItems() []*AlertEndpointWithId

func (*AlertEndpointList) ProtoMessage

func (*AlertEndpointList) ProtoMessage()

func (*AlertEndpointList) ProtoReflect

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

func (*AlertEndpointList) Reset

func (x *AlertEndpointList) Reset()

func (*AlertEndpointList) String

func (x *AlertEndpointList) String() string

type AlertEndpointWithId added in v0.6.0

type AlertEndpointWithId struct {
	Endpoint *AlertEndpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Id       *v1.Reference  `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertEndpointWithId) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertEndpointWithId.ProtoReflect.Descriptor instead.

func (*AlertEndpointWithId) GetEndpoint added in v0.6.0

func (x *AlertEndpointWithId) GetEndpoint() *AlertEndpoint

func (*AlertEndpointWithId) GetId added in v0.6.0

func (x *AlertEndpointWithId) GetId() *v1.Reference

func (*AlertEndpointWithId) ProtoMessage added in v0.6.0

func (*AlertEndpointWithId) ProtoMessage()

func (*AlertEndpointWithId) ProtoReflect added in v0.6.0

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

func (*AlertEndpointWithId) Reset added in v0.6.0

func (x *AlertEndpointWithId) Reset()

func (*AlertEndpointWithId) String added in v0.6.0

func (x *AlertEndpointWithId) String() string

type AlertEndpoint_Email added in v0.6.0

type AlertEndpoint_Email struct {
	Email *EmailEndpoint `protobuf:"bytes,5,opt,name=email,proto3,oneof"`
}

type AlertEndpoint_Msteams added in v0.6.0

type AlertEndpoint_Msteams struct {
	Msteams *TeamsEndpoint `protobuf:"bytes,6,opt,name=msteams,proto3,oneof"`
}

type AlertEndpoint_Slack added in v0.6.0

type AlertEndpoint_Slack struct {
	Slack *SlackEndpoint `protobuf:"bytes,4,opt,name=slack,proto3,oneof"`
}

type AlertEndpoint_Webhook added in v0.6.0

type AlertEndpoint_Webhook struct {
	Webhook *WebhookEndpoint `protobuf:"bytes,7,opt,name=webhook,proto3,oneof"`
}

type AlertForest added in v0.6.0

type AlertForest struct {
	Action ControlFlowAction `protobuf:"varint,1,opt,name=action,proto3,enum=ControlFlowAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertForest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertForest.ProtoReflect.Descriptor instead.

func (*AlertForest) GetAction added in v0.6.0

func (x *AlertForest) GetAction() ControlFlowAction

func (*AlertForest) ProtoMessage added in v0.6.0

func (*AlertForest) ProtoMessage()

func (*AlertForest) ProtoReflect added in v0.6.0

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

func (*AlertForest) Reset added in v0.6.0

func (x *AlertForest) Reset()

func (*AlertForest) String added in v0.6.0

func (x *AlertForest) String() string

type AlertStatusResponse added in v0.6.0

type AlertStatusResponse struct {
	State AlertConditionState `protobuf:"varint,1,opt,name=state,proto3,enum=AlertConditionState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertStatusResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertStatusResponse.ProtoReflect.Descriptor instead.

func (*AlertStatusResponse) GetState added in v0.6.0

func (*AlertStatusResponse) ProtoMessage added in v0.6.0

func (*AlertStatusResponse) ProtoMessage()

func (*AlertStatusResponse) ProtoReflect added in v0.6.0

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

func (*AlertStatusResponse) Reset added in v0.6.0

func (x *AlertStatusResponse) Reset()

func (*AlertStatusResponse) String added in v0.6.0

func (x *AlertStatusResponse) String() string

type AlertTree added in v0.6.0

type AlertTree struct {
	Root *AlertTreeNode `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertTree) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertTree.ProtoReflect.Descriptor instead.

func (*AlertTree) GetRoot added in v0.6.0

func (x *AlertTree) GetRoot() *AlertTreeNode

func (*AlertTree) ProtoMessage added in v0.6.0

func (*AlertTree) ProtoMessage()

func (*AlertTree) ProtoReflect added in v0.6.0

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

func (*AlertTree) Reset added in v0.6.0

func (x *AlertTree) Reset()

func (*AlertTree) String added in v0.6.0

func (x *AlertTree) String() string

type AlertTreeNode added in v0.6.0

type AlertTreeNode struct {

	// Types that are assignable to Condtion:
	//
	//	*AlertTreeNode_Item
	Condtion isAlertTreeNode_Condtion `protobuf_oneof:"condtion"`
	Left     *AlertTreeNode           `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"`
	Right    *AlertTreeNode           `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertTreeNode) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertTreeNode.ProtoReflect.Descriptor instead.

func (*AlertTreeNode) GetCondtion added in v0.6.0

func (m *AlertTreeNode) GetCondtion() isAlertTreeNode_Condtion

func (*AlertTreeNode) GetItem added in v0.6.0

func (x *AlertTreeNode) GetItem() *AlertConditionWithId

func (*AlertTreeNode) GetLeft added in v0.6.0

func (x *AlertTreeNode) GetLeft() *AlertTreeNode

func (*AlertTreeNode) GetRight added in v0.6.0

func (x *AlertTreeNode) GetRight() *AlertTreeNode

func (*AlertTreeNode) ProtoMessage added in v0.6.0

func (*AlertTreeNode) ProtoMessage()

func (*AlertTreeNode) ProtoReflect added in v0.6.0

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

func (*AlertTreeNode) Reset added in v0.6.0

func (x *AlertTreeNode) Reset()

func (*AlertTreeNode) String added in v0.6.0

func (x *AlertTreeNode) String() string

type AlertTreeNode_Item added in v0.6.0

type AlertTreeNode_Item struct {
	Item *AlertConditionWithId `protobuf:"bytes,1,opt,name=item,proto3,oneof"`
}

type AlertType added in v0.6.0

type AlertType int32
const (
	AlertType_SYSTEM       AlertType = 0
	AlertType_KUBE_STATE   AlertType = 1
	AlertType_COMPOSITION  AlertType = 2
	AlertType_CONTROL_FLOW AlertType = 3
)

func (AlertType) Descriptor added in v0.6.0

func (AlertType) Descriptor() protoreflect.EnumDescriptor

func (AlertType) Enum added in v0.6.0

func (x AlertType) Enum() *AlertType

func (AlertType) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use AlertType.Descriptor instead.

func (AlertType) Number added in v0.6.0

func (x AlertType) Number() protoreflect.EnumNumber

func (AlertType) String added in v0.6.0

func (x AlertType) String() string

func (AlertType) Type added in v0.6.0

type AlertTypeDetails added in v0.6.0

type AlertTypeDetails struct {

	// Types that are assignable to Type:
	//
	//	*AlertTypeDetails_System
	//	*AlertTypeDetails_KubeState
	//	*AlertTypeDetails_Composition
	//	*AlertTypeDetails_ControlFlow
	Type isAlertTypeDetails_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*AlertTypeDetails) Descriptor deprecated added in v0.6.0

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

Deprecated: Use AlertTypeDetails.ProtoReflect.Descriptor instead.

func (*AlertTypeDetails) GetComposition added in v0.6.0

func (x *AlertTypeDetails) GetComposition() *AlertConditionComposition

func (*AlertTypeDetails) GetControlFlow added in v0.6.0

func (x *AlertTypeDetails) GetControlFlow() *AlertConditionControlFlow

func (*AlertTypeDetails) GetKubeState added in v0.6.0

func (x *AlertTypeDetails) GetKubeState() *AlertConditionKubeState

func (*AlertTypeDetails) GetSystem added in v0.6.0

func (x *AlertTypeDetails) GetSystem() *AlertConditionSystem

func (*AlertTypeDetails) GetType added in v0.6.0

func (m *AlertTypeDetails) GetType() isAlertTypeDetails_Type

func (*AlertTypeDetails) ListTemplates added in v0.6.0

func (a *AlertTypeDetails) ListTemplates() []string

func (*AlertTypeDetails) ProtoMessage added in v0.6.0

func (*AlertTypeDetails) ProtoMessage()

func (*AlertTypeDetails) ProtoReflect added in v0.6.0

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

func (*AlertTypeDetails) Reset added in v0.6.0

func (x *AlertTypeDetails) Reset()

func (*AlertTypeDetails) String added in v0.6.0

func (x *AlertTypeDetails) String() string

func (*AlertTypeDetails) Validate added in v0.6.0

func (d *AlertTypeDetails) Validate() error

type AlertTypeDetails_Composition added in v0.6.0

type AlertTypeDetails_Composition struct {
	Composition *AlertConditionComposition `protobuf:"bytes,3,opt,name=composition,proto3,oneof"`
}

type AlertTypeDetails_ControlFlow added in v0.6.0

type AlertTypeDetails_ControlFlow struct {
	ControlFlow *AlertConditionControlFlow `protobuf:"bytes,4,opt,name=controlFlow,proto3,oneof"`
}

type AlertTypeDetails_KubeState added in v0.6.0

type AlertTypeDetails_KubeState struct {
	KubeState *AlertConditionKubeState `protobuf:"bytes,2,opt,name=kubeState,proto3,oneof"`
}

type AlertTypeDetails_System added in v0.6.0

type AlertTypeDetails_System struct {
	System *AlertConditionSystem `protobuf:"bytes,1,opt,name=system,proto3,oneof"`
}

type AlertingClient

type AlertingClient interface {
	// opni internal use
	TriggerAlerts(ctx context.Context, in *TriggerAlertsRequest, opts ...grpc.CallOption) (*TriggerAlertsResponse, error)
	// alerting internal use only
	CreateAlertLog(ctx context.Context, in *v1.AlertLog, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListAlertLogs(ctx context.Context, in *ListAlertLogRequest, opts ...grpc.CallOption) (*InformativeAlertLogList, error)
	CreateAlertCondition(ctx context.Context, in *AlertCondition, opts ...grpc.CallOption) (*v1.Reference, error)
	GetAlertCondition(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*AlertCondition, error)
	ListAlertConditions(ctx context.Context, in *ListAlertConditionRequest, opts ...grpc.CallOption) (*AlertConditionList, error)
	UpdateAlertCondition(ctx context.Context, in *UpdateAlertConditionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListAlertConditionChoices(ctx context.Context, in *AlertDetailChoicesRequest, opts ...grpc.CallOption) (*ListAlertTypeDetails, error)
	DeleteAlertCondition(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListAvailableTemplatesForType(ctx context.Context, in *AlertDetailChoicesRequest, opts ...grpc.CallOption) (*TemplatesResponse, error)
	AlertConditionStatus(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*AlertStatusResponse, error)
	// unimplemented
	PreviewAlertCondition(ctx context.Context, in *PreviewAlertConditionRequest, opts ...grpc.CallOption) (*PreviewAlertConditionResponse, error)
	ActivateSilence(ctx context.Context, in *SilenceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// id corresponds to conditionId
	DeactivateSilence(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CreateAlertEndpoint(ctx context.Context, in *AlertEndpoint, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetAlertEndpoint(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*AlertEndpoint, error)
	ListAlertEndpoints(ctx context.Context, in *ListAlertEndpointsRequest, opts ...grpc.CallOption) (*AlertEndpointList, error)
	UpdateAlertEndpoint(ctx context.Context, in *UpdateAlertEndpointRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteAlertEndpoint(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// unimplemented
	TestAlertEndpoint(ctx context.Context, in *TestAlertEndpointRequest, opts ...grpc.CallOption) (*TestAlertEndpointResponse, error)
	// alerting internal use only
	CreateEndpointImplementation(ctx context.Context, in *CreateImplementation, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// alerting internal use only
	UpdateEndpointImplementation(ctx context.Context, in *CreateImplementation, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// alerting internal use only
	// conditionMustBePassed in here
	DeleteEndpointImplementation(ctx context.Context, in *v1.Reference, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AlertingClient is the client API for Alerting service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAlertingClient

func NewAlertingClient(cc grpc.ClientConnInterface) AlertingClient

type AlertingServer

type AlertingServer interface {
	// opni internal use
	TriggerAlerts(context.Context, *TriggerAlertsRequest) (*TriggerAlertsResponse, error)
	// alerting internal use only
	CreateAlertLog(context.Context, *v1.AlertLog) (*emptypb.Empty, error)
	ListAlertLogs(context.Context, *ListAlertLogRequest) (*InformativeAlertLogList, error)
	CreateAlertCondition(context.Context, *AlertCondition) (*v1.Reference, error)
	GetAlertCondition(context.Context, *v1.Reference) (*AlertCondition, error)
	ListAlertConditions(context.Context, *ListAlertConditionRequest) (*AlertConditionList, error)
	UpdateAlertCondition(context.Context, *UpdateAlertConditionRequest) (*emptypb.Empty, error)
	ListAlertConditionChoices(context.Context, *AlertDetailChoicesRequest) (*ListAlertTypeDetails, error)
	DeleteAlertCondition(context.Context, *v1.Reference) (*emptypb.Empty, error)
	ListAvailableTemplatesForType(context.Context, *AlertDetailChoicesRequest) (*TemplatesResponse, error)
	AlertConditionStatus(context.Context, *v1.Reference) (*AlertStatusResponse, error)
	// unimplemented
	PreviewAlertCondition(context.Context, *PreviewAlertConditionRequest) (*PreviewAlertConditionResponse, error)
	ActivateSilence(context.Context, *SilenceRequest) (*emptypb.Empty, error)
	// id corresponds to conditionId
	DeactivateSilence(context.Context, *v1.Reference) (*emptypb.Empty, error)
	CreateAlertEndpoint(context.Context, *AlertEndpoint) (*emptypb.Empty, error)
	GetAlertEndpoint(context.Context, *v1.Reference) (*AlertEndpoint, error)
	ListAlertEndpoints(context.Context, *ListAlertEndpointsRequest) (*AlertEndpointList, error)
	UpdateAlertEndpoint(context.Context, *UpdateAlertEndpointRequest) (*emptypb.Empty, error)
	DeleteAlertEndpoint(context.Context, *v1.Reference) (*emptypb.Empty, error)
	// unimplemented
	TestAlertEndpoint(context.Context, *TestAlertEndpointRequest) (*TestAlertEndpointResponse, error)
	// alerting internal use only
	CreateEndpointImplementation(context.Context, *CreateImplementation) (*emptypb.Empty, error)
	// alerting internal use only
	UpdateEndpointImplementation(context.Context, *CreateImplementation) (*emptypb.Empty, error)
	// alerting internal use only
	// conditionMustBePassed in here
	DeleteEndpointImplementation(context.Context, *v1.Reference) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

AlertingServer is the server API for Alerting service. All implementations must embed UnimplementedAlertingServer for forward compatibility

type CompositionAction added in v0.6.0

type CompositionAction int32
const (
	CompositionAction_AND CompositionAction = 0
	CompositionAction_OR  CompositionAction = 1
)

func (CompositionAction) Descriptor added in v0.6.0

func (CompositionAction) Enum added in v0.6.0

func (CompositionAction) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use CompositionAction.Descriptor instead.

func (CompositionAction) Number added in v0.6.0

func (CompositionAction) String added in v0.6.0

func (x CompositionAction) String() string

func (CompositionAction) Type added in v0.6.0

type ControlFlowAction added in v0.6.0

type ControlFlowAction int32
const (
	ControlFlowAction_IF_THEN     ControlFlowAction = 0
	ControlFlowAction_IF_NOT_THEN ControlFlowAction = 1
)

func (ControlFlowAction) Descriptor added in v0.6.0

func (ControlFlowAction) Enum added in v0.6.0

func (ControlFlowAction) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use ControlFlowAction.Descriptor instead.

func (ControlFlowAction) Number added in v0.6.0

func (ControlFlowAction) String added in v0.6.0

func (x ControlFlowAction) String() string

func (ControlFlowAction) Type added in v0.6.0

type CreateImplementation added in v0.6.0

type CreateImplementation struct {
	EndpointId     *v1.Reference           `protobuf:"bytes,1,opt,name=endpointId,proto3" json:"endpointId,omitempty"`
	ConditionId    *v1.Reference           `protobuf:"bytes,2,opt,name=conditionId,proto3" json:"conditionId,omitempty"`
	Implementation *EndpointImplementation `protobuf:"bytes,3,opt,name=implementation,proto3" json:"implementation,omitempty"`
	// contains filtered or unexported fields
}

TODO: include general configs such as repeat interval, throttling via group_wait, group_interval, etc

func (*CreateImplementation) Descriptor deprecated added in v0.6.0

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

Deprecated: Use CreateImplementation.ProtoReflect.Descriptor instead.

func (*CreateImplementation) GetConditionId added in v0.6.0

func (x *CreateImplementation) GetConditionId() *v1.Reference

func (*CreateImplementation) GetEndpointId added in v0.6.0

func (x *CreateImplementation) GetEndpointId() *v1.Reference

func (*CreateImplementation) GetImplementation added in v0.6.0

func (x *CreateImplementation) GetImplementation() *EndpointImplementation

func (*CreateImplementation) ProtoMessage added in v0.6.0

func (*CreateImplementation) ProtoMessage()

func (*CreateImplementation) ProtoReflect added in v0.6.0

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

func (*CreateImplementation) Reset added in v0.6.0

func (x *CreateImplementation) Reset()

func (*CreateImplementation) String added in v0.6.0

func (x *CreateImplementation) String() string

func (*CreateImplementation) Validate added in v0.6.0

func (c *CreateImplementation) Validate() error

type EmailEndpoint added in v0.6.0

type EmailEndpoint struct {

	// email recipient
	To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	// smtp server sender email
	SmtpFrom *string `protobuf:"bytes,2,opt,name=smtpFrom,proto3,oneof" json:"smtpFrom,omitempty"`
	// smtp server host & port
	SmtpSmartHost *string `protobuf:"bytes,3,opt,name=smtpSmartHost,proto3,oneof" json:"smtpSmartHost,omitempty"`
	// smtp server username
	SmtpAuthUsername *string `protobuf:"bytes,4,opt,name=smtpAuthUsername,proto3,oneof" json:"smtpAuthUsername,omitempty"`
	// smtp server identity
	SmtpAuthIdentity *string `protobuf:"bytes,5,opt,name=smtpAuthIdentity,proto3,oneof" json:"smtpAuthIdentity,omitempty"`
	// smtp server password
	SmtpAuthPassword *string `protobuf:"bytes,6,opt,name=smtpAuthPassword,proto3,oneof" json:"smtpAuthPassword,omitempty"`
	// does SMTP require TSL : yes or no
	SmtpRequireTLS *bool `protobuf:"varint,7,opt,name=smtpRequireTLS,proto3,oneof" json:"smtpRequireTLS,omitempty"`
	// contains filtered or unexported fields
}

func (*EmailEndpoint) Descriptor deprecated added in v0.6.0

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

Deprecated: Use EmailEndpoint.ProtoReflect.Descriptor instead.

func (*EmailEndpoint) GetSmtpAuthIdentity added in v0.6.0

func (x *EmailEndpoint) GetSmtpAuthIdentity() string

func (*EmailEndpoint) GetSmtpAuthPassword added in v0.6.0

func (x *EmailEndpoint) GetSmtpAuthPassword() string

func (*EmailEndpoint) GetSmtpAuthUsername added in v0.6.0

func (x *EmailEndpoint) GetSmtpAuthUsername() string

func (*EmailEndpoint) GetSmtpFrom added in v0.6.0

func (x *EmailEndpoint) GetSmtpFrom() string

func (*EmailEndpoint) GetSmtpRequireTLS added in v0.6.0

func (x *EmailEndpoint) GetSmtpRequireTLS() bool

func (*EmailEndpoint) GetSmtpSmartHost added in v0.6.0

func (x *EmailEndpoint) GetSmtpSmartHost() string

func (*EmailEndpoint) GetTo added in v0.6.0

func (x *EmailEndpoint) GetTo() string

func (*EmailEndpoint) ProtoMessage added in v0.6.0

func (*EmailEndpoint) ProtoMessage()

func (*EmailEndpoint) ProtoReflect added in v0.6.0

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

func (*EmailEndpoint) Reset added in v0.6.0

func (x *EmailEndpoint) Reset()

func (*EmailEndpoint) String added in v0.6.0

func (x *EmailEndpoint) String() string

func (*EmailEndpoint) Validate added in v0.6.0

func (e *EmailEndpoint) Validate() error

type EndpointImplementation added in v0.6.0

type EndpointImplementation struct {

	// title of the alert (required)
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// body message of the alert (required)
	Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// initial delay before firing the alert (optional) (default=10s)
	InitialDelay *durationpb.Duration `protobuf:"bytes,3,opt,name=initialDelay,proto3,oneof" json:"initialDelay,omitempty"`
	// how often to resend alert messages on active alerts (default =10s)
	RepeatInterval *durationpb.Duration `protobuf:"bytes,4,opt,name=repeatInterval,proto3,oneof" json:"repeatInterval,omitempty"`
	// How long to wait before sending notifications on new condition that has already fired recently
	// (default= 10m)
	ThrottlingDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=throttlingDuration,proto3,oneof" json:"throttlingDuration,omitempty"`
	// send a notification when the alert is no longer firing? yes/no (default = no)
	SendResolved *bool `protobuf:"varint,6,opt,name=sendResolved,proto3,oneof" json:"sendResolved,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointImplementation) Descriptor deprecated added in v0.6.0

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

Deprecated: Use EndpointImplementation.ProtoReflect.Descriptor instead.

func (*EndpointImplementation) GetBody added in v0.6.0

func (x *EndpointImplementation) GetBody() string

func (*EndpointImplementation) GetInitialDelay added in v0.6.0

func (x *EndpointImplementation) GetInitialDelay() *durationpb.Duration

func (*EndpointImplementation) GetRepeatInterval added in v0.6.0

func (x *EndpointImplementation) GetRepeatInterval() *durationpb.Duration

func (*EndpointImplementation) GetSendResolved added in v0.6.0

func (x *EndpointImplementation) GetSendResolved() bool

func (*EndpointImplementation) GetThrottlingDuration added in v0.6.0

func (x *EndpointImplementation) GetThrottlingDuration() *durationpb.Duration

func (*EndpointImplementation) GetTitle added in v0.6.0

func (x *EndpointImplementation) GetTitle() string

func (*EndpointImplementation) ProtoMessage added in v0.6.0

func (*EndpointImplementation) ProtoMessage()

func (*EndpointImplementation) ProtoReflect added in v0.6.0

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

func (*EndpointImplementation) Reset added in v0.6.0

func (x *EndpointImplementation) Reset()

func (*EndpointImplementation) String added in v0.6.0

func (x *EndpointImplementation) String() string

func (*EndpointImplementation) Validate added in v0.6.0

func (e *EndpointImplementation) Validate() error

type InformativeAlertLog added in v0.6.0

type InformativeAlertLog struct {
	ConditionId *v1.Reference   `protobuf:"bytes,1,opt,name=conditionId,proto3" json:"conditionId,omitempty"`
	Condition   *AlertCondition `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
	Log         *v1.AlertLog    `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*InformativeAlertLog) Descriptor deprecated added in v0.6.0

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

Deprecated: Use InformativeAlertLog.ProtoReflect.Descriptor instead.

func (*InformativeAlertLog) GetCondition added in v0.6.0

func (x *InformativeAlertLog) GetCondition() *AlertCondition

func (*InformativeAlertLog) GetConditionId added in v0.6.0

func (x *InformativeAlertLog) GetConditionId() *v1.Reference

func (*InformativeAlertLog) GetLog added in v0.6.0

func (x *InformativeAlertLog) GetLog() *v1.AlertLog

func (*InformativeAlertLog) ProtoMessage added in v0.6.0

func (*InformativeAlertLog) ProtoMessage()

func (*InformativeAlertLog) ProtoReflect added in v0.6.0

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

func (*InformativeAlertLog) Reset added in v0.6.0

func (x *InformativeAlertLog) Reset()

func (*InformativeAlertLog) String added in v0.6.0

func (x *InformativeAlertLog) String() string

type InformativeAlertLogList added in v0.6.0

type InformativeAlertLogList struct {
	Items []*InformativeAlertLog `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*InformativeAlertLogList) Descriptor deprecated added in v0.6.0

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

Deprecated: Use InformativeAlertLogList.ProtoReflect.Descriptor instead.

func (*InformativeAlertLogList) GetItems added in v0.6.0

func (*InformativeAlertLogList) ProtoMessage added in v0.6.0

func (*InformativeAlertLogList) ProtoMessage()

func (*InformativeAlertLogList) ProtoReflect added in v0.6.0

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

func (*InformativeAlertLogList) Reset added in v0.6.0

func (x *InformativeAlertLogList) Reset()

func (*InformativeAlertLogList) String added in v0.6.0

func (x *InformativeAlertLogList) String() string

type KubeObjectGroups added in v0.6.0

type KubeObjectGroups struct {
	ObjectTypeToNamespaces map[string]*NamespaceObjects `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*KubeObjectGroups) Descriptor deprecated added in v0.6.0

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

Deprecated: Use KubeObjectGroups.ProtoReflect.Descriptor instead.

func (*KubeObjectGroups) GetObjectTypeToNamespaces added in v0.6.0

func (x *KubeObjectGroups) GetObjectTypeToNamespaces() map[string]*NamespaceObjects

func (*KubeObjectGroups) ProtoMessage added in v0.6.0

func (*KubeObjectGroups) ProtoMessage()

func (*KubeObjectGroups) ProtoReflect added in v0.6.0

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

func (*KubeObjectGroups) Reset added in v0.6.0

func (x *KubeObjectGroups) Reset()

func (*KubeObjectGroups) String added in v0.6.0

func (x *KubeObjectGroups) String() string

type ListAlertConditionComposition added in v0.6.0

type ListAlertConditionComposition struct {
	X []*v1.Reference `protobuf:"bytes,1,rep,name=x,proto3" json:"x,omitempty"`
	Y []*v1.Reference `protobuf:"bytes,2,rep,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertConditionComposition) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListAlertConditionComposition.ProtoReflect.Descriptor instead.

func (*ListAlertConditionComposition) GetX added in v0.6.0

func (*ListAlertConditionComposition) GetY added in v0.6.0

func (*ListAlertConditionComposition) ProtoMessage added in v0.6.0

func (*ListAlertConditionComposition) ProtoMessage()

func (*ListAlertConditionComposition) ProtoReflect added in v0.6.0

func (*ListAlertConditionComposition) Reset added in v0.6.0

func (x *ListAlertConditionComposition) Reset()

func (*ListAlertConditionComposition) String added in v0.6.0

type ListAlertConditionControlFlow added in v0.6.0

type ListAlertConditionControlFlow struct {
	X    []*v1.Reference        `protobuf:"bytes,1,rep,name=x,proto3" json:"x,omitempty"`
	Y    []*v1.Reference        `protobuf:"bytes,2,rep,name=y,proto3" json:"y,omitempty"`
	Fors []*durationpb.Duration `protobuf:"bytes,3,rep,name=fors,proto3" json:"fors,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertConditionControlFlow) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListAlertConditionControlFlow.ProtoReflect.Descriptor instead.

func (*ListAlertConditionControlFlow) GetFors added in v0.6.0

func (*ListAlertConditionControlFlow) GetX added in v0.6.0

func (*ListAlertConditionControlFlow) GetY added in v0.6.0

func (*ListAlertConditionControlFlow) ProtoMessage added in v0.6.0

func (*ListAlertConditionControlFlow) ProtoMessage()

func (*ListAlertConditionControlFlow) ProtoReflect added in v0.6.0

func (*ListAlertConditionControlFlow) Reset added in v0.6.0

func (x *ListAlertConditionControlFlow) Reset()

func (*ListAlertConditionControlFlow) String added in v0.6.0

type ListAlertConditionKubeState added in v0.6.0

type ListAlertConditionKubeState struct {
	ClusterToObjects map[string]*KubeObjectGroups `` /* 173-byte string literal not displayed */
	States           []string                     `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"`
	Fors             []*durationpb.Duration       `protobuf:"bytes,3,rep,name=fors,proto3" json:"fors,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertConditionKubeState) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListAlertConditionKubeState.ProtoReflect.Descriptor instead.

func (*ListAlertConditionKubeState) GetClusterToObjects added in v0.6.0

func (x *ListAlertConditionKubeState) GetClusterToObjects() map[string]*KubeObjectGroups

func (*ListAlertConditionKubeState) GetFors added in v0.6.0

func (*ListAlertConditionKubeState) GetStates added in v0.6.0

func (x *ListAlertConditionKubeState) GetStates() []string

func (*ListAlertConditionKubeState) ProtoMessage added in v0.6.0

func (*ListAlertConditionKubeState) ProtoMessage()

func (*ListAlertConditionKubeState) ProtoReflect added in v0.6.0

func (*ListAlertConditionKubeState) Reset added in v0.6.0

func (x *ListAlertConditionKubeState) Reset()

func (*ListAlertConditionKubeState) String added in v0.6.0

func (x *ListAlertConditionKubeState) String() string

type ListAlertConditionRequest

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

func (*ListAlertConditionRequest) Descriptor deprecated

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

Deprecated: Use ListAlertConditionRequest.ProtoReflect.Descriptor instead.

func (*ListAlertConditionRequest) ProtoMessage

func (*ListAlertConditionRequest) ProtoMessage()

func (*ListAlertConditionRequest) ProtoReflect

func (*ListAlertConditionRequest) Reset

func (x *ListAlertConditionRequest) Reset()

func (*ListAlertConditionRequest) String

func (x *ListAlertConditionRequest) String() string

func (*ListAlertConditionRequest) Validate added in v0.6.0

func (l *ListAlertConditionRequest) Validate() error

type ListAlertConditionSystem added in v0.6.0

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

func (*ListAlertConditionSystem) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListAlertConditionSystem.ProtoReflect.Descriptor instead.

func (*ListAlertConditionSystem) ProtoMessage added in v0.6.0

func (*ListAlertConditionSystem) ProtoMessage()

func (*ListAlertConditionSystem) ProtoReflect added in v0.6.0

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

func (*ListAlertConditionSystem) Reset added in v0.6.0

func (x *ListAlertConditionSystem) Reset()

func (*ListAlertConditionSystem) String added in v0.6.0

func (x *ListAlertConditionSystem) String() string

type ListAlertEndpointsRequest

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

func (*ListAlertEndpointsRequest) Descriptor deprecated

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

Deprecated: Use ListAlertEndpointsRequest.ProtoReflect.Descriptor instead.

func (*ListAlertEndpointsRequest) ProtoMessage

func (*ListAlertEndpointsRequest) ProtoMessage()

func (*ListAlertEndpointsRequest) ProtoReflect

func (*ListAlertEndpointsRequest) Reset

func (x *ListAlertEndpointsRequest) Reset()

func (*ListAlertEndpointsRequest) String

func (x *ListAlertEndpointsRequest) String() string

func (*ListAlertEndpointsRequest) Validate added in v0.6.0

func (l *ListAlertEndpointsRequest) Validate() error

type ListAlertLogRequest

type ListAlertLogRequest struct {
	Labels         []string               `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	Limit          uint64                 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	StartTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=startTimestamp,proto3" json:"startTimestamp,omitempty"`
	EndTimestamp   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=endTimestamp,proto3" json:"endTimestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertLogRequest) Descriptor deprecated

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

Deprecated: Use ListAlertLogRequest.ProtoReflect.Descriptor instead.

func (*ListAlertLogRequest) GetEndTimestamp

func (x *ListAlertLogRequest) GetEndTimestamp() *timestamppb.Timestamp

func (*ListAlertLogRequest) GetLabels

func (x *ListAlertLogRequest) GetLabels() []string

func (*ListAlertLogRequest) GetLimit

func (x *ListAlertLogRequest) GetLimit() uint64

func (*ListAlertLogRequest) GetStartTimestamp

func (x *ListAlertLogRequest) GetStartTimestamp() *timestamppb.Timestamp

func (*ListAlertLogRequest) ProtoMessage

func (*ListAlertLogRequest) ProtoMessage()

func (*ListAlertLogRequest) ProtoReflect

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

func (*ListAlertLogRequest) Reset

func (x *ListAlertLogRequest) Reset()

func (*ListAlertLogRequest) String

func (x *ListAlertLogRequest) String() string

type ListAlertTypeDetails added in v0.6.0

type ListAlertTypeDetails struct {

	// Types that are assignable to Type:
	//
	//	*ListAlertTypeDetails_System
	//	*ListAlertTypeDetails_KubeState
	//	*ListAlertTypeDetails_Composition
	//	*ListAlertTypeDetails_ControlFlow
	Type isListAlertTypeDetails_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*ListAlertTypeDetails) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListAlertTypeDetails.ProtoReflect.Descriptor instead.

func (*ListAlertTypeDetails) GetComposition added in v0.6.0

func (*ListAlertTypeDetails) GetControlFlow added in v0.6.0

func (*ListAlertTypeDetails) GetKubeState added in v0.6.0

func (*ListAlertTypeDetails) GetSystem added in v0.6.0

func (*ListAlertTypeDetails) GetType added in v0.6.0

func (m *ListAlertTypeDetails) GetType() isListAlertTypeDetails_Type

func (*ListAlertTypeDetails) ProtoMessage added in v0.6.0

func (*ListAlertTypeDetails) ProtoMessage()

func (*ListAlertTypeDetails) ProtoReflect added in v0.6.0

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

func (*ListAlertTypeDetails) Reset added in v0.6.0

func (x *ListAlertTypeDetails) Reset()

func (*ListAlertTypeDetails) String added in v0.6.0

func (x *ListAlertTypeDetails) String() string

type ListAlertTypeDetails_Composition added in v0.6.0

type ListAlertTypeDetails_Composition struct {
	Composition *ListAlertConditionComposition `protobuf:"bytes,3,opt,name=composition,proto3,oneof"`
}

type ListAlertTypeDetails_ControlFlow added in v0.6.0

type ListAlertTypeDetails_ControlFlow struct {
	ControlFlow *ListAlertConditionControlFlow `protobuf:"bytes,4,opt,name=controlFlow,proto3,oneof"`
}

type ListAlertTypeDetails_KubeState added in v0.6.0

type ListAlertTypeDetails_KubeState struct {
	KubeState *ListAlertConditionKubeState `protobuf:"bytes,2,opt,name=kubeState,proto3,oneof"`
}

type ListAlertTypeDetails_System added in v0.6.0

type ListAlertTypeDetails_System struct {
	System *ListAlertConditionSystem `protobuf:"bytes,1,opt,name=system,proto3,oneof"`
}

type ListSelectAlertInfo added in v0.6.0

type ListSelectAlertInfo struct {
	AlertType AlertType `protobuf:"varint,1,opt,name=alertType,proto3,enum=AlertType" json:"alertType,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSelectAlertInfo) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ListSelectAlertInfo.ProtoReflect.Descriptor instead.

func (*ListSelectAlertInfo) GetAlertType added in v0.6.0

func (x *ListSelectAlertInfo) GetAlertType() AlertType

func (*ListSelectAlertInfo) ProtoMessage added in v0.6.0

func (*ListSelectAlertInfo) ProtoMessage()

func (*ListSelectAlertInfo) ProtoReflect added in v0.6.0

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

func (*ListSelectAlertInfo) Reset added in v0.6.0

func (x *ListSelectAlertInfo) Reset()

func (*ListSelectAlertInfo) String added in v0.6.0

func (x *ListSelectAlertInfo) String() string

type NamespaceObjects added in v0.6.0

type NamespaceObjects struct {
	NamespaceToObjectList map[string]*ObjectList `` /* 183-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NamespaceObjects) Descriptor deprecated added in v0.6.0

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

Deprecated: Use NamespaceObjects.ProtoReflect.Descriptor instead.

func (*NamespaceObjects) GetNamespaceToObjectList added in v0.6.0

func (x *NamespaceObjects) GetNamespaceToObjectList() map[string]*ObjectList

func (*NamespaceObjects) ProtoMessage added in v0.6.0

func (*NamespaceObjects) ProtoMessage()

func (*NamespaceObjects) ProtoReflect added in v0.6.0

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

func (*NamespaceObjects) Reset added in v0.6.0

func (x *NamespaceObjects) Reset()

func (*NamespaceObjects) String added in v0.6.0

func (x *NamespaceObjects) String() string

type ObjectList added in v0.6.0

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

func (*ObjectList) Descriptor deprecated added in v0.6.0

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

Deprecated: Use ObjectList.ProtoReflect.Descriptor instead.

func (*ObjectList) GetObjects added in v0.6.0

func (x *ObjectList) GetObjects() []string

func (*ObjectList) ProtoMessage added in v0.6.0

func (*ObjectList) ProtoMessage()

func (*ObjectList) ProtoReflect added in v0.6.0

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

func (*ObjectList) Reset added in v0.6.0

func (x *ObjectList) Reset()

func (*ObjectList) String added in v0.6.0

func (x *ObjectList) String() string

type PreviewAlertConditionRequest

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

func (*PreviewAlertConditionRequest) Descriptor deprecated

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

Deprecated: Use PreviewAlertConditionRequest.ProtoReflect.Descriptor instead.

func (*PreviewAlertConditionRequest) ProtoMessage

func (*PreviewAlertConditionRequest) ProtoMessage()

func (*PreviewAlertConditionRequest) ProtoReflect

func (*PreviewAlertConditionRequest) Reset

func (x *PreviewAlertConditionRequest) Reset()

func (*PreviewAlertConditionRequest) String

type PreviewAlertConditionResponse

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

func (*PreviewAlertConditionResponse) Descriptor deprecated

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

Deprecated: Use PreviewAlertConditionResponse.ProtoReflect.Descriptor instead.

func (*PreviewAlertConditionResponse) ProtoMessage

func (*PreviewAlertConditionResponse) ProtoMessage()

func (*PreviewAlertConditionResponse) ProtoReflect

func (*PreviewAlertConditionResponse) Reset

func (x *PreviewAlertConditionResponse) Reset()

func (*PreviewAlertConditionResponse) String

type Severity added in v0.6.0

type Severity int32
const (
	Severity_INFO     Severity = 0
	Severity_WARNING  Severity = 1
	Severity_ERROR    Severity = 2
	Severity_CRITICAL Severity = 3
)

func (Severity) Descriptor added in v0.6.0

func (Severity) Descriptor() protoreflect.EnumDescriptor

func (Severity) Enum added in v0.6.0

func (x Severity) Enum() *Severity

func (Severity) EnumDescriptor deprecated added in v0.6.0

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

Deprecated: Use Severity.Descriptor instead.

func (Severity) Number added in v0.6.0

func (x Severity) Number() protoreflect.EnumNumber

func (Severity) String added in v0.6.0

func (x Severity) String() string

func (Severity) Type added in v0.6.0

type SilenceInfo added in v0.6.0

type SilenceInfo struct {
	SilenceId string                 `protobuf:"bytes,1,opt,name=silenceId,proto3" json:"silenceId,omitempty"`
	StartsAt  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=startsAt,proto3" json:"startsAt,omitempty"`
	EndsAt    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=endsAt,proto3" json:"endsAt,omitempty"`
	// contains filtered or unexported fields
}

func (*SilenceInfo) Descriptor deprecated added in v0.6.0

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

Deprecated: Use SilenceInfo.ProtoReflect.Descriptor instead.

func (*SilenceInfo) GetEndsAt added in v0.6.0

func (x *SilenceInfo) GetEndsAt() *timestamppb.Timestamp

func (*SilenceInfo) GetSilenceId added in v0.6.0

func (x *SilenceInfo) GetSilenceId() string

func (*SilenceInfo) GetStartsAt added in v0.6.0

func (x *SilenceInfo) GetStartsAt() *timestamppb.Timestamp

func (*SilenceInfo) ProtoMessage added in v0.6.0

func (*SilenceInfo) ProtoMessage()

func (*SilenceInfo) ProtoReflect added in v0.6.0

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

func (*SilenceInfo) Reset added in v0.6.0

func (x *SilenceInfo) Reset()

func (*SilenceInfo) String added in v0.6.0

func (x *SilenceInfo) String() string

type SilenceRequest added in v0.6.0

type SilenceRequest struct {
	ConditionId *v1.Reference        `protobuf:"bytes,1,opt,name=conditionId,proto3" json:"conditionId,omitempty"`
	Duration    *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*SilenceRequest) Descriptor deprecated added in v0.6.0

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

Deprecated: Use SilenceRequest.ProtoReflect.Descriptor instead.

func (*SilenceRequest) GetConditionId added in v0.6.0

func (x *SilenceRequest) GetConditionId() *v1.Reference

func (*SilenceRequest) GetDuration added in v0.6.0

func (x *SilenceRequest) GetDuration() *durationpb.Duration

func (*SilenceRequest) ProtoMessage added in v0.6.0

func (*SilenceRequest) ProtoMessage()

func (*SilenceRequest) ProtoReflect added in v0.6.0

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

func (*SilenceRequest) Reset added in v0.6.0

func (x *SilenceRequest) Reset()

func (*SilenceRequest) String added in v0.6.0

func (x *SilenceRequest) String() string

func (*SilenceRequest) Validate added in v0.6.0

func (s *SilenceRequest) Validate() error

type SlackEndpoint added in v0.6.0

type SlackEndpoint struct {
	WebhookUrl string `protobuf:"bytes,1,opt,name=webhookUrl,proto3" json:"webhookUrl,omitempty"`
	Channel    string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

func (*SlackEndpoint) Descriptor deprecated added in v0.6.0

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

Deprecated: Use SlackEndpoint.ProtoReflect.Descriptor instead.

func (*SlackEndpoint) GetChannel added in v0.6.0

func (x *SlackEndpoint) GetChannel() string

func (*SlackEndpoint) GetWebhookUrl added in v0.6.0

func (x *SlackEndpoint) GetWebhookUrl() string

func (*SlackEndpoint) ProtoMessage added in v0.6.0

func (*SlackEndpoint) ProtoMessage()

func (*SlackEndpoint) ProtoReflect added in v0.6.0

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

func (*SlackEndpoint) Reset added in v0.6.0

func (x *SlackEndpoint) Reset()

func (*SlackEndpoint) String added in v0.6.0

func (x *SlackEndpoint) String() string

func (*SlackEndpoint) Validate added in v0.6.0

func (s *SlackEndpoint) Validate() error

type TeamsEndpoint added in v0.6.0

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

func (*TeamsEndpoint) Descriptor deprecated added in v0.6.0

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

Deprecated: Use TeamsEndpoint.ProtoReflect.Descriptor instead.

func (*TeamsEndpoint) GetWebhookUrl added in v0.6.0

func (x *TeamsEndpoint) GetWebhookUrl() string

func (*TeamsEndpoint) ProtoMessage added in v0.6.0

func (*TeamsEndpoint) ProtoMessage()

func (*TeamsEndpoint) ProtoReflect added in v0.6.0

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

func (*TeamsEndpoint) Reset added in v0.6.0

func (x *TeamsEndpoint) Reset()

func (*TeamsEndpoint) String added in v0.6.0

func (x *TeamsEndpoint) String() string

type Templateable added in v0.6.0

type Templateable interface {
	ListTemplates() []string
}

type TemplatesResponse added in v0.6.0

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

func (*TemplatesResponse) Descriptor deprecated added in v0.6.0

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

Deprecated: Use TemplatesResponse.ProtoReflect.Descriptor instead.

func (*TemplatesResponse) GetTemplate added in v0.6.0

func (x *TemplatesResponse) GetTemplate() []string

func (*TemplatesResponse) ProtoMessage added in v0.6.0

func (*TemplatesResponse) ProtoMessage()

func (*TemplatesResponse) ProtoReflect added in v0.6.0

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

func (*TemplatesResponse) Reset added in v0.6.0

func (x *TemplatesResponse) Reset()

func (*TemplatesResponse) String added in v0.6.0

func (x *TemplatesResponse) String() string

type TestAlertEndpointRequest

type TestAlertEndpointRequest struct {
	EndpointInfo *AlertEndpoint          `protobuf:"bytes,1,opt,name=endpointInfo,proto3" json:"endpointInfo,omitempty"`
	Impl         *EndpointImplementation `protobuf:"bytes,2,opt,name=impl,proto3" json:"impl,omitempty"`
	// contains filtered or unexported fields
}

func (*TestAlertEndpointRequest) Descriptor deprecated

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

Deprecated: Use TestAlertEndpointRequest.ProtoReflect.Descriptor instead.

func (*TestAlertEndpointRequest) GetEndpointInfo added in v0.6.0

func (x *TestAlertEndpointRequest) GetEndpointInfo() *AlertEndpoint

func (*TestAlertEndpointRequest) GetImpl added in v0.6.0

func (*TestAlertEndpointRequest) ProtoMessage

func (*TestAlertEndpointRequest) ProtoMessage()

func (*TestAlertEndpointRequest) ProtoReflect

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

func (*TestAlertEndpointRequest) Reset

func (x *TestAlertEndpointRequest) Reset()

func (*TestAlertEndpointRequest) String

func (x *TestAlertEndpointRequest) String() string

func (*TestAlertEndpointRequest) Validate added in v0.6.0

func (t *TestAlertEndpointRequest) Validate() error

type TestAlertEndpointResponse

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

func (*TestAlertEndpointResponse) Descriptor deprecated

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

Deprecated: Use TestAlertEndpointResponse.ProtoReflect.Descriptor instead.

func (*TestAlertEndpointResponse) ProtoMessage

func (*TestAlertEndpointResponse) ProtoMessage()

func (*TestAlertEndpointResponse) ProtoReflect

func (*TestAlertEndpointResponse) Reset

func (x *TestAlertEndpointResponse) Reset()

func (*TestAlertEndpointResponse) String

func (x *TestAlertEndpointResponse) String() string

type TriggerAlertsRequest

type TriggerAlertsRequest struct {
	ConditionId *v1.Reference     `protobuf:"bytes,1,opt,name=conditionId,proto3" json:"conditionId,omitempty"`
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TriggerAlertsRequest) Descriptor deprecated

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

Deprecated: Use TriggerAlertsRequest.ProtoReflect.Descriptor instead.

func (*TriggerAlertsRequest) GetAnnotations added in v0.6.0

func (x *TriggerAlertsRequest) GetAnnotations() map[string]string

func (*TriggerAlertsRequest) GetConditionId added in v0.6.0

func (x *TriggerAlertsRequest) GetConditionId() *v1.Reference

func (*TriggerAlertsRequest) ProtoMessage

func (*TriggerAlertsRequest) ProtoMessage()

func (*TriggerAlertsRequest) ProtoReflect

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

func (*TriggerAlertsRequest) Reset

func (x *TriggerAlertsRequest) Reset()

func (*TriggerAlertsRequest) String

func (x *TriggerAlertsRequest) String() string

type TriggerAlertsResponse

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

func (*TriggerAlertsResponse) Descriptor deprecated

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

Deprecated: Use TriggerAlertsResponse.ProtoReflect.Descriptor instead.

func (*TriggerAlertsResponse) ProtoMessage

func (*TriggerAlertsResponse) ProtoMessage()

func (*TriggerAlertsResponse) ProtoReflect

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

func (*TriggerAlertsResponse) Reset

func (x *TriggerAlertsResponse) Reset()

func (*TriggerAlertsResponse) String

func (x *TriggerAlertsResponse) String() string

type UnimplementedAlertingServer

type UnimplementedAlertingServer struct {
}

UnimplementedAlertingServer must be embedded to have forward compatible implementations.

func (UnimplementedAlertingServer) ActivateSilence added in v0.6.0

func (UnimplementedAlertingServer) AlertConditionStatus added in v0.6.0

func (UnimplementedAlertingServer) CreateAlertCondition

func (UnimplementedAlertingServer) CreateAlertEndpoint

func (UnimplementedAlertingServer) CreateAlertLog

func (UnimplementedAlertingServer) CreateEndpointImplementation added in v0.6.0

func (UnimplementedAlertingServer) DeactivateSilence added in v0.6.0

func (UnimplementedAlertingServer) DeleteAlertCondition

func (UnimplementedAlertingServer) DeleteAlertEndpoint

func (UnimplementedAlertingServer) DeleteEndpointImplementation added in v0.6.0

func (UnimplementedAlertingServer) DeleteEndpointImplementation(context.Context, *v1.Reference) (*emptypb.Empty, error)

func (UnimplementedAlertingServer) GetAlertCondition

func (UnimplementedAlertingServer) GetAlertEndpoint

func (UnimplementedAlertingServer) ListAlertConditionChoices added in v0.6.0

func (UnimplementedAlertingServer) ListAlertConditions

func (UnimplementedAlertingServer) ListAlertEndpoints

func (UnimplementedAlertingServer) ListAlertLogs

func (UnimplementedAlertingServer) ListAvailableTemplatesForType added in v0.6.0

func (UnimplementedAlertingServer) TestAlertEndpoint

func (UnimplementedAlertingServer) TriggerAlerts

func (UnimplementedAlertingServer) UpdateAlertCondition

func (UnimplementedAlertingServer) UpdateAlertEndpoint

func (UnimplementedAlertingServer) UpdateEndpointImplementation added in v0.6.0

type UnsafeAlertingServer

type UnsafeAlertingServer interface {
	// contains filtered or unexported methods
}

UnsafeAlertingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AlertingServer will result in compilation errors.

type UpdateAlertConditionRequest

type UpdateAlertConditionRequest struct {
	Id          *v1.Reference   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UpdateAlert *AlertCondition `protobuf:"bytes,2,opt,name=updateAlert,proto3" json:"updateAlert,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAlertConditionRequest) Descriptor deprecated

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

Deprecated: Use UpdateAlertConditionRequest.ProtoReflect.Descriptor instead.

func (*UpdateAlertConditionRequest) GetId added in v0.6.0

func (*UpdateAlertConditionRequest) GetUpdateAlert added in v0.6.0

func (x *UpdateAlertConditionRequest) GetUpdateAlert() *AlertCondition

func (*UpdateAlertConditionRequest) ProtoMessage

func (*UpdateAlertConditionRequest) ProtoMessage()

func (*UpdateAlertConditionRequest) ProtoReflect

func (*UpdateAlertConditionRequest) Reset

func (x *UpdateAlertConditionRequest) Reset()

func (*UpdateAlertConditionRequest) String

func (x *UpdateAlertConditionRequest) String() string

func (*UpdateAlertConditionRequest) Validate added in v0.6.0

func (u *UpdateAlertConditionRequest) Validate() error

type UpdateAlertEndpointRequest

type UpdateAlertEndpointRequest struct {
	Id          *v1.Reference  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UpdateAlert *AlertEndpoint `protobuf:"bytes,2,opt,name=UpdateAlert,proto3" json:"UpdateAlert,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAlertEndpointRequest) Descriptor deprecated

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

Deprecated: Use UpdateAlertEndpointRequest.ProtoReflect.Descriptor instead.

func (*UpdateAlertEndpointRequest) GetId added in v0.6.0

func (*UpdateAlertEndpointRequest) GetUpdateAlert added in v0.6.0

func (x *UpdateAlertEndpointRequest) GetUpdateAlert() *AlertEndpoint

func (*UpdateAlertEndpointRequest) ProtoMessage

func (*UpdateAlertEndpointRequest) ProtoMessage()

func (*UpdateAlertEndpointRequest) ProtoReflect

func (*UpdateAlertEndpointRequest) Reset

func (x *UpdateAlertEndpointRequest) Reset()

func (*UpdateAlertEndpointRequest) String

func (x *UpdateAlertEndpointRequest) String() string

func (*UpdateAlertEndpointRequest) Validate added in v0.6.0

func (u *UpdateAlertEndpointRequest) Validate() error

type UpdateAlertLogRequest

type UpdateAlertLogRequest struct {
	Id          string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UpdateAlert *v1.AlertLog `protobuf:"bytes,2,opt,name=UpdateAlert,proto3" json:"UpdateAlert,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAlertLogRequest) Descriptor deprecated

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

Deprecated: Use UpdateAlertLogRequest.ProtoReflect.Descriptor instead.

func (*UpdateAlertLogRequest) GetId

func (x *UpdateAlertLogRequest) GetId() string

func (*UpdateAlertLogRequest) GetUpdateAlert

func (x *UpdateAlertLogRequest) GetUpdateAlert() *v1.AlertLog

func (*UpdateAlertLogRequest) ProtoMessage

func (*UpdateAlertLogRequest) ProtoMessage()

func (*UpdateAlertLogRequest) ProtoReflect

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

func (*UpdateAlertLogRequest) Reset

func (x *UpdateAlertLogRequest) Reset()

func (*UpdateAlertLogRequest) String

func (x *UpdateAlertLogRequest) String() string

type WebhookEndpoint added in v0.6.0

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

func (*WebhookEndpoint) Descriptor deprecated added in v0.6.0

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

Deprecated: Use WebhookEndpoint.ProtoReflect.Descriptor instead.

func (*WebhookEndpoint) GetUrl added in v0.6.0

func (x *WebhookEndpoint) GetUrl() string

func (*WebhookEndpoint) ProtoMessage added in v0.6.0

func (*WebhookEndpoint) ProtoMessage()

func (*WebhookEndpoint) ProtoReflect added in v0.6.0

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

func (*WebhookEndpoint) Reset added in v0.6.0

func (x *WebhookEndpoint) Reset()

func (*WebhookEndpoint) String added in v0.6.0

func (x *WebhookEndpoint) String() string

Jump to

Keyboard shortcuts

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