Documentation ¶
Index ¶
- Variables
- func RegisterNotificationChannelServiceServer(s grpc.ServiceRegistrar, srv NotificationChannelServiceServer)
- type ChannelType
- func (ChannelType) Descriptor() protoreflect.EnumDescriptor
- func (x ChannelType) Enum() *ChannelType
- func (ChannelType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChannelType) Number() protoreflect.EnumNumber
- func (x ChannelType) String() string
- func (ChannelType) Type() protoreflect.EnumType
- type GetNotificationChannelRequest
- func (*GetNotificationChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNotificationChannelRequest) GetId() string
- func (*GetNotificationChannelRequest) ProtoMessage()
- func (x *GetNotificationChannelRequest) ProtoReflect() protoreflect.Message
- func (x *GetNotificationChannelRequest) Reset()
- func (x *GetNotificationChannelRequest) String() string
- type GetNotificationChannelResponse
- func (*GetNotificationChannelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNotificationChannelResponse) GetNotificationChannel() *NotificationChannel
- func (*GetNotificationChannelResponse) ProtoMessage()
- func (x *GetNotificationChannelResponse) ProtoReflect() protoreflect.Message
- func (x *GetNotificationChannelResponse) Reset()
- func (x *GetNotificationChannelResponse) String() string
- type ListNotificationChannelsRequest
- func (*ListNotificationChannelsRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListNotificationChannelsRequest) ProtoMessage()
- func (x *ListNotificationChannelsRequest) ProtoReflect() protoreflect.Message
- func (x *ListNotificationChannelsRequest) Reset()
- func (x *ListNotificationChannelsRequest) String() string
- type ListNotificationChannelsResponse
- func (*ListNotificationChannelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNotificationChannelsResponse) GetInvalidCount() int32
- func (x *ListNotificationChannelsResponse) GetNotificationChannels() []*NotificationChannel
- func (*ListNotificationChannelsResponse) ProtoMessage()
- func (x *ListNotificationChannelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListNotificationChannelsResponse) Reset()
- func (x *ListNotificationChannelsResponse) String() string
- type NotificationChannel
- func (*NotificationChannel) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationChannel) GetCdate() *timestamppb.Timestamp
- func (x *NotificationChannel) GetEdate() *timestamppb.Timestamp
- func (x *NotificationChannel) GetId() string
- func (x *NotificationChannel) GetName() string
- func (x *NotificationChannel) GetStatus() string
- func (x *NotificationChannel) GetType() ChannelType
- func (*NotificationChannel) ProtoMessage()
- func (x *NotificationChannel) ProtoReflect() protoreflect.Message
- func (x *NotificationChannel) Reset()
- func (x *NotificationChannel) String() string
- type NotificationChannelServiceClient
- type NotificationChannelServiceServer
- type UnimplementedNotificationChannelServiceServer
- func (UnimplementedNotificationChannelServiceServer) GetNotificationChannel(context.Context, *GetNotificationChannelRequest) (*GetNotificationChannelResponse, error)
- func (UnimplementedNotificationChannelServiceServer) ListNotificationChannels(context.Context, *ListNotificationChannelsRequest) (*ListNotificationChannelsResponse, error)
- type UnsafeNotificationChannelServiceServer
Constants ¶
This section is empty.
Variables ¶
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.
var File_kentik_notification_channel_v202204alpha1_notification_channel_proto protoreflect.FileDescriptor
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (ChannelType) Type() protoreflect.EnumType
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 (x *GetNotificationChannelRequest) GetId() string
func (*GetNotificationChannelRequest) ProtoMessage ¶
func (*GetNotificationChannelRequest) ProtoMessage()
func (*GetNotificationChannelRequest) ProtoReflect ¶
func (x *GetNotificationChannelRequest) ProtoReflect() protoreflect.Message
func (*GetNotificationChannelRequest) Reset ¶
func (x *GetNotificationChannelRequest) Reset()
func (*GetNotificationChannelRequest) String ¶
func (x *GetNotificationChannelRequest) String() 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 (x *GetNotificationChannelResponse) ProtoReflect() protoreflect.Message
func (*GetNotificationChannelResponse) Reset ¶
func (x *GetNotificationChannelResponse) Reset()
func (*GetNotificationChannelResponse) String ¶
func (x *GetNotificationChannelResponse) String() 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 (x *ListNotificationChannelsRequest) ProtoReflect() protoreflect.Message
func (*ListNotificationChannelsRequest) Reset ¶
func (x *ListNotificationChannelsRequest) Reset()
func (*ListNotificationChannelsRequest) String ¶
func (x *ListNotificationChannelsRequest) String() 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 (x *ListNotificationChannelsResponse) ProtoReflect() protoreflect.Message
func (*ListNotificationChannelsResponse) Reset ¶
func (x *ListNotificationChannelsResponse) Reset()
func (*ListNotificationChannelsResponse) String ¶
func (x *ListNotificationChannelsResponse) String() 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.
func NewNotificationChannelServiceClient ¶
func NewNotificationChannelServiceClient(cc grpc.ClientConnInterface) NotificationChannelServiceClient
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 ¶
func (UnimplementedNotificationChannelServiceServer) GetNotificationChannel(context.Context, *GetNotificationChannelRequest) (*GetNotificationChannelResponse, error)
func (UnimplementedNotificationChannelServiceServer) ListNotificationChannels ¶
func (UnimplementedNotificationChannelServiceServer) ListNotificationChannels(context.Context, *ListNotificationChannelsRequest) (*ListNotificationChannelsResponse, error)
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.