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) GetEnabled() bool
- func (x *NotificationChannel) GetId() string
- func (x *NotificationChannel) GetName() 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 SearchNotificationChannelsRequest
- func (*SearchNotificationChannelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchNotificationChannelsRequest) GetIncludeDisabled() bool
- func (x *SearchNotificationChannelsRequest) GetNamePattern() string
- func (x *SearchNotificationChannelsRequest) GetTypes() []ChannelType
- func (*SearchNotificationChannelsRequest) ProtoMessage()
- func (x *SearchNotificationChannelsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchNotificationChannelsRequest) Reset()
- func (x *SearchNotificationChannelsRequest) String() string
- type SearchNotificationChannelsResponse
- func (*SearchNotificationChannelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchNotificationChannelsResponse) GetInvalidCount() int32
- func (x *SearchNotificationChannelsResponse) GetNotificationChannels() []*NotificationChannel
- func (*SearchNotificationChannelsResponse) ProtoMessage()
- func (x *SearchNotificationChannelsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchNotificationChannelsResponse) Reset()
- func (x *SearchNotificationChannelsResponse) String() string
- type UnimplementedNotificationChannelServiceServer
- func (UnimplementedNotificationChannelServiceServer) GetNotificationChannel(context.Context, *GetNotificationChannelRequest) (*GetNotificationChannelResponse, error)
- func (UnimplementedNotificationChannelServiceServer) ListNotificationChannels(context.Context, *ListNotificationChannelsRequest) (*ListNotificationChannelsResponse, error)
- func (UnimplementedNotificationChannelServiceServer) SearchNotificationChannels(context.Context, *SearchNotificationChannelsRequest) (*SearchNotificationChannelsResponse, 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_v202210_notification_channel_proto protoreflect.FileDescriptor
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) 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 }
{{.Name}}
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 }
{{.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 (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
}
{{.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 (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 }
{{.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 (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.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.
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) 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 (x *SearchNotificationChannelsRequest) GetTypes() []ChannelType
func (*SearchNotificationChannelsRequest) ProtoMessage ¶
func (*SearchNotificationChannelsRequest) ProtoMessage()
func (*SearchNotificationChannelsRequest) ProtoReflect ¶
func (x *SearchNotificationChannelsRequest) ProtoReflect() protoreflect.Message
func (*SearchNotificationChannelsRequest) Reset ¶
func (x *SearchNotificationChannelsRequest) Reset()
func (*SearchNotificationChannelsRequest) String ¶
func (x *SearchNotificationChannelsRequest) String() 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 (x *SearchNotificationChannelsResponse) ProtoReflect() protoreflect.Message
func (*SearchNotificationChannelsResponse) Reset ¶
func (x *SearchNotificationChannelsResponse) Reset()
func (*SearchNotificationChannelsResponse) String ¶
func (x *SearchNotificationChannelsResponse) String() string
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)
func (UnimplementedNotificationChannelServiceServer) SearchNotificationChannels ¶
func (UnimplementedNotificationChannelServiceServer) SearchNotificationChannels(context.Context, *SearchNotificationChannelsRequest) (*SearchNotificationChannelsResponse, 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.