monitor

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertConditions

type AlertConditions struct {
	//
	//告警类型
	AlertType string `protobuf:"bytes,1,opt,name=alert_type,json=alertType,proto3" json:"alert_type" form:"alert_type"`
	//
	//告警子类
	AlertSubType string `protobuf:"bytes,2,opt,name=alert_sub_type,json=alertSubType,proto3" json:"alert_sub_type" form:"alert_sub_type"`
	//
	//告警指标表
	AlertTable string `protobuf:"bytes,3,opt,name=alert_table,json=alertTable,proto3" json:"alert_table" form:"alert_table"`
	//
	//告警指标
	AttrId string `protobuf:"bytes,4,opt,name=attr_id,json=attrId,proto3" json:"attr_id" form:"attr_id"`
	//
	//告警单位
	Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit" form:"unit"`
	//
	//比较器
	Comparators          []*AlertConditions_Comparators `protobuf:"bytes,6,rep,name=comparators,proto3" json:"comparators" form:"comparators"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

告警条件

func (*AlertConditions) Descriptor

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

func (*AlertConditions) GetAlertSubType

func (m *AlertConditions) GetAlertSubType() string

func (*AlertConditions) GetAlertTable

func (m *AlertConditions) GetAlertTable() string

func (*AlertConditions) GetAlertType

func (m *AlertConditions) GetAlertType() string

func (*AlertConditions) GetAttrId

func (m *AlertConditions) GetAttrId() string

func (*AlertConditions) GetComparators

func (m *AlertConditions) GetComparators() []*AlertConditions_Comparators

func (*AlertConditions) GetUnit

func (m *AlertConditions) GetUnit() string

func (*AlertConditions) ProtoMessage

func (*AlertConditions) ProtoMessage()

func (*AlertConditions) Reset

func (m *AlertConditions) Reset()

func (*AlertConditions) String

func (m *AlertConditions) String() string

func (*AlertConditions) Validate

func (this *AlertConditions) Validate() error

func (*AlertConditions) XXX_DiscardUnknown

func (m *AlertConditions) XXX_DiscardUnknown()

func (*AlertConditions) XXX_Marshal

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

func (*AlertConditions) XXX_Merge

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

func (*AlertConditions) XXX_Size

func (m *AlertConditions) XXX_Size() int

func (*AlertConditions) XXX_Unmarshal

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

type AlertConditions_Comparators

type AlertConditions_Comparators struct {
	//
	//比较器类型:
	//bigger_than: 大于
	//smaller_than: 小于
	//equal: 等于
	//unequal: 不等于
	//include: 包含(字符串指标用)
	//exclude: 不包含(字符串指标用)
	//dynamic: 动态阈值
	//transition: 状态变更
	//
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
	//
	//阈值
	Threshold *types.Value `protobuf:"bytes,2,opt,name=threshold,proto3" json:"threshold" form:"threshold"`
	//
	//告警等级
	Level                int32    `protobuf:"varint,3,opt,name=level,proto3" json:"level" form:"level"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlertConditions_Comparators) Descriptor

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

func (*AlertConditions_Comparators) GetLevel

func (m *AlertConditions_Comparators) GetLevel() int32

func (*AlertConditions_Comparators) GetThreshold

func (m *AlertConditions_Comparators) GetThreshold() *types.Value

func (*AlertConditions_Comparators) GetType

func (m *AlertConditions_Comparators) GetType() string

func (*AlertConditions_Comparators) ProtoMessage

func (*AlertConditions_Comparators) ProtoMessage()

func (*AlertConditions_Comparators) Reset

func (m *AlertConditions_Comparators) Reset()

func (*AlertConditions_Comparators) String

func (m *AlertConditions_Comparators) String() string

func (*AlertConditions_Comparators) Validate

func (this *AlertConditions_Comparators) Validate() error

func (*AlertConditions_Comparators) XXX_DiscardUnknown

func (m *AlertConditions_Comparators) XXX_DiscardUnknown()

func (*AlertConditions_Comparators) XXX_Marshal

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

func (*AlertConditions_Comparators) XXX_Merge

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

func (*AlertConditions_Comparators) XXX_Size

func (m *AlertConditions_Comparators) XXX_Size() int

func (*AlertConditions_Comparators) XXX_Unmarshal

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

type AlertEvent

type AlertEvent struct {
	//
	//记录 ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//告警 ID
	AlertId string `protobuf:"bytes,2,opt,name=alert_id,json=alertId,proto3" json:"alert_id" form:"alert_id"`
	//
	//告警规则 ID
	RuleId string `protobuf:"bytes,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id" form:"rule_id"`
	//
	//告警是否已恢复
	IsRecover bool `protobuf:"varint,4,opt,name=is_recover,json=isRecover,proto3" json:"is_recover" form:"is_recover"`
	//
	//告警是否发送成功
	SendSucc bool `protobuf:"varint,5,opt,name=send_succ,json=sendSucc,proto3" json:"send_succ" form:"send_succ"`
	//
	//告警主题
	Subject string `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject" form:"subject"`
	//
	//告警内容
	Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content" form:"content"`
	//
	//告警来源(system:easyops平台)
	Source string `protobuf:"bytes,8,opt,name=source,proto3" json:"source" form:"source"`
	//
	//告警状态: 0-告警已发送,1-告警被收敛,2-告警恢复,3-告警被屏蔽
	Status int32 `protobuf:"varint,9,opt,name=status,proto3" json:"status" form:"status"`
	//
	//是否发送邮件成功(0:未发送/失败,1:成功)
	SendDetail int32 `protobuf:"varint,10,opt,name=send_detail,json=sendDetail,proto3" json:"send_detail" form:"send_detail"`
	//
	//告警恢复类型(auto:自动恢复,manual:手动恢复)
	RecoverType string `protobuf:"bytes,11,opt,name=recover_type,json=recoverType,proto3" json:"recover_type" form:"recover_type"`
	//
	//org
	Org int32 `protobuf:"varint,12,opt,name=org,proto3" json:"org" form:"org"`
	//
	//告警对象
	Target string `protobuf:"bytes,13,opt,name=target,proto3" json:"target" form:"target"`
	//
	//告警等级
	Level int32 `protobuf:"varint,14,opt,name=level,proto3" json:"level" form:"level"`
	//
	//告警值
	Value int32 `protobuf:"varint,15,opt,name=value,proto3" json:"value" form:"value"`
	//
	//告警持续时间
	AlertDuration float32 `protobuf:"fixed32,16,opt,name=alert_duration,json=alertDuration,proto3" json:"alert_duration" form:"alert_duration"`
	//
	//告警开始时间
	AlertBeginTime int32 `protobuf:"varint,17,opt,name=alert_begin_time,json=alertBeginTime,proto3" json:"alert_begin_time" form:"alert_begin_time"`
	//
	//告警结束时间
	AlertEndTime int32 `protobuf:"varint,18,opt,name=alert_end_time,json=alertEndTime,proto3" json:"alert_end_time" form:"alert_end_time"`
	//
	//告警时间
	Time int32 `protobuf:"varint,19,opt,name=time,proto3" json:"time" form:"time"`
	//
	//告警开始时间
	StartTime int32 `protobuf:"varint,20,opt,name=start_time,json=startTime,proto3" json:"start_time" form:"start_time"`
	//
	//插入 mongodb 时间戳
	InsertTime int32 `protobuf:"varint,21,opt,name=insert_time,json=insertTime,proto3" json:"insert_time" form:"insert_time"`
	//
	//告警接收人
	AlertReceivers []*AlertEvent_AlertReceivers `protobuf:"bytes,22,rep,name=alert_receivers,json=alertReceivers,proto3" json:"alert_receivers" form:"alert_receivers"`
	//
	//告警维度
	AlertDims []*AlertEvent_AlertDims `protobuf:"bytes,23,rep,name=alert_dims,json=alertDims,proto3" json:"alert_dims" form:"alert_dims"`
	//
	//告警发生后的动作,可以是通知或者执行工具流程
	Actions []*AlertEvent_Actions `protobuf:"bytes,24,rep,name=actions,proto3" json:"actions" form:"actions"`
	//
	//告警条件
	AlertConditions *AlertConditions `protobuf:"bytes,25,opt,name=alert_conditions,json=alertConditions,proto3" json:"alert_conditions" form:"alert_conditions"`
	//
	//模型id
	ObjectId string `protobuf:"bytes,26,opt,name=objectId,proto3" json:"objectId" form:"objectId"`
	//
	//实例id
	InstanceId           string   `protobuf:"bytes,27,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

告警事件 Model

func (*AlertEvent) Descriptor

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

func (*AlertEvent) GetActions

func (m *AlertEvent) GetActions() []*AlertEvent_Actions

func (*AlertEvent) GetAlertBeginTime

func (m *AlertEvent) GetAlertBeginTime() int32

func (*AlertEvent) GetAlertConditions

func (m *AlertEvent) GetAlertConditions() *AlertConditions

func (*AlertEvent) GetAlertDims

func (m *AlertEvent) GetAlertDims() []*AlertEvent_AlertDims

func (*AlertEvent) GetAlertDuration

func (m *AlertEvent) GetAlertDuration() float32

func (*AlertEvent) GetAlertEndTime

func (m *AlertEvent) GetAlertEndTime() int32

func (*AlertEvent) GetAlertId

func (m *AlertEvent) GetAlertId() string

func (*AlertEvent) GetAlertReceivers

func (m *AlertEvent) GetAlertReceivers() []*AlertEvent_AlertReceivers

func (*AlertEvent) GetContent

func (m *AlertEvent) GetContent() string

func (*AlertEvent) GetId

func (m *AlertEvent) GetId() string

func (*AlertEvent) GetInsertTime

func (m *AlertEvent) GetInsertTime() int32

func (*AlertEvent) GetInstanceId

func (m *AlertEvent) GetInstanceId() string

func (*AlertEvent) GetIsRecover

func (m *AlertEvent) GetIsRecover() bool

func (*AlertEvent) GetLevel

func (m *AlertEvent) GetLevel() int32

func (*AlertEvent) GetObjectId

func (m *AlertEvent) GetObjectId() string

func (*AlertEvent) GetOrg

func (m *AlertEvent) GetOrg() int32

func (*AlertEvent) GetRecoverType

func (m *AlertEvent) GetRecoverType() string

func (*AlertEvent) GetRuleId

func (m *AlertEvent) GetRuleId() string

func (*AlertEvent) GetSendDetail

func (m *AlertEvent) GetSendDetail() int32

func (*AlertEvent) GetSendSucc

func (m *AlertEvent) GetSendSucc() bool

func (*AlertEvent) GetSource

func (m *AlertEvent) GetSource() string

func (*AlertEvent) GetStartTime

func (m *AlertEvent) GetStartTime() int32

func (*AlertEvent) GetStatus

func (m *AlertEvent) GetStatus() int32

func (*AlertEvent) GetSubject

func (m *AlertEvent) GetSubject() string

func (*AlertEvent) GetTarget

func (m *AlertEvent) GetTarget() string

func (*AlertEvent) GetTime

func (m *AlertEvent) GetTime() int32

func (*AlertEvent) GetValue

func (m *AlertEvent) GetValue() int32

func (*AlertEvent) ProtoMessage

func (*AlertEvent) ProtoMessage()

func (*AlertEvent) Reset

func (m *AlertEvent) Reset()

func (*AlertEvent) String

func (m *AlertEvent) String() string

func (*AlertEvent) Validate

func (this *AlertEvent) Validate() error

func (*AlertEvent) XXX_DiscardUnknown

func (m *AlertEvent) XXX_DiscardUnknown()

func (*AlertEvent) XXX_Marshal

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

func (*AlertEvent) XXX_Merge

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

func (*AlertEvent) XXX_Size

func (m *AlertEvent) XXX_Size() int

func (*AlertEvent) XXX_Unmarshal

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

type AlertEvent_Actions

type AlertEvent_Actions struct {
	//
	//动作触发条件
	Condition *AlertEvent_Actions_Condition `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition" form:"condition"`
	//
	//动作类型
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type" form:"type"`
	//
	//告警动作执行状态(0:未执行, 1:已执行)
	Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status" form:"status"`
	//
	//告警动作是否升级
	Upgrade bool `protobuf:"varint,4,opt,name=upgrade,proto3" json:"upgrade" form:"upgrade"`
	//
	//告警动作是否执行
	Run bool `protobuf:"varint,5,opt,name=run,proto3" json:"run" form:"run"`
	//
	//告警通知方法
	Method []string `protobuf:"bytes,6,rep,name=method,proto3" json:"method" form:"method"`
	//
	//告警通知人列表
	Receivers []string `protobuf:"bytes,7,rep,name=receivers,proto3" json:"receivers" form:"receivers"`
	//
	//告警通知用户组列表
	ReceiverUserGroups []string `` /* 135-byte string literal not displayed */
	//
	//告警通知运维负责人列表
	ReceiverOwners       []*AlertEvent_Actions_ReceiverOwners `protobuf:"bytes,9,rep,name=receiver_owners,json=receiverOwners,proto3" json:"receiver_owners" form:"receiver_owners"`
	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
	XXX_unrecognized     []byte                               `json:"-"`
	XXX_sizecache        int32                                `json:"-"`
}

func (*AlertEvent_Actions) Descriptor

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

func (*AlertEvent_Actions) GetCondition

func (*AlertEvent_Actions) GetMethod

func (m *AlertEvent_Actions) GetMethod() []string

func (*AlertEvent_Actions) GetReceiverOwners

func (m *AlertEvent_Actions) GetReceiverOwners() []*AlertEvent_Actions_ReceiverOwners

func (*AlertEvent_Actions) GetReceiverUserGroups

func (m *AlertEvent_Actions) GetReceiverUserGroups() []string

func (*AlertEvent_Actions) GetReceivers

func (m *AlertEvent_Actions) GetReceivers() []string

func (*AlertEvent_Actions) GetRun

func (m *AlertEvent_Actions) GetRun() bool

func (*AlertEvent_Actions) GetStatus

func (m *AlertEvent_Actions) GetStatus() int32

func (*AlertEvent_Actions) GetType

func (m *AlertEvent_Actions) GetType() string

func (*AlertEvent_Actions) GetUpgrade

func (m *AlertEvent_Actions) GetUpgrade() bool

func (*AlertEvent_Actions) ProtoMessage

func (*AlertEvent_Actions) ProtoMessage()

func (*AlertEvent_Actions) Reset

func (m *AlertEvent_Actions) Reset()

func (*AlertEvent_Actions) String

func (m *AlertEvent_Actions) String() string

func (*AlertEvent_Actions) Validate

func (this *AlertEvent_Actions) Validate() error

func (*AlertEvent_Actions) XXX_DiscardUnknown

func (m *AlertEvent_Actions) XXX_DiscardUnknown()

func (*AlertEvent_Actions) XXX_Marshal

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

func (*AlertEvent_Actions) XXX_Merge

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

func (*AlertEvent_Actions) XXX_Size

func (m *AlertEvent_Actions) XXX_Size() int

func (*AlertEvent_Actions) XXX_Unmarshal

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

type AlertEvent_Actions_Condition

type AlertEvent_Actions_Condition struct {
	//
	//告警持续时间多久后升级,单位:分钟
	LastingFor int32 `protobuf:"varint,1,opt,name=lasting_for,json=lastingFor,proto3" json:"lasting_for" form:"lasting_for"`
	//
	//告警等级大于多少升级
	Level                int32    `protobuf:"varint,2,opt,name=level,proto3" json:"level" form:"level"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlertEvent_Actions_Condition) Descriptor

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

func (*AlertEvent_Actions_Condition) GetLastingFor

func (m *AlertEvent_Actions_Condition) GetLastingFor() int32

func (*AlertEvent_Actions_Condition) GetLevel

func (m *AlertEvent_Actions_Condition) GetLevel() int32

func (*AlertEvent_Actions_Condition) ProtoMessage

func (*AlertEvent_Actions_Condition) ProtoMessage()

func (*AlertEvent_Actions_Condition) Reset

func (m *AlertEvent_Actions_Condition) Reset()

func (*AlertEvent_Actions_Condition) String

func (*AlertEvent_Actions_Condition) Validate

func (this *AlertEvent_Actions_Condition) Validate() error

func (*AlertEvent_Actions_Condition) XXX_DiscardUnknown

func (m *AlertEvent_Actions_Condition) XXX_DiscardUnknown()

func (*AlertEvent_Actions_Condition) XXX_Marshal

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

func (*AlertEvent_Actions_Condition) XXX_Merge

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

func (*AlertEvent_Actions_Condition) XXX_Size

func (m *AlertEvent_Actions_Condition) XXX_Size() int

func (*AlertEvent_Actions_Condition) XXX_Unmarshal

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

type AlertEvent_Actions_ReceiverOwners

type AlertEvent_Actions_ReceiverOwners struct {
	//
	//描述
	Translate string `protobuf:"bytes,1,opt,name=translate,proto3" json:"translate" form:"translate"`
	//
	//模型 ID
	ObjectId string `protobuf:"bytes,2,opt,name=object_id,json=objectId,proto3" json:"object_id" form:"object_id"`
	//
	//模型属性 ID
	ObjectAttrId         string   `protobuf:"bytes,3,opt,name=object_attr_id,json=objectAttrId,proto3" json:"object_attr_id" form:"object_attr_id"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlertEvent_Actions_ReceiverOwners) Descriptor

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

func (*AlertEvent_Actions_ReceiverOwners) GetObjectAttrId

func (m *AlertEvent_Actions_ReceiverOwners) GetObjectAttrId() string

func (*AlertEvent_Actions_ReceiverOwners) GetObjectId

func (m *AlertEvent_Actions_ReceiverOwners) GetObjectId() string

func (*AlertEvent_Actions_ReceiverOwners) GetTranslate

func (m *AlertEvent_Actions_ReceiverOwners) GetTranslate() string

func (*AlertEvent_Actions_ReceiverOwners) ProtoMessage

func (*AlertEvent_Actions_ReceiverOwners) ProtoMessage()

func (*AlertEvent_Actions_ReceiverOwners) Reset

func (*AlertEvent_Actions_ReceiverOwners) String

func (*AlertEvent_Actions_ReceiverOwners) Validate

func (this *AlertEvent_Actions_ReceiverOwners) Validate() error

func (*AlertEvent_Actions_ReceiverOwners) XXX_DiscardUnknown

func (m *AlertEvent_Actions_ReceiverOwners) XXX_DiscardUnknown()

func (*AlertEvent_Actions_ReceiverOwners) XXX_Marshal

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

func (*AlertEvent_Actions_ReceiverOwners) XXX_Merge

func (*AlertEvent_Actions_ReceiverOwners) XXX_Size

func (m *AlertEvent_Actions_ReceiverOwners) XXX_Size() int

func (*AlertEvent_Actions_ReceiverOwners) XXX_Unmarshal

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

type AlertEvent_AlertDims

type AlertEvent_AlertDims struct {
	//
	//告警维度前台展示名字
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//告警维度值
	Value                *types.Struct `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*AlertEvent_AlertDims) Descriptor

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

func (*AlertEvent_AlertDims) GetName

func (m *AlertEvent_AlertDims) GetName() string

func (*AlertEvent_AlertDims) GetValue

func (m *AlertEvent_AlertDims) GetValue() *types.Struct

func (*AlertEvent_AlertDims) ProtoMessage

func (*AlertEvent_AlertDims) ProtoMessage()

func (*AlertEvent_AlertDims) Reset

func (m *AlertEvent_AlertDims) Reset()

func (*AlertEvent_AlertDims) String

func (m *AlertEvent_AlertDims) String() string

func (*AlertEvent_AlertDims) Validate

func (this *AlertEvent_AlertDims) Validate() error

func (*AlertEvent_AlertDims) XXX_DiscardUnknown

func (m *AlertEvent_AlertDims) XXX_DiscardUnknown()

func (*AlertEvent_AlertDims) XXX_Marshal

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

func (*AlertEvent_AlertDims) XXX_Merge

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

func (*AlertEvent_AlertDims) XXX_Size

func (m *AlertEvent_AlertDims) XXX_Size() int

func (*AlertEvent_AlertDims) XXX_Unmarshal

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

type AlertEvent_AlertReceivers

type AlertEvent_AlertReceivers struct {
	//
	//接收人名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//通知方式, e.g.: email
	Method               string   `protobuf:"bytes,2,opt,name=method,proto3" json:"method" form:"method"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlertEvent_AlertReceivers) Descriptor

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

func (*AlertEvent_AlertReceivers) GetMethod

func (m *AlertEvent_AlertReceivers) GetMethod() string

func (*AlertEvent_AlertReceivers) GetName

func (m *AlertEvent_AlertReceivers) GetName() string

func (*AlertEvent_AlertReceivers) ProtoMessage

func (*AlertEvent_AlertReceivers) ProtoMessage()

func (*AlertEvent_AlertReceivers) Reset

func (m *AlertEvent_AlertReceivers) Reset()

func (*AlertEvent_AlertReceivers) String

func (m *AlertEvent_AlertReceivers) String() string

func (*AlertEvent_AlertReceivers) Validate

func (this *AlertEvent_AlertReceivers) Validate() error

func (*AlertEvent_AlertReceivers) XXX_DiscardUnknown

func (m *AlertEvent_AlertReceivers) XXX_DiscardUnknown()

func (*AlertEvent_AlertReceivers) XXX_Marshal

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

func (*AlertEvent_AlertReceivers) XXX_Merge

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

func (*AlertEvent_AlertReceivers) XXX_Size

func (m *AlertEvent_AlertReceivers) XXX_Size() int

func (*AlertEvent_AlertReceivers) XXX_Unmarshal

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

type AlertRule

type AlertRule struct {
	//
	//org
	Org int32 `protobuf:"varint,1,opt,name=org,proto3" json:"org" form:"org"`
	//
	//告警规则id
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id" form:"id"`
	//
	//告警规则id
	RuleId string `protobuf:"bytes,3,opt,name=rule_id,json=ruleId,proto3" json:"rule_id" form:"rule_id"`
	//
	//告警规则名
	RuleName string `protobuf:"bytes,4,opt,name=rule_name,json=ruleName,proto3" json:"rule_name" form:"rule_name"`
	//
	//版本id
	VersionId string `protobuf:"bytes,5,opt,name=version_id,json=versionId,proto3" json:"version_id" form:"version_id"`
	//
	//告警维度
	AlertDims []*AlertRule_AlertDims `protobuf:"bytes,6,rep,name=alert_dims,json=alertDims,proto3" json:"alert_dims" form:"alert_dims"`
	//
	//规则优先级
	RulePriority int32 `protobuf:"varint,7,opt,name=rule_priority,json=rulePriority,proto3" json:"rule_priority" form:"rule_priority"`
	//
	//告警条件
	AlertConditions *AlertConditions `protobuf:"bytes,8,opt,name=alert_conditions,json=alertConditions,proto3" json:"alert_conditions" form:"alert_conditions"`
	//
	//detect_window个时间窗内, 如果有alert_count个点超出阈值范围,则告警
	DetectWindow int32 `protobuf:"varint,9,opt,name=detect_window,json=detectWindow,proto3" json:"detect_window" form:"detect_window"`
	//
	//detect_window个时间窗内, 如果有alert_count个点超出阈值范围,则告警
	AlertCount int32 `protobuf:"varint,10,opt,name=alert_count,json=alertCount,proto3" json:"alert_count" form:"alert_count"`
	//
	//告警间隔
	AlertInterval int32 `protobuf:"varint,11,opt,name=alert_interval,json=alertInterval,proto3" json:"alert_interval" form:"alert_interval"`
	//
	//告警恢复间隔
	RecoverCount int32 `protobuf:"varint,12,opt,name=recover_count,json=recoverCount,proto3" json:"recover_count" form:"recover_count"`
	//
	//告警动作(通知或者执行工具流程)
	Actions []*AlertRule_Actions `protobuf:"bytes,13,rep,name=actions,proto3" json:"actions" form:"actions"`
	//
	//告警通知模板
	Templates *AlertRule_Templates `protobuf:"bytes,14,opt,name=templates,proto3" json:"templates" form:"templates"`
	//
	//创建者
	Creator string `protobuf:"bytes,15,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间
	Ctime int32 `protobuf:"varint,16,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//最近一次改变时间
	Mtime int32 `protobuf:"varint,17,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	//
	//关联的模型实例
	Instances *AlertRule_Instances `protobuf:"bytes,18,opt,name=instances,proto3" json:"instances" form:"instances"`
	//
	//关联的模型ID
	ObjectId             string   `protobuf:"bytes,19,opt,name=objectId,proto3" json:"objectId" form:"objectId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

告警规则

func (*AlertRule) Descriptor

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

func (*AlertRule) GetActions

func (m *AlertRule) GetActions() []*AlertRule_Actions

func (*AlertRule) GetAlertConditions

func (m *AlertRule) GetAlertConditions() *AlertConditions

func (*AlertRule) GetAlertCount

func (m *AlertRule) GetAlertCount() int32

func (*AlertRule) GetAlertDims

func (m *AlertRule) GetAlertDims() []*AlertRule_AlertDims

func (*AlertRule) GetAlertInterval

func (m *AlertRule) GetAlertInterval() int32

func (*AlertRule) GetCreator

func (m *AlertRule) GetCreator() string

func (*AlertRule) GetCtime

func (m *AlertRule) GetCtime() int32

func (*AlertRule) GetDetectWindow

func (m *AlertRule) GetDetectWindow() int32

func (*AlertRule) GetId

func (m *AlertRule) GetId() string

func (*AlertRule) GetInstances

func (m *AlertRule) GetInstances() *AlertRule_Instances

func (*AlertRule) GetMtime

func (m *AlertRule) GetMtime() int32

func (*AlertRule) GetObjectId

func (m *AlertRule) GetObjectId() string

func (*AlertRule) GetOrg

func (m *AlertRule) GetOrg() int32

func (*AlertRule) GetRecoverCount

func (m *AlertRule) GetRecoverCount() int32

func (*AlertRule) GetRuleId

func (m *AlertRule) GetRuleId() string

func (*AlertRule) GetRuleName

func (m *AlertRule) GetRuleName() string

func (*AlertRule) GetRulePriority

func (m *AlertRule) GetRulePriority() int32

func (*AlertRule) GetTemplates

func (m *AlertRule) GetTemplates() *AlertRule_Templates

func (*AlertRule) GetVersionId

func (m *AlertRule) GetVersionId() string

func (*AlertRule) ProtoMessage

func (*AlertRule) ProtoMessage()

func (*AlertRule) Reset

func (m *AlertRule) Reset()

func (*AlertRule) String

func (m *AlertRule) String() string

func (*AlertRule) Validate

func (this *AlertRule) Validate() error

func (*AlertRule) XXX_DiscardUnknown

func (m *AlertRule) XXX_DiscardUnknown()

func (*AlertRule) XXX_Marshal

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

func (*AlertRule) XXX_Merge

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

func (*AlertRule) XXX_Size

func (m *AlertRule) XXX_Size() int

func (*AlertRule) XXX_Unmarshal

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

type AlertRule_Actions

type AlertRule_Actions struct {
	//
	//动作触发条件
	Condition *AlertRule_Actions_Condition `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition" form:"condition"`
	//
	//告警动作类型
	Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type" form:"type"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlertRule_Actions) Descriptor

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

func (*AlertRule_Actions) GetCondition

func (*AlertRule_Actions) GetType

func (m *AlertRule_Actions) GetType() string

func (*AlertRule_Actions) ProtoMessage

func (*AlertRule_Actions) ProtoMessage()

func (*AlertRule_Actions) Reset

func (m *AlertRule_Actions) Reset()

func (*AlertRule_Actions) String

func (m *AlertRule_Actions) String() string

func (*AlertRule_Actions) Validate

func (this *AlertRule_Actions) Validate() error

func (*AlertRule_Actions) XXX_DiscardUnknown

func (m *AlertRule_Actions) XXX_DiscardUnknown()

func (*AlertRule_Actions) XXX_Marshal

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

func (*AlertRule_Actions) XXX_Merge

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

func (*AlertRule_Actions) XXX_Size

func (m *AlertRule_Actions) XXX_Size() int

func (*AlertRule_Actions) XXX_Unmarshal

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

type AlertRule_Actions_Condition

type AlertRule_Actions_Condition struct {
	//
	//告警持续时间多久后升级(单位:分钟)
	LastingFor int32 `protobuf:"varint,1,opt,name=lasting_for,json=lastingFor,proto3" json:"lasting_for" form:"lasting_for"`
	//
	//告警等级大于多少升级
	Level                int32    `protobuf:"varint,2,opt,name=level,proto3" json:"level" form:"level"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlertRule_Actions_Condition) Descriptor

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

func (*AlertRule_Actions_Condition) GetLastingFor

func (m *AlertRule_Actions_Condition) GetLastingFor() int32

func (*AlertRule_Actions_Condition) GetLevel

func (m *AlertRule_Actions_Condition) GetLevel() int32

func (*AlertRule_Actions_Condition) ProtoMessage

func (*AlertRule_Actions_Condition) ProtoMessage()

func (*AlertRule_Actions_Condition) Reset

func (m *AlertRule_Actions_Condition) Reset()

func (*AlertRule_Actions_Condition) String

func (m *AlertRule_Actions_Condition) String() string

func (*AlertRule_Actions_Condition) Validate

func (this *AlertRule_Actions_Condition) Validate() error

func (*AlertRule_Actions_Condition) XXX_DiscardUnknown

func (m *AlertRule_Actions_Condition) XXX_DiscardUnknown()

func (*AlertRule_Actions_Condition) XXX_Marshal

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

func (*AlertRule_Actions_Condition) XXX_Merge

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

func (*AlertRule_Actions_Condition) XXX_Size

func (m *AlertRule_Actions_Condition) XXX_Size() int

func (*AlertRule_Actions_Condition) XXX_Unmarshal

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

type AlertRule_AlertDims

type AlertRule_AlertDims struct {
	//
	//告警维度前台展示名字
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//被调接口
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name" form:"display_name"`
	//
	//告警维度值数组
	Values []*AlertRule_AlertDims_Values `protobuf:"bytes,3,rep,name=values,proto3" json:"values" form:"values"`
	//
	//告警维度类型
	Type                 string   `protobuf:"bytes,4,opt,name=type,proto3" json:"type" form:"type"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlertRule_AlertDims) Descriptor

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

func (*AlertRule_AlertDims) GetDisplayName

func (m *AlertRule_AlertDims) GetDisplayName() string

func (*AlertRule_AlertDims) GetName

func (m *AlertRule_AlertDims) GetName() string

func (*AlertRule_AlertDims) GetType

func (m *AlertRule_AlertDims) GetType() string

func (*AlertRule_AlertDims) GetValues

func (*AlertRule_AlertDims) ProtoMessage

func (*AlertRule_AlertDims) ProtoMessage()

func (*AlertRule_AlertDims) Reset

func (m *AlertRule_AlertDims) Reset()

func (*AlertRule_AlertDims) String

func (m *AlertRule_AlertDims) String() string

func (*AlertRule_AlertDims) Validate

func (this *AlertRule_AlertDims) Validate() error

func (*AlertRule_AlertDims) XXX_DiscardUnknown

func (m *AlertRule_AlertDims) XXX_DiscardUnknown()

func (*AlertRule_AlertDims) XXX_Marshal

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

func (*AlertRule_AlertDims) XXX_Merge

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

func (*AlertRule_AlertDims) XXX_Size

func (m *AlertRule_AlertDims) XXX_Size() int

func (*AlertRule_AlertDims) XXX_Unmarshal

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

type AlertRule_AlertDims_Values

type AlertRule_AlertDims_Values struct {
	//
	//告警维度值
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value" form:"value"`
	//
	//告警维度前台展示值
	DisplayValue         string   `protobuf:"bytes,2,opt,name=display_value,json=displayValue,proto3" json:"display_value" form:"display_value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlertRule_AlertDims_Values) Descriptor

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

func (*AlertRule_AlertDims_Values) GetDisplayValue

func (m *AlertRule_AlertDims_Values) GetDisplayValue() string

func (*AlertRule_AlertDims_Values) GetValue

func (m *AlertRule_AlertDims_Values) GetValue() string

func (*AlertRule_AlertDims_Values) ProtoMessage

func (*AlertRule_AlertDims_Values) ProtoMessage()

func (*AlertRule_AlertDims_Values) Reset

func (m *AlertRule_AlertDims_Values) Reset()

func (*AlertRule_AlertDims_Values) String

func (m *AlertRule_AlertDims_Values) String() string

func (*AlertRule_AlertDims_Values) Validate

func (this *AlertRule_AlertDims_Values) Validate() error

func (*AlertRule_AlertDims_Values) XXX_DiscardUnknown

func (m *AlertRule_AlertDims_Values) XXX_DiscardUnknown()

func (*AlertRule_AlertDims_Values) XXX_Marshal

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

func (*AlertRule_AlertDims_Values) XXX_Merge

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

func (*AlertRule_AlertDims_Values) XXX_Size

func (m *AlertRule_AlertDims_Values) XXX_Size() int

func (*AlertRule_AlertDims_Values) XXX_Unmarshal

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

type AlertRule_Instances

type AlertRule_Instances struct {
	//
	//查询条件类型
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
	//
	//instanceId列表
	InstanceIds []string `protobuf:"bytes,2,rep,name=instanceIds,proto3" json:"instanceIds" form:"instanceIds"`
	//
	//关联实例查询条件
	Query                *types.Struct `protobuf:"bytes,3,opt,name=query,proto3" json:"query" form:"query"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*AlertRule_Instances) Descriptor

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

func (*AlertRule_Instances) GetInstanceIds

func (m *AlertRule_Instances) GetInstanceIds() []string

func (*AlertRule_Instances) GetQuery

func (m *AlertRule_Instances) GetQuery() *types.Struct

func (*AlertRule_Instances) GetType

func (m *AlertRule_Instances) GetType() string

func (*AlertRule_Instances) ProtoMessage

func (*AlertRule_Instances) ProtoMessage()

func (*AlertRule_Instances) Reset

func (m *AlertRule_Instances) Reset()

func (*AlertRule_Instances) String

func (m *AlertRule_Instances) String() string

func (*AlertRule_Instances) Validate

func (this *AlertRule_Instances) Validate() error

func (*AlertRule_Instances) XXX_DiscardUnknown

func (m *AlertRule_Instances) XXX_DiscardUnknown()

func (*AlertRule_Instances) XXX_Marshal

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

func (*AlertRule_Instances) XXX_Merge

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

func (*AlertRule_Instances) XXX_Size

func (m *AlertRule_Instances) XXX_Size() int

func (*AlertRule_Instances) XXX_Unmarshal

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

type AlertRule_Templates

type AlertRule_Templates struct {
	//
	//内容模板
	ContentTemplate string `protobuf:"bytes,1,opt,name=content_template,json=contentTemplate,proto3" json:"content_template" form:"content_template"`
	//
	//告警对象模板
	TargetTemplate string `protobuf:"bytes,2,opt,name=target_template,json=targetTemplate,proto3" json:"target_template" form:"target_template"`
	//
	//恢复内容模板
	RecoveryContentTemplate string   `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
	XXX_unrecognized        []byte   `json:"-"`
	XXX_sizecache           int32    `json:"-"`
}

func (*AlertRule_Templates) Descriptor

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

func (*AlertRule_Templates) GetContentTemplate

func (m *AlertRule_Templates) GetContentTemplate() string

func (*AlertRule_Templates) GetRecoveryContentTemplate

func (m *AlertRule_Templates) GetRecoveryContentTemplate() string

func (*AlertRule_Templates) GetTargetTemplate

func (m *AlertRule_Templates) GetTargetTemplate() string

func (*AlertRule_Templates) ProtoMessage

func (*AlertRule_Templates) ProtoMessage()

func (*AlertRule_Templates) Reset

func (m *AlertRule_Templates) Reset()

func (*AlertRule_Templates) String

func (m *AlertRule_Templates) String() string

func (*AlertRule_Templates) Validate

func (this *AlertRule_Templates) Validate() error

func (*AlertRule_Templates) XXX_DiscardUnknown

func (m *AlertRule_Templates) XXX_DiscardUnknown()

func (*AlertRule_Templates) XXX_Marshal

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

func (*AlertRule_Templates) XXX_Merge

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

func (*AlertRule_Templates) XXX_Size

func (m *AlertRule_Templates) XXX_Size() int

func (*AlertRule_Templates) XXX_Unmarshal

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

type EasyTornadoCommonPageResponse

type EasyTornadoCommonPageResponse 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"`
	//
	//记录总数
	Tatal int32 `protobuf:"varint,3,opt,name=tatal,proto3" json:"tatal" form:"tatal"`
	//
	//请求错误信息
	Msg string `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg" form:"msg"`
	//
	//请求返回码
	Code                 int32    `protobuf:"varint,5,opt,name=code,proto3" json:"code" form:"code"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

easy_tornado 返回通用页码字段

func (*EasyTornadoCommonPageResponse) Descriptor

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

func (*EasyTornadoCommonPageResponse) GetCode

func (m *EasyTornadoCommonPageResponse) GetCode() int32

func (*EasyTornadoCommonPageResponse) GetMsg

func (*EasyTornadoCommonPageResponse) GetPage

func (m *EasyTornadoCommonPageResponse) GetPage() int32

func (*EasyTornadoCommonPageResponse) GetPageSize

func (m *EasyTornadoCommonPageResponse) GetPageSize() int32

func (*EasyTornadoCommonPageResponse) GetTatal

func (m *EasyTornadoCommonPageResponse) GetTatal() int32

func (*EasyTornadoCommonPageResponse) ProtoMessage

func (*EasyTornadoCommonPageResponse) ProtoMessage()

func (*EasyTornadoCommonPageResponse) Reset

func (m *EasyTornadoCommonPageResponse) Reset()

func (*EasyTornadoCommonPageResponse) String

func (*EasyTornadoCommonPageResponse) Validate

func (this *EasyTornadoCommonPageResponse) Validate() error

func (*EasyTornadoCommonPageResponse) XXX_DiscardUnknown

func (m *EasyTornadoCommonPageResponse) XXX_DiscardUnknown()

func (*EasyTornadoCommonPageResponse) XXX_Marshal

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

func (*EasyTornadoCommonPageResponse) XXX_Merge

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

func (*EasyTornadoCommonPageResponse) XXX_Size

func (m *EasyTornadoCommonPageResponse) XXX_Size() int

func (*EasyTornadoCommonPageResponse) XXX_Unmarshal

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

type EasyTornadoCommonResponse

type EasyTornadoCommonResponse struct {
	//
	//请求错误信息
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg" form:"msg"`
	//
	//请求返回码
	Code                 int32    `protobuf:"varint,2,opt,name=code,proto3" json:"code" form:"code"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

easy_tornado 请求返回状态字段

func (*EasyTornadoCommonResponse) Descriptor

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

func (*EasyTornadoCommonResponse) GetCode

func (m *EasyTornadoCommonResponse) GetCode() int32

func (*EasyTornadoCommonResponse) GetMsg

func (m *EasyTornadoCommonResponse) GetMsg() string

func (*EasyTornadoCommonResponse) ProtoMessage

func (*EasyTornadoCommonResponse) ProtoMessage()

func (*EasyTornadoCommonResponse) Reset

func (m *EasyTornadoCommonResponse) Reset()

func (*EasyTornadoCommonResponse) String

func (m *EasyTornadoCommonResponse) String() string

func (*EasyTornadoCommonResponse) Validate

func (this *EasyTornadoCommonResponse) Validate() error

func (*EasyTornadoCommonResponse) XXX_DiscardUnknown

func (m *EasyTornadoCommonResponse) XXX_DiscardUnknown()

func (*EasyTornadoCommonResponse) XXX_Marshal

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

func (*EasyTornadoCommonResponse) XXX_Merge

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

func (*EasyTornadoCommonResponse) XXX_Size

func (m *EasyTornadoCommonResponse) XXX_Size() int

func (*EasyTornadoCommonResponse) XXX_Unmarshal

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

type Metrics

type Metrics struct {
	//
	//保持策略
	RetentionPolicy string `protobuf:"bytes,1,opt,name=retention_policy,json=retentionPolicy,proto3" json:"retention_policy" form:"retention_policy"`
	//
	//指标描述
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description" form:"description"`
	//
	//数据类型
	DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type" form:"data_type"`
	//
	//数据名称
	DataName string `protobuf:"bytes,4,opt,name=data_name,json=dataName,proto3" json:"data_name" form:"data_name"`
	//
	//CUSTOM
	Custom bool `protobuf:"varint,5,opt,name=custom,proto3" json:"custom" form:"custom"`
	//
	//指标配置版本
	Version float32 `protobuf:"fixed32,6,opt,name=version,proto3" json:"version" form:"version"`
	//
	//格式
	Formats []*Metrics_Formats `protobuf:"bytes,7,rep,name=formats,proto3" json:"formats" form:"formats"`
	//
	//ORG
	Org int32 `protobuf:"varint,8,opt,name=org,proto3" json:"org" form:"org"`
	//
	//ID
	XId string `protobuf:"bytes,9,opt,name=_id,json=Id,proto3" json:"_id" form:"_id"`
	//
	//创建者
	Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//修改者
	Modifier string `protobuf:"bytes,11,opt,name=modifier,proto3" json:"modifier" form:"modifier"`
	//
	//创建时间
	Ctime string `protobuf:"bytes,12,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//修改时间
	Mtime                string   `protobuf:"bytes,13,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

采集指标配置

func (*Metrics) Descriptor

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

func (*Metrics) GetCreator

func (m *Metrics) GetCreator() string

func (*Metrics) GetCtime

func (m *Metrics) GetCtime() string

func (*Metrics) GetCustom

func (m *Metrics) GetCustom() bool

func (*Metrics) GetDataName

func (m *Metrics) GetDataName() string

func (*Metrics) GetDataType

func (m *Metrics) GetDataType() string

func (*Metrics) GetDescription

func (m *Metrics) GetDescription() string

func (*Metrics) GetFormats

func (m *Metrics) GetFormats() []*Metrics_Formats

func (*Metrics) GetModifier

func (m *Metrics) GetModifier() string

func (*Metrics) GetMtime

func (m *Metrics) GetMtime() string

func (*Metrics) GetOrg

func (m *Metrics) GetOrg() int32

func (*Metrics) GetRetentionPolicy

func (m *Metrics) GetRetentionPolicy() string

func (*Metrics) GetVersion

func (m *Metrics) GetVersion() float32

func (*Metrics) GetXId

func (m *Metrics) GetXId() string

func (*Metrics) ProtoMessage

func (*Metrics) ProtoMessage()

func (*Metrics) Reset

func (m *Metrics) Reset()

func (*Metrics) String

func (m *Metrics) String() string

func (*Metrics) Validate

func (this *Metrics) Validate() error

func (*Metrics) XXX_DiscardUnknown

func (m *Metrics) XXX_DiscardUnknown()

func (*Metrics) XXX_Marshal

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

func (*Metrics) XXX_Merge

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

func (*Metrics) XXX_Size

func (m *Metrics) XXX_Size() int

func (*Metrics) XXX_Unmarshal

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

type Metrics_Formats

type Metrics_Formats struct {
	//
	//配置ID
	ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id" form:"config_id"`
	//
	//最大int
	MaxIntCol int32 `protobuf:"varint,2,opt,name=max_int_col,json=maxIntCol,proto3" json:"max_int_col" form:"max_int_col"`
	//
	//最大string
	MaxStringCol int32 `protobuf:"varint,3,opt,name=max_string_col,json=maxStringCol,proto3" json:"max_string_col" form:"max_string_col"`
	//
	//最大int
	MaxTextCol int32 `protobuf:"varint,4,opt,name=max_text_col,json=maxTextCol,proto3" json:"max_text_col" form:"max_text_col"`
	//
	//最大double
	MaxDoubleCol int32 `protobuf:"varint,5,opt,name=max_double_col,json=maxDoubleCol,proto3" json:"max_double_col" form:"max_double_col"`
	//
	//最大dim
	MaxDimCol int32 `protobuf:"varint,6,opt,name=max_dim_col,json=maxDimCol,proto3" json:"max_dim_col" form:"max_dim_col"`
	//
	//table
	Table string `protobuf:"bytes,7,opt,name=table,proto3" json:"table" form:"table"`
	//
	//aggregation
	Aggregation bool `protobuf:"varint,8,opt,name=aggregation,proto3" json:"aggregation" form:"aggregation"`
	//
	//字段
	Fields               []*Metrics_Formats_Fields `protobuf:"bytes,9,rep,name=fields,proto3" json:"fields" form:"fields"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*Metrics_Formats) Descriptor

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

func (*Metrics_Formats) GetAggregation

func (m *Metrics_Formats) GetAggregation() bool

func (*Metrics_Formats) GetConfigId

func (m *Metrics_Formats) GetConfigId() string

func (*Metrics_Formats) GetFields

func (m *Metrics_Formats) GetFields() []*Metrics_Formats_Fields

func (*Metrics_Formats) GetMaxDimCol

func (m *Metrics_Formats) GetMaxDimCol() int32

func (*Metrics_Formats) GetMaxDoubleCol

func (m *Metrics_Formats) GetMaxDoubleCol() int32

func (*Metrics_Formats) GetMaxIntCol

func (m *Metrics_Formats) GetMaxIntCol() int32

func (*Metrics_Formats) GetMaxStringCol

func (m *Metrics_Formats) GetMaxStringCol() int32

func (*Metrics_Formats) GetMaxTextCol

func (m *Metrics_Formats) GetMaxTextCol() int32

func (*Metrics_Formats) GetTable

func (m *Metrics_Formats) GetTable() string

func (*Metrics_Formats) ProtoMessage

func (*Metrics_Formats) ProtoMessage()

func (*Metrics_Formats) Reset

func (m *Metrics_Formats) Reset()

func (*Metrics_Formats) String

func (m *Metrics_Formats) String() string

func (*Metrics_Formats) Validate

func (this *Metrics_Formats) Validate() error

func (*Metrics_Formats) XXX_DiscardUnknown

func (m *Metrics_Formats) XXX_DiscardUnknown()

func (*Metrics_Formats) XXX_Marshal

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

func (*Metrics_Formats) XXX_Merge

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

func (*Metrics_Formats) XXX_Size

func (m *Metrics_Formats) XXX_Size() int

func (*Metrics_Formats) XXX_Unmarshal

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

type Metrics_Formats_Fields

type Metrics_Formats_Fields struct {
	//
	//字段类型
	FieldType string `protobuf:"bytes,1,opt,name=field_type,json=fieldType,proto3" json:"field_type" form:"field_type"`
	//
	//字段描述
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description" form:"description"`
	//
	//字段名称
	FieldName string `protobuf:"bytes,3,opt,name=field_name,json=fieldName,proto3" json:"field_name" form:"field_name"`
	//
	//字段值类型
	FieldValueType string `protobuf:"bytes,4,opt,name=field_value_type,json=fieldValueType,proto3" json:"field_value_type" form:"field_value_type"`
	//
	//状态百分比
	StatPeriod int32 `protobuf:"varint,5,opt,name=stat_period,json=statPeriod,proto3" json:"stat_period" form:"stat_period"`
	//
	//状态类型
	StatType string `protobuf:"bytes,6,opt,name=stat_type,json=statType,proto3" json:"stat_type" form:"stat_type"`
	//
	//单位
	Unit string `protobuf:"bytes,7,opt,name=unit,proto3" json:"unit" form:"unit"`
	//
	//列名
	ColumnName           string   `protobuf:"bytes,8,opt,name=column_name,json=columnName,proto3" json:"column_name" form:"column_name"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Metrics_Formats_Fields) Descriptor

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

func (*Metrics_Formats_Fields) GetColumnName

func (m *Metrics_Formats_Fields) GetColumnName() string

func (*Metrics_Formats_Fields) GetDescription

func (m *Metrics_Formats_Fields) GetDescription() string

func (*Metrics_Formats_Fields) GetFieldName

func (m *Metrics_Formats_Fields) GetFieldName() string

func (*Metrics_Formats_Fields) GetFieldType

func (m *Metrics_Formats_Fields) GetFieldType() string

func (*Metrics_Formats_Fields) GetFieldValueType

func (m *Metrics_Formats_Fields) GetFieldValueType() string

func (*Metrics_Formats_Fields) GetStatPeriod

func (m *Metrics_Formats_Fields) GetStatPeriod() int32

func (*Metrics_Formats_Fields) GetStatType

func (m *Metrics_Formats_Fields) GetStatType() string

func (*Metrics_Formats_Fields) GetUnit

func (m *Metrics_Formats_Fields) GetUnit() string

func (*Metrics_Formats_Fields) ProtoMessage

func (*Metrics_Formats_Fields) ProtoMessage()

func (*Metrics_Formats_Fields) Reset

func (m *Metrics_Formats_Fields) Reset()

func (*Metrics_Formats_Fields) String

func (m *Metrics_Formats_Fields) String() string

func (*Metrics_Formats_Fields) Validate

func (this *Metrics_Formats_Fields) Validate() error

func (*Metrics_Formats_Fields) XXX_DiscardUnknown

func (m *Metrics_Formats_Fields) XXX_DiscardUnknown()

func (*Metrics_Formats_Fields) XXX_Marshal

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

func (*Metrics_Formats_Fields) XXX_Merge

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

func (*Metrics_Formats_Fields) XXX_Size

func (m *Metrics_Formats_Fields) XXX_Size() int

func (*Metrics_Formats_Fields) XXX_Unmarshal

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

type TransalteRule

type TransalteRule struct {
	//
	//类别
	Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category" form:"category"`
	//
	//翻译规则名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
	//
	//翻译字段
	TranslateFields []*TransalteRule_TranslateFields `protobuf:"bytes,3,rep,name=translate_fields,json=translateFields,proto3" json:"translate_fields" form:"translate_fields"`
	//
	//关联模型id
	ObjectId string `protobuf:"bytes,4,opt,name=object_id,json=objectId,proto3" json:"object_id" form:"object_id"`
	//
	//匹配规则
	MatchFields []*TransalteRule_MatchFields `protobuf:"bytes,5,rep,name=match_fields,json=matchFields,proto3" json:"match_fields" form:"match_fields"`
	//
	//类型
	Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type" form:"type"`
	//
	//数据源
	DataNames []string `protobuf:"bytes,7,rep,name=data_names,json=dataNames,proto3" json:"data_names" form:"data_names"`
	//
	//数据获取方法
	Fetcher string `protobuf:"bytes,8,opt,name=fetcher,proto3" json:"fetcher" form:"fetcher"`
	//
	//是否受保护
	Protected bool `protobuf:"varint,9,opt,name=protected,proto3" json:"protected" form:"protected"`
	//
	//是否启用
	Disabled bool `protobuf:"varint,10,opt,name=disabled,proto3" json:"disabled" form:"disabled"`
	//
	//org
	Org int32 `protobuf:"varint,11,opt,name=org,proto3" json:"org" form:"org"`
	//
	//翻译规则ID
	XId                  string   `protobuf:"bytes,12,opt,name=_id,json=Id,proto3" json:"_id" form:"_id"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

翻译规则

func (*TransalteRule) Descriptor

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

func (*TransalteRule) GetCategory

func (m *TransalteRule) GetCategory() string

func (*TransalteRule) GetDataNames

func (m *TransalteRule) GetDataNames() []string

func (*TransalteRule) GetDisabled

func (m *TransalteRule) GetDisabled() bool

func (*TransalteRule) GetFetcher

func (m *TransalteRule) GetFetcher() string

func (*TransalteRule) GetMatchFields

func (m *TransalteRule) GetMatchFields() []*TransalteRule_MatchFields

func (*TransalteRule) GetName

func (m *TransalteRule) GetName() string

func (*TransalteRule) GetObjectId

func (m *TransalteRule) GetObjectId() string

func (*TransalteRule) GetOrg

func (m *TransalteRule) GetOrg() int32

func (*TransalteRule) GetProtected

func (m *TransalteRule) GetProtected() bool

func (*TransalteRule) GetTranslateFields

func (m *TransalteRule) GetTranslateFields() []*TransalteRule_TranslateFields

func (*TransalteRule) GetType

func (m *TransalteRule) GetType() string

func (*TransalteRule) GetXId

func (m *TransalteRule) GetXId() string

func (*TransalteRule) ProtoMessage

func (*TransalteRule) ProtoMessage()

func (*TransalteRule) Reset

func (m *TransalteRule) Reset()

func (*TransalteRule) String

func (m *TransalteRule) String() string

func (*TransalteRule) Validate

func (this *TransalteRule) Validate() error

func (*TransalteRule) XXX_DiscardUnknown

func (m *TransalteRule) XXX_DiscardUnknown()

func (*TransalteRule) XXX_Marshal

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

func (*TransalteRule) XXX_Merge

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

func (*TransalteRule) XXX_Size

func (m *TransalteRule) XXX_Size() int

func (*TransalteRule) XXX_Unmarshal

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

type TransalteRule_MatchFields

type TransalteRule_MatchFields struct {
	//
	//上报维度
	StreamKey string `protobuf:"bytes,1,opt,name=stream_key,json=streamKey,proto3" json:"stream_key" form:"stream_key"`
	//
	//资源字段
	ObjectKey            string   `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key" form:"object_key"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransalteRule_MatchFields) Descriptor

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

func (*TransalteRule_MatchFields) GetObjectKey

func (m *TransalteRule_MatchFields) GetObjectKey() string

func (*TransalteRule_MatchFields) GetStreamKey

func (m *TransalteRule_MatchFields) GetStreamKey() string

func (*TransalteRule_MatchFields) ProtoMessage

func (*TransalteRule_MatchFields) ProtoMessage()

func (*TransalteRule_MatchFields) Reset

func (m *TransalteRule_MatchFields) Reset()

func (*TransalteRule_MatchFields) String

func (m *TransalteRule_MatchFields) String() string

func (*TransalteRule_MatchFields) Validate

func (this *TransalteRule_MatchFields) Validate() error

func (*TransalteRule_MatchFields) XXX_DiscardUnknown

func (m *TransalteRule_MatchFields) XXX_DiscardUnknown()

func (*TransalteRule_MatchFields) XXX_Marshal

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

func (*TransalteRule_MatchFields) XXX_Merge

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

func (*TransalteRule_MatchFields) XXX_Size

func (m *TransalteRule_MatchFields) XXX_Size() int

func (*TransalteRule_MatchFields) XXX_Unmarshal

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

type TransalteRule_TranslateFields

type TransalteRule_TranslateFields struct {
	//
	//输出名称
	StreamKey string `protobuf:"bytes,1,opt,name=stream_key,json=streamKey,proto3" json:"stream_key" form:"stream_key"`
	//
	//资源字段
	ObjectKey            string   `protobuf:"bytes,2,opt,name=object_key,json=objectKey,proto3" json:"object_key" form:"object_key"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransalteRule_TranslateFields) Descriptor

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

func (*TransalteRule_TranslateFields) GetObjectKey

func (m *TransalteRule_TranslateFields) GetObjectKey() string

func (*TransalteRule_TranslateFields) GetStreamKey

func (m *TransalteRule_TranslateFields) GetStreamKey() string

func (*TransalteRule_TranslateFields) ProtoMessage

func (*TransalteRule_TranslateFields) ProtoMessage()

func (*TransalteRule_TranslateFields) Reset

func (m *TransalteRule_TranslateFields) Reset()

func (*TransalteRule_TranslateFields) String

func (*TransalteRule_TranslateFields) Validate

func (this *TransalteRule_TranslateFields) Validate() error

func (*TransalteRule_TranslateFields) XXX_DiscardUnknown

func (m *TransalteRule_TranslateFields) XXX_DiscardUnknown()

func (*TransalteRule_TranslateFields) XXX_Marshal

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

func (*TransalteRule_TranslateFields) XXX_Merge

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

func (*TransalteRule_TranslateFields) XXX_Size

func (m *TransalteRule_TranslateFields) XXX_Size() int

func (*TransalteRule_TranslateFields) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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