One gRPC service per domain in state.v1 (tasks, executions, accounts, identities, packages, captures, bindings, access, orgs, alerts and so on), each with its own server type in staterpc. RPC and message names and numbers are unchanged.
1205 lines
36 KiB
Go
1205 lines
36 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: state/v1/alert.proto
|
|
|
|
package statev1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// Alert mirrors internal/domain/alert.Alert. Severity is info, warning or
|
|
// action; state is open, resolved or dismissed.
|
|
type Alert struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
|
Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
|
|
Severity string `protobuf:"bytes,5,opt,name=severity,proto3" json:"severity,omitempty"`
|
|
Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
|
|
Body string `protobuf:"bytes,7,opt,name=body,proto3" json:"body,omitempty"`
|
|
Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"`
|
|
Condition bool `protobuf:"varint,9,opt,name=condition,proto3" json:"condition,omitempty"`
|
|
State string `protobuf:"bytes,10,opt,name=state,proto3" json:"state,omitempty"`
|
|
FirstRaised *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=first_raised,json=firstRaised,proto3" json:"first_raised,omitempty"`
|
|
LastSeen *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
|
|
Count int64 `protobuf:"varint,13,opt,name=count,proto3" json:"count,omitempty"`
|
|
ClosedBy string `protobuf:"bytes,14,opt,name=closed_by,json=closedBy,proto3" json:"closed_by,omitempty"`
|
|
ClosedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=closed_at,json=closedAt,proto3" json:"closed_at,omitempty"`
|
|
Deliveries []*AlertDelivery `protobuf:"bytes,16,rep,name=deliveries,proto3" json:"deliveries,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Alert) Reset() {
|
|
*x = Alert{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Alert) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Alert) ProtoMessage() {}
|
|
|
|
func (x *Alert) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Alert.ProtoReflect.Descriptor instead.
|
|
func (*Alert) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Alert) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Alert) GetOrgId() string {
|
|
if x != nil {
|
|
return x.OrgId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetSubject() string {
|
|
if x != nil {
|
|
return x.Subject
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetSeverity() string {
|
|
if x != nil {
|
|
return x.Severity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetBody() string {
|
|
if x != nil {
|
|
return x.Body
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetLink() string {
|
|
if x != nil {
|
|
return x.Link
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetCondition() bool {
|
|
if x != nil {
|
|
return x.Condition
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Alert) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetFirstRaised() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.FirstRaised
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Alert) GetLastSeen() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.LastSeen
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Alert) GetCount() int64 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Alert) GetClosedBy() string {
|
|
if x != nil {
|
|
return x.ClosedBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Alert) GetClosedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ClosedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Alert) GetDeliveries() []*AlertDelivery {
|
|
if x != nil {
|
|
return x.Deliveries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// AlertDelivery is one outbound notice an alert owed. Event is raised or
|
|
// resolved; state is pending, delivered, failed or skipped.
|
|
type AlertDelivery struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
|
|
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
Attempts []*AlertAttempt `protobuf:"bytes,5,rep,name=attempts,proto3" json:"attempts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AlertDelivery) Reset() {
|
|
*x = AlertDelivery{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AlertDelivery) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AlertDelivery) ProtoMessage() {}
|
|
|
|
func (x *AlertDelivery) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AlertDelivery.ProtoReflect.Descriptor instead.
|
|
func (*AlertDelivery) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *AlertDelivery) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AlertDelivery) GetEvent() string {
|
|
if x != nil {
|
|
return x.Event
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertDelivery) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AlertDelivery) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AlertDelivery) GetAttempts() []*AlertAttempt {
|
|
if x != nil {
|
|
return x.Attempts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AlertAttempt struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
N int64 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"`
|
|
At *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=at,proto3" json:"at,omitempty"`
|
|
StatusCode int64 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
|
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AlertAttempt) Reset() {
|
|
*x = AlertAttempt{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AlertAttempt) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AlertAttempt) ProtoMessage() {}
|
|
|
|
func (x *AlertAttempt) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AlertAttempt.ProtoReflect.Descriptor instead.
|
|
func (*AlertAttempt) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *AlertAttempt) GetN() int64 {
|
|
if x != nil {
|
|
return x.N
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AlertAttempt) GetAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.At
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AlertAttempt) GetStatusCode() int64 {
|
|
if x != nil {
|
|
return x.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AlertAttempt) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RaiseAlertRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
|
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
|
|
Severity string `protobuf:"bytes,4,opt,name=severity,proto3" json:"severity,omitempty"`
|
|
Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
|
|
Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
|
|
Link string `protobuf:"bytes,7,opt,name=link,proto3" json:"link,omitempty"`
|
|
// condition is true when the raiser resolves the alert itself once the
|
|
// condition clears; an event alert stays until dismissed.
|
|
Condition bool `protobuf:"varint,8,opt,name=condition,proto3" json:"condition,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) Reset() {
|
|
*x = RaiseAlertRequest{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RaiseAlertRequest) ProtoMessage() {}
|
|
|
|
func (x *RaiseAlertRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RaiseAlertRequest.ProtoReflect.Descriptor instead.
|
|
func (*RaiseAlertRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) GetOrgId() string {
|
|
if x != nil {
|
|
return x.OrgId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) GetSubject() string {
|
|
if x != nil {
|
|
return x.Subject
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) GetSeverity() string {
|
|
if x != nil {
|
|
return x.Severity
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) GetBody() string {
|
|
if x != nil {
|
|
return x.Body
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) GetLink() string {
|
|
if x != nil {
|
|
return x.Link
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RaiseAlertRequest) GetCondition() bool {
|
|
if x != nil {
|
|
return x.Condition
|
|
}
|
|
return false
|
|
}
|
|
|
|
type RaiseAlertResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Alert *Alert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RaiseAlertResponse) Reset() {
|
|
*x = RaiseAlertResponse{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RaiseAlertResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RaiseAlertResponse) ProtoMessage() {}
|
|
|
|
func (x *RaiseAlertResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RaiseAlertResponse.ProtoReflect.Descriptor instead.
|
|
func (*RaiseAlertResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *RaiseAlertResponse) GetAlert() *Alert {
|
|
if x != nil {
|
|
return x.Alert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ResolveAlertRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
|
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
|
|
Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResolveAlertRequest) Reset() {
|
|
*x = ResolveAlertRequest{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResolveAlertRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResolveAlertRequest) ProtoMessage() {}
|
|
|
|
func (x *ResolveAlertRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResolveAlertRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResolveAlertRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ResolveAlertRequest) GetOrgId() string {
|
|
if x != nil {
|
|
return x.OrgId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResolveAlertRequest) GetKind() string {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResolveAlertRequest) GetSubject() string {
|
|
if x != nil {
|
|
return x.Subject
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ResolveAlertResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResolveAlertResponse) Reset() {
|
|
*x = ResolveAlertResponse{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResolveAlertResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResolveAlertResponse) ProtoMessage() {}
|
|
|
|
func (x *ResolveAlertResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ResolveAlertResponse.ProtoReflect.Descriptor instead.
|
|
func (*ResolveAlertResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
type DismissAlertRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
|
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DismissAlertRequest) Reset() {
|
|
*x = DismissAlertRequest{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DismissAlertRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DismissAlertRequest) ProtoMessage() {}
|
|
|
|
func (x *DismissAlertRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DismissAlertRequest.ProtoReflect.Descriptor instead.
|
|
func (*DismissAlertRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *DismissAlertRequest) GetOrgId() string {
|
|
if x != nil {
|
|
return x.OrgId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DismissAlertRequest) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DismissAlertResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DismissAlertResponse) Reset() {
|
|
*x = DismissAlertResponse{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DismissAlertResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DismissAlertResponse) ProtoMessage() {}
|
|
|
|
func (x *DismissAlertResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DismissAlertResponse.ProtoReflect.Descriptor instead.
|
|
func (*DismissAlertResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
type ListAlertsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
|
|
// states defaults to open.
|
|
States []string `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"`
|
|
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAlertsRequest) Reset() {
|
|
*x = ListAlertsRequest{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAlertsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAlertsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListAlertsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListAlertsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListAlertsRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ListAlertsRequest) GetOrgId() string {
|
|
if x != nil {
|
|
return x.OrgId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListAlertsRequest) GetStates() []string {
|
|
if x != nil {
|
|
return x.States
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListAlertsRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListAlertsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Alerts []*Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAlertsResponse) Reset() {
|
|
*x = ListAlertsResponse{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAlertsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAlertsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListAlertsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListAlertsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListAlertsResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *ListAlertsResponse) GetAlerts() []*Alert {
|
|
if x != nil {
|
|
return x.Alerts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ClaimAlertDeliveriesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClaimAlertDeliveriesRequest) Reset() {
|
|
*x = ClaimAlertDeliveriesRequest{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClaimAlertDeliveriesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClaimAlertDeliveriesRequest) ProtoMessage() {}
|
|
|
|
func (x *ClaimAlertDeliveriesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClaimAlertDeliveriesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ClaimAlertDeliveriesRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *ClaimAlertDeliveriesRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DueAlertDelivery struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Delivery *AlertDelivery `protobuf:"bytes,1,opt,name=delivery,proto3" json:"delivery,omitempty"`
|
|
Alert *Alert `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"`
|
|
// attempt is the number of this try, counting from one.
|
|
Attempt int64 `protobuf:"varint,3,opt,name=attempt,proto3" json:"attempt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DueAlertDelivery) Reset() {
|
|
*x = DueAlertDelivery{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DueAlertDelivery) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DueAlertDelivery) ProtoMessage() {}
|
|
|
|
func (x *DueAlertDelivery) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DueAlertDelivery.ProtoReflect.Descriptor instead.
|
|
func (*DueAlertDelivery) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *DueAlertDelivery) GetDelivery() *AlertDelivery {
|
|
if x != nil {
|
|
return x.Delivery
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DueAlertDelivery) GetAlert() *Alert {
|
|
if x != nil {
|
|
return x.Alert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DueAlertDelivery) GetAttempt() int64 {
|
|
if x != nil {
|
|
return x.Attempt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ClaimAlertDeliveriesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Due []*DueAlertDelivery `protobuf:"bytes,1,rep,name=due,proto3" json:"due,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClaimAlertDeliveriesResponse) Reset() {
|
|
*x = ClaimAlertDeliveriesResponse{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClaimAlertDeliveriesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClaimAlertDeliveriesResponse) ProtoMessage() {}
|
|
|
|
func (x *ClaimAlertDeliveriesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClaimAlertDeliveriesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ClaimAlertDeliveriesResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ClaimAlertDeliveriesResponse) GetDue() []*DueAlertDelivery {
|
|
if x != nil {
|
|
return x.Due
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RecordAlertAttemptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
DeliveryId int64 `protobuf:"varint,1,opt,name=delivery_id,json=deliveryId,proto3" json:"delivery_id,omitempty"`
|
|
Skipped bool `protobuf:"varint,2,opt,name=skipped,proto3" json:"skipped,omitempty"`
|
|
StatusCode int64 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
|
// error is empty on success.
|
|
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RecordAlertAttemptRequest) Reset() {
|
|
*x = RecordAlertAttemptRequest{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RecordAlertAttemptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RecordAlertAttemptRequest) ProtoMessage() {}
|
|
|
|
func (x *RecordAlertAttemptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RecordAlertAttemptRequest.ProtoReflect.Descriptor instead.
|
|
func (*RecordAlertAttemptRequest) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *RecordAlertAttemptRequest) GetDeliveryId() int64 {
|
|
if x != nil {
|
|
return x.DeliveryId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RecordAlertAttemptRequest) GetSkipped() bool {
|
|
if x != nil {
|
|
return x.Skipped
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *RecordAlertAttemptRequest) GetStatusCode() int64 {
|
|
if x != nil {
|
|
return x.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RecordAlertAttemptRequest) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RecordAlertAttemptResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RecordAlertAttemptResponse) Reset() {
|
|
*x = RecordAlertAttemptResponse{}
|
|
mi := &file_state_v1_alert_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RecordAlertAttemptResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RecordAlertAttemptResponse) ProtoMessage() {}
|
|
|
|
func (x *RecordAlertAttemptResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_state_v1_alert_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RecordAlertAttemptResponse.ProtoReflect.Descriptor instead.
|
|
func (*RecordAlertAttemptResponse) Descriptor() ([]byte, []int) {
|
|
return file_state_v1_alert_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
var File_state_v1_alert_proto protoreflect.FileDescriptor
|
|
|
|
const file_state_v1_alert_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x14state/v1/alert.proto\x12\bstate.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x87\x04\n" +
|
|
"\x05Alert\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x15\n" +
|
|
"\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x12\n" +
|
|
"\x04kind\x18\x03 \x01(\tR\x04kind\x12\x18\n" +
|
|
"\asubject\x18\x04 \x01(\tR\asubject\x12\x1a\n" +
|
|
"\bseverity\x18\x05 \x01(\tR\bseverity\x12\x14\n" +
|
|
"\x05title\x18\x06 \x01(\tR\x05title\x12\x12\n" +
|
|
"\x04body\x18\a \x01(\tR\x04body\x12\x12\n" +
|
|
"\x04link\x18\b \x01(\tR\x04link\x12\x1c\n" +
|
|
"\tcondition\x18\t \x01(\bR\tcondition\x12\x14\n" +
|
|
"\x05state\x18\n" +
|
|
" \x01(\tR\x05state\x12=\n" +
|
|
"\ffirst_raised\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\vfirstRaised\x127\n" +
|
|
"\tlast_seen\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\blastSeen\x12\x14\n" +
|
|
"\x05count\x18\r \x01(\x03R\x05count\x12\x1b\n" +
|
|
"\tclosed_by\x18\x0e \x01(\tR\bclosedBy\x127\n" +
|
|
"\tclosed_at\x18\x0f \x01(\v2\x1a.google.protobuf.TimestampR\bclosedAt\x127\n" +
|
|
"\n" +
|
|
"deliveries\x18\x10 \x03(\v2\x17.state.v1.AlertDeliveryR\n" +
|
|
"deliveries\"\xba\x01\n" +
|
|
"\rAlertDelivery\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" +
|
|
"\x05event\x18\x02 \x01(\tR\x05event\x12\x14\n" +
|
|
"\x05state\x18\x03 \x01(\tR\x05state\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x122\n" +
|
|
"\battempts\x18\x05 \x03(\v2\x16.state.v1.AlertAttemptR\battempts\"\x7f\n" +
|
|
"\fAlertAttempt\x12\f\n" +
|
|
"\x01n\x18\x01 \x01(\x03R\x01n\x12*\n" +
|
|
"\x02at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x02at\x12\x1f\n" +
|
|
"\vstatus_code\x18\x03 \x01(\x03R\n" +
|
|
"statusCode\x12\x14\n" +
|
|
"\x05error\x18\x04 \x01(\tR\x05error\"\xd0\x01\n" +
|
|
"\x11RaiseAlertRequest\x12\x15\n" +
|
|
"\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x12\n" +
|
|
"\x04kind\x18\x02 \x01(\tR\x04kind\x12\x18\n" +
|
|
"\asubject\x18\x03 \x01(\tR\asubject\x12\x1a\n" +
|
|
"\bseverity\x18\x04 \x01(\tR\bseverity\x12\x14\n" +
|
|
"\x05title\x18\x05 \x01(\tR\x05title\x12\x12\n" +
|
|
"\x04body\x18\x06 \x01(\tR\x04body\x12\x12\n" +
|
|
"\x04link\x18\a \x01(\tR\x04link\x12\x1c\n" +
|
|
"\tcondition\x18\b \x01(\bR\tcondition\";\n" +
|
|
"\x12RaiseAlertResponse\x12%\n" +
|
|
"\x05alert\x18\x01 \x01(\v2\x0f.state.v1.AlertR\x05alert\"Z\n" +
|
|
"\x13ResolveAlertRequest\x12\x15\n" +
|
|
"\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x12\n" +
|
|
"\x04kind\x18\x02 \x01(\tR\x04kind\x12\x18\n" +
|
|
"\asubject\x18\x03 \x01(\tR\asubject\"\x16\n" +
|
|
"\x14ResolveAlertResponse\"<\n" +
|
|
"\x13DismissAlertRequest\x12\x15\n" +
|
|
"\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x0e\n" +
|
|
"\x02id\x18\x02 \x01(\x03R\x02id\"\x16\n" +
|
|
"\x14DismissAlertResponse\"X\n" +
|
|
"\x11ListAlertsRequest\x12\x15\n" +
|
|
"\x06org_id\x18\x01 \x01(\tR\x05orgId\x12\x16\n" +
|
|
"\x06states\x18\x02 \x03(\tR\x06states\x12\x14\n" +
|
|
"\x05limit\x18\x03 \x01(\x05R\x05limit\"=\n" +
|
|
"\x12ListAlertsResponse\x12'\n" +
|
|
"\x06alerts\x18\x01 \x03(\v2\x0f.state.v1.AlertR\x06alerts\"3\n" +
|
|
"\x1bClaimAlertDeliveriesRequest\x12\x14\n" +
|
|
"\x05limit\x18\x01 \x01(\x05R\x05limit\"\x88\x01\n" +
|
|
"\x10DueAlertDelivery\x123\n" +
|
|
"\bdelivery\x18\x01 \x01(\v2\x17.state.v1.AlertDeliveryR\bdelivery\x12%\n" +
|
|
"\x05alert\x18\x02 \x01(\v2\x0f.state.v1.AlertR\x05alert\x12\x18\n" +
|
|
"\aattempt\x18\x03 \x01(\x03R\aattempt\"L\n" +
|
|
"\x1cClaimAlertDeliveriesResponse\x12,\n" +
|
|
"\x03due\x18\x01 \x03(\v2\x1a.state.v1.DueAlertDeliveryR\x03due\"\x8d\x01\n" +
|
|
"\x19RecordAlertAttemptRequest\x12\x1f\n" +
|
|
"\vdelivery_id\x18\x01 \x01(\x03R\n" +
|
|
"deliveryId\x12\x18\n" +
|
|
"\askipped\x18\x02 \x01(\bR\askipped\x12\x1f\n" +
|
|
"\vstatus_code\x18\x03 \x01(\x03R\n" +
|
|
"statusCode\x12\x14\n" +
|
|
"\x05error\x18\x04 \x01(\tR\x05error\"\x1c\n" +
|
|
"\x1aRecordAlertAttemptResponse2\x86\x04\n" +
|
|
"\fAlertService\x12G\n" +
|
|
"\n" +
|
|
"RaiseAlert\x12\x1b.state.v1.RaiseAlertRequest\x1a\x1c.state.v1.RaiseAlertResponse\x12M\n" +
|
|
"\fResolveAlert\x12\x1d.state.v1.ResolveAlertRequest\x1a\x1e.state.v1.ResolveAlertResponse\x12M\n" +
|
|
"\fDismissAlert\x12\x1d.state.v1.DismissAlertRequest\x1a\x1e.state.v1.DismissAlertResponse\x12G\n" +
|
|
"\n" +
|
|
"ListAlerts\x12\x1b.state.v1.ListAlertsRequest\x1a\x1c.state.v1.ListAlertsResponse\x12e\n" +
|
|
"\x14ClaimAlertDeliveries\x12%.state.v1.ClaimAlertDeliveriesRequest\x1a&.state.v1.ClaimAlertDeliveriesResponse\x12_\n" +
|
|
"\x12RecordAlertAttempt\x12#.state.v1.RecordAlertAttemptRequest\x1a$.state.v1.RecordAlertAttemptResponseB\xa4\x01\n" +
|
|
"\fcom.state.v1B\n" +
|
|
"AlertProtoP\x01ZGgithub.com/samcharles93/archie-core/internal/contracts/state/v1;statev1\xa2\x02\x03SXX\xaa\x02\bState.V1\xca\x02\bState\\V1\xe2\x02\x14State\\V1\\GPBMetadata\xea\x02\tState::V1b\x06proto3"
|
|
|
|
var (
|
|
file_state_v1_alert_proto_rawDescOnce sync.Once
|
|
file_state_v1_alert_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_state_v1_alert_proto_rawDescGZIP() []byte {
|
|
file_state_v1_alert_proto_rawDescOnce.Do(func() {
|
|
file_state_v1_alert_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_alert_proto_rawDesc), len(file_state_v1_alert_proto_rawDesc)))
|
|
})
|
|
return file_state_v1_alert_proto_rawDescData
|
|
}
|
|
|
|
var file_state_v1_alert_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_state_v1_alert_proto_goTypes = []any{
|
|
(*Alert)(nil), // 0: state.v1.Alert
|
|
(*AlertDelivery)(nil), // 1: state.v1.AlertDelivery
|
|
(*AlertAttempt)(nil), // 2: state.v1.AlertAttempt
|
|
(*RaiseAlertRequest)(nil), // 3: state.v1.RaiseAlertRequest
|
|
(*RaiseAlertResponse)(nil), // 4: state.v1.RaiseAlertResponse
|
|
(*ResolveAlertRequest)(nil), // 5: state.v1.ResolveAlertRequest
|
|
(*ResolveAlertResponse)(nil), // 6: state.v1.ResolveAlertResponse
|
|
(*DismissAlertRequest)(nil), // 7: state.v1.DismissAlertRequest
|
|
(*DismissAlertResponse)(nil), // 8: state.v1.DismissAlertResponse
|
|
(*ListAlertsRequest)(nil), // 9: state.v1.ListAlertsRequest
|
|
(*ListAlertsResponse)(nil), // 10: state.v1.ListAlertsResponse
|
|
(*ClaimAlertDeliveriesRequest)(nil), // 11: state.v1.ClaimAlertDeliveriesRequest
|
|
(*DueAlertDelivery)(nil), // 12: state.v1.DueAlertDelivery
|
|
(*ClaimAlertDeliveriesResponse)(nil), // 13: state.v1.ClaimAlertDeliveriesResponse
|
|
(*RecordAlertAttemptRequest)(nil), // 14: state.v1.RecordAlertAttemptRequest
|
|
(*RecordAlertAttemptResponse)(nil), // 15: state.v1.RecordAlertAttemptResponse
|
|
(*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp
|
|
}
|
|
var file_state_v1_alert_proto_depIdxs = []int32{
|
|
16, // 0: state.v1.Alert.first_raised:type_name -> google.protobuf.Timestamp
|
|
16, // 1: state.v1.Alert.last_seen:type_name -> google.protobuf.Timestamp
|
|
16, // 2: state.v1.Alert.closed_at:type_name -> google.protobuf.Timestamp
|
|
1, // 3: state.v1.Alert.deliveries:type_name -> state.v1.AlertDelivery
|
|
16, // 4: state.v1.AlertDelivery.created_at:type_name -> google.protobuf.Timestamp
|
|
2, // 5: state.v1.AlertDelivery.attempts:type_name -> state.v1.AlertAttempt
|
|
16, // 6: state.v1.AlertAttempt.at:type_name -> google.protobuf.Timestamp
|
|
0, // 7: state.v1.RaiseAlertResponse.alert:type_name -> state.v1.Alert
|
|
0, // 8: state.v1.ListAlertsResponse.alerts:type_name -> state.v1.Alert
|
|
1, // 9: state.v1.DueAlertDelivery.delivery:type_name -> state.v1.AlertDelivery
|
|
0, // 10: state.v1.DueAlertDelivery.alert:type_name -> state.v1.Alert
|
|
12, // 11: state.v1.ClaimAlertDeliveriesResponse.due:type_name -> state.v1.DueAlertDelivery
|
|
3, // 12: state.v1.AlertService.RaiseAlert:input_type -> state.v1.RaiseAlertRequest
|
|
5, // 13: state.v1.AlertService.ResolveAlert:input_type -> state.v1.ResolveAlertRequest
|
|
7, // 14: state.v1.AlertService.DismissAlert:input_type -> state.v1.DismissAlertRequest
|
|
9, // 15: state.v1.AlertService.ListAlerts:input_type -> state.v1.ListAlertsRequest
|
|
11, // 16: state.v1.AlertService.ClaimAlertDeliveries:input_type -> state.v1.ClaimAlertDeliveriesRequest
|
|
14, // 17: state.v1.AlertService.RecordAlertAttempt:input_type -> state.v1.RecordAlertAttemptRequest
|
|
4, // 18: state.v1.AlertService.RaiseAlert:output_type -> state.v1.RaiseAlertResponse
|
|
6, // 19: state.v1.AlertService.ResolveAlert:output_type -> state.v1.ResolveAlertResponse
|
|
8, // 20: state.v1.AlertService.DismissAlert:output_type -> state.v1.DismissAlertResponse
|
|
10, // 21: state.v1.AlertService.ListAlerts:output_type -> state.v1.ListAlertsResponse
|
|
13, // 22: state.v1.AlertService.ClaimAlertDeliveries:output_type -> state.v1.ClaimAlertDeliveriesResponse
|
|
15, // 23: state.v1.AlertService.RecordAlertAttempt:output_type -> state.v1.RecordAlertAttemptResponse
|
|
18, // [18:24] is the sub-list for method output_type
|
|
12, // [12:18] is the sub-list for method input_type
|
|
12, // [12:12] is the sub-list for extension type_name
|
|
12, // [12:12] is the sub-list for extension extendee
|
|
0, // [0:12] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_state_v1_alert_proto_init() }
|
|
func file_state_v1_alert_proto_init() {
|
|
if File_state_v1_alert_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_state_v1_alert_proto_rawDesc), len(file_state_v1_alert_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 16,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_state_v1_alert_proto_goTypes,
|
|
DependencyIndexes: file_state_v1_alert_proto_depIdxs,
|
|
MessageInfos: file_state_v1_alert_proto_msgTypes,
|
|
}.Build()
|
|
File_state_v1_alert_proto = out.File
|
|
file_state_v1_alert_proto_goTypes = nil
|
|
file_state_v1_alert_proto_depIdxs = nil
|
|
}
|