proto

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_opsgenie_proto protoreflect.FileDescriptor
View Source
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

func (in *Alert) DeepCopy() *Alert

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

func (in *Alert) DeepCopyInto(out *Alert)

DeepCopyInto supports using Alert within kubernetes types, where deepcopy-gen is used.

func (*Alert) Descriptor deprecated

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

Deprecated: Use Alert.ProtoReflect.Descriptor instead.

func (*Alert) GetAcknowledged

func (x *Alert) GetAcknowledged() bool

func (*Alert) GetAlias

func (x *Alert) GetAlias() string

func (*Alert) GetCount

func (x *Alert) GetCount() int64

func (*Alert) GetCreatedAt

func (x *Alert) GetCreatedAt() int64

func (*Alert) GetDescription

func (x *Alert) GetDescription() string

func (*Alert) GetDetails

func (x *Alert) GetDetails() map[string]string

func (*Alert) GetId

func (x *Alert) GetId() string

func (*Alert) GetIsSeen

func (x *Alert) GetIsSeen() bool

func (*Alert) GetLastOccuredAt

func (x *Alert) GetLastOccuredAt() int64

func (*Alert) GetMessage

func (x *Alert) GetMessage() string

func (*Alert) GetOwner

func (x *Alert) GetOwner() string

func (*Alert) GetPriority

func (x *Alert) GetPriority() string

func (*Alert) GetResponders

func (x *Alert) GetResponders() []string

func (*Alert) GetSnoozed

func (x *Alert) GetSnoozed() bool

func (*Alert) GetSnoozedUntil

func (x *Alert) GetSnoozedUntil() int64

func (*Alert) GetSource

func (x *Alert) GetSource() string

func (*Alert) GetStatus

func (x *Alert) GetStatus() string

func (*Alert) GetTags

func (x *Alert) GetTags() []string

func (*Alert) GetTinyId

func (x *Alert) GetTinyId() string

func (*Alert) GetUpdatedAt

func (x *Alert) GetUpdatedAt() int64

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) ProtoReflect

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

func (*Alert) Reset

func (x *Alert) Reset()

func (*Alert) String

func (x *Alert) String() string

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

func (in *Query) DeepCopy() *Query

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

func (in *Query) DeepCopyInto(out *Query)

DeepCopyInto supports using Query within kubernetes types, where deepcopy-gen is used.

func (*Query) Descriptor deprecated

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetName

func (x *Query) GetName() string

func (*Query) GetQuery

func (x *Query) GetQuery() string

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

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

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

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

func (in *Spec) DeepCopy() *Spec

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

func (in *Spec) DeepCopyInto(out *Spec)

DeepCopyInto supports using Spec within kubernetes types, where deepcopy-gen is used.

func (*Spec) Descriptor deprecated

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

Deprecated: Use Spec.ProtoReflect.Descriptor instead.

func (*Spec) GetQueries

func (x *Spec) GetQueries() []*Query

func (*Spec) ProtoMessage

func (*Spec) ProtoMessage()

func (*Spec) ProtoReflect

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

func (*Spec) Reset

func (x *Spec) Reset()

func (*Spec) String

func (x *Spec) String() string

type UnimplementedOpsgenieServer

type UnimplementedOpsgenieServer struct {
}

UnimplementedOpsgenieServer must be embedded to have forward compatible implementations.

func (UnimplementedOpsgenieServer) GetAlert

func (UnimplementedOpsgenieServer) GetAlerts

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.

Jump to

Keyboard shortcuts

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