alert_rule

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 {
	GetAllAlertRuleList(ctx context.Context, in *types.Empty) (*GetAllAlertRuleListResponse, 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 GetAllAlertRuleListResponse

type GetAllAlertRuleListResponse struct {
	//
	//code
	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"`
	//
	//返回码字符串表示
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message" form:"message"`
	//
	//data
	Data                 []*alert_manager.AlertRule `protobuf:"bytes,4,rep,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

GetAllAlertRuleList返回

func (*GetAllAlertRuleListResponse) Descriptor

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

func (*GetAllAlertRuleListResponse) GetCode

func (m *GetAllAlertRuleListResponse) GetCode() int32

func (*GetAllAlertRuleListResponse) GetCodeExplain

func (m *GetAllAlertRuleListResponse) GetCodeExplain() string

func (*GetAllAlertRuleListResponse) GetData

func (*GetAllAlertRuleListResponse) GetMessage

func (m *GetAllAlertRuleListResponse) GetMessage() string

func (*GetAllAlertRuleListResponse) ProtoMessage

func (*GetAllAlertRuleListResponse) ProtoMessage()

func (*GetAllAlertRuleListResponse) Reset

func (m *GetAllAlertRuleListResponse) Reset()

func (*GetAllAlertRuleListResponse) String

func (m *GetAllAlertRuleListResponse) String() string

func (*GetAllAlertRuleListResponse) Validate

func (this *GetAllAlertRuleListResponse) Validate() error

func (*GetAllAlertRuleListResponse) XXX_DiscardUnknown

func (m *GetAllAlertRuleListResponse) XXX_DiscardUnknown()

func (*GetAllAlertRuleListResponse) XXX_Marshal

func (m *GetAllAlertRuleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAllAlertRuleListResponse) XXX_Merge

func (m *GetAllAlertRuleListResponse) XXX_Merge(src proto.Message)

func (*GetAllAlertRuleListResponse) XXX_Size

func (m *GetAllAlertRuleListResponse) XXX_Size() int

func (*GetAllAlertRuleListResponse) XXX_Unmarshal

func (m *GetAllAlertRuleListResponse) XXX_Unmarshal(b []byte) error

type GetAllAlertRuleListResponseWrapper

type GetAllAlertRuleListResponseWrapper 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                 *GetAllAlertRuleListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

GetAllAlertRuleListApi返回

func (*GetAllAlertRuleListResponseWrapper) Descriptor

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

func (*GetAllAlertRuleListResponseWrapper) GetCode

func (*GetAllAlertRuleListResponseWrapper) GetCodeExplain

func (m *GetAllAlertRuleListResponseWrapper) GetCodeExplain() string

func (*GetAllAlertRuleListResponseWrapper) GetData

func (*GetAllAlertRuleListResponseWrapper) GetError

func (*GetAllAlertRuleListResponseWrapper) ProtoMessage

func (*GetAllAlertRuleListResponseWrapper) ProtoMessage()

func (*GetAllAlertRuleListResponseWrapper) Reset

func (*GetAllAlertRuleListResponseWrapper) String

func (*GetAllAlertRuleListResponseWrapper) Validate

func (this *GetAllAlertRuleListResponseWrapper) Validate() error

func (*GetAllAlertRuleListResponseWrapper) XXX_DiscardUnknown

func (m *GetAllAlertRuleListResponseWrapper) XXX_DiscardUnknown()

func (*GetAllAlertRuleListResponseWrapper) XXX_Marshal

func (m *GetAllAlertRuleListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAllAlertRuleListResponseWrapper) XXX_Merge

func (*GetAllAlertRuleListResponseWrapper) XXX_Size

func (*GetAllAlertRuleListResponseWrapper) XXX_Unmarshal

func (m *GetAllAlertRuleListResponseWrapper) XXX_Unmarshal(b []byte) error

type Service

type Service interface {
	GetAllAlertRuleList(context.Context, *types.Empty) (*GetAllAlertRuleListResponse, error)
}

Service is the server API for alert_rule service.

Jump to

Keyboard shortcuts

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