Documentation
¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type CreateAlertRuleResponse
- func (*CreateAlertRuleResponse) Descriptor() ([]byte, []int)
- func (m *CreateAlertRuleResponse) GetCode() int32
- func (m *CreateAlertRuleResponse) GetData() *CreateAlertRuleResponse_Data
- func (m *CreateAlertRuleResponse) GetMsg() string
- func (*CreateAlertRuleResponse) ProtoMessage()
- func (m *CreateAlertRuleResponse) Reset()
- func (m *CreateAlertRuleResponse) String() string
- func (this *CreateAlertRuleResponse) Validate() error
- func (m *CreateAlertRuleResponse) XXX_DiscardUnknown()
- func (m *CreateAlertRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAlertRuleResponse) XXX_Merge(src proto.Message)
- func (m *CreateAlertRuleResponse) XXX_Size() int
- func (m *CreateAlertRuleResponse) XXX_Unmarshal(b []byte) error
- type CreateAlertRuleResponseWrapper
- func (*CreateAlertRuleResponseWrapper) Descriptor() ([]byte, []int)
- func (m *CreateAlertRuleResponseWrapper) GetCode() int32
- func (m *CreateAlertRuleResponseWrapper) GetCodeExplain() string
- func (m *CreateAlertRuleResponseWrapper) GetData() *CreateAlertRuleResponse
- func (m *CreateAlertRuleResponseWrapper) GetError() string
- func (*CreateAlertRuleResponseWrapper) ProtoMessage()
- func (m *CreateAlertRuleResponseWrapper) Reset()
- func (m *CreateAlertRuleResponseWrapper) String() string
- func (this *CreateAlertRuleResponseWrapper) Validate() error
- func (m *CreateAlertRuleResponseWrapper) XXX_DiscardUnknown()
- func (m *CreateAlertRuleResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAlertRuleResponseWrapper) XXX_Merge(src proto.Message)
- func (m *CreateAlertRuleResponseWrapper) XXX_Size() int
- func (m *CreateAlertRuleResponseWrapper) XXX_Unmarshal(b []byte) error
- type CreateAlertRuleResponse_Data
- func (*CreateAlertRuleResponse_Data) Descriptor() ([]byte, []int)
- func (m *CreateAlertRuleResponse_Data) GetId() string
- func (*CreateAlertRuleResponse_Data) ProtoMessage()
- func (m *CreateAlertRuleResponse_Data) Reset()
- func (m *CreateAlertRuleResponse_Data) String() string
- func (this *CreateAlertRuleResponse_Data) Validate() error
- func (m *CreateAlertRuleResponse_Data) XXX_DiscardUnknown()
- func (m *CreateAlertRuleResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAlertRuleResponse_Data) XXX_Merge(src proto.Message)
- func (m *CreateAlertRuleResponse_Data) XXX_Size() int
- func (m *CreateAlertRuleResponse_Data) XXX_Unmarshal(b []byte) error
- type GetAlertRuleListRequest
- func (*GetAlertRuleListRequest) Descriptor() ([]byte, []int)
- func (m *GetAlertRuleListRequest) GetPage() int32
- func (m *GetAlertRuleListRequest) GetPageSize() int32
- func (m *GetAlertRuleListRequest) GetXId_In() string
- func (*GetAlertRuleListRequest) ProtoMessage()
- func (m *GetAlertRuleListRequest) Reset()
- func (m *GetAlertRuleListRequest) String() string
- func (this *GetAlertRuleListRequest) Validate() error
- func (m *GetAlertRuleListRequest) XXX_DiscardUnknown()
- func (m *GetAlertRuleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAlertRuleListRequest) XXX_Merge(src proto.Message)
- func (m *GetAlertRuleListRequest) XXX_Size() int
- func (m *GetAlertRuleListRequest) XXX_Unmarshal(b []byte) error
- type GetAlertRuleListResponse
- func (*GetAlertRuleListResponse) Descriptor() ([]byte, []int)
- func (m *GetAlertRuleListResponse) GetCode() int32
- func (m *GetAlertRuleListResponse) GetData() []*monitor.AlertRule
- func (m *GetAlertRuleListResponse) GetMsg() string
- func (m *GetAlertRuleListResponse) GetPage() int32
- func (m *GetAlertRuleListResponse) GetPageSize() int32
- func (m *GetAlertRuleListResponse) GetTotal() int32
- func (*GetAlertRuleListResponse) ProtoMessage()
- func (m *GetAlertRuleListResponse) Reset()
- func (m *GetAlertRuleListResponse) String() string
- func (this *GetAlertRuleListResponse) Validate() error
- func (m *GetAlertRuleListResponse) XXX_DiscardUnknown()
- func (m *GetAlertRuleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAlertRuleListResponse) XXX_Merge(src proto.Message)
- func (m *GetAlertRuleListResponse) XXX_Size() int
- func (m *GetAlertRuleListResponse) XXX_Unmarshal(b []byte) error
- type GetAlertRuleListResponseWrapper
- func (*GetAlertRuleListResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetAlertRuleListResponseWrapper) GetCode() int32
- func (m *GetAlertRuleListResponseWrapper) GetCodeExplain() string
- func (m *GetAlertRuleListResponseWrapper) GetData() *GetAlertRuleListResponse
- func (m *GetAlertRuleListResponseWrapper) GetError() string
- func (*GetAlertRuleListResponseWrapper) ProtoMessage()
- func (m *GetAlertRuleListResponseWrapper) Reset()
- func (m *GetAlertRuleListResponseWrapper) String() string
- func (this *GetAlertRuleListResponseWrapper) Validate() error
- func (m *GetAlertRuleListResponseWrapper) XXX_DiscardUnknown()
- func (m *GetAlertRuleListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAlertRuleListResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetAlertRuleListResponseWrapper) XXX_Size() int
- func (m *GetAlertRuleListResponseWrapper) XXX_Unmarshal(b []byte) error
- type ListAlertRuleAllResponse
- func (*ListAlertRuleAllResponse) Descriptor() ([]byte, []int)
- func (m *ListAlertRuleAllResponse) GetCode() int32
- func (m *ListAlertRuleAllResponse) GetData() []*monitor.AlertRule
- func (m *ListAlertRuleAllResponse) GetMsg() string
- func (m *ListAlertRuleAllResponse) GetPage() int32
- func (m *ListAlertRuleAllResponse) GetPageSize() int32
- func (m *ListAlertRuleAllResponse) GetTotal() int32
- func (*ListAlertRuleAllResponse) ProtoMessage()
- func (m *ListAlertRuleAllResponse) Reset()
- func (m *ListAlertRuleAllResponse) String() string
- func (this *ListAlertRuleAllResponse) Validate() error
- func (m *ListAlertRuleAllResponse) XXX_DiscardUnknown()
- func (m *ListAlertRuleAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAlertRuleAllResponse) XXX_Merge(src proto.Message)
- func (m *ListAlertRuleAllResponse) XXX_Size() int
- func (m *ListAlertRuleAllResponse) XXX_Unmarshal(b []byte) error
- type ListAlertRuleAllResponseWrapper
- func (*ListAlertRuleAllResponseWrapper) Descriptor() ([]byte, []int)
- func (m *ListAlertRuleAllResponseWrapper) GetCode() int32
- func (m *ListAlertRuleAllResponseWrapper) GetCodeExplain() string
- func (m *ListAlertRuleAllResponseWrapper) GetData() *ListAlertRuleAllResponse
- func (m *ListAlertRuleAllResponseWrapper) GetError() string
- func (*ListAlertRuleAllResponseWrapper) ProtoMessage()
- func (m *ListAlertRuleAllResponseWrapper) Reset()
- func (m *ListAlertRuleAllResponseWrapper) String() string
- func (this *ListAlertRuleAllResponseWrapper) Validate() error
- func (m *ListAlertRuleAllResponseWrapper) XXX_DiscardUnknown()
- func (m *ListAlertRuleAllResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAlertRuleAllResponseWrapper) XXX_Merge(src proto.Message)
- func (m *ListAlertRuleAllResponseWrapper) XXX_Size() int
- func (m *ListAlertRuleAllResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface { CreateAlertRule(ctx context.Context, in *monitor.AlertRule) (*CreateAlertRuleResponse, error) GetAlertRuleList(ctx context.Context, in *GetAlertRuleListRequest) (*GetAlertRuleListResponse, error) ListAlertRuleAll(ctx context.Context, in *types.Empty) (*ListAlertRuleAllResponse, error) }
Client is the client API for alert_rule service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type CreateAlertRuleResponse ¶
type CreateAlertRuleResponse struct { // //code Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //msg Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg" form:"msg"` // //data Data *CreateAlertRuleResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateAlertRule返回
func (*CreateAlertRuleResponse) Descriptor ¶
func (*CreateAlertRuleResponse) Descriptor() ([]byte, []int)
func (*CreateAlertRuleResponse) GetCode ¶
func (m *CreateAlertRuleResponse) GetCode() int32
func (*CreateAlertRuleResponse) GetData ¶
func (m *CreateAlertRuleResponse) GetData() *CreateAlertRuleResponse_Data
func (*CreateAlertRuleResponse) GetMsg ¶
func (m *CreateAlertRuleResponse) GetMsg() string
func (*CreateAlertRuleResponse) ProtoMessage ¶
func (*CreateAlertRuleResponse) ProtoMessage()
func (*CreateAlertRuleResponse) Reset ¶
func (m *CreateAlertRuleResponse) Reset()
func (*CreateAlertRuleResponse) String ¶
func (m *CreateAlertRuleResponse) String() string
func (*CreateAlertRuleResponse) Validate ¶
func (this *CreateAlertRuleResponse) Validate() error
func (*CreateAlertRuleResponse) XXX_DiscardUnknown ¶
func (m *CreateAlertRuleResponse) XXX_DiscardUnknown()
func (*CreateAlertRuleResponse) XXX_Marshal ¶
func (m *CreateAlertRuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAlertRuleResponse) XXX_Merge ¶
func (m *CreateAlertRuleResponse) XXX_Merge(src proto.Message)
func (*CreateAlertRuleResponse) XXX_Size ¶
func (m *CreateAlertRuleResponse) XXX_Size() int
func (*CreateAlertRuleResponse) XXX_Unmarshal ¶
func (m *CreateAlertRuleResponse) XXX_Unmarshal(b []byte) error
type CreateAlertRuleResponseWrapper ¶
type CreateAlertRuleResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *CreateAlertRuleResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateAlertRuleApi返回
func (*CreateAlertRuleResponseWrapper) Descriptor ¶
func (*CreateAlertRuleResponseWrapper) Descriptor() ([]byte, []int)
func (*CreateAlertRuleResponseWrapper) GetCode ¶
func (m *CreateAlertRuleResponseWrapper) GetCode() int32
func (*CreateAlertRuleResponseWrapper) GetCodeExplain ¶
func (m *CreateAlertRuleResponseWrapper) GetCodeExplain() string
func (*CreateAlertRuleResponseWrapper) GetData ¶
func (m *CreateAlertRuleResponseWrapper) GetData() *CreateAlertRuleResponse
func (*CreateAlertRuleResponseWrapper) GetError ¶
func (m *CreateAlertRuleResponseWrapper) GetError() string
func (*CreateAlertRuleResponseWrapper) ProtoMessage ¶
func (*CreateAlertRuleResponseWrapper) ProtoMessage()
func (*CreateAlertRuleResponseWrapper) Reset ¶
func (m *CreateAlertRuleResponseWrapper) Reset()
func (*CreateAlertRuleResponseWrapper) String ¶
func (m *CreateAlertRuleResponseWrapper) String() string
func (*CreateAlertRuleResponseWrapper) Validate ¶
func (this *CreateAlertRuleResponseWrapper) Validate() error
func (*CreateAlertRuleResponseWrapper) XXX_DiscardUnknown ¶
func (m *CreateAlertRuleResponseWrapper) XXX_DiscardUnknown()
func (*CreateAlertRuleResponseWrapper) XXX_Marshal ¶
func (m *CreateAlertRuleResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAlertRuleResponseWrapper) XXX_Merge ¶
func (m *CreateAlertRuleResponseWrapper) XXX_Merge(src proto.Message)
func (*CreateAlertRuleResponseWrapper) XXX_Size ¶
func (m *CreateAlertRuleResponseWrapper) XXX_Size() int
func (*CreateAlertRuleResponseWrapper) XXX_Unmarshal ¶
func (m *CreateAlertRuleResponseWrapper) XXX_Unmarshal(b []byte) error
type CreateAlertRuleResponse_Data ¶
type CreateAlertRuleResponse_Data struct { // //告警规则id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateAlertRuleResponse_Data) Descriptor ¶
func (*CreateAlertRuleResponse_Data) Descriptor() ([]byte, []int)
func (*CreateAlertRuleResponse_Data) GetId ¶
func (m *CreateAlertRuleResponse_Data) GetId() string
func (*CreateAlertRuleResponse_Data) ProtoMessage ¶
func (*CreateAlertRuleResponse_Data) ProtoMessage()
func (*CreateAlertRuleResponse_Data) Reset ¶
func (m *CreateAlertRuleResponse_Data) Reset()
func (*CreateAlertRuleResponse_Data) String ¶
func (m *CreateAlertRuleResponse_Data) String() string
func (*CreateAlertRuleResponse_Data) Validate ¶
func (this *CreateAlertRuleResponse_Data) Validate() error
func (*CreateAlertRuleResponse_Data) XXX_DiscardUnknown ¶
func (m *CreateAlertRuleResponse_Data) XXX_DiscardUnknown()
func (*CreateAlertRuleResponse_Data) XXX_Marshal ¶
func (m *CreateAlertRuleResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAlertRuleResponse_Data) XXX_Merge ¶
func (m *CreateAlertRuleResponse_Data) XXX_Merge(src proto.Message)
func (*CreateAlertRuleResponse_Data) XXX_Size ¶
func (m *CreateAlertRuleResponse_Data) XXX_Size() int
func (*CreateAlertRuleResponse_Data) XXX_Unmarshal ¶
func (m *CreateAlertRuleResponse_Data) XXX_Unmarshal(b []byte) error
type GetAlertRuleListRequest ¶
type GetAlertRuleListRequest struct { // //页数 Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"` // //分页大小 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` // //规则id, 多个用逗号分隔符 XId_In string `protobuf:"bytes,3,opt,name=_id__in,json=IdIn,proto3" json:"_id__in" form:"_id__in"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetAlertRuleList请求
func (*GetAlertRuleListRequest) Descriptor ¶
func (*GetAlertRuleListRequest) Descriptor() ([]byte, []int)
func (*GetAlertRuleListRequest) GetPage ¶
func (m *GetAlertRuleListRequest) GetPage() int32
func (*GetAlertRuleListRequest) GetPageSize ¶
func (m *GetAlertRuleListRequest) GetPageSize() int32
func (*GetAlertRuleListRequest) GetXId_In ¶
func (m *GetAlertRuleListRequest) GetXId_In() string
func (*GetAlertRuleListRequest) ProtoMessage ¶
func (*GetAlertRuleListRequest) ProtoMessage()
func (*GetAlertRuleListRequest) Reset ¶
func (m *GetAlertRuleListRequest) Reset()
func (*GetAlertRuleListRequest) String ¶
func (m *GetAlertRuleListRequest) String() string
func (*GetAlertRuleListRequest) Validate ¶
func (this *GetAlertRuleListRequest) Validate() error
func (*GetAlertRuleListRequest) XXX_DiscardUnknown ¶
func (m *GetAlertRuleListRequest) XXX_DiscardUnknown()
func (*GetAlertRuleListRequest) XXX_Marshal ¶
func (m *GetAlertRuleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAlertRuleListRequest) XXX_Merge ¶
func (m *GetAlertRuleListRequest) XXX_Merge(src proto.Message)
func (*GetAlertRuleListRequest) XXX_Size ¶
func (m *GetAlertRuleListRequest) XXX_Size() int
func (*GetAlertRuleListRequest) XXX_Unmarshal ¶
func (m *GetAlertRuleListRequest) XXX_Unmarshal(b []byte) error
type GetAlertRuleListResponse ¶
type GetAlertRuleListResponse struct { // //code Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //分页大小 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` // //页数 Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page" form:"page"` // //总数 Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total" form:"total"` // //msg Msg string `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg" form:"msg"` // //data Data []*monitor.AlertRule `protobuf:"bytes,6,rep,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetAlertRuleList返回
func (*GetAlertRuleListResponse) Descriptor ¶
func (*GetAlertRuleListResponse) Descriptor() ([]byte, []int)
func (*GetAlertRuleListResponse) GetCode ¶
func (m *GetAlertRuleListResponse) GetCode() int32
func (*GetAlertRuleListResponse) GetData ¶
func (m *GetAlertRuleListResponse) GetData() []*monitor.AlertRule
func (*GetAlertRuleListResponse) GetMsg ¶
func (m *GetAlertRuleListResponse) GetMsg() string
func (*GetAlertRuleListResponse) GetPage ¶
func (m *GetAlertRuleListResponse) GetPage() int32
func (*GetAlertRuleListResponse) GetPageSize ¶
func (m *GetAlertRuleListResponse) GetPageSize() int32
func (*GetAlertRuleListResponse) GetTotal ¶
func (m *GetAlertRuleListResponse) GetTotal() int32
func (*GetAlertRuleListResponse) ProtoMessage ¶
func (*GetAlertRuleListResponse) ProtoMessage()
func (*GetAlertRuleListResponse) Reset ¶
func (m *GetAlertRuleListResponse) Reset()
func (*GetAlertRuleListResponse) String ¶
func (m *GetAlertRuleListResponse) String() string
func (*GetAlertRuleListResponse) Validate ¶
func (this *GetAlertRuleListResponse) Validate() error
func (*GetAlertRuleListResponse) XXX_DiscardUnknown ¶
func (m *GetAlertRuleListResponse) XXX_DiscardUnknown()
func (*GetAlertRuleListResponse) XXX_Marshal ¶
func (m *GetAlertRuleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAlertRuleListResponse) XXX_Merge ¶
func (m *GetAlertRuleListResponse) XXX_Merge(src proto.Message)
func (*GetAlertRuleListResponse) XXX_Size ¶
func (m *GetAlertRuleListResponse) XXX_Size() int
func (*GetAlertRuleListResponse) XXX_Unmarshal ¶
func (m *GetAlertRuleListResponse) XXX_Unmarshal(b []byte) error
type GetAlertRuleListResponseWrapper ¶
type GetAlertRuleListResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *GetAlertRuleListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetAlertRuleListApi返回
func (*GetAlertRuleListResponseWrapper) Descriptor ¶
func (*GetAlertRuleListResponseWrapper) Descriptor() ([]byte, []int)
func (*GetAlertRuleListResponseWrapper) GetCode ¶
func (m *GetAlertRuleListResponseWrapper) GetCode() int32
func (*GetAlertRuleListResponseWrapper) GetCodeExplain ¶
func (m *GetAlertRuleListResponseWrapper) GetCodeExplain() string
func (*GetAlertRuleListResponseWrapper) GetData ¶
func (m *GetAlertRuleListResponseWrapper) GetData() *GetAlertRuleListResponse
func (*GetAlertRuleListResponseWrapper) GetError ¶
func (m *GetAlertRuleListResponseWrapper) GetError() string
func (*GetAlertRuleListResponseWrapper) ProtoMessage ¶
func (*GetAlertRuleListResponseWrapper) ProtoMessage()
func (*GetAlertRuleListResponseWrapper) Reset ¶
func (m *GetAlertRuleListResponseWrapper) Reset()
func (*GetAlertRuleListResponseWrapper) String ¶
func (m *GetAlertRuleListResponseWrapper) String() string
func (*GetAlertRuleListResponseWrapper) Validate ¶
func (this *GetAlertRuleListResponseWrapper) Validate() error
func (*GetAlertRuleListResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetAlertRuleListResponseWrapper) XXX_DiscardUnknown()
func (*GetAlertRuleListResponseWrapper) XXX_Marshal ¶
func (m *GetAlertRuleListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAlertRuleListResponseWrapper) XXX_Merge ¶
func (m *GetAlertRuleListResponseWrapper) XXX_Merge(src proto.Message)
func (*GetAlertRuleListResponseWrapper) XXX_Size ¶
func (m *GetAlertRuleListResponseWrapper) XXX_Size() int
func (*GetAlertRuleListResponseWrapper) XXX_Unmarshal ¶
func (m *GetAlertRuleListResponseWrapper) XXX_Unmarshal(b []byte) error
type ListAlertRuleAllResponse ¶
type ListAlertRuleAllResponse struct { // //code Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //msg Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg" form:"msg"` // //总数 Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total" form:"total"` // //页数 Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page" form:"page"` // //分页大小 PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` // //data Data []*monitor.AlertRule `protobuf:"bytes,6,rep,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListAlertRuleAll返回
func (*ListAlertRuleAllResponse) Descriptor ¶
func (*ListAlertRuleAllResponse) Descriptor() ([]byte, []int)
func (*ListAlertRuleAllResponse) GetCode ¶
func (m *ListAlertRuleAllResponse) GetCode() int32
func (*ListAlertRuleAllResponse) GetData ¶
func (m *ListAlertRuleAllResponse) GetData() []*monitor.AlertRule
func (*ListAlertRuleAllResponse) GetMsg ¶
func (m *ListAlertRuleAllResponse) GetMsg() string
func (*ListAlertRuleAllResponse) GetPage ¶
func (m *ListAlertRuleAllResponse) GetPage() int32
func (*ListAlertRuleAllResponse) GetPageSize ¶
func (m *ListAlertRuleAllResponse) GetPageSize() int32
func (*ListAlertRuleAllResponse) GetTotal ¶
func (m *ListAlertRuleAllResponse) GetTotal() int32
func (*ListAlertRuleAllResponse) ProtoMessage ¶
func (*ListAlertRuleAllResponse) ProtoMessage()
func (*ListAlertRuleAllResponse) Reset ¶
func (m *ListAlertRuleAllResponse) Reset()
func (*ListAlertRuleAllResponse) String ¶
func (m *ListAlertRuleAllResponse) String() string
func (*ListAlertRuleAllResponse) Validate ¶
func (this *ListAlertRuleAllResponse) Validate() error
func (*ListAlertRuleAllResponse) XXX_DiscardUnknown ¶
func (m *ListAlertRuleAllResponse) XXX_DiscardUnknown()
func (*ListAlertRuleAllResponse) XXX_Marshal ¶
func (m *ListAlertRuleAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAlertRuleAllResponse) XXX_Merge ¶
func (m *ListAlertRuleAllResponse) XXX_Merge(src proto.Message)
func (*ListAlertRuleAllResponse) XXX_Size ¶
func (m *ListAlertRuleAllResponse) XXX_Size() int
func (*ListAlertRuleAllResponse) XXX_Unmarshal ¶
func (m *ListAlertRuleAllResponse) XXX_Unmarshal(b []byte) error
type ListAlertRuleAllResponseWrapper ¶
type ListAlertRuleAllResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *ListAlertRuleAllResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListAlertRuleAllApi返回
func (*ListAlertRuleAllResponseWrapper) Descriptor ¶
func (*ListAlertRuleAllResponseWrapper) Descriptor() ([]byte, []int)
func (*ListAlertRuleAllResponseWrapper) GetCode ¶
func (m *ListAlertRuleAllResponseWrapper) GetCode() int32
func (*ListAlertRuleAllResponseWrapper) GetCodeExplain ¶
func (m *ListAlertRuleAllResponseWrapper) GetCodeExplain() string
func (*ListAlertRuleAllResponseWrapper) GetData ¶
func (m *ListAlertRuleAllResponseWrapper) GetData() *ListAlertRuleAllResponse
func (*ListAlertRuleAllResponseWrapper) GetError ¶
func (m *ListAlertRuleAllResponseWrapper) GetError() string
func (*ListAlertRuleAllResponseWrapper) ProtoMessage ¶
func (*ListAlertRuleAllResponseWrapper) ProtoMessage()
func (*ListAlertRuleAllResponseWrapper) Reset ¶
func (m *ListAlertRuleAllResponseWrapper) Reset()
func (*ListAlertRuleAllResponseWrapper) String ¶
func (m *ListAlertRuleAllResponseWrapper) String() string
func (*ListAlertRuleAllResponseWrapper) Validate ¶
func (this *ListAlertRuleAllResponseWrapper) Validate() error
func (*ListAlertRuleAllResponseWrapper) XXX_DiscardUnknown ¶
func (m *ListAlertRuleAllResponseWrapper) XXX_DiscardUnknown()
func (*ListAlertRuleAllResponseWrapper) XXX_Marshal ¶
func (m *ListAlertRuleAllResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAlertRuleAllResponseWrapper) XXX_Merge ¶
func (m *ListAlertRuleAllResponseWrapper) XXX_Merge(src proto.Message)
func (*ListAlertRuleAllResponseWrapper) XXX_Size ¶
func (m *ListAlertRuleAllResponseWrapper) XXX_Size() int
func (*ListAlertRuleAllResponseWrapper) XXX_Unmarshal ¶
func (m *ListAlertRuleAllResponseWrapper) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface { CreateAlertRule(context.Context, *monitor.AlertRule) (*CreateAlertRuleResponse, error) GetAlertRuleList(context.Context, *GetAlertRuleListRequest) (*GetAlertRuleListResponse, error) ListAlertRuleAll(context.Context, *types.Empty) (*ListAlertRuleAllResponse, error) }
Service is the server API for alert_rule service.
Click to show internal directories.
Click to hide internal directories.