Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAlertServiceServer(s grpc.ServiceRegistrar, srv AlertServiceServer)
- type AlertServiceClient
- type AlertServiceServer
- type GenerateAlertRequest
- func (*GenerateAlertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateAlertRequest) GetDescription() string
- func (x *GenerateAlertRequest) GetInjectedJobId() string
- func (x *GenerateAlertRequest) GetName() string
- func (x *GenerateAlertRequest) GetPodId() int64
- func (x *GenerateAlertRequest) GetResponseType() string
- func (x *GenerateAlertRequest) GetStartEventId() int64
- func (x *GenerateAlertRequest) GetType() string
- func (x *GenerateAlertRequest) GetZoneId() int64
- func (*GenerateAlertRequest) ProtoMessage()
- func (x *GenerateAlertRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateAlertRequest) Reset()
- func (x *GenerateAlertRequest) String() string
- type GenerateAlertResponse
- func (*GenerateAlertResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateAlertResponse) GetResult() *Result
- func (*GenerateAlertResponse) ProtoMessage()
- func (x *GenerateAlertResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateAlertResponse) Reset()
- func (x *GenerateAlertResponse) String() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetDisplayText() string
- func (x *Result) GetId() string
- func (x *Result) GetJobId() string
- func (x *Result) GetJobStatus() string
- func (x *Result) GetSuccess() bool
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Success
- type UnimplementedAlertServiceServer
- type UnsafeAlertServiceServer
Constants ¶
const (
AlertService_GenerateAlert_FullMethodName = "/cloudstack.management.alert.v1.AlertService/GenerateAlert"
)
Variables ¶
var AlertService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudstack.management.alert.v1.AlertService", HandlerType: (*AlertServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateAlert", Handler: _AlertService_GenerateAlert_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cloudstack/management/alert/v1/alert.gen.proto", }
AlertService_ServiceDesc is the grpc.ServiceDesc for AlertService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cloudstack_management_alert_v1_alert_gen_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAlertServiceServer ¶
func RegisterAlertServiceServer(s grpc.ServiceRegistrar, srv AlertServiceServer)
Types ¶
type AlertServiceClient ¶
type AlertServiceClient interface {
// GenerateAlert Generates an alert
GenerateAlert(ctx context.Context, in *GenerateAlertRequest, opts ...grpc.CallOption) (*GenerateAlertResponse, error)
}
AlertServiceClient is the client API for AlertService 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.
AlertService provides operations for managing Alerts
func NewAlertServiceClient ¶
func NewAlertServiceClient(cc grpc.ClientConnInterface) AlertServiceClient
type AlertServiceServer ¶
type AlertServiceServer interface {
// GenerateAlert Generates an alert
GenerateAlert(context.Context, *GenerateAlertRequest) (*GenerateAlertResponse, error)
// contains filtered or unexported methods
}
AlertServiceServer is the server API for AlertService service. All implementations must embed UnimplementedAlertServiceServer for forward compatibility.
AlertService provides operations for managing Alerts
type GenerateAlertRequest ¶
type GenerateAlertRequest struct {
// Type of the alert
Type *string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
// Name of the alert
Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// Alert description
Description *string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
// Zone id for which alert is generated
ZoneId *int64 `protobuf:"varint,4,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
// Pod id for which alert is generated
PodId *int64 `protobuf:"varint,5,opt,name=pod_id,json=podId" json:"pod_id,omitempty"`
StartEventId *int64 `protobuf:"varint,6,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
InjectedJobId *string `protobuf:"bytes,7,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
ResponseType *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
// contains filtered or unexported fields
}
GenerateAlertRequest represents the parameters for generates an alert
func (*GenerateAlertRequest) Descriptor
deprecated
func (*GenerateAlertRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateAlertRequest.ProtoReflect.Descriptor instead.
func (*GenerateAlertRequest) GetDescription ¶
func (x *GenerateAlertRequest) GetDescription() string
func (*GenerateAlertRequest) GetInjectedJobId ¶
func (x *GenerateAlertRequest) GetInjectedJobId() string
func (*GenerateAlertRequest) GetName ¶
func (x *GenerateAlertRequest) GetName() string
func (*GenerateAlertRequest) GetPodId ¶
func (x *GenerateAlertRequest) GetPodId() int64
func (*GenerateAlertRequest) GetResponseType ¶
func (x *GenerateAlertRequest) GetResponseType() string
func (*GenerateAlertRequest) GetStartEventId ¶
func (x *GenerateAlertRequest) GetStartEventId() int64
func (*GenerateAlertRequest) GetType ¶
func (x *GenerateAlertRequest) GetType() string
func (*GenerateAlertRequest) GetZoneId ¶
func (x *GenerateAlertRequest) GetZoneId() int64
func (*GenerateAlertRequest) ProtoMessage ¶
func (*GenerateAlertRequest) ProtoMessage()
func (*GenerateAlertRequest) ProtoReflect ¶
func (x *GenerateAlertRequest) ProtoReflect() protoreflect.Message
func (*GenerateAlertRequest) Reset ¶
func (x *GenerateAlertRequest) Reset()
func (*GenerateAlertRequest) String ¶
func (x *GenerateAlertRequest) String() string
type GenerateAlertResponse ¶
type GenerateAlertResponse struct {
// The Result
Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
// contains filtered or unexported fields
}
GenerateAlertResponse represents the response from generates an alert
func (*GenerateAlertResponse) Descriptor
deprecated
func (*GenerateAlertResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateAlertResponse.ProtoReflect.Descriptor instead.
func (*GenerateAlertResponse) GetResult ¶
func (x *GenerateAlertResponse) GetResult() *Result
func (*GenerateAlertResponse) ProtoMessage ¶
func (*GenerateAlertResponse) ProtoMessage()
func (*GenerateAlertResponse) ProtoReflect ¶
func (x *GenerateAlertResponse) ProtoReflect() protoreflect.Message
func (*GenerateAlertResponse) Reset ¶
func (x *GenerateAlertResponse) Reset()
func (*GenerateAlertResponse) String ¶
func (x *GenerateAlertResponse) String() string
type Result ¶
type Result struct {
// Whether the operation was successful
Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
// Any text associated with the success or failure
DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
// The ID of the resource affected by the operation
Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
// The job ID for an async operation
JobId *string `protobuf:"bytes,4,opt,name=job_id,json=jobId" json:"job_id,omitempty"`
// The status of the job
JobStatus *string `protobuf:"bytes,5,opt,name=job_status,json=jobStatus" json:"job_status,omitempty"`
// contains filtered or unexported fields
}
Result represents a generic operation result
func (*Result) Descriptor
deprecated
func (*Result) GetDisplayText ¶
func (*Result) GetJobStatus ¶
func (*Result) GetSuccess ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Success ¶
type Success struct {
// true if operation is executed successfully
Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
// any text associated with the success or failure
DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
// contains filtered or unexported fields
}
Success represents a Success Operation Response
func (*Success) Descriptor
deprecated
func (*Success) GetDisplayText ¶
func (*Success) GetSuccess ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) ProtoReflect ¶
func (x *Success) ProtoReflect() protoreflect.Message
type UnimplementedAlertServiceServer ¶
type UnimplementedAlertServiceServer struct{}
UnimplementedAlertServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAlertServiceServer) GenerateAlert ¶
func (UnimplementedAlertServiceServer) GenerateAlert(context.Context, *GenerateAlertRequest) (*GenerateAlertResponse, error)
type UnsafeAlertServiceServer ¶
type UnsafeAlertServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAlertServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AlertServiceServer will result in compilation errors.