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_v202204alpha1_notification_channel_proto protoreflect.FileDescriptor
View Source
var NotificationChannelService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kentik.notification_channel.v202204alpha1.NotificationChannelService",
	HandlerType: (*NotificationChannelServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListNotificationChannels",
			Handler:    _NotificationChannelService_ListNotificationChannels_Handler,
		},
		{
			MethodName: "GetNotificationChannel",
			Handler:    _NotificationChannelService_GetNotificationChannel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kentik/notification_channel/v202204alpha1/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
const (
	ChannelType_CHANNEL_TYPE_UNSPECIFIED    ChannelType = 0
	ChannelType_CHANNEL_TYPE_XMATTERS       ChannelType = 1
	ChannelType_CHANNEL_TYPE_SLACK          ChannelType = 2
	ChannelType_CHANNEL_TYPE_SERVICENOW     ChannelType = 3
	ChannelType_CHANNEL_TYPE_SYSLOG         ChannelType = 4
	ChannelType_CHANNEL_TYPE_OPSGENIE       ChannelType = 5
	ChannelType_CHANNEL_TYPE_CUSTOM_WEBHOOK ChannelType = 6
	ChannelType_CHANNEL_TYPE_SPLUNK         ChannelType = 7
	ChannelType_CHANNEL_TYPE_MSTEAMS        ChannelType = 8
	ChannelType_CHANNEL_TYPE_JSON           ChannelType = 9
	ChannelType_CHANNEL_TYPE_EMAIL          ChannelType = 10
	ChannelType_CHANNEL_TYPE_VICTOROPS      ChannelType = 11
	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
}

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
}

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
}

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
}

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.v202204alpha1.ChannelType" json:"type,omitempty"`
	Status string      `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// Create timestamp.
	Cdate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=cdate,proto3" json:"cdate,omitempty"`
	// Update timestamp.
	Edate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=edate,proto3" json:"edate,omitempty"`
	// contains filtered or unexported fields
}

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) GetId

func (x *NotificationChannel) GetId() string

func (*NotificationChannel) GetName

func (x *NotificationChannel) GetName() string

func (*NotificationChannel) GetStatus

func (x *NotificationChannel) GetStatus() 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)
}

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)
}

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

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