notification_channel

package
v0.0.0-...-e47837b Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChannelType_name = map[int32]string{
		0:  "CHANNEL_TYPE_UNSPECIFIED",
		1:  "CHANNEL_TYPE_XMATTERS",
		2:  "CHANNEL_TYPE_SLACK",
		3:  "CHANNEL_TYPE_SERVICENOW",
		4:  "CHANNEL_TYPE_SYSLOG",
		5:  "CHANNEL_TYPE_OPSGENIE",
		6:  "CHANNEL_TYPE_CUSTOM_WEBHOOK",
		7:  "CHANNEL_TYPE_SPLUNK",
		8:  "CHANNEL_TYPE_MSTEAMS",
		9:  "CHANNEL_TYPE_JSON",
		10: "CHANNEL_TYPE_EMAIL",
		11: "CHANNEL_TYPE_VICTOROPS",
		12: "CHANNEL_TYPE_PAGERDUTY",
	}
	ChannelType_value = map[string]int32{
		"CHANNEL_TYPE_UNSPECIFIED":    0,
		"CHANNEL_TYPE_XMATTERS":       1,
		"CHANNEL_TYPE_SLACK":          2,
		"CHANNEL_TYPE_SERVICENOW":     3,
		"CHANNEL_TYPE_SYSLOG":         4,
		"CHANNEL_TYPE_OPSGENIE":       5,
		"CHANNEL_TYPE_CUSTOM_WEBHOOK": 6,
		"CHANNEL_TYPE_SPLUNK":         7,
		"CHANNEL_TYPE_MSTEAMS":        8,
		"CHANNEL_TYPE_JSON":           9,
		"CHANNEL_TYPE_EMAIL":          10,
		"CHANNEL_TYPE_VICTOROPS":      11,
		"CHANNEL_TYPE_PAGERDUTY":      12,
	}
)

Enum value maps for ChannelType.

View Source
var File_kentik_notification_channel_v202210_notification_channel_proto protoreflect.FileDescriptor
View Source
var NotificationChannelService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kentik.notification_channel.v202210.NotificationChannelService",
	HandlerType: (*NotificationChannelServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListNotificationChannels",
			Handler:    _NotificationChannelService_ListNotificationChannels_Handler,
		},
		{
			MethodName: "GetNotificationChannel",
			Handler:    _NotificationChannelService_GetNotificationChannel_Handler,
		},
		{
			MethodName: "SearchNotificationChannels",
			Handler:    _NotificationChannelService_SearchNotificationChannels_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kentik/notification_channel/v202210/notification_channel.proto",
}

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

Functions

func RegisterNotificationChannelServiceServer

func RegisterNotificationChannelServiceServer(s grpc.ServiceRegistrar, srv NotificationChannelServiceServer)

Types

type ChannelType

type ChannelType int32

{{.Name}}

const (
	// Invalid value.
	ChannelType_CHANNEL_TYPE_UNSPECIFIED ChannelType = 0
	// XMATTERS platform
	ChannelType_CHANNEL_TYPE_XMATTERS ChannelType = 1
	// Slack channel
	ChannelType_CHANNEL_TYPE_SLACK ChannelType = 2
	// ServiceNow platform
	ChannelType_CHANNEL_TYPE_SERVICENOW ChannelType = 3
	// Syslog server
	ChannelType_CHANNEL_TYPE_SYSLOG ChannelType = 4
	// Atlassian Opsgenie
	ChannelType_CHANNEL_TYPE_OPSGENIE ChannelType = 5
	// Custom REST webhook
	ChannelType_CHANNEL_TYPE_CUSTOM_WEBHOOK ChannelType = 6
	// Splunk platform
	ChannelType_CHANNEL_TYPE_SPLUNK ChannelType = 7
	// Microsoft Teams channel
	ChannelType_CHANNEL_TYPE_MSTEAMS ChannelType = 8
	// webhook with JSON payload
	ChannelType_CHANNEL_TYPE_JSON ChannelType = 9
	// E-mail
	ChannelType_CHANNEL_TYPE_EMAIL ChannelType = 10
	// Splunk On-Call (formerly VictorOps)
	ChannelType_CHANNEL_TYPE_VICTOROPS ChannelType = 11
	// Pagerduty platform
	ChannelType_CHANNEL_TYPE_PAGERDUTY ChannelType = 12
)

func (ChannelType) Descriptor

func (ChannelType) Enum

func (x ChannelType) Enum() *ChannelType

func (ChannelType) EnumDescriptor deprecated

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

Deprecated: Use ChannelType.Descriptor instead.

func (ChannelType) Number

func (x ChannelType) Number() protoreflect.EnumNumber

func (ChannelType) String

func (x ChannelType) String() string

func (ChannelType) Type

type GetNotificationChannelRequest

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

{{.Name}}

func (*GetNotificationChannelRequest) Descriptor deprecated

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

Deprecated: Use GetNotificationChannelRequest.ProtoReflect.Descriptor instead.

func (*GetNotificationChannelRequest) GetId

func (*GetNotificationChannelRequest) ProtoMessage

func (*GetNotificationChannelRequest) ProtoMessage()

func (*GetNotificationChannelRequest) ProtoReflect

func (*GetNotificationChannelRequest) Reset

func (x *GetNotificationChannelRequest) Reset()

func (*GetNotificationChannelRequest) String

type GetNotificationChannelResponse

type GetNotificationChannelResponse struct {
	NotificationChannel *NotificationChannel `protobuf:"bytes,1,opt,name=notification_channel,json=notificationChannel,proto3" json:"notification_channel,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*GetNotificationChannelResponse) Descriptor deprecated

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

Deprecated: Use GetNotificationChannelResponse.ProtoReflect.Descriptor instead.

func (*GetNotificationChannelResponse) GetNotificationChannel

func (x *GetNotificationChannelResponse) GetNotificationChannel() *NotificationChannel

func (*GetNotificationChannelResponse) ProtoMessage

func (*GetNotificationChannelResponse) ProtoMessage()

func (*GetNotificationChannelResponse) ProtoReflect

func (*GetNotificationChannelResponse) Reset

func (x *GetNotificationChannelResponse) Reset()

func (*GetNotificationChannelResponse) String

type ListNotificationChannelsRequest

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

{{.Name}}

func (*ListNotificationChannelsRequest) Descriptor deprecated

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

Deprecated: Use ListNotificationChannelsRequest.ProtoReflect.Descriptor instead.

func (*ListNotificationChannelsRequest) ProtoMessage

func (*ListNotificationChannelsRequest) ProtoMessage()

func (*ListNotificationChannelsRequest) ProtoReflect

func (*ListNotificationChannelsRequest) Reset

func (*ListNotificationChannelsRequest) String

type ListNotificationChannelsResponse

type ListNotificationChannelsResponse struct {
	NotificationChannels []*NotificationChannel `protobuf:"bytes,1,rep,name=notification_channels,json=notificationChannels,proto3" json:"notification_channels,omitempty"`
	InvalidCount         int32                  `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*ListNotificationChannelsResponse) Descriptor deprecated

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

Deprecated: Use ListNotificationChannelsResponse.ProtoReflect.Descriptor instead.

func (*ListNotificationChannelsResponse) GetInvalidCount

func (x *ListNotificationChannelsResponse) GetInvalidCount() int32

func (*ListNotificationChannelsResponse) GetNotificationChannels

func (x *ListNotificationChannelsResponse) GetNotificationChannels() []*NotificationChannel

func (*ListNotificationChannelsResponse) ProtoMessage

func (*ListNotificationChannelsResponse) ProtoMessage()

func (*ListNotificationChannelsResponse) ProtoReflect

func (*ListNotificationChannelsResponse) Reset

func (*ListNotificationChannelsResponse) String

type NotificationChannel

type NotificationChannel struct {
	Id      string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type    ChannelType            `protobuf:"varint,3,opt,name=type,proto3,enum=kentik.notification_channel.v202210.ChannelType" json:"type,omitempty"`
	Enabled bool                   `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Cdate   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=cdate,proto3" json:"cdate,omitempty"`
	Edate   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=edate,proto3" json:"edate,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*NotificationChannel) Descriptor deprecated

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

Deprecated: Use NotificationChannel.ProtoReflect.Descriptor instead.

func (*NotificationChannel) GetCdate

func (x *NotificationChannel) GetCdate() *timestamppb.Timestamp

func (*NotificationChannel) GetEdate

func (x *NotificationChannel) GetEdate() *timestamppb.Timestamp

func (*NotificationChannel) GetEnabled

func (x *NotificationChannel) GetEnabled() bool

func (*NotificationChannel) GetId

func (x *NotificationChannel) GetId() string

func (*NotificationChannel) GetName

func (x *NotificationChannel) GetName() string

func (*NotificationChannel) GetType

func (x *NotificationChannel) GetType() ChannelType

func (*NotificationChannel) ProtoMessage

func (*NotificationChannel) ProtoMessage()

func (*NotificationChannel) ProtoReflect

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

func (*NotificationChannel) Reset

func (x *NotificationChannel) Reset()

func (*NotificationChannel) String

func (x *NotificationChannel) String() string

type NotificationChannelServiceClient

type NotificationChannelServiceClient interface {
	ListNotificationChannels(ctx context.Context, in *ListNotificationChannelsRequest, opts ...grpc.CallOption) (*ListNotificationChannelsResponse, error)
	GetNotificationChannel(ctx context.Context, in *GetNotificationChannelRequest, opts ...grpc.CallOption) (*GetNotificationChannelResponse, error)
	SearchNotificationChannels(ctx context.Context, in *SearchNotificationChannelsRequest, opts ...grpc.CallOption) (*SearchNotificationChannelsResponse, error)
}

NotificationChannelServiceClient is the client API for NotificationChannelService 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.

type NotificationChannelServiceServer

type NotificationChannelServiceServer interface {
	ListNotificationChannels(context.Context, *ListNotificationChannelsRequest) (*ListNotificationChannelsResponse, error)
	GetNotificationChannel(context.Context, *GetNotificationChannelRequest) (*GetNotificationChannelResponse, error)
	SearchNotificationChannels(context.Context, *SearchNotificationChannelsRequest) (*SearchNotificationChannelsResponse, error)
}

NotificationChannelServiceServer is the server API for NotificationChannelService service. All implementations should embed UnimplementedNotificationChannelServiceServer for forward compatibility

type SearchNotificationChannelsRequest

type SearchNotificationChannelsRequest struct {
	NamePattern     string        `protobuf:"bytes,1,opt,name=name_pattern,json=namePattern,proto3" json:"name_pattern,omitempty"`
	Types           []ChannelType `protobuf:"varint,2,rep,packed,name=types,proto3,enum=kentik.notification_channel.v202210.ChannelType" json:"types,omitempty"`
	IncludeDisabled bool          `protobuf:"varint,3,opt,name=include_disabled,json=includeDisabled,proto3" json:"include_disabled,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*SearchNotificationChannelsRequest) Descriptor deprecated

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

Deprecated: Use SearchNotificationChannelsRequest.ProtoReflect.Descriptor instead.

func (*SearchNotificationChannelsRequest) GetIncludeDisabled

func (x *SearchNotificationChannelsRequest) GetIncludeDisabled() bool

func (*SearchNotificationChannelsRequest) GetNamePattern

func (x *SearchNotificationChannelsRequest) GetNamePattern() string

func (*SearchNotificationChannelsRequest) GetTypes

func (*SearchNotificationChannelsRequest) ProtoMessage

func (*SearchNotificationChannelsRequest) ProtoMessage()

func (*SearchNotificationChannelsRequest) ProtoReflect

func (*SearchNotificationChannelsRequest) Reset

func (*SearchNotificationChannelsRequest) String

type SearchNotificationChannelsResponse

type SearchNotificationChannelsResponse struct {
	NotificationChannels []*NotificationChannel `protobuf:"bytes,1,rep,name=notification_channels,json=notificationChannels,proto3" json:"notification_channels,omitempty"`
	InvalidCount         int32                  `protobuf:"varint,2,opt,name=invalid_count,json=invalidCount,proto3" json:"invalid_count,omitempty"`
	// contains filtered or unexported fields
}

{{.Name}}

func (*SearchNotificationChannelsResponse) Descriptor deprecated

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

Deprecated: Use SearchNotificationChannelsResponse.ProtoReflect.Descriptor instead.

func (*SearchNotificationChannelsResponse) GetInvalidCount

func (x *SearchNotificationChannelsResponse) GetInvalidCount() int32

func (*SearchNotificationChannelsResponse) GetNotificationChannels

func (x *SearchNotificationChannelsResponse) GetNotificationChannels() []*NotificationChannel

func (*SearchNotificationChannelsResponse) ProtoMessage

func (*SearchNotificationChannelsResponse) ProtoMessage()

func (*SearchNotificationChannelsResponse) ProtoReflect

func (*SearchNotificationChannelsResponse) Reset

func (*SearchNotificationChannelsResponse) String

type UnimplementedNotificationChannelServiceServer

type UnimplementedNotificationChannelServiceServer struct {
}

UnimplementedNotificationChannelServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedNotificationChannelServiceServer) GetNotificationChannel

type UnsafeNotificationChannelServiceServer

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

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

Jump to

Keyboard shortcuts

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