Documentation ¶
Index ¶
- Variables
- func RegisterOpsgenieServer(s grpc.ServiceRegistrar, srv OpsgenieServer)
- type Alert
- func (in *Alert) DeepCopy() *Alert
- func (in *Alert) DeepCopyInterface() interface{}
- func (in *Alert) DeepCopyInto(out *Alert)
- func (*Alert) Descriptor() ([]byte, []int)deprecated
- func (x *Alert) GetAcknowledged() bool
- func (x *Alert) GetAlias() string
- func (x *Alert) GetCount() int64
- func (x *Alert) GetCreatedAt() int64
- func (x *Alert) GetDescription() string
- func (x *Alert) GetDetails() map[string]string
- func (x *Alert) GetId() string
- func (x *Alert) GetIsSeen() bool
- func (x *Alert) GetLastOccuredAt() int64
- func (x *Alert) GetMessage() string
- func (x *Alert) GetOwner() string
- func (x *Alert) GetPriority() string
- func (x *Alert) GetResponders() []string
- func (x *Alert) GetSnoozed() bool
- func (x *Alert) GetSnoozedUntil() int64
- func (x *Alert) GetSource() string
- func (x *Alert) GetStatus() string
- func (x *Alert) GetTags() []string
- func (x *Alert) GetTinyId() string
- func (x *Alert) GetUpdatedAt() int64
- func (*Alert) ProtoMessage()
- func (x *Alert) ProtoReflect() protoreflect.Message
- func (x *Alert) Reset()
- func (x *Alert) String() string
- type GetAlertRequest
- func (in *GetAlertRequest) DeepCopy() *GetAlertRequest
- func (in *GetAlertRequest) DeepCopyInterface() interface{}
- func (in *GetAlertRequest) DeepCopyInto(out *GetAlertRequest)
- func (*GetAlertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAlertRequest) GetId() string
- func (x *GetAlertRequest) GetName() string
- func (*GetAlertRequest) ProtoMessage()
- func (x *GetAlertRequest) ProtoReflect() protoreflect.Message
- func (x *GetAlertRequest) Reset()
- func (x *GetAlertRequest) String() string
- type GetAlertResponse
- func (in *GetAlertResponse) DeepCopy() *GetAlertResponse
- func (in *GetAlertResponse) DeepCopyInterface() interface{}
- func (in *GetAlertResponse) DeepCopyInto(out *GetAlertResponse)
- func (*GetAlertResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAlertResponse) GetAlert() *Alert
- func (*GetAlertResponse) ProtoMessage()
- func (x *GetAlertResponse) ProtoReflect() protoreflect.Message
- func (x *GetAlertResponse) Reset()
- func (x *GetAlertResponse) String() string
- type GetAlertsRequest
- func (in *GetAlertsRequest) DeepCopy() *GetAlertsRequest
- func (in *GetAlertsRequest) DeepCopyInterface() interface{}
- func (in *GetAlertsRequest) DeepCopyInto(out *GetAlertsRequest)
- func (*GetAlertsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAlertsRequest) GetName() string
- func (x *GetAlertsRequest) GetQuery() string
- func (*GetAlertsRequest) ProtoMessage()
- func (x *GetAlertsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAlertsRequest) Reset()
- func (x *GetAlertsRequest) String() string
- type GetAlertsResponse
- func (in *GetAlertsResponse) DeepCopy() *GetAlertsResponse
- func (in *GetAlertsResponse) DeepCopyInterface() interface{}
- func (in *GetAlertsResponse) DeepCopyInto(out *GetAlertsResponse)
- func (*GetAlertsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAlertsResponse) GetAlerts() []*Alert
- func (*GetAlertsResponse) ProtoMessage()
- func (x *GetAlertsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAlertsResponse) Reset()
- func (x *GetAlertsResponse) String() string
- type OpsgenieClient
- type OpsgenieServer
- type Query
- func (in *Query) DeepCopy() *Query
- func (in *Query) DeepCopyInterface() interface{}
- func (in *Query) DeepCopyInto(out *Query)
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetName() string
- func (x *Query) GetQuery() string
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type Spec
- func (in *Spec) DeepCopy() *Spec
- func (in *Spec) DeepCopyInterface() interface{}
- func (in *Spec) DeepCopyInto(out *Spec)
- func (*Spec) Descriptor() ([]byte, []int)deprecated
- func (x *Spec) GetQueries() []*Query
- func (*Spec) ProtoMessage()
- func (x *Spec) ProtoReflect() protoreflect.Message
- func (x *Spec) Reset()
- func (x *Spec) String() string
- type UnimplementedOpsgenieServer
- type UnsafeOpsgenieServer
Constants ¶
This section is empty.
Variables ¶
var File_opsgenie_proto protoreflect.FileDescriptor
var Opsgenie_ServiceDesc = grpc.ServiceDesc{ ServiceName: "plugins.opsgenie.Opsgenie", HandlerType: (*OpsgenieServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAlerts", Handler: _Opsgenie_GetAlerts_Handler, }, { MethodName: "GetAlert", Handler: _Opsgenie_GetAlert_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "opsgenie.proto", }
Opsgenie_ServiceDesc is the grpc.ServiceDesc for Opsgenie service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOpsgenieServer ¶
func RegisterOpsgenieServer(s grpc.ServiceRegistrar, srv OpsgenieServer)
Types ¶
type Alert ¶
type Alert struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` TinyId string `protobuf:"bytes,2,opt,name=tinyId,proto3" json:"tinyId,omitempty"` Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` Acknowledged bool `protobuf:"varint,6,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"` IsSeen bool `protobuf:"varint,7,opt,name=isSeen,proto3" json:"isSeen,omitempty"` Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` Snoozed bool `protobuf:"varint,9,opt,name=snoozed,proto3" json:"snoozed,omitempty"` SnoozedUntil int64 `protobuf:"varint,10,opt,name=snoozedUntil,proto3" json:"snoozedUntil,omitempty"` Count int64 `protobuf:"varint,11,opt,name=count,proto3" json:"count,omitempty"` LastOccuredAt int64 `protobuf:"varint,12,opt,name=lastOccuredAt,proto3" json:"lastOccuredAt,omitempty"` CreatedAt int64 `protobuf:"varint,13,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt int64 `protobuf:"varint,14,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Source string `protobuf:"bytes,15,opt,name=source,proto3" json:"source,omitempty"` Owner string `protobuf:"bytes,16,opt,name=owner,proto3" json:"owner,omitempty"` Priority string `protobuf:"bytes,17,opt,name=priority,proto3" json:"priority,omitempty"` Responders []string `protobuf:"bytes,18,rep,name=responders,proto3" json:"responders,omitempty"` Description string `protobuf:"bytes,19,opt,name=description,proto3" json:"description,omitempty"` Details map[string]string `` /* 156-byte string literal not displayed */ // contains filtered or unexported fields }
Alert is the structure of an Opsgenie alert. It contains the same fields as the response of the Opsgenie API. When the alert is used within the GetAlert function it also contains the description, details and a list of responders. These fields are omitted for the GetAlerts call.
func (*Alert) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alert. Required by controller-gen.
func (*Alert) DeepCopyInterface ¶
func (in *Alert) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Alert. Required by controller-gen.
func (*Alert) DeepCopyInto ¶
DeepCopyInto supports using Alert within kubernetes types, where deepcopy-gen is used.
func (*Alert) Descriptor
deprecated
func (*Alert) GetAcknowledged ¶
func (*Alert) GetCreatedAt ¶
func (*Alert) GetDescription ¶
func (*Alert) GetDetails ¶
func (*Alert) GetLastOccuredAt ¶
func (*Alert) GetMessage ¶
func (*Alert) GetPriority ¶
func (*Alert) GetResponders ¶
func (*Alert) GetSnoozed ¶
func (*Alert) GetSnoozedUntil ¶
func (*Alert) GetUpdatedAt ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶
func (x *Alert) ProtoReflect() protoreflect.Message
type GetAlertRequest ¶
type GetAlertRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetAlertRequest is the message format to get a single alert. Each alert can be identified by the Opsgenie instance and it's unique ID.
func (*GetAlertRequest) DeepCopy ¶
func (in *GetAlertRequest) DeepCopy() *GetAlertRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetAlertRequest. Required by controller-gen.
func (*GetAlertRequest) DeepCopyInterface ¶
func (in *GetAlertRequest) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetAlertRequest. Required by controller-gen.
func (*GetAlertRequest) DeepCopyInto ¶
func (in *GetAlertRequest) DeepCopyInto(out *GetAlertRequest)
DeepCopyInto supports using GetAlertRequest within kubernetes types, where deepcopy-gen is used.
func (*GetAlertRequest) Descriptor
deprecated
func (*GetAlertRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAlertRequest.ProtoReflect.Descriptor instead.
func (*GetAlertRequest) GetId ¶
func (x *GetAlertRequest) GetId() string
func (*GetAlertRequest) GetName ¶
func (x *GetAlertRequest) GetName() string
func (*GetAlertRequest) ProtoMessage ¶
func (*GetAlertRequest) ProtoMessage()
func (*GetAlertRequest) ProtoReflect ¶
func (x *GetAlertRequest) ProtoReflect() protoreflect.Message
func (*GetAlertRequest) Reset ¶
func (x *GetAlertRequest) Reset()
func (*GetAlertRequest) String ¶
func (x *GetAlertRequest) String() string
type GetAlertResponse ¶
type GetAlertResponse struct { Alert *Alert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"` // contains filtered or unexported fields }
GetAlertResponse is the response format for a GetAlert call. It contains a single alert.
func (*GetAlertResponse) DeepCopy ¶
func (in *GetAlertResponse) DeepCopy() *GetAlertResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetAlertResponse. Required by controller-gen.
func (*GetAlertResponse) DeepCopyInterface ¶
func (in *GetAlertResponse) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetAlertResponse. Required by controller-gen.
func (*GetAlertResponse) DeepCopyInto ¶
func (in *GetAlertResponse) DeepCopyInto(out *GetAlertResponse)
DeepCopyInto supports using GetAlertResponse within kubernetes types, where deepcopy-gen is used.
func (*GetAlertResponse) Descriptor
deprecated
func (*GetAlertResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAlertResponse.ProtoReflect.Descriptor instead.
func (*GetAlertResponse) GetAlert ¶
func (x *GetAlertResponse) GetAlert() *Alert
func (*GetAlertResponse) ProtoMessage ¶
func (*GetAlertResponse) ProtoMessage()
func (*GetAlertResponse) ProtoReflect ¶
func (x *GetAlertResponse) ProtoReflect() protoreflect.Message
func (*GetAlertResponse) Reset ¶
func (x *GetAlertResponse) Reset()
func (*GetAlertResponse) String ¶
func (x *GetAlertResponse) String() string
type GetAlertsRequest ¶
type GetAlertsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
GetAlertsRequest is the format for the call to get alerts from Opsgenie. This requires the name of the configured Opsgenie instance and a Opsgenie query. See: https://support.atlassian.com/opsgenie/docs/search-queries-for-alerts/
func (*GetAlertsRequest) DeepCopy ¶
func (in *GetAlertsRequest) DeepCopy() *GetAlertsRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetAlertsRequest. Required by controller-gen.
func (*GetAlertsRequest) DeepCopyInterface ¶
func (in *GetAlertsRequest) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetAlertsRequest. Required by controller-gen.
func (*GetAlertsRequest) DeepCopyInto ¶
func (in *GetAlertsRequest) DeepCopyInto(out *GetAlertsRequest)
DeepCopyInto supports using GetAlertsRequest within kubernetes types, where deepcopy-gen is used.
func (*GetAlertsRequest) Descriptor
deprecated
func (*GetAlertsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAlertsRequest.ProtoReflect.Descriptor instead.
func (*GetAlertsRequest) GetName ¶
func (x *GetAlertsRequest) GetName() string
func (*GetAlertsRequest) GetQuery ¶
func (x *GetAlertsRequest) GetQuery() string
func (*GetAlertsRequest) ProtoMessage ¶
func (*GetAlertsRequest) ProtoMessage()
func (*GetAlertsRequest) ProtoReflect ¶
func (x *GetAlertsRequest) ProtoReflect() protoreflect.Message
func (*GetAlertsRequest) Reset ¶
func (x *GetAlertsRequest) Reset()
func (*GetAlertsRequest) String ¶
func (x *GetAlertsRequest) String() string
type GetAlertsResponse ¶
type GetAlertsResponse struct { Alerts []*Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"` // contains filtered or unexported fields }
GetAlertsResponse is the response format for a GetAlerts call. It contains a list of alert.
func (*GetAlertsResponse) DeepCopy ¶
func (in *GetAlertsResponse) DeepCopy() *GetAlertsResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetAlertsResponse. Required by controller-gen.
func (*GetAlertsResponse) DeepCopyInterface ¶
func (in *GetAlertsResponse) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new GetAlertsResponse. Required by controller-gen.
func (*GetAlertsResponse) DeepCopyInto ¶
func (in *GetAlertsResponse) DeepCopyInto(out *GetAlertsResponse)
DeepCopyInto supports using GetAlertsResponse within kubernetes types, where deepcopy-gen is used.
func (*GetAlertsResponse) Descriptor
deprecated
func (*GetAlertsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAlertsResponse.ProtoReflect.Descriptor instead.
func (*GetAlertsResponse) GetAlerts ¶
func (x *GetAlertsResponse) GetAlerts() []*Alert
func (*GetAlertsResponse) ProtoMessage ¶
func (*GetAlertsResponse) ProtoMessage()
func (*GetAlertsResponse) ProtoReflect ¶
func (x *GetAlertsResponse) ProtoReflect() protoreflect.Message
func (*GetAlertsResponse) Reset ¶
func (x *GetAlertsResponse) Reset()
func (*GetAlertsResponse) String ¶
func (x *GetAlertsResponse) String() string
type OpsgenieClient ¶
type OpsgenieClient interface { GetAlerts(ctx context.Context, in *GetAlertsRequest, opts ...grpc.CallOption) (*GetAlertsResponse, error) GetAlert(ctx context.Context, in *GetAlertRequest, opts ...grpc.CallOption) (*GetAlertResponse, error) }
OpsgenieClient is the client API for Opsgenie 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 NewOpsgenieClient ¶
func NewOpsgenieClient(cc grpc.ClientConnInterface) OpsgenieClient
type OpsgenieServer ¶
type OpsgenieServer interface { GetAlerts(context.Context, *GetAlertsRequest) (*GetAlertsResponse, error) GetAlert(context.Context, *GetAlertRequest) (*GetAlertResponse, error) // contains filtered or unexported methods }
OpsgenieServer is the server API for Opsgenie service. All implementations must embed UnimplementedOpsgenieServer for forward compatibility
type Query ¶
type Query struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
Query represents a single query for an application. A query is identified by a name and a query.
func (*Query) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Query. Required by controller-gen.
func (*Query) DeepCopyInterface ¶
func (in *Query) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Query. Required by controller-gen.
func (*Query) DeepCopyInto ¶
DeepCopyInto supports using Query within kubernetes types, where deepcopy-gen is used.
func (*Query) Descriptor
deprecated
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type Spec ¶
type Spec struct { Queries []*Query `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"` // contains filtered or unexported fields }
Spec implements the specification for an application. This field is then used in the Application CR and contains, all possible fields, which can be used by a user to work with Opsgenie.
func (*Spec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec. Required by controller-gen.
func (*Spec) DeepCopyInterface ¶
func (in *Spec) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Spec. Required by controller-gen.
func (*Spec) DeepCopyInto ¶
DeepCopyInto supports using Spec within kubernetes types, where deepcopy-gen is used.
func (*Spec) Descriptor
deprecated
func (*Spec) GetQueries ¶
func (*Spec) ProtoMessage ¶
func (*Spec) ProtoMessage()
func (*Spec) ProtoReflect ¶
func (x *Spec) ProtoReflect() protoreflect.Message
type UnimplementedOpsgenieServer ¶
type UnimplementedOpsgenieServer struct { }
UnimplementedOpsgenieServer must be embedded to have forward compatible implementations.
func (UnimplementedOpsgenieServer) GetAlert ¶
func (UnimplementedOpsgenieServer) GetAlert(context.Context, *GetAlertRequest) (*GetAlertResponse, error)
func (UnimplementedOpsgenieServer) GetAlerts ¶
func (UnimplementedOpsgenieServer) GetAlerts(context.Context, *GetAlertsRequest) (*GetAlertsResponse, error)
type UnsafeOpsgenieServer ¶
type UnsafeOpsgenieServer interface {
// contains filtered or unexported methods
}
UnsafeOpsgenieServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OpsgenieServer will result in compilation errors.