iav1beta1

package
v2.18.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package iav1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package iav1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package iav1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package iav1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	BooleanFlag_name = map[int32]string{
		0: "DO_NOT_CHANGE",
		1: "TRUE",
		2: "FALSE",
	}
	BooleanFlag_value = map[string]int32{
		"DO_NOT_CHANGE": 0,
		"TRUE":          1,
		"FALSE":         2,
	}
)

Enum value maps for BooleanFlag.

View Source
var (
	ParamUnit_name = map[int32]string{
		0: "PARAM_UNIT_INVALID",
		1: "PERCENTAGE",
		2: "SECONDS",
	}
	ParamUnit_value = map[string]int32{
		"PARAM_UNIT_INVALID": 0,
		"PERCENTAGE":         1,
		"SECONDS":            2,
	}
)

Enum value maps for ParamUnit.

View Source
var (
	ParamType_name = map[int32]string{
		0: "PARAM_TYPE_INVALID",
		1: "BOOL",
		2: "FLOAT",
		3: "STRING",
	}
	ParamType_value = map[string]int32{
		"PARAM_TYPE_INVALID": 0,
		"BOOL":               1,
		"FLOAT":              2,
		"STRING":             3,
	}
)

Enum value maps for ParamType.

View Source
var (
	FilterType_name = map[int32]string{
		0: "FILTER_TYPE_INVALID",
		1: "EQUAL",
		3: "REGEX",
	}
	FilterType_value = map[string]int32{
		"FILTER_TYPE_INVALID": 0,
		"EQUAL":               1,
		"REGEX":               3,
	}
)

Enum value maps for FilterType.

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_INVALID",
		1: "CLEAR",
		2: "PENDING",
		3: "TRIGGERING",
		4: "SILENCED",
	}
	Status_value = map[string]int32{
		"STATUS_INVALID": 0,
		"CLEAR":          1,
		"PENDING":        2,
		"TRIGGERING":     3,
		"SILENCED":       4,
	}
)

Enum value maps for Status.

View Source
var (
	TemplateSource_name = map[int32]string{
		0: "TEMPLATE_SOURCE_INVALID",
		1: "BUILT_IN",
		2: "SAAS",
		3: "USER_FILE",
		4: "USER_API",
	}
	TemplateSource_value = map[string]int32{
		"TEMPLATE_SOURCE_INVALID": 0,
		"BUILT_IN":                1,
		"SAAS":                    2,
		"USER_FILE":               3,
		"USER_API":                4,
	}
)

Enum value maps for TemplateSource.

View Source
var File_managementpb_ia_alerts_proto protoreflect.FileDescriptor
View Source
var File_managementpb_ia_boolean_flag_proto protoreflect.FileDescriptor
View Source
var File_managementpb_ia_channels_proto protoreflect.FileDescriptor
View Source
var File_managementpb_ia_pagination_proto protoreflect.FileDescriptor
View Source
var File_managementpb_ia_params_proto protoreflect.FileDescriptor
View Source
var File_managementpb_ia_rules_proto protoreflect.FileDescriptor
View Source
var File_managementpb_ia_status_proto protoreflect.FileDescriptor
View Source
var File_managementpb_ia_templates_proto protoreflect.FileDescriptor

Functions

func RegisterAlertsHandler

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

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

func RegisterAlertsHandlerClient

func RegisterAlertsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AlertsClient) error

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

func RegisterAlertsHandlerFromEndpoint

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

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

func RegisterAlertsHandlerServer

func RegisterAlertsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AlertsServer) error

RegisterAlertsHandlerServer registers the http handlers for service Alerts to "mux". UnaryRPC :call AlertsServer 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 RegisterAlertsHandlerFromEndpoint instead.

func RegisterAlertsServer

func RegisterAlertsServer(s *grpc.Server, srv AlertsServer)

func RegisterChannelsHandler

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

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

func RegisterChannelsHandlerClient

func RegisterChannelsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChannelsClient) error

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

func RegisterChannelsHandlerFromEndpoint

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

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

func RegisterChannelsHandlerServer

func RegisterChannelsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChannelsServer) error

RegisterChannelsHandlerServer registers the http handlers for service Channels to "mux". UnaryRPC :call ChannelsServer 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 RegisterChannelsHandlerFromEndpoint instead.

func RegisterChannelsServer

func RegisterChannelsServer(s *grpc.Server, srv ChannelsServer)

func RegisterRulesHandler

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

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

func RegisterRulesHandlerClient

func RegisterRulesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RulesClient) error

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

func RegisterRulesHandlerFromEndpoint

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

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

func RegisterRulesHandlerServer

func RegisterRulesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RulesServer) error

RegisterRulesHandlerServer registers the http handlers for service Rules to "mux". UnaryRPC :call RulesServer 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 RegisterRulesHandlerFromEndpoint instead.

func RegisterRulesServer

func RegisterRulesServer(s *grpc.Server, srv RulesServer)

func RegisterTemplatesHandler

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

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

func RegisterTemplatesHandlerClient

func RegisterTemplatesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TemplatesClient) error

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

func RegisterTemplatesHandlerFromEndpoint

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

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

func RegisterTemplatesHandlerServer

func RegisterTemplatesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TemplatesServer) error

RegisterTemplatesHandlerServer registers the http handlers for service Templates to "mux". UnaryRPC :call TemplatesServer 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 RegisterTemplatesHandlerFromEndpoint instead.

func RegisterTemplatesServer

func RegisterTemplatesServer(s *grpc.Server, srv TemplatesServer)

Types

type AddChannelRequest

type AddChannelRequest struct {

	// Short human-readable summary.
	Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// Email configuration. Exactly one config should be set.
	EmailConfig *EmailConfig `protobuf:"bytes,3,opt,name=email_config,json=emailConfig,proto3" json:"email_config,omitempty"`
	// PagerDuty configuration. Exactly one config should be set.
	PagerdutyConfig *PagerDutyConfig `protobuf:"bytes,4,opt,name=pagerduty_config,json=pagerdutyConfig,proto3" json:"pagerduty_config,omitempty"`
	// Slack configuration. Exactly one config should be set.
	SlackConfig *SlackConfig `protobuf:"bytes,6,opt,name=slack_config,json=slackConfig,proto3" json:"slack_config,omitempty"`
	// Webhook configuration. Exactly one config should be set.
	WebhookConfig *WebhookConfig `protobuf:"bytes,8,opt,name=webhook_config,json=webhookConfig,proto3" json:"webhook_config,omitempty"`
	// New channel status.
	Disabled bool `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// contains filtered or unexported fields
}

func (*AddChannelRequest) Descriptor deprecated

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

Deprecated: Use AddChannelRequest.ProtoReflect.Descriptor instead.

func (*AddChannelRequest) GetDisabled

func (x *AddChannelRequest) GetDisabled() bool

func (*AddChannelRequest) GetEmailConfig

func (x *AddChannelRequest) GetEmailConfig() *EmailConfig

func (*AddChannelRequest) GetPagerdutyConfig

func (x *AddChannelRequest) GetPagerdutyConfig() *PagerDutyConfig

func (*AddChannelRequest) GetSlackConfig

func (x *AddChannelRequest) GetSlackConfig() *SlackConfig

func (*AddChannelRequest) GetSummary

func (x *AddChannelRequest) GetSummary() string

func (*AddChannelRequest) GetWebhookConfig

func (x *AddChannelRequest) GetWebhookConfig() *WebhookConfig

func (*AddChannelRequest) ProtoMessage

func (*AddChannelRequest) ProtoMessage()

func (*AddChannelRequest) ProtoReflect

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

func (*AddChannelRequest) Reset

func (x *AddChannelRequest) Reset()

func (*AddChannelRequest) String

func (x *AddChannelRequest) String() string

func (*AddChannelRequest) Validate

func (this *AddChannelRequest) Validate() error

type AddChannelResponse

type AddChannelResponse struct {

	// Machine-readable ID.
	ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddChannelResponse) Descriptor deprecated

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

Deprecated: Use AddChannelResponse.ProtoReflect.Descriptor instead.

func (*AddChannelResponse) GetChannelId

func (x *AddChannelResponse) GetChannelId() string

func (*AddChannelResponse) ProtoMessage

func (*AddChannelResponse) ProtoMessage()

func (*AddChannelResponse) ProtoReflect

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

func (*AddChannelResponse) Reset

func (x *AddChannelResponse) Reset()

func (*AddChannelResponse) String

func (x *AddChannelResponse) String() string

func (*AddChannelResponse) Validate

func (this *AddChannelResponse) Validate() error

type Alert

type Alert struct {

	// ID.
	AlertId string `protobuf:"bytes,1,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// Human-readable summary.
	Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// Severity.
	Severity managementpb.Severity `protobuf:"varint,3,opt,name=severity,proto3,enum=management.Severity" json:"severity,omitempty"`
	// Status.
	Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=ia.v1beta1.Status" json:"status,omitempty"`
	// Combined labels.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// The current Alert Rule.
	Rule *Rule `protobuf:"bytes,6,opt,name=rule,proto3" json:"rule,omitempty"`
	// Alert creation time.
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Alert last update time.
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Alert represents Alert.

func (*Alert) Descriptor deprecated

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

Deprecated: Use Alert.ProtoReflect.Descriptor instead.

func (*Alert) GetAlertId

func (x *Alert) GetAlertId() string

func (*Alert) GetCreatedAt

func (x *Alert) GetCreatedAt() *timestamp.Timestamp

func (*Alert) GetLabels

func (x *Alert) GetLabels() map[string]string

func (*Alert) GetRule

func (x *Alert) GetRule() *Rule

func (*Alert) GetSeverity

func (x *Alert) GetSeverity() managementpb.Severity

func (*Alert) GetStatus

func (x *Alert) GetStatus() Status

func (*Alert) GetSummary

func (x *Alert) GetSummary() string

func (*Alert) GetUpdatedAt

func (x *Alert) GetUpdatedAt() *timestamp.Timestamp

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) ProtoReflect

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

func (*Alert) Reset

func (x *Alert) Reset()

func (*Alert) String

func (x *Alert) String() string

func (*Alert) Validate

func (this *Alert) Validate() error

type AlertsClient

type AlertsClient interface {
	// ListAlerts returns a list of all Alerts.
	ListAlerts(ctx context.Context, in *ListAlertsRequest, opts ...grpc.CallOption) (*ListAlertsResponse, error)
	// ToggleAlert allows to switch between silenced and unsilenced states of an Alert.
	ToggleAlert(ctx context.Context, in *ToggleAlertRequest, opts ...grpc.CallOption) (*ToggleAlertResponse, error)
}

AlertsClient is the client API for Alerts service.

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

func NewAlertsClient

func NewAlertsClient(cc grpc.ClientConnInterface) AlertsClient

type AlertsServer

type AlertsServer interface {
	// ListAlerts returns a list of all Alerts.
	ListAlerts(context.Context, *ListAlertsRequest) (*ListAlertsResponse, error)
	// ToggleAlert allows to switch between silenced and unsilenced states of an Alert.
	ToggleAlert(context.Context, *ToggleAlertRequest) (*ToggleAlertResponse, error)
}

AlertsServer is the server API for Alerts service.

type BasicAuth

type BasicAuth struct {
	Username     string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password     string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	PasswordFile string `protobuf:"bytes,3,opt,name=password_file,json=passwordFile,proto3" json:"password_file,omitempty"`
	// contains filtered or unexported fields
}

BasicAuth represents basic HTTP auth configuration.

func (*BasicAuth) Descriptor deprecated

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

Deprecated: Use BasicAuth.ProtoReflect.Descriptor instead.

func (*BasicAuth) GetPassword

func (x *BasicAuth) GetPassword() string

func (*BasicAuth) GetPasswordFile

func (x *BasicAuth) GetPasswordFile() string

func (*BasicAuth) GetUsername

func (x *BasicAuth) GetUsername() string

func (*BasicAuth) ProtoMessage

func (*BasicAuth) ProtoMessage()

func (*BasicAuth) ProtoReflect

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

func (*BasicAuth) Reset

func (x *BasicAuth) Reset()

func (*BasicAuth) String

func (x *BasicAuth) String() string

func (*BasicAuth) Validate

func (this *BasicAuth) Validate() error

type BooleanFlag

type BooleanFlag int32

BooleanFlag represent a command to set some boolean property to true, to false, or avoid changing that property.

const (
	// Do not change boolean property. Default value.
	BooleanFlag_DO_NOT_CHANGE BooleanFlag = 0
	// True.
	BooleanFlag_TRUE BooleanFlag = 1
	// False.
	BooleanFlag_FALSE BooleanFlag = 2
)

func (BooleanFlag) Descriptor

func (BooleanFlag) Enum

func (x BooleanFlag) Enum() *BooleanFlag

func (BooleanFlag) EnumDescriptor deprecated

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

Deprecated: Use BooleanFlag.Descriptor instead.

func (BooleanFlag) Number

func (x BooleanFlag) Number() protoreflect.EnumNumber

func (BooleanFlag) String

func (x BooleanFlag) String() string

func (BooleanFlag) Type

type ChangeChannelRequest

type ChangeChannelRequest struct {

	// Machine-readable ID.
	ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// Short human-readable summary. Empty value will not change it.
	Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// Email configuration. Exactly one config should be set.
	EmailConfig *EmailConfig `protobuf:"bytes,3,opt,name=email_config,json=emailConfig,proto3" json:"email_config,omitempty"`
	// PagerDuty configuration. Exactly one config should be set.
	PagerdutyConfig *PagerDutyConfig `protobuf:"bytes,4,opt,name=pagerduty_config,json=pagerdutyConfig,proto3" json:"pagerduty_config,omitempty"`
	// Slack configuration. Exactly one config should be set.
	SlackConfig *SlackConfig `protobuf:"bytes,6,opt,name=slack_config,json=slackConfig,proto3" json:"slack_config,omitempty"`
	// Webhook configuration. Exactly one config should be set.
	WebhookConfig *WebhookConfig `protobuf:"bytes,8,opt,name=webhook_config,json=webhookConfig,proto3" json:"webhook_config,omitempty"`
	// Enables or disables that channel. Should be set.
	Disabled bool `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeChannelRequest) Descriptor deprecated

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

Deprecated: Use ChangeChannelRequest.ProtoReflect.Descriptor instead.

func (*ChangeChannelRequest) GetChannelId

func (x *ChangeChannelRequest) GetChannelId() string

func (*ChangeChannelRequest) GetDisabled

func (x *ChangeChannelRequest) GetDisabled() bool

func (*ChangeChannelRequest) GetEmailConfig

func (x *ChangeChannelRequest) GetEmailConfig() *EmailConfig

func (*ChangeChannelRequest) GetPagerdutyConfig

func (x *ChangeChannelRequest) GetPagerdutyConfig() *PagerDutyConfig

func (*ChangeChannelRequest) GetSlackConfig

func (x *ChangeChannelRequest) GetSlackConfig() *SlackConfig

func (*ChangeChannelRequest) GetSummary

func (x *ChangeChannelRequest) GetSummary() string

func (*ChangeChannelRequest) GetWebhookConfig

func (x *ChangeChannelRequest) GetWebhookConfig() *WebhookConfig

func (*ChangeChannelRequest) ProtoMessage

func (*ChangeChannelRequest) ProtoMessage()

func (*ChangeChannelRequest) ProtoReflect

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

func (*ChangeChannelRequest) Reset

func (x *ChangeChannelRequest) Reset()

func (*ChangeChannelRequest) String

func (x *ChangeChannelRequest) String() string

func (*ChangeChannelRequest) Validate

func (this *ChangeChannelRequest) Validate() error

type ChangeChannelResponse

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

func (*ChangeChannelResponse) Descriptor deprecated

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

Deprecated: Use ChangeChannelResponse.ProtoReflect.Descriptor instead.

func (*ChangeChannelResponse) ProtoMessage

func (*ChangeChannelResponse) ProtoMessage()

func (*ChangeChannelResponse) ProtoReflect

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

func (*ChangeChannelResponse) Reset

func (x *ChangeChannelResponse) Reset()

func (*ChangeChannelResponse) String

func (x *ChangeChannelResponse) String() string

func (*ChangeChannelResponse) Validate

func (this *ChangeChannelResponse) Validate() error

type Channel

type Channel struct {

	// Machine-readable ID.
	ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// Short human-readable summary.
	Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// Types that are assignable to Channel:
	//	*Channel_EmailConfig
	//	*Channel_PagerdutyConfig
	//	*Channel_SlackConfig
	//	*Channel_WebhookConfig
	Channel isChannel_Channel `protobuf_oneof:"channel"`
	// True if that channel is disabled.
	Disabled bool `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// contains filtered or unexported fields
}

Channel represents a single Notification Channel.

func (*Channel) Descriptor deprecated

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

Deprecated: Use Channel.ProtoReflect.Descriptor instead.

func (*Channel) GetChannel

func (m *Channel) GetChannel() isChannel_Channel

func (*Channel) GetChannelId

func (x *Channel) GetChannelId() string

func (*Channel) GetDisabled

func (x *Channel) GetDisabled() bool

func (*Channel) GetEmailConfig

func (x *Channel) GetEmailConfig() *EmailConfig

func (*Channel) GetPagerdutyConfig

func (x *Channel) GetPagerdutyConfig() *PagerDutyConfig

func (*Channel) GetSlackConfig

func (x *Channel) GetSlackConfig() *SlackConfig

func (*Channel) GetSummary

func (x *Channel) GetSummary() string

func (*Channel) GetWebhookConfig

func (x *Channel) GetWebhookConfig() *WebhookConfig

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) ProtoReflect

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

func (*Channel) Reset

func (x *Channel) Reset()

func (*Channel) String

func (x *Channel) String() string

func (*Channel) Validate

func (this *Channel) Validate() error

type Channel_EmailConfig

type Channel_EmailConfig struct {
	EmailConfig *EmailConfig `protobuf:"bytes,3,opt,name=email_config,json=emailConfig,proto3,oneof"`
}

type Channel_PagerdutyConfig

type Channel_PagerdutyConfig struct {
	PagerdutyConfig *PagerDutyConfig `protobuf:"bytes,4,opt,name=pagerduty_config,json=pagerdutyConfig,proto3,oneof"`
}

type Channel_SlackConfig

type Channel_SlackConfig struct {
	SlackConfig *SlackConfig `protobuf:"bytes,6,opt,name=slack_config,json=slackConfig,proto3,oneof"`
}

type Channel_WebhookConfig

type Channel_WebhookConfig struct {
	WebhookConfig *WebhookConfig `protobuf:"bytes,8,opt,name=webhook_config,json=webhookConfig,proto3,oneof"`
}

type ChannelsClient

type ChannelsClient interface {
	// ListChannels returns a list of all notifation channels.
	ListChannels(ctx context.Context, in *ListChannelsRequest, opts ...grpc.CallOption) (*ListChannelsResponse, error)
	// AddChannel adds notification channel.
	AddChannel(ctx context.Context, in *AddChannelRequest, opts ...grpc.CallOption) (*AddChannelResponse, error)
	// ChangeChannel changes notification channel.
	ChangeChannel(ctx context.Context, in *ChangeChannelRequest, opts ...grpc.CallOption) (*ChangeChannelResponse, error)
	// RemoveChannel removes notification channel.
	RemoveChannel(ctx context.Context, in *RemoveChannelRequest, opts ...grpc.CallOption) (*RemoveChannelResponse, error)
}

ChannelsClient is the client API for Channels service.

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

func NewChannelsClient

func NewChannelsClient(cc grpc.ClientConnInterface) ChannelsClient

type ChannelsServer

type ChannelsServer interface {
	// ListChannels returns a list of all notifation channels.
	ListChannels(context.Context, *ListChannelsRequest) (*ListChannelsResponse, error)
	// AddChannel adds notification channel.
	AddChannel(context.Context, *AddChannelRequest) (*AddChannelResponse, error)
	// ChangeChannel changes notification channel.
	ChangeChannel(context.Context, *ChangeChannelRequest) (*ChangeChannelResponse, error)
	// RemoveChannel removes notification channel.
	RemoveChannel(context.Context, *RemoveChannelRequest) (*RemoveChannelResponse, error)
}

ChannelsServer is the server API for Channels service.

type CreateAlertRuleRequest

type CreateAlertRuleRequest struct {

	// Template name.
	TemplateName string `protobuf:"bytes,1,opt,name=template_name,json=templateName,proto3" json:"template_name,omitempty"`
	// New rule status.
	Disabled bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// Rule human-readable summary.
	Summary string `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"`
	// Rule parameters. All template parameters should be set.
	Params []*RuleParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"`
	// Rule duration. Should be set.
	For *duration.Duration `protobuf:"bytes,5,opt,name=for,proto3" json:"for,omitempty"`
	// Rule severity. Should be set.
	Severity managementpb.Severity `protobuf:"varint,6,opt,name=severity,proto3,enum=management.Severity" json:"severity,omitempty"`
	// All custom labels to add or remove (with empty values) to default labels from template.
	CustomLabels map[string]string `` /* 185-byte string literal not displayed */
	// Filters. Should be set.
	Filters []*Filter `protobuf:"bytes,8,rep,name=filters,proto3" json:"filters,omitempty"`
	// Channels. Should be set.
	ChannelIds []string `protobuf:"bytes,9,rep,name=channel_ids,json=channelIds,proto3" json:"channel_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAlertRuleRequest) Descriptor deprecated

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

Deprecated: Use CreateAlertRuleRequest.ProtoReflect.Descriptor instead.

func (*CreateAlertRuleRequest) GetChannelIds

func (x *CreateAlertRuleRequest) GetChannelIds() []string

func (*CreateAlertRuleRequest) GetCustomLabels

func (x *CreateAlertRuleRequest) GetCustomLabels() map[string]string

func (*CreateAlertRuleRequest) GetDisabled

func (x *CreateAlertRuleRequest) GetDisabled() bool

func (*CreateAlertRuleRequest) GetFilters

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

func (*CreateAlertRuleRequest) GetFor

func (*CreateAlertRuleRequest) GetParams

func (x *CreateAlertRuleRequest) GetParams() []*RuleParam

func (*CreateAlertRuleRequest) GetSeverity

func (x *CreateAlertRuleRequest) GetSeverity() managementpb.Severity

func (*CreateAlertRuleRequest) GetSummary

func (x *CreateAlertRuleRequest) GetSummary() string

func (*CreateAlertRuleRequest) GetTemplateName

func (x *CreateAlertRuleRequest) GetTemplateName() string

func (*CreateAlertRuleRequest) ProtoMessage

func (*CreateAlertRuleRequest) ProtoMessage()

func (*CreateAlertRuleRequest) ProtoReflect

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

func (*CreateAlertRuleRequest) Reset

func (x *CreateAlertRuleRequest) Reset()

func (*CreateAlertRuleRequest) String

func (x *CreateAlertRuleRequest) String() string

func (*CreateAlertRuleRequest) Validate

func (this *CreateAlertRuleRequest) Validate() error

type CreateAlertRuleResponse

type CreateAlertRuleResponse struct {

	// Rule ID.
	RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAlertRuleResponse) Descriptor deprecated

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

Deprecated: Use CreateAlertRuleResponse.ProtoReflect.Descriptor instead.

func (*CreateAlertRuleResponse) GetRuleId

func (x *CreateAlertRuleResponse) GetRuleId() string

func (*CreateAlertRuleResponse) ProtoMessage

func (*CreateAlertRuleResponse) ProtoMessage()

func (*CreateAlertRuleResponse) ProtoReflect

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

func (*CreateAlertRuleResponse) Reset

func (x *CreateAlertRuleResponse) Reset()

func (*CreateAlertRuleResponse) String

func (x *CreateAlertRuleResponse) String() string

func (*CreateAlertRuleResponse) Validate

func (this *CreateAlertRuleResponse) Validate() error

type CreateTemplateRequest

type CreateTemplateRequest struct {

	// YAML (or JSON) template file content.
	Yaml string `protobuf:"bytes,1,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTemplateRequest) Descriptor deprecated

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

Deprecated: Use CreateTemplateRequest.ProtoReflect.Descriptor instead.

func (*CreateTemplateRequest) GetYaml

func (x *CreateTemplateRequest) GetYaml() string

func (*CreateTemplateRequest) ProtoMessage

func (*CreateTemplateRequest) ProtoMessage()

func (*CreateTemplateRequest) ProtoReflect

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

func (*CreateTemplateRequest) Reset

func (x *CreateTemplateRequest) Reset()

func (*CreateTemplateRequest) String

func (x *CreateTemplateRequest) String() string

func (*CreateTemplateRequest) Validate

func (this *CreateTemplateRequest) Validate() error

type CreateTemplateResponse

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

func (*CreateTemplateResponse) Descriptor deprecated

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

Deprecated: Use CreateTemplateResponse.ProtoReflect.Descriptor instead.

func (*CreateTemplateResponse) ProtoMessage

func (*CreateTemplateResponse) ProtoMessage()

func (*CreateTemplateResponse) ProtoReflect

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

func (*CreateTemplateResponse) Reset

func (x *CreateTemplateResponse) Reset()

func (*CreateTemplateResponse) String

func (x *CreateTemplateResponse) String() string

func (*CreateTemplateResponse) Validate

func (this *CreateTemplateResponse) Validate() error

type DeleteAlertRuleRequest

type DeleteAlertRuleRequest struct {

	// Rule ID.
	RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAlertRuleRequest) Descriptor deprecated

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

Deprecated: Use DeleteAlertRuleRequest.ProtoReflect.Descriptor instead.

func (*DeleteAlertRuleRequest) GetRuleId

func (x *DeleteAlertRuleRequest) GetRuleId() string

func (*DeleteAlertRuleRequest) ProtoMessage

func (*DeleteAlertRuleRequest) ProtoMessage()

func (*DeleteAlertRuleRequest) ProtoReflect

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

func (*DeleteAlertRuleRequest) Reset

func (x *DeleteAlertRuleRequest) Reset()

func (*DeleteAlertRuleRequest) String

func (x *DeleteAlertRuleRequest) String() string

func (*DeleteAlertRuleRequest) Validate

func (this *DeleteAlertRuleRequest) Validate() error

type DeleteAlertRuleResponse

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

func (*DeleteAlertRuleResponse) Descriptor deprecated

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

Deprecated: Use DeleteAlertRuleResponse.ProtoReflect.Descriptor instead.

func (*DeleteAlertRuleResponse) ProtoMessage

func (*DeleteAlertRuleResponse) ProtoMessage()

func (*DeleteAlertRuleResponse) ProtoReflect

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

func (*DeleteAlertRuleResponse) Reset

func (x *DeleteAlertRuleResponse) Reset()

func (*DeleteAlertRuleResponse) String

func (x *DeleteAlertRuleResponse) String() string

func (*DeleteAlertRuleResponse) Validate

func (this *DeleteAlertRuleResponse) Validate() error

type DeleteTemplateRequest

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

func (*DeleteTemplateRequest) Descriptor deprecated

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

Deprecated: Use DeleteTemplateRequest.ProtoReflect.Descriptor instead.

func (*DeleteTemplateRequest) GetName

func (x *DeleteTemplateRequest) GetName() string

func (*DeleteTemplateRequest) ProtoMessage

func (*DeleteTemplateRequest) ProtoMessage()

func (*DeleteTemplateRequest) ProtoReflect

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

func (*DeleteTemplateRequest) Reset

func (x *DeleteTemplateRequest) Reset()

func (*DeleteTemplateRequest) String

func (x *DeleteTemplateRequest) String() string

func (*DeleteTemplateRequest) Validate

func (this *DeleteTemplateRequest) Validate() error

type DeleteTemplateResponse

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

func (*DeleteTemplateResponse) Descriptor deprecated

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

Deprecated: Use DeleteTemplateResponse.ProtoReflect.Descriptor instead.

func (*DeleteTemplateResponse) ProtoMessage

func (*DeleteTemplateResponse) ProtoMessage()

func (*DeleteTemplateResponse) ProtoReflect

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

func (*DeleteTemplateResponse) Reset

func (x *DeleteTemplateResponse) Reset()

func (*DeleteTemplateResponse) String

func (x *DeleteTemplateResponse) String() string

func (*DeleteTemplateResponse) Validate

func (this *DeleteTemplateResponse) Validate() error

type EmailConfig

type EmailConfig struct {
	SendResolved bool     `protobuf:"varint,1,opt,name=send_resolved,json=sendResolved,proto3" json:"send_resolved,omitempty"`
	To           []string `protobuf:"bytes,2,rep,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

EmailConfig represents email configuration.

func (*EmailConfig) Descriptor deprecated

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

Deprecated: Use EmailConfig.ProtoReflect.Descriptor instead.

func (*EmailConfig) GetSendResolved

func (x *EmailConfig) GetSendResolved() bool

func (*EmailConfig) GetTo

func (x *EmailConfig) GetTo() []string

func (*EmailConfig) ProtoMessage

func (*EmailConfig) ProtoMessage()

func (*EmailConfig) ProtoReflect

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

func (*EmailConfig) Reset

func (x *EmailConfig) Reset()

func (*EmailConfig) String

func (x *EmailConfig) String() string

func (*EmailConfig) Validate

func (this *EmailConfig) Validate() error

type Filter

type Filter struct {
	Type  FilterType `protobuf:"varint,1,opt,name=type,proto3,enum=ia.v1beta1.FilterType" json:"type,omitempty"`
	Key   string     `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value string     `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Filter repsents a single filter condition.

func (*Filter) Descriptor deprecated

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

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetKey

func (x *Filter) GetKey() string

func (*Filter) GetType

func (x *Filter) GetType() FilterType

func (*Filter) GetValue

func (x *Filter) GetValue() string

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

func (*Filter) Validate

func (this *Filter) Validate() error

type FilterType

type FilterType int32

FilterType represents filter matching type.

const (
	FilterType_FILTER_TYPE_INVALID FilterType = 0
	// =
	FilterType_EQUAL FilterType = 1
	// =~
	FilterType_REGEX FilterType = 3
)

func (FilterType) Descriptor

func (FilterType) Descriptor() protoreflect.EnumDescriptor

func (FilterType) Enum

func (x FilterType) Enum() *FilterType

func (FilterType) EnumDescriptor deprecated

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

Deprecated: Use FilterType.Descriptor instead.

func (FilterType) Number

func (x FilterType) Number() protoreflect.EnumNumber

func (FilterType) String

func (x FilterType) String() string

func (FilterType) Type

type HTTPConfig

type HTTPConfig struct {

	// Basic HTTP auth configuration. Zero value will remove it.
	BasicAuth       *BasicAuth `protobuf:"bytes,1,opt,name=basic_auth,json=basicAuth,proto3" json:"basic_auth,omitempty"`
	BearerToken     string     `protobuf:"bytes,2,opt,name=bearer_token,json=bearerToken,proto3" json:"bearer_token,omitempty"`
	BearerTokenFile string     `protobuf:"bytes,3,opt,name=bearer_token_file,json=bearerTokenFile,proto3" json:"bearer_token_file,omitempty"`
	// TLS configuration. Zero value will remove it.
	TlsConfig *TLSConfig `protobuf:"bytes,4,opt,name=tls_config,json=tlsConfig,proto3" json:"tls_config,omitempty"`
	ProxyUrl  string     `protobuf:"bytes,5,opt,name=proxy_url,json=proxyUrl,proto3" json:"proxy_url,omitempty"`
	// contains filtered or unexported fields
}

HTTPConfig represents HTTP client configuration.

func (*HTTPConfig) Descriptor deprecated

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

Deprecated: Use HTTPConfig.ProtoReflect.Descriptor instead.

func (*HTTPConfig) GetBasicAuth

func (x *HTTPConfig) GetBasicAuth() *BasicAuth

func (*HTTPConfig) GetBearerToken

func (x *HTTPConfig) GetBearerToken() string

func (*HTTPConfig) GetBearerTokenFile

func (x *HTTPConfig) GetBearerTokenFile() string

func (*HTTPConfig) GetProxyUrl

func (x *HTTPConfig) GetProxyUrl() string

func (*HTTPConfig) GetTlsConfig

func (x *HTTPConfig) GetTlsConfig() *TLSConfig

func (*HTTPConfig) ProtoMessage

func (*HTTPConfig) ProtoMessage()

func (*HTTPConfig) ProtoReflect

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

func (*HTTPConfig) Reset

func (x *HTTPConfig) Reset()

func (*HTTPConfig) String

func (x *HTTPConfig) String() string

func (*HTTPConfig) Validate

func (this *HTTPConfig) Validate() error

type ListAlertRulesRequest

type ListAlertRulesRequest struct {

	// Page request.
	PageParams *PageParams `protobuf:"bytes,1,opt,name=page_params,json=pageParams,proto3" json:"page_params,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertRulesRequest) Descriptor deprecated

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

Deprecated: Use ListAlertRulesRequest.ProtoReflect.Descriptor instead.

func (*ListAlertRulesRequest) GetPageParams

func (x *ListAlertRulesRequest) GetPageParams() *PageParams

func (*ListAlertRulesRequest) ProtoMessage

func (*ListAlertRulesRequest) ProtoMessage()

func (*ListAlertRulesRequest) ProtoReflect

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

func (*ListAlertRulesRequest) Reset

func (x *ListAlertRulesRequest) Reset()

func (*ListAlertRulesRequest) String

func (x *ListAlertRulesRequest) String() string

func (*ListAlertRulesRequest) Validate

func (this *ListAlertRulesRequest) Validate() error

type ListAlertRulesResponse

type ListAlertRulesResponse struct {
	Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// Total items and pages.
	Totals *PageTotals `protobuf:"bytes,2,opt,name=totals,proto3" json:"totals,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertRulesResponse) Descriptor deprecated

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

Deprecated: Use ListAlertRulesResponse.ProtoReflect.Descriptor instead.

func (*ListAlertRulesResponse) GetRules

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

func (*ListAlertRulesResponse) GetTotals

func (x *ListAlertRulesResponse) GetTotals() *PageTotals

func (*ListAlertRulesResponse) ProtoMessage

func (*ListAlertRulesResponse) ProtoMessage()

func (*ListAlertRulesResponse) ProtoReflect

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

func (*ListAlertRulesResponse) Reset

func (x *ListAlertRulesResponse) Reset()

func (*ListAlertRulesResponse) String

func (x *ListAlertRulesResponse) String() string

func (*ListAlertRulesResponse) Validate

func (this *ListAlertRulesResponse) Validate() error

type ListAlertsRequest

type ListAlertsRequest struct {

	// Page request.
	PageParams *PageParams `protobuf:"bytes,1,opt,name=page_params,json=pageParams,proto3" json:"page_params,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertsRequest) Descriptor deprecated

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

Deprecated: Use ListAlertsRequest.ProtoReflect.Descriptor instead.

func (*ListAlertsRequest) GetPageParams

func (x *ListAlertsRequest) GetPageParams() *PageParams

func (*ListAlertsRequest) ProtoMessage

func (*ListAlertsRequest) ProtoMessage()

func (*ListAlertsRequest) ProtoReflect

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

func (*ListAlertsRequest) Reset

func (x *ListAlertsRequest) Reset()

func (*ListAlertsRequest) String

func (x *ListAlertsRequest) String() string

func (*ListAlertsRequest) Validate

func (this *ListAlertsRequest) Validate() error

type ListAlertsResponse

type ListAlertsResponse struct {
	Alerts []*Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"`
	// Total items and pages.
	Totals *PageTotals `protobuf:"bytes,2,opt,name=totals,proto3" json:"totals,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAlertsResponse) Descriptor deprecated

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

Deprecated: Use ListAlertsResponse.ProtoReflect.Descriptor instead.

func (*ListAlertsResponse) GetAlerts

func (x *ListAlertsResponse) GetAlerts() []*Alert

func (*ListAlertsResponse) GetTotals

func (x *ListAlertsResponse) GetTotals() *PageTotals

func (*ListAlertsResponse) ProtoMessage

func (*ListAlertsResponse) ProtoMessage()

func (*ListAlertsResponse) ProtoReflect

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

func (*ListAlertsResponse) Reset

func (x *ListAlertsResponse) Reset()

func (*ListAlertsResponse) String

func (x *ListAlertsResponse) String() string

func (*ListAlertsResponse) Validate

func (this *ListAlertsResponse) Validate() error

type ListChannelsRequest

type ListChannelsRequest struct {

	// Page request.
	PageParams *PageParams `protobuf:"bytes,1,opt,name=page_params,json=pageParams,proto3" json:"page_params,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChannelsRequest) Descriptor deprecated

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

Deprecated: Use ListChannelsRequest.ProtoReflect.Descriptor instead.

func (*ListChannelsRequest) GetPageParams

func (x *ListChannelsRequest) GetPageParams() *PageParams

func (*ListChannelsRequest) ProtoMessage

func (*ListChannelsRequest) ProtoMessage()

func (*ListChannelsRequest) ProtoReflect

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

func (*ListChannelsRequest) Reset

func (x *ListChannelsRequest) Reset()

func (*ListChannelsRequest) String

func (x *ListChannelsRequest) String() string

func (*ListChannelsRequest) Validate

func (this *ListChannelsRequest) Validate() error

type ListChannelsResponse

type ListChannelsResponse struct {
	Channels []*Channel `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
	// Total items and pages.
	Totals *PageTotals `protobuf:"bytes,2,opt,name=totals,proto3" json:"totals,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChannelsResponse) Descriptor deprecated

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

Deprecated: Use ListChannelsResponse.ProtoReflect.Descriptor instead.

func (*ListChannelsResponse) GetChannels

func (x *ListChannelsResponse) GetChannels() []*Channel

func (*ListChannelsResponse) GetTotals

func (x *ListChannelsResponse) GetTotals() *PageTotals

func (*ListChannelsResponse) ProtoMessage

func (*ListChannelsResponse) ProtoMessage()

func (*ListChannelsResponse) ProtoReflect

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

func (*ListChannelsResponse) Reset

func (x *ListChannelsResponse) Reset()

func (*ListChannelsResponse) String

func (x *ListChannelsResponse) String() string

func (*ListChannelsResponse) Validate

func (this *ListChannelsResponse) Validate() error

type ListTemplatesRequest

type ListTemplatesRequest struct {

	// If true, template files will be re-read from disk.
	Reload bool `protobuf:"varint,1,opt,name=reload,proto3" json:"reload,omitempty"`
	// Page request.
	PageParams *PageParams `protobuf:"bytes,2,opt,name=page_params,json=pageParams,proto3" json:"page_params,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTemplatesRequest) Descriptor deprecated

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

Deprecated: Use ListTemplatesRequest.ProtoReflect.Descriptor instead.

func (*ListTemplatesRequest) GetPageParams

func (x *ListTemplatesRequest) GetPageParams() *PageParams

func (*ListTemplatesRequest) GetReload

func (x *ListTemplatesRequest) GetReload() bool

func (*ListTemplatesRequest) ProtoMessage

func (*ListTemplatesRequest) ProtoMessage()

func (*ListTemplatesRequest) ProtoReflect

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

func (*ListTemplatesRequest) Reset

func (x *ListTemplatesRequest) Reset()

func (*ListTemplatesRequest) String

func (x *ListTemplatesRequest) String() string

func (*ListTemplatesRequest) Validate

func (this *ListTemplatesRequest) Validate() error

type ListTemplatesResponse

type ListTemplatesResponse struct {
	Templates []*Template `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"`
	// Total items and pages.
	Totals *PageTotals `protobuf:"bytes,2,opt,name=totals,proto3" json:"totals,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTemplatesResponse) Descriptor deprecated

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

Deprecated: Use ListTemplatesResponse.ProtoReflect.Descriptor instead.

func (*ListTemplatesResponse) GetTemplates

func (x *ListTemplatesResponse) GetTemplates() []*Template

func (*ListTemplatesResponse) GetTotals

func (x *ListTemplatesResponse) GetTotals() *PageTotals

func (*ListTemplatesResponse) ProtoMessage

func (*ListTemplatesResponse) ProtoMessage()

func (*ListTemplatesResponse) ProtoReflect

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

func (*ListTemplatesResponse) Reset

func (x *ListTemplatesResponse) Reset()

func (*ListTemplatesResponse) String

func (x *ListTemplatesResponse) String() string

func (*ListTemplatesResponse) Validate

func (this *ListTemplatesResponse) Validate() error

type PageParams

type PageParams struct {

	// Maximum number of results per page.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Index of the requested page, starts from 0.
	Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

PageParams represents page request parameters for pagination.

func (*PageParams) Descriptor deprecated

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

Deprecated: Use PageParams.ProtoReflect.Descriptor instead.

func (*PageParams) GetIndex

func (x *PageParams) GetIndex() int32

func (*PageParams) GetPageSize

func (x *PageParams) GetPageSize() int32

func (*PageParams) ProtoMessage

func (*PageParams) ProtoMessage()

func (*PageParams) ProtoReflect

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

func (*PageParams) Reset

func (x *PageParams) Reset()

func (*PageParams) String

func (x *PageParams) String() string

func (*PageParams) Validate

func (this *PageParams) Validate() error

type PageTotals

type PageTotals struct {

	// Total number of results.
	TotalItems int32 `protobuf:"varint,1,opt,name=total_items,json=totalItems,proto3" json:"total_items,omitempty"`
	// Total number of pages.
	TotalPages int32 `protobuf:"varint,2,opt,name=total_pages,json=totalPages,proto3" json:"total_pages,omitempty"`
	// contains filtered or unexported fields
}

PageTotals represents total values for pagination.

func (*PageTotals) Descriptor deprecated

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

Deprecated: Use PageTotals.ProtoReflect.Descriptor instead.

func (*PageTotals) GetTotalItems

func (x *PageTotals) GetTotalItems() int32

func (*PageTotals) GetTotalPages

func (x *PageTotals) GetTotalPages() int32

func (*PageTotals) ProtoMessage

func (*PageTotals) ProtoMessage()

func (*PageTotals) ProtoReflect

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

func (*PageTotals) Reset

func (x *PageTotals) Reset()

func (*PageTotals) String

func (x *PageTotals) String() string

func (*PageTotals) Validate

func (this *PageTotals) Validate() error

type PagerDutyConfig

type PagerDutyConfig struct {
	SendResolved bool `protobuf:"varint,1,opt,name=send_resolved,json=sendResolved,proto3" json:"send_resolved,omitempty"`
	// The PagerDuty key for "Events API v2" integration type. Exactly one key should be set.
	RoutingKey string `protobuf:"bytes,2,opt,name=routing_key,json=routingKey,proto3" json:"routing_key,omitempty"`
	// The PagerDuty key for "Prometheus" integration type. Exactly one key should be set.
	ServiceKey string `protobuf:"bytes,3,opt,name=service_key,json=serviceKey,proto3" json:"service_key,omitempty"`
	// contains filtered or unexported fields
}

PagerDutyConfig represents PagerDuty configuration.

func (*PagerDutyConfig) Descriptor deprecated

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

Deprecated: Use PagerDutyConfig.ProtoReflect.Descriptor instead.

func (*PagerDutyConfig) GetRoutingKey

func (x *PagerDutyConfig) GetRoutingKey() string

func (*PagerDutyConfig) GetSendResolved

func (x *PagerDutyConfig) GetSendResolved() bool

func (*PagerDutyConfig) GetServiceKey

func (x *PagerDutyConfig) GetServiceKey() string

func (*PagerDutyConfig) ProtoMessage

func (*PagerDutyConfig) ProtoMessage()

func (*PagerDutyConfig) ProtoReflect

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

func (*PagerDutyConfig) Reset

func (x *PagerDutyConfig) Reset()

func (*PagerDutyConfig) String

func (x *PagerDutyConfig) String() string

func (*PagerDutyConfig) Validate

func (this *PagerDutyConfig) Validate() error

type ParamType

type ParamType int32

ParamType represents template parameter type.

const (
	ParamType_PARAM_TYPE_INVALID ParamType = 0
	ParamType_BOOL               ParamType = 1
	ParamType_FLOAT              ParamType = 2
	ParamType_STRING             ParamType = 3
)

func (ParamType) Descriptor

func (ParamType) Descriptor() protoreflect.EnumDescriptor

func (ParamType) Enum

func (x ParamType) Enum() *ParamType

func (ParamType) EnumDescriptor deprecated

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

Deprecated: Use ParamType.Descriptor instead.

func (ParamType) Number

func (x ParamType) Number() protoreflect.EnumNumber

func (ParamType) String

func (x ParamType) String() string

func (ParamType) Type

type ParamUnit

type ParamUnit int32

ParamUnit represents template parameter unit.

const (
	// Invalid, unknown or absent.
	ParamUnit_PARAM_UNIT_INVALID ParamUnit = 0
	// %
	ParamUnit_PERCENTAGE ParamUnit = 1
	// s
	ParamUnit_SECONDS ParamUnit = 2
)

func (ParamUnit) Descriptor

func (ParamUnit) Descriptor() protoreflect.EnumDescriptor

func (ParamUnit) Enum

func (x ParamUnit) Enum() *ParamUnit

func (ParamUnit) EnumDescriptor deprecated

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

Deprecated: Use ParamUnit.Descriptor instead.

func (ParamUnit) Number

func (x ParamUnit) Number() protoreflect.EnumNumber

func (ParamUnit) String

func (x ParamUnit) String() string

func (ParamUnit) Type

type RemoveChannelRequest

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

func (*RemoveChannelRequest) Descriptor deprecated

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

Deprecated: Use RemoveChannelRequest.ProtoReflect.Descriptor instead.

func (*RemoveChannelRequest) GetChannelId

func (x *RemoveChannelRequest) GetChannelId() string

func (*RemoveChannelRequest) ProtoMessage

func (*RemoveChannelRequest) ProtoMessage()

func (*RemoveChannelRequest) ProtoReflect

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

func (*RemoveChannelRequest) Reset

func (x *RemoveChannelRequest) Reset()

func (*RemoveChannelRequest) String

func (x *RemoveChannelRequest) String() string

func (*RemoveChannelRequest) Validate

func (this *RemoveChannelRequest) Validate() error

type RemoveChannelResponse

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

func (*RemoveChannelResponse) Descriptor deprecated

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

Deprecated: Use RemoveChannelResponse.ProtoReflect.Descriptor instead.

func (*RemoveChannelResponse) ProtoMessage

func (*RemoveChannelResponse) ProtoMessage()

func (*RemoveChannelResponse) ProtoReflect

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

func (*RemoveChannelResponse) Reset

func (x *RemoveChannelResponse) Reset()

func (*RemoveChannelResponse) String

func (x *RemoveChannelResponse) String() string

func (*RemoveChannelResponse) Validate

func (this *RemoveChannelResponse) Validate() error

type Rule

type Rule struct {

	// Template used to create that rule.
	Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	// Rule ID.
	RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
	// True if that rule is disabled.
	Disabled bool `protobuf:"varint,3,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// Rule human-readable summary.
	Summary string `protobuf:"bytes,4,opt,name=summary,proto3" json:"summary,omitempty"`
	// Rule parameters.
	Params []*RuleParam `protobuf:"bytes,5,rep,name=params,proto3" json:"params,omitempty"`
	// Rule duration.
	For *duration.Duration `protobuf:"bytes,6,opt,name=for,proto3" json:"for,omitempty"`
	// Rule severity.
	Severity managementpb.Severity `protobuf:"varint,7,opt,name=severity,proto3,enum=management.Severity" json:"severity,omitempty"`
	// Custom labels.
	CustomLabels map[string]string `` /* 185-byte string literal not displayed */
	// Filters.
	Filters []*Filter `protobuf:"bytes,9,rep,name=filters,proto3" json:"filters,omitempty"`
	// Channels.
	Channels []*Channel `protobuf:"bytes,10,rep,name=channels,proto3" json:"channels,omitempty"`
	// Rule creation time.
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Template expression with rule parameters.
	Expr string `protobuf:"bytes,12,opt,name=expr,proto3" json:"expr,omitempty"`
	// contains filtered or unexported fields
}

Rule represents Alert Rule.

func (*Rule) Descriptor deprecated

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

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetChannels

func (x *Rule) GetChannels() []*Channel

func (*Rule) GetCreatedAt

func (x *Rule) GetCreatedAt() *timestamp.Timestamp

func (*Rule) GetCustomLabels

func (x *Rule) GetCustomLabels() map[string]string

func (*Rule) GetDisabled

func (x *Rule) GetDisabled() bool

func (*Rule) GetExpr

func (x *Rule) GetExpr() string

func (*Rule) GetFilters

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

func (*Rule) GetFor

func (x *Rule) GetFor() *duration.Duration

func (*Rule) GetParams

func (x *Rule) GetParams() []*RuleParam

func (*Rule) GetRuleId

func (x *Rule) GetRuleId() string

func (*Rule) GetSeverity

func (x *Rule) GetSeverity() managementpb.Severity

func (*Rule) GetSummary

func (x *Rule) GetSummary() string

func (*Rule) GetTemplate

func (x *Rule) GetTemplate() *Template

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

func (*Rule) Validate

func (this *Rule) Validate() error

type RuleParam

type RuleParam struct {

	// Machine-readable name (ID) that is used in expression.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Parameter type.
	Type ParamType `protobuf:"varint,2,opt,name=type,proto3,enum=ia.v1beta1.ParamType" json:"type,omitempty"`
	// Parameter value.
	//
	// Types that are assignable to Value:
	//	*RuleParam_Bool
	//	*RuleParam_Float
	//	*RuleParam_String_
	Value isRuleParam_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

RuleParam represents a single rule parameter for List, Change and Update APIs.

func (*RuleParam) Descriptor deprecated

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

Deprecated: Use RuleParam.ProtoReflect.Descriptor instead.

func (*RuleParam) GetBool

func (x *RuleParam) GetBool() bool

func (*RuleParam) GetFloat

func (x *RuleParam) GetFloat() float32

func (*RuleParam) GetName

func (x *RuleParam) GetName() string

func (*RuleParam) GetString_

func (x *RuleParam) GetString_() string

func (*RuleParam) GetType

func (x *RuleParam) GetType() ParamType

func (*RuleParam) GetValue

func (m *RuleParam) GetValue() isRuleParam_Value

func (*RuleParam) ProtoMessage

func (*RuleParam) ProtoMessage()

func (*RuleParam) ProtoReflect

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

func (*RuleParam) Reset

func (x *RuleParam) Reset()

func (*RuleParam) String

func (x *RuleParam) String() string

func (*RuleParam) Validate

func (this *RuleParam) Validate() error

type RuleParam_Bool

type RuleParam_Bool struct {
	// Bool value.
	Bool bool `protobuf:"varint,3,opt,name=bool,proto3,oneof"`
}

type RuleParam_Float

type RuleParam_Float struct {
	// Float value.
	Float float32 `protobuf:"fixed32,4,opt,name=float,proto3,oneof"`
}

type RuleParam_String_

type RuleParam_String_ struct {
	// String value.
	String_ string `protobuf:"bytes,5,opt,name=string,proto3,oneof"`
}

type RulesClient

type RulesClient interface {
	// ListAlertRules returns a list of all Integrated Alerting rules.
	ListAlertRules(ctx context.Context, in *ListAlertRulesRequest, opts ...grpc.CallOption) (*ListAlertRulesResponse, error)
	// CreateAlertRule creates Integrated Alerting rule.
	CreateAlertRule(ctx context.Context, in *CreateAlertRuleRequest, opts ...grpc.CallOption) (*CreateAlertRuleResponse, error)
	// UpdateAlertRule updates Integrated Alerting rule.
	UpdateAlertRule(ctx context.Context, in *UpdateAlertRuleRequest, opts ...grpc.CallOption) (*UpdateAlertRuleResponse, error)
	// ToggleAlertRule allows to switch between disabled and enabled states of an Alert Rule.
	ToggleAlertRule(ctx context.Context, in *ToggleAlertRuleRequest, opts ...grpc.CallOption) (*ToggleAlertRuleResponse, error)
	// DeleteAlertRule deletes Integrated Alerting rule.
	DeleteAlertRule(ctx context.Context, in *DeleteAlertRuleRequest, opts ...grpc.CallOption) (*DeleteAlertRuleResponse, error)
}

RulesClient is the client API for Rules service.

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

func NewRulesClient

func NewRulesClient(cc grpc.ClientConnInterface) RulesClient

type RulesServer

type RulesServer interface {
	// ListAlertRules returns a list of all Integrated Alerting rules.
	ListAlertRules(context.Context, *ListAlertRulesRequest) (*ListAlertRulesResponse, error)
	// CreateAlertRule creates Integrated Alerting rule.
	CreateAlertRule(context.Context, *CreateAlertRuleRequest) (*CreateAlertRuleResponse, error)
	// UpdateAlertRule updates Integrated Alerting rule.
	UpdateAlertRule(context.Context, *UpdateAlertRuleRequest) (*UpdateAlertRuleResponse, error)
	// ToggleAlertRule allows to switch between disabled and enabled states of an Alert Rule.
	ToggleAlertRule(context.Context, *ToggleAlertRuleRequest) (*ToggleAlertRuleResponse, error)
	// DeleteAlertRule deletes Integrated Alerting rule.
	DeleteAlertRule(context.Context, *DeleteAlertRuleRequest) (*DeleteAlertRuleResponse, error)
}

RulesServer is the server API for Rules service.

type SlackConfig

type SlackConfig struct {
	SendResolved bool   `protobuf:"varint,1,opt,name=send_resolved,json=sendResolved,proto3" json:"send_resolved,omitempty"`
	Channel      string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
	// contains filtered or unexported fields
}

SlackConfig represents Slack configuration.

func (*SlackConfig) Descriptor deprecated

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

Deprecated: Use SlackConfig.ProtoReflect.Descriptor instead.

func (*SlackConfig) GetChannel

func (x *SlackConfig) GetChannel() string

func (*SlackConfig) GetSendResolved

func (x *SlackConfig) GetSendResolved() bool

func (*SlackConfig) ProtoMessage

func (*SlackConfig) ProtoMessage()

func (*SlackConfig) ProtoReflect

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

func (*SlackConfig) Reset

func (x *SlackConfig) Reset()

func (*SlackConfig) String

func (x *SlackConfig) String() string

func (*SlackConfig) Validate

func (this *SlackConfig) Validate() error

type Status

type Status int32

Status represents Alert Rule's and Alert's combined status.

const (
	Status_STATUS_INVALID Status = 0
	// No alert.
	Status_CLEAR Status = 1
	// Pending, but not triggering alert.
	Status_PENDING Status = 2
	// Triggering (firing) alert.
	Status_TRIGGERING Status = 3
	// Silenced alert.
	Status_SILENCED Status = 4
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type TLSConfig

type TLSConfig struct {
	CaFile             string `protobuf:"bytes,1,opt,name=ca_file,json=caFile,proto3" json:"ca_file,omitempty"`
	CertFile           string `protobuf:"bytes,2,opt,name=cert_file,json=certFile,proto3" json:"cert_file,omitempty"`
	KeyFile            string `protobuf:"bytes,3,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty"`
	ServerName         string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
	InsecureSkipVerify bool   `protobuf:"varint,5,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"`
	// contains filtered or unexported fields
}

TLSConfig represents TLS configuration.

func (*TLSConfig) Descriptor deprecated

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

Deprecated: Use TLSConfig.ProtoReflect.Descriptor instead.

func (*TLSConfig) GetCaFile

func (x *TLSConfig) GetCaFile() string

func (*TLSConfig) GetCertFile

func (x *TLSConfig) GetCertFile() string

func (*TLSConfig) GetInsecureSkipVerify

func (x *TLSConfig) GetInsecureSkipVerify() bool

func (*TLSConfig) GetKeyFile

func (x *TLSConfig) GetKeyFile() string

func (*TLSConfig) GetServerName

func (x *TLSConfig) GetServerName() string

func (*TLSConfig) ProtoMessage

func (*TLSConfig) ProtoMessage()

func (*TLSConfig) ProtoReflect

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

func (*TLSConfig) Reset

func (x *TLSConfig) Reset()

func (*TLSConfig) String

func (x *TLSConfig) String() string

func (*TLSConfig) Validate

func (this *TLSConfig) Validate() error

type Template

type Template struct {

	// Machine-readable name (ID).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Short human-readable summary.
	Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// PromQL query expression with templating parameters.
	Expr string `protobuf:"bytes,3,opt,name=expr,proto3" json:"expr,omitempty"`
	// Query templating parameters.
	Params []*TemplateParam `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty"`
	// Default duration value.
	For *duration.Duration `protobuf:"bytes,5,opt,name=for,proto3" json:"for,omitempty"`
	// Severity.
	Severity managementpb.Severity `protobuf:"varint,6,opt,name=severity,proto3,enum=management.Severity" json:"severity,omitempty"`
	// Labels.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Annotations.
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	// Template source. Only templates created via API can be updated or deleted via API.
	Source TemplateSource `protobuf:"varint,9,opt,name=source,proto3,enum=ia.v1beta1.TemplateSource" json:"source,omitempty"`
	// Template creation time. Empty for built-in and SaaS templates.
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// YAML (or JSON) template file content. Empty for built-in and SaaS templates.
	Yaml string `protobuf:"bytes,11,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

Template represents Alert Template that is used to create Alert Rule.

func (*Template) Descriptor deprecated

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

Deprecated: Use Template.ProtoReflect.Descriptor instead.

func (*Template) GetAnnotations

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

func (*Template) GetCreatedAt

func (x *Template) GetCreatedAt() *timestamp.Timestamp

func (*Template) GetExpr

func (x *Template) GetExpr() string

func (*Template) GetFor

func (x *Template) GetFor() *duration.Duration

func (*Template) GetLabels

func (x *Template) GetLabels() map[string]string

func (*Template) GetName

func (x *Template) GetName() string

func (*Template) GetParams

func (x *Template) GetParams() []*TemplateParam

func (*Template) GetSeverity

func (x *Template) GetSeverity() managementpb.Severity

func (*Template) GetSource

func (x *Template) GetSource() TemplateSource

func (*Template) GetSummary

func (x *Template) GetSummary() string

func (*Template) GetYaml

func (x *Template) GetYaml() string

func (*Template) ProtoMessage

func (*Template) ProtoMessage()

func (*Template) ProtoReflect

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

func (*Template) Reset

func (x *Template) Reset()

func (*Template) String

func (x *Template) String() string

func (*Template) Validate

func (this *Template) Validate() error

type TemplateBoolParam

type TemplateBoolParam struct {
	Default BooleanFlag `protobuf:"varint,1,opt,name=default,proto3,enum=ia.v1beta1.BooleanFlag" json:"default,omitempty"`
	// contains filtered or unexported fields
}

TemplateBoolParam represents boolean parameter's default value.

func (*TemplateBoolParam) Descriptor deprecated

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

Deprecated: Use TemplateBoolParam.ProtoReflect.Descriptor instead.

func (*TemplateBoolParam) GetDefault

func (x *TemplateBoolParam) GetDefault() BooleanFlag

func (*TemplateBoolParam) ProtoMessage

func (*TemplateBoolParam) ProtoMessage()

func (*TemplateBoolParam) ProtoReflect

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

func (*TemplateBoolParam) Reset

func (x *TemplateBoolParam) Reset()

func (*TemplateBoolParam) String

func (x *TemplateBoolParam) String() string

func (*TemplateBoolParam) Validate

func (this *TemplateBoolParam) Validate() error

type TemplateFloatParam

type TemplateFloatParam struct {

	// True if default value is set.
	HasDefault bool `protobuf:"varint,1,opt,name=has_default,json=hasDefault,proto3" json:"has_default,omitempty"`
	// Default value if has_default is true.
	Default float32 `protobuf:"fixed32,2,opt,name=default,proto3" json:"default,omitempty"`
	// True if minimal valid value is set.
	HasMin bool `protobuf:"varint,3,opt,name=has_min,json=hasMin,proto3" json:"has_min,omitempty"`
	// Minimal valid value (inclusive) if has_min is true.
	Min float32 `protobuf:"fixed32,4,opt,name=min,proto3" json:"min,omitempty"`
	// True if maximal valid value is set.
	HasMax bool `protobuf:"varint,5,opt,name=has_max,json=hasMax,proto3" json:"has_max,omitempty"`
	// Maximal valid value (inclusive) if has_max is true.
	Max float32 `protobuf:"fixed32,6,opt,name=max,proto3" json:"max,omitempty"`
	// contains filtered or unexported fields
}

TemplateFloatParam represents float parameter's default value and valid range.

func (*TemplateFloatParam) Descriptor deprecated

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

Deprecated: Use TemplateFloatParam.ProtoReflect.Descriptor instead.

func (*TemplateFloatParam) GetDefault

func (x *TemplateFloatParam) GetDefault() float32

func (*TemplateFloatParam) GetHasDefault

func (x *TemplateFloatParam) GetHasDefault() bool

func (*TemplateFloatParam) GetHasMax

func (x *TemplateFloatParam) GetHasMax() bool

func (*TemplateFloatParam) GetHasMin

func (x *TemplateFloatParam) GetHasMin() bool

func (*TemplateFloatParam) GetMax

func (x *TemplateFloatParam) GetMax() float32

func (*TemplateFloatParam) GetMin

func (x *TemplateFloatParam) GetMin() float32

func (*TemplateFloatParam) ProtoMessage

func (*TemplateFloatParam) ProtoMessage()

func (*TemplateFloatParam) ProtoReflect

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

func (*TemplateFloatParam) Reset

func (x *TemplateFloatParam) Reset()

func (*TemplateFloatParam) String

func (x *TemplateFloatParam) String() string

func (*TemplateFloatParam) Validate

func (this *TemplateFloatParam) Validate() error

type TemplateParam

type TemplateParam struct {

	// Machine-readable name (ID) that is used in expression.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Short human-readable parameter summary.
	Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// Parameter unit.
	Unit ParamUnit `protobuf:"varint,3,opt,name=unit,proto3,enum=ia.v1beta1.ParamUnit" json:"unit,omitempty"`
	// Parameter type.
	Type ParamType `protobuf:"varint,4,opt,name=type,proto3,enum=ia.v1beta1.ParamType" json:"type,omitempty"`
	// Parameter value.
	//
	// Types that are assignable to Value:
	//	*TemplateParam_Bool
	//	*TemplateParam_Float
	//	*TemplateParam_String_
	Value isTemplateParam_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

TemplateParam represents a single template parameter.

func (*TemplateParam) Descriptor deprecated

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

Deprecated: Use TemplateParam.ProtoReflect.Descriptor instead.

func (*TemplateParam) GetBool

func (x *TemplateParam) GetBool() *TemplateBoolParam

func (*TemplateParam) GetFloat

func (x *TemplateParam) GetFloat() *TemplateFloatParam

func (*TemplateParam) GetName

func (x *TemplateParam) GetName() string

func (*TemplateParam) GetString_

func (x *TemplateParam) GetString_() *TemplateStringParam

func (*TemplateParam) GetSummary

func (x *TemplateParam) GetSummary() string

func (*TemplateParam) GetType

func (x *TemplateParam) GetType() ParamType

func (*TemplateParam) GetUnit

func (x *TemplateParam) GetUnit() ParamUnit

func (*TemplateParam) GetValue

func (m *TemplateParam) GetValue() isTemplateParam_Value

func (*TemplateParam) ProtoMessage

func (*TemplateParam) ProtoMessage()

func (*TemplateParam) ProtoReflect

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

func (*TemplateParam) Reset

func (x *TemplateParam) Reset()

func (*TemplateParam) String

func (x *TemplateParam) String() string

func (*TemplateParam) Validate

func (this *TemplateParam) Validate() error

type TemplateParam_Bool

type TemplateParam_Bool struct {
	// Bool value.
	Bool *TemplateBoolParam `protobuf:"bytes,5,opt,name=bool,proto3,oneof"`
}

type TemplateParam_Float

type TemplateParam_Float struct {
	// Float value.
	Float *TemplateFloatParam `protobuf:"bytes,6,opt,name=float,proto3,oneof"`
}

type TemplateParam_String_

type TemplateParam_String_ struct {
	// String value.
	String_ *TemplateStringParam `protobuf:"bytes,7,opt,name=string,proto3,oneof"`
}

type TemplateSource

type TemplateSource int32

TemplateSource defines template source.

const (
	TemplateSource_TEMPLATE_SOURCE_INVALID TemplateSource = 0
	// Template that is shipped with PMM Server releases.
	TemplateSource_BUILT_IN TemplateSource = 1
	// Template that is downloaded from check.percona.com.
	TemplateSource_SAAS TemplateSource = 2
	// Templated loaded from user-suplied file.
	TemplateSource_USER_FILE TemplateSource = 3
	// Templated created via API.
	TemplateSource_USER_API TemplateSource = 4
)

func (TemplateSource) Descriptor

func (TemplateSource) Enum

func (x TemplateSource) Enum() *TemplateSource

func (TemplateSource) EnumDescriptor deprecated

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

Deprecated: Use TemplateSource.Descriptor instead.

func (TemplateSource) Number

func (TemplateSource) String

func (x TemplateSource) String() string

func (TemplateSource) Type

type TemplateStringParam

type TemplateStringParam struct {

	// True if default value is set.
	HasDefault bool `protobuf:"varint,1,opt,name=has_default,json=hasDefault,proto3" json:"has_default,omitempty"`
	// Default value if has_default is true.
	Default string `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

TemplateStringParam represents string parameter's default value.

func (*TemplateStringParam) Descriptor deprecated

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

Deprecated: Use TemplateStringParam.ProtoReflect.Descriptor instead.

func (*TemplateStringParam) GetDefault

func (x *TemplateStringParam) GetDefault() string

func (*TemplateStringParam) GetHasDefault

func (x *TemplateStringParam) GetHasDefault() bool

func (*TemplateStringParam) ProtoMessage

func (*TemplateStringParam) ProtoMessage()

func (*TemplateStringParam) ProtoReflect

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

func (*TemplateStringParam) Reset

func (x *TemplateStringParam) Reset()

func (*TemplateStringParam) String

func (x *TemplateStringParam) String() string

func (*TemplateStringParam) Validate

func (this *TemplateStringParam) Validate() error

type TemplatesClient

type TemplatesClient interface {
	// ListTemplates returns a list of all collected Alert Rule Templates.
	ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error)
	// CreateTemplate creates a new template.
	CreateTemplate(ctx context.Context, in *CreateTemplateRequest, opts ...grpc.CallOption) (*CreateTemplateResponse, error)
	// UpdateTemplate updates existing template, previously created via API.
	UpdateTemplate(ctx context.Context, in *UpdateTemplateRequest, opts ...grpc.CallOption) (*UpdateTemplateResponse, error)
	// DeleteTemplate deletes existing, previously created via API.
	DeleteTemplate(ctx context.Context, in *DeleteTemplateRequest, opts ...grpc.CallOption) (*DeleteTemplateResponse, error)
}

TemplatesClient is the client API for Templates service.

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

func NewTemplatesClient

func NewTemplatesClient(cc grpc.ClientConnInterface) TemplatesClient

type TemplatesServer

type TemplatesServer interface {
	// ListTemplates returns a list of all collected Alert Rule Templates.
	ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error)
	// CreateTemplate creates a new template.
	CreateTemplate(context.Context, *CreateTemplateRequest) (*CreateTemplateResponse, error)
	// UpdateTemplate updates existing template, previously created via API.
	UpdateTemplate(context.Context, *UpdateTemplateRequest) (*UpdateTemplateResponse, error)
	// DeleteTemplate deletes existing, previously created via API.
	DeleteTemplate(context.Context, *DeleteTemplateRequest) (*DeleteTemplateResponse, error)
}

TemplatesServer is the server API for Templates service.

type ToggleAlertRequest

type ToggleAlertRequest struct {
	AlertId string `protobuf:"bytes,1,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// Silences or unsilences alert if set.
	Silenced BooleanFlag `protobuf:"varint,2,opt,name=silenced,proto3,enum=ia.v1beta1.BooleanFlag" json:"silenced,omitempty"`
	// contains filtered or unexported fields
}

func (*ToggleAlertRequest) Descriptor deprecated

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

Deprecated: Use ToggleAlertRequest.ProtoReflect.Descriptor instead.

func (*ToggleAlertRequest) GetAlertId

func (x *ToggleAlertRequest) GetAlertId() string

func (*ToggleAlertRequest) GetSilenced

func (x *ToggleAlertRequest) GetSilenced() BooleanFlag

func (*ToggleAlertRequest) ProtoMessage

func (*ToggleAlertRequest) ProtoMessage()

func (*ToggleAlertRequest) ProtoReflect

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

func (*ToggleAlertRequest) Reset

func (x *ToggleAlertRequest) Reset()

func (*ToggleAlertRequest) String

func (x *ToggleAlertRequest) String() string

func (*ToggleAlertRequest) Validate

func (this *ToggleAlertRequest) Validate() error

type ToggleAlertResponse

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

func (*ToggleAlertResponse) Descriptor deprecated

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

Deprecated: Use ToggleAlertResponse.ProtoReflect.Descriptor instead.

func (*ToggleAlertResponse) ProtoMessage

func (*ToggleAlertResponse) ProtoMessage()

func (*ToggleAlertResponse) ProtoReflect

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

func (*ToggleAlertResponse) Reset

func (x *ToggleAlertResponse) Reset()

func (*ToggleAlertResponse) String

func (x *ToggleAlertResponse) String() string

func (*ToggleAlertResponse) Validate

func (this *ToggleAlertResponse) Validate() error

type ToggleAlertRuleRequest

type ToggleAlertRuleRequest struct {

	// Rule ID.
	RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
	// New rule status, if set.
	Disabled BooleanFlag `protobuf:"varint,2,opt,name=disabled,proto3,enum=ia.v1beta1.BooleanFlag" json:"disabled,omitempty"`
	// contains filtered or unexported fields
}

func (*ToggleAlertRuleRequest) Descriptor deprecated

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

Deprecated: Use ToggleAlertRuleRequest.ProtoReflect.Descriptor instead.

func (*ToggleAlertRuleRequest) GetDisabled

func (x *ToggleAlertRuleRequest) GetDisabled() BooleanFlag

func (*ToggleAlertRuleRequest) GetRuleId

func (x *ToggleAlertRuleRequest) GetRuleId() string

func (*ToggleAlertRuleRequest) ProtoMessage

func (*ToggleAlertRuleRequest) ProtoMessage()

func (*ToggleAlertRuleRequest) ProtoReflect

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

func (*ToggleAlertRuleRequest) Reset

func (x *ToggleAlertRuleRequest) Reset()

func (*ToggleAlertRuleRequest) String

func (x *ToggleAlertRuleRequest) String() string

func (*ToggleAlertRuleRequest) Validate

func (this *ToggleAlertRuleRequest) Validate() error

type ToggleAlertRuleResponse

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

func (*ToggleAlertRuleResponse) Descriptor deprecated

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

Deprecated: Use ToggleAlertRuleResponse.ProtoReflect.Descriptor instead.

func (*ToggleAlertRuleResponse) ProtoMessage

func (*ToggleAlertRuleResponse) ProtoMessage()

func (*ToggleAlertRuleResponse) ProtoReflect

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

func (*ToggleAlertRuleResponse) Reset

func (x *ToggleAlertRuleResponse) Reset()

func (*ToggleAlertRuleResponse) String

func (x *ToggleAlertRuleResponse) String() string

func (*ToggleAlertRuleResponse) Validate

func (this *ToggleAlertRuleResponse) Validate() error

type UnimplementedAlertsServer

type UnimplementedAlertsServer struct {
}

UnimplementedAlertsServer can be embedded to have forward compatible implementations.

func (*UnimplementedAlertsServer) ListAlerts

func (*UnimplementedAlertsServer) ToggleAlert

type UnimplementedChannelsServer

type UnimplementedChannelsServer struct {
}

UnimplementedChannelsServer can be embedded to have forward compatible implementations.

func (*UnimplementedChannelsServer) AddChannel

func (*UnimplementedChannelsServer) ChangeChannel

func (*UnimplementedChannelsServer) ListChannels

func (*UnimplementedChannelsServer) RemoveChannel

type UnimplementedRulesServer

type UnimplementedRulesServer struct {
}

UnimplementedRulesServer can be embedded to have forward compatible implementations.

func (*UnimplementedRulesServer) CreateAlertRule

func (*UnimplementedRulesServer) DeleteAlertRule

func (*UnimplementedRulesServer) ListAlertRules

func (*UnimplementedRulesServer) ToggleAlertRule

func (*UnimplementedRulesServer) UpdateAlertRule

type UnimplementedTemplatesServer

type UnimplementedTemplatesServer struct {
}

UnimplementedTemplatesServer can be embedded to have forward compatible implementations.

func (*UnimplementedTemplatesServer) CreateTemplate

func (*UnimplementedTemplatesServer) DeleteTemplate

func (*UnimplementedTemplatesServer) ListTemplates

func (*UnimplementedTemplatesServer) UpdateTemplate

type UpdateAlertRuleRequest

type UpdateAlertRuleRequest struct {

	// Rule ID.
	RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
	// New rule status. Should be set.
	Disabled bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// Rule parameters. All template parameters should be set.
	Params []*RuleParam `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"`
	// Rule duration. Should be set.
	For *duration.Duration `protobuf:"bytes,4,opt,name=for,proto3" json:"for,omitempty"`
	// Rule severity. Should be set.
	Severity managementpb.Severity `protobuf:"varint,6,opt,name=severity,proto3,enum=management.Severity" json:"severity,omitempty"`
	// All custom labels to add or remove (with empty values) to default labels from template.
	CustomLabels map[string]string `` /* 185-byte string literal not displayed */
	// Filters. Should be set.
	Filters []*Filter `protobuf:"bytes,10,rep,name=filters,proto3" json:"filters,omitempty"`
	// Channels. Should be set.
	ChannelIds []string `protobuf:"bytes,11,rep,name=channel_ids,json=channelIds,proto3" json:"channel_ids,omitempty"`
	// Rule human-readable summary. Should be set.
	Summary string `protobuf:"bytes,12,opt,name=summary,proto3" json:"summary,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAlertRuleRequest) Descriptor deprecated

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

Deprecated: Use UpdateAlertRuleRequest.ProtoReflect.Descriptor instead.

func (*UpdateAlertRuleRequest) GetChannelIds

func (x *UpdateAlertRuleRequest) GetChannelIds() []string

func (*UpdateAlertRuleRequest) GetCustomLabels

func (x *UpdateAlertRuleRequest) GetCustomLabels() map[string]string

func (*UpdateAlertRuleRequest) GetDisabled

func (x *UpdateAlertRuleRequest) GetDisabled() bool

func (*UpdateAlertRuleRequest) GetFilters

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

func (*UpdateAlertRuleRequest) GetFor

func (*UpdateAlertRuleRequest) GetParams

func (x *UpdateAlertRuleRequest) GetParams() []*RuleParam

func (*UpdateAlertRuleRequest) GetRuleId

func (x *UpdateAlertRuleRequest) GetRuleId() string

func (*UpdateAlertRuleRequest) GetSeverity

func (x *UpdateAlertRuleRequest) GetSeverity() managementpb.Severity

func (*UpdateAlertRuleRequest) GetSummary

func (x *UpdateAlertRuleRequest) GetSummary() string

func (*UpdateAlertRuleRequest) ProtoMessage

func (*UpdateAlertRuleRequest) ProtoMessage()

func (*UpdateAlertRuleRequest) ProtoReflect

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

func (*UpdateAlertRuleRequest) Reset

func (x *UpdateAlertRuleRequest) Reset()

func (*UpdateAlertRuleRequest) String

func (x *UpdateAlertRuleRequest) String() string

func (*UpdateAlertRuleRequest) Validate

func (this *UpdateAlertRuleRequest) Validate() error

type UpdateAlertRuleResponse

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

func (*UpdateAlertRuleResponse) Descriptor deprecated

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

Deprecated: Use UpdateAlertRuleResponse.ProtoReflect.Descriptor instead.

func (*UpdateAlertRuleResponse) ProtoMessage

func (*UpdateAlertRuleResponse) ProtoMessage()

func (*UpdateAlertRuleResponse) ProtoReflect

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

func (*UpdateAlertRuleResponse) Reset

func (x *UpdateAlertRuleResponse) Reset()

func (*UpdateAlertRuleResponse) String

func (x *UpdateAlertRuleResponse) String() string

func (*UpdateAlertRuleResponse) Validate

func (this *UpdateAlertRuleResponse) Validate() error

type UpdateTemplateRequest

type UpdateTemplateRequest struct {

	// Machine-readable name (ID).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// YAML (or JSON) template file content.
	Yaml string `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTemplateRequest) Descriptor deprecated

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

Deprecated: Use UpdateTemplateRequest.ProtoReflect.Descriptor instead.

func (*UpdateTemplateRequest) GetName

func (x *UpdateTemplateRequest) GetName() string

func (*UpdateTemplateRequest) GetYaml

func (x *UpdateTemplateRequest) GetYaml() string

func (*UpdateTemplateRequest) ProtoMessage

func (*UpdateTemplateRequest) ProtoMessage()

func (*UpdateTemplateRequest) ProtoReflect

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

func (*UpdateTemplateRequest) Reset

func (x *UpdateTemplateRequest) Reset()

func (*UpdateTemplateRequest) String

func (x *UpdateTemplateRequest) String() string

func (*UpdateTemplateRequest) Validate

func (this *UpdateTemplateRequest) Validate() error

type UpdateTemplateResponse

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

func (*UpdateTemplateResponse) Descriptor deprecated

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

Deprecated: Use UpdateTemplateResponse.ProtoReflect.Descriptor instead.

func (*UpdateTemplateResponse) ProtoMessage

func (*UpdateTemplateResponse) ProtoMessage()

func (*UpdateTemplateResponse) ProtoReflect

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

func (*UpdateTemplateResponse) Reset

func (x *UpdateTemplateResponse) Reset()

func (*UpdateTemplateResponse) String

func (x *UpdateTemplateResponse) String() string

func (*UpdateTemplateResponse) Validate

func (this *UpdateTemplateResponse) Validate() error

type WebhookConfig

type WebhookConfig struct {
	SendResolved bool        `protobuf:"varint,1,opt,name=send_resolved,json=sendResolved,proto3" json:"send_resolved,omitempty"`
	Url          string      `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	HttpConfig   *HTTPConfig `protobuf:"bytes,3,opt,name=http_config,json=httpConfig,proto3" json:"http_config,omitempty"`
	MaxAlerts    int32       `protobuf:"varint,4,opt,name=max_alerts,json=maxAlerts,proto3" json:"max_alerts,omitempty"`
	// contains filtered or unexported fields
}

WebhookConfig represents webhook configuration.

func (*WebhookConfig) Descriptor deprecated

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

Deprecated: Use WebhookConfig.ProtoReflect.Descriptor instead.

func (*WebhookConfig) GetHttpConfig

func (x *WebhookConfig) GetHttpConfig() *HTTPConfig

func (*WebhookConfig) GetMaxAlerts

func (x *WebhookConfig) GetMaxAlerts() int32

func (*WebhookConfig) GetSendResolved

func (x *WebhookConfig) GetSendResolved() bool

func (*WebhookConfig) GetUrl

func (x *WebhookConfig) GetUrl() string

func (*WebhookConfig) ProtoMessage

func (*WebhookConfig) ProtoMessage()

func (*WebhookConfig) ProtoReflect

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

func (*WebhookConfig) Reset

func (x *WebhookConfig) Reset()

func (*WebhookConfig) String

func (x *WebhookConfig) String() string

func (*WebhookConfig) Validate

func (this *WebhookConfig) Validate() error

Directories

Path Synopsis
json

Jump to

Keyboard shortcuts

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