Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - type BindingPolicyObjectDimension
 - type BindingPolicyObjectRequest
 - type BindingPolicyObjectResponse
 - type Client
 - func (c *Client) BindingPolicyObject(request *BindingPolicyObjectRequest) (response *BindingPolicyObjectResponse, err error)
 - func (c *Client) CreatePolicyGroup(request *CreatePolicyGroupRequest) (response *CreatePolicyGroupResponse, err error)
 - func (c *Client) DescribeAccidentEventList(request *DescribeAccidentEventListRequest) (response *DescribeAccidentEventListResponse, err error)
 - func (c *Client) DescribeBaseMetrics(request *DescribeBaseMetricsRequest) (response *DescribeBaseMetricsResponse, err error)
 - func (c *Client) DescribeProductEventList(request *DescribeProductEventListRequest) (response *DescribeProductEventListResponse, err error)
 - func (c *Client) GetMonitorData(request *GetMonitorDataRequest) (response *GetMonitorDataResponse, err error)
 - func (c *Client) ModifyAlarmReceivers(request *ModifyAlarmReceiversRequest) (response *ModifyAlarmReceiversResponse, err error)
 - func (c *Client) PutMonitorData(request *PutMonitorDataRequest) (response *PutMonitorDataResponse, err error)
 
- type CreatePolicyGroupCondition
 - type CreatePolicyGroupEventCondition
 - type CreatePolicyGroupRequest
 - type CreatePolicyGroupResponse
 - type DataPoint
 - type DescribeAccidentEventListAlarms
 - type DescribeAccidentEventListRequest
 - type DescribeAccidentEventListResponse
 - type DescribeBaseMetricsRequest
 - type DescribeBaseMetricsResponse
 - type DescribeProductEventListDimensions
 - type DescribeProductEventListEvents
 - type DescribeProductEventListEventsDimensions
 - type DescribeProductEventListEventsGroupInfo
 - type DescribeProductEventListOverView
 - type DescribeProductEventListRequest
 - type DescribeProductEventListResponse
 - type Dimension
 - type DimensionsDesc
 - type GetMonitorDataRequest
 - type GetMonitorDataResponse
 - type Instance
 - type MetricDatum
 - type MetricObjectMeaning
 - type MetricSet
 - type ModifyAlarmReceiversRequest
 - type ModifyAlarmReceiversResponse
 - type PeriodsSt
 - type PutMonitorDataRequest
 - type PutMonitorDataResponse
 - type ReceiverInfo
 
Constants ¶
      View Source
      
  
const APIVersion = "2018-07-24"
    Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingPolicyObjectDimension ¶
type BindingPolicyObjectDimension struct {
	// 地域名
	Region *string `json:"Region,omitempty" name:"Region"`
	// 地域ID
	RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"`
	// 维度信息
	Dimensions *string `json:"Dimensions,omitempty" name:"Dimensions"`
	// 事件维度信息
	EventDimensions *string `json:"EventDimensions,omitempty" name:"EventDimensions"`
}
    type BindingPolicyObjectRequest ¶
type BindingPolicyObjectRequest struct {
	*tchttp.BaseRequest
	// 策略分组Id
	GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"`
	// 必填。固定值"monitor"
	Module *string `json:"Module,omitempty" name:"Module"`
	// 实例分组ID
	InstanceGroupId *int64 `json:"InstanceGroupId,omitempty" name:"InstanceGroupId"`
	// 需要绑定的对象维度信息
	Dimensions []*BindingPolicyObjectDimension `json:"Dimensions,omitempty" name:"Dimensions" list`
}
    func NewBindingPolicyObjectRequest ¶
func NewBindingPolicyObjectRequest() (request *BindingPolicyObjectRequest)
func (*BindingPolicyObjectRequest) FromJsonString ¶
func (r *BindingPolicyObjectRequest) FromJsonString(s string) error
func (*BindingPolicyObjectRequest) ToJsonString ¶
func (r *BindingPolicyObjectRequest) ToJsonString() string
type BindingPolicyObjectResponse ¶
type BindingPolicyObjectResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewBindingPolicyObjectResponse ¶
func NewBindingPolicyObjectResponse() (response *BindingPolicyObjectResponse)
func (*BindingPolicyObjectResponse) FromJsonString ¶
func (r *BindingPolicyObjectResponse) FromJsonString(s string) error
func (*BindingPolicyObjectResponse) ToJsonString ¶
func (r *BindingPolicyObjectResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) BindingPolicyObject ¶
func (c *Client) BindingPolicyObject(request *BindingPolicyObjectRequest) (response *BindingPolicyObjectResponse, err error)
将告警策略绑定到特定对象
func (*Client) CreatePolicyGroup ¶
func (c *Client) CreatePolicyGroup(request *CreatePolicyGroupRequest) (response *CreatePolicyGroupResponse, err error)
增加策略组
func (*Client) DescribeAccidentEventList ¶
func (c *Client) DescribeAccidentEventList(request *DescribeAccidentEventListRequest) (response *DescribeAccidentEventListResponse, err error)
获取平台事件列表
func (*Client) DescribeBaseMetrics ¶
func (c *Client) DescribeBaseMetrics(request *DescribeBaseMetricsRequest) (response *DescribeBaseMetricsResponse, err error)
获取基础指标详情
func (*Client) DescribeProductEventList ¶
func (c *Client) DescribeProductEventList(request *DescribeProductEventListRequest) (response *DescribeProductEventListResponse, err error)
分页获取产品事件的列表
func (*Client) GetMonitorData ¶
func (c *Client) GetMonitorData(request *GetMonitorDataRequest) (response *GetMonitorDataResponse, err error)
获取云产品的监控数据。传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。 接口调用频率限制为:20次/秒,1200次/分钟。 若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
func (*Client) ModifyAlarmReceivers ¶
func (c *Client) ModifyAlarmReceivers(request *ModifyAlarmReceiversRequest) (response *ModifyAlarmReceiversResponse, err error)
修改告警接收人
func (*Client) PutMonitorData ¶
func (c *Client) PutMonitorData(request *PutMonitorDataRequest) (response *PutMonitorDataResponse, err error)
默认接口请求频率限制:50次/秒。 默认单租户指标上限:100个。 单次上报最多 30 个指标/值对,请求返回错误时,请求中所有的指标/值均不会被保存。
上报的时间戳为期望保存的时间戳,建议构造整数分钟时刻的时间戳。 时间戳时间范围必须为当前时间到 300 秒前之间。 同一 IP 指标对的数据需按分钟先后顺序上报。
type CreatePolicyGroupCondition ¶
type CreatePolicyGroupCondition struct {
	// 指标Id
	MetricId *int64 `json:"MetricId,omitempty" name:"MetricId"`
	// 告警发送收敛类型。0连续告警,1指数告警
	AlarmNotifyType *int64 `json:"AlarmNotifyType,omitempty" name:"AlarmNotifyType"`
	// 告警发送周期单位秒。<0 不触发, 0 只触发一次, >0 每隔triggerTime秒触发一次
	AlarmNotifyPeriod *int64 `json:"AlarmNotifyPeriod,omitempty" name:"AlarmNotifyPeriod"`
	// 比较类型,范围0-6,分别对应[>,<,>=,<=,==,!=,!]。如果指标有配置默认比较类型值可以不填。
	CalcType *int64 `json:"CalcType,omitempty" name:"CalcType"`
	// 比较的值,如果指标不必须CalcValue可不填
	CalcValue *float64 `json:"CalcValue,omitempty" name:"CalcValue"`
	// Storm检测周期单位秒,若指标有默认值可不填
	CalcPeriod *int64 `json:"CalcPeriod,omitempty" name:"CalcPeriod"`
	// 持续几个检测周期触发规则会告警
	ContinuePeriod *int64 `json:"ContinuePeriod,omitempty" name:"ContinuePeriod"`
	// 如果通过模版创建,需要传入模版中该指标的对应RuleId
	RuleId *int64 `json:"RuleId,omitempty" name:"RuleId"`
}
    type CreatePolicyGroupEventCondition ¶
type CreatePolicyGroupEventCondition struct {
	// 告警事件的Id
	EventId *int64 `json:"EventId,omitempty" name:"EventId"`
	// 告警发送收敛类型。0连续告警,1指数告警
	AlarmNotifyType *int64 `json:"AlarmNotifyType,omitempty" name:"AlarmNotifyType"`
	// 告警发送周期单位秒。<0 不触发, 0 只触发一次, >0 每隔triggerTime秒触发一次
	AlarmNotifyPeriod *int64 `json:"AlarmNotifyPeriod,omitempty" name:"AlarmNotifyPeriod"`
	// 如果通过模版创建,需要传入模版中该指标的对应RuleId
	RuleId *int64 `json:"RuleId,omitempty" name:"RuleId"`
}
    type CreatePolicyGroupRequest ¶
type CreatePolicyGroupRequest struct {
	*tchttp.BaseRequest
	// 组策略名称
	GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
	// 固定值,为"monitor"
	Module *string `json:"Module,omitempty" name:"Module"`
	// 策略组所属视图的名称,若通过模版创建,可不传入
	ViewName *string `json:"ViewName,omitempty" name:"ViewName"`
	// 策略组所属项目Id,会进行鉴权操作
	ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
	// 模版策略组Id, 通过模版创建时才需要传
	ConditionTempGroupId *int64 `json:"ConditionTempGroupId,omitempty" name:"ConditionTempGroupId"`
	// 是否屏蔽策略组,0表示不屏蔽,1表示屏蔽。不填默认为0
	IsShielded *int64 `json:"IsShielded,omitempty" name:"IsShielded"`
	// 策略组的备注信息
	Remark *string `json:"Remark,omitempty" name:"Remark"`
	// 插入时间,戳格式为Unix时间戳,不填则按后台处理时间填充
	InsertTime *int64 `json:"InsertTime,omitempty" name:"InsertTime"`
	// 策略组中的阈值告警规则
	Conditions []*CreatePolicyGroupCondition `json:"Conditions,omitempty" name:"Conditions" list`
	// 策略组中的时间告警规则
	EventConditions []*CreatePolicyGroupEventCondition `json:"EventConditions,omitempty" name:"EventConditions" list`
	// 是否为后端调用。当且仅当值为1时,后台拉取策略模版中的规则填充入Conditions以及EventConditions字段
	BackEndCall *int64 `json:"BackEndCall,omitempty" name:"BackEndCall"`
}
    func NewCreatePolicyGroupRequest ¶
func NewCreatePolicyGroupRequest() (request *CreatePolicyGroupRequest)
func (*CreatePolicyGroupRequest) FromJsonString ¶
func (r *CreatePolicyGroupRequest) FromJsonString(s string) error
func (*CreatePolicyGroupRequest) ToJsonString ¶
func (r *CreatePolicyGroupRequest) ToJsonString() string
type CreatePolicyGroupResponse ¶
type CreatePolicyGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 创建成功的策略组Id
		GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"`
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewCreatePolicyGroupResponse ¶
func NewCreatePolicyGroupResponse() (response *CreatePolicyGroupResponse)
func (*CreatePolicyGroupResponse) FromJsonString ¶
func (r *CreatePolicyGroupResponse) FromJsonString(s string) error
func (*CreatePolicyGroupResponse) ToJsonString ¶
func (r *CreatePolicyGroupResponse) ToJsonString() string
type DataPoint ¶
type DataPoint struct {
	// 实例对象维度组合
	Dimensions []*Dimension `json:"Dimensions,omitempty" name:"Dimensions" list`
	// 时间戳数组,表示那些时间点有数据,缺失的时间戳,没有数据点,可以理解为掉点了
	Timestamps []*float64 `json:"Timestamps,omitempty" name:"Timestamps" list`
	// 监控值数组,该数组和Timestamps一一对应
	Values []*float64 `json:"Values,omitempty" name:"Values" list`
}
    type DescribeAccidentEventListAlarms ¶
type DescribeAccidentEventListAlarms struct {
	// 事件分类
	// 注意:此字段可能返回 null,表示取不到有效值。
	BusinessTypeDesc *string `json:"BusinessTypeDesc,omitempty" name:"BusinessTypeDesc"`
	// 事件类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	AccidentTypeDesc *string `json:"AccidentTypeDesc,omitempty" name:"AccidentTypeDesc"`
	// 事件分类的ID,1表示服务问题,2表示其他订阅
	// 注意:此字段可能返回 null,表示取不到有效值。
	BusinessID *int64 `json:"BusinessID,omitempty" name:"BusinessID"`
	// 事件状态的ID,0表示已恢复,1表示未恢复
	// 注意:此字段可能返回 null,表示取不到有效值。
	EventStatus *int64 `json:"EventStatus,omitempty" name:"EventStatus"`
	// 影响的对象
	// 注意:此字段可能返回 null,表示取不到有效值。
	AffectResource *string `json:"AffectResource,omitempty" name:"AffectResource"`
	// 事件的地域
	// 注意:此字段可能返回 null,表示取不到有效值。
	Region *string `json:"Region,omitempty" name:"Region"`
	// 事件发生的时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	OccurTime *string `json:"OccurTime,omitempty" name:"OccurTime"`
	// 更新时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}
    type DescribeAccidentEventListRequest ¶
type DescribeAccidentEventListRequest struct {
	*tchttp.BaseRequest
	// 接口模块名,当前接口取值policy
	Module *string `json:"Module,omitempty" name:"Module"`
	// 起始时间,默认一天前的时间戳
	StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"`
	// 结束时间,默认当前时间戳
	EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"`
	// 每页返回的数量,默认20
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
	// 页偏移量,默认0
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
	// 根据UpdateTime排序的规则,取值asc或desc
	UpdateTimeOrder *string `json:"UpdateTimeOrder,omitempty" name:"UpdateTimeOrder"`
	// 根据OccurTime排序的规则,取值asc或desc(优先根据UpdateTimeOrder排序)
	OccurTimeOrder *string `json:"OccurTimeOrder,omitempty" name:"OccurTimeOrder"`
	// 根据事件类型过滤,1表示服务问题,2表示其他订阅
	AccidentType []*int64 `json:"AccidentType,omitempty" name:"AccidentType" list`
	// 根据事件过滤,1表示云服务器存储问题,2表示云服务器网络连接问题,3表示云服务器运行异常,202表示运营商网络抖动
	AccidentEvent []*int64 `json:"AccidentEvent,omitempty" name:"AccidentEvent" list`
	// 根据事件状态过滤,0表示已恢复,1表示未恢复
	AccidentStatus []*int64 `json:"AccidentStatus,omitempty" name:"AccidentStatus" list`
	// 根据事件地域过滤,gz表示广州,sh表示上海等
	AccidentRegion []*string `json:"AccidentRegion,omitempty" name:"AccidentRegion" list`
	// 根据影响资源过滤,比如ins-19a06bka
	AffectResource *string `json:"AffectResource,omitempty" name:"AffectResource"`
}
    func NewDescribeAccidentEventListRequest ¶
func NewDescribeAccidentEventListRequest() (request *DescribeAccidentEventListRequest)
func (*DescribeAccidentEventListRequest) FromJsonString ¶
func (r *DescribeAccidentEventListRequest) FromJsonString(s string) error
func (*DescribeAccidentEventListRequest) ToJsonString ¶
func (r *DescribeAccidentEventListRequest) ToJsonString() string
type DescribeAccidentEventListResponse ¶
type DescribeAccidentEventListResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 平台事件列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		Alarms []*DescribeAccidentEventListAlarms `json:"Alarms,omitempty" name:"Alarms" list`
		// 平台事件的总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		Total *int64 `json:"Total,omitempty" name:"Total"`
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewDescribeAccidentEventListResponse ¶
func NewDescribeAccidentEventListResponse() (response *DescribeAccidentEventListResponse)
func (*DescribeAccidentEventListResponse) FromJsonString ¶
func (r *DescribeAccidentEventListResponse) FromJsonString(s string) error
func (*DescribeAccidentEventListResponse) ToJsonString ¶
func (r *DescribeAccidentEventListResponse) ToJsonString() string
type DescribeBaseMetricsRequest ¶
type DescribeBaseMetricsRequest struct {
	*tchttp.BaseRequest
	// 业务命名空间
	Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
	// 指标名
	MetricName *string `json:"MetricName,omitempty" name:"MetricName"`
}
    func NewDescribeBaseMetricsRequest ¶
func NewDescribeBaseMetricsRequest() (request *DescribeBaseMetricsRequest)
func (*DescribeBaseMetricsRequest) FromJsonString ¶
func (r *DescribeBaseMetricsRequest) FromJsonString(s string) error
func (*DescribeBaseMetricsRequest) ToJsonString ¶
func (r *DescribeBaseMetricsRequest) ToJsonString() string
type DescribeBaseMetricsResponse ¶
type DescribeBaseMetricsResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 查询得到的指标描述列表
		MetricSet []*MetricSet `json:"MetricSet,omitempty" name:"MetricSet" list`
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewDescribeBaseMetricsResponse ¶
func NewDescribeBaseMetricsResponse() (response *DescribeBaseMetricsResponse)
func (*DescribeBaseMetricsResponse) FromJsonString ¶
func (r *DescribeBaseMetricsResponse) FromJsonString(s string) error
func (*DescribeBaseMetricsResponse) ToJsonString ¶
func (r *DescribeBaseMetricsResponse) ToJsonString() string
type DescribeProductEventListEvents ¶
type DescribeProductEventListEvents struct {
	// 事件ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	EventId *int64 `json:"EventId,omitempty" name:"EventId"`
	// 事件中文名
	// 注意:此字段可能返回 null,表示取不到有效值。
	EventCName *string `json:"EventCName,omitempty" name:"EventCName"`
	// 事件英文名
	// 注意:此字段可能返回 null,表示取不到有效值。
	EventEName *string `json:"EventEName,omitempty" name:"EventEName"`
	// 事件简称
	// 注意:此字段可能返回 null,表示取不到有效值。
	EventName *string `json:"EventName,omitempty" name:"EventName"`
	// 产品中文名
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductCName *string `json:"ProductCName,omitempty" name:"ProductCName"`
	// 产品英文名
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductEName *string `json:"ProductEName,omitempty" name:"ProductEName"`
	// 产品简称
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
	// 实例ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
	// 实例名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
	// 项目ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProjectId *string `json:"ProjectId,omitempty" name:"ProjectId"`
	// 地域
	// 注意:此字段可能返回 null,表示取不到有效值。
	Region *string `json:"Region,omitempty" name:"Region"`
	// 状态
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *string `json:"Status,omitempty" name:"Status"`
	// 是否支持告警
	// 注意:此字段可能返回 null,表示取不到有效值。
	SupportAlarm *int64 `json:"SupportAlarm,omitempty" name:"SupportAlarm"`
	// 事件类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	Type *string `json:"Type,omitempty" name:"Type"`
	// 开始时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"`
	// 更新时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	UpdateTime *int64 `json:"UpdateTime,omitempty" name:"UpdateTime"`
	// 实例对象信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	Dimensions []*DescribeProductEventListEventsDimensions `json:"Dimensions,omitempty" name:"Dimensions" list`
	// 实例对象附加信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	AdditionMsg []*DescribeProductEventListEventsDimensions `json:"AdditionMsg,omitempty" name:"AdditionMsg" list`
	// 是否配置告警
	// 注意:此字段可能返回 null,表示取不到有效值。
	IsAlarmConfig *int64 `json:"IsAlarmConfig,omitempty" name:"IsAlarmConfig"`
	// 策略信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	GroupInfo []*DescribeProductEventListEventsGroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo" list`
}
    type DescribeProductEventListEventsDimensions ¶
type DescribeProductEventListEventsDimensions struct {
	// 维度名(英文)
	// 注意:此字段可能返回 null,表示取不到有效值。
	Key *string `json:"Key,omitempty" name:"Key"`
	// 维度名(中文)
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitempty" name:"Name"`
	// 维度值
	// 注意:此字段可能返回 null,表示取不到有效值。
	Value *string `json:"Value,omitempty" name:"Value"`
}
    type DescribeProductEventListOverView ¶
type DescribeProductEventListOverView struct {
	// 状态变更的事件数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	StatusChangeAmount *int64 `json:"StatusChangeAmount,omitempty" name:"StatusChangeAmount"`
	// 告警状态未配置的事件数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	UnConfigAlarmAmount *int64 `json:"UnConfigAlarmAmount,omitempty" name:"UnConfigAlarmAmount"`
	// 异常事件数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	UnNormalEventAmount *int64 `json:"UnNormalEventAmount,omitempty" name:"UnNormalEventAmount"`
	// 未恢复的事件数量
	// 注意:此字段可能返回 null,表示取不到有效值。
	UnRecoverAmount *int64 `json:"UnRecoverAmount,omitempty" name:"UnRecoverAmount"`
}
    type DescribeProductEventListRequest ¶
type DescribeProductEventListRequest struct {
	*tchttp.BaseRequest
	// 接口模块名,固定值"monitor"
	Module *string `json:"Module,omitempty" name:"Module"`
	// 产品类型过滤,比如"cvm"表示云服务器
	ProductName []*string `json:"ProductName,omitempty" name:"ProductName" list`
	// 事件名称过滤,比如"guest_reboot"表示机器重启
	EventName []*string `json:"EventName,omitempty" name:"EventName" list`
	// 影响对象,比如ins-19708ino
	InstanceId []*string `json:"InstanceId,omitempty" name:"InstanceId" list`
	// 维度过滤,比如外网IP:10.0.0.1
	Dimensions []*DescribeProductEventListDimensions `json:"Dimensions,omitempty" name:"Dimensions" list`
	// 地域过滤,比如gz
	RegionList []*string `json:"RegionList,omitempty" name:"RegionList" list`
	// 事件类型过滤,取值范围["status_change","abnormal"],分别表示状态变更、异常事件
	Type []*string `json:"Type,omitempty" name:"Type" list`
	// 事件状态过滤,取值范围["recover","alarm","-"],分别表示已恢复、未恢复、无状态
	Status []*string `json:"Status,omitempty" name:"Status" list`
	// 项目ID过滤
	Project []*string `json:"Project,omitempty" name:"Project" list`
	// 告警状态配置过滤,1表示已配置,0表示未配置
	IsAlarmConfig *int64 `json:"IsAlarmConfig,omitempty" name:"IsAlarmConfig"`
	// 按更新时间排序,ASC表示升序,DESC表示降序,默认DESC
	TimeOrder *string `json:"TimeOrder,omitempty" name:"TimeOrder"`
	// 起始时间,默认一天前的时间戳
	StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"`
	// 结束时间,默认当前时间戳
	EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"`
	// 页偏移量,默认0
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
	// 每页返回的数量,默认20
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
}
    func NewDescribeProductEventListRequest ¶
func NewDescribeProductEventListRequest() (request *DescribeProductEventListRequest)
func (*DescribeProductEventListRequest) FromJsonString ¶
func (r *DescribeProductEventListRequest) FromJsonString(s string) error
func (*DescribeProductEventListRequest) ToJsonString ¶
func (r *DescribeProductEventListRequest) ToJsonString() string
type DescribeProductEventListResponse ¶
type DescribeProductEventListResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 事件列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		Events []*DescribeProductEventListEvents `json:"Events,omitempty" name:"Events" list`
		// 事件统计
		OverView *DescribeProductEventListOverView `json:"OverView,omitempty" name:"OverView"`
		// 事件总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		Total *int64 `json:"Total,omitempty" name:"Total"`
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewDescribeProductEventListResponse ¶
func NewDescribeProductEventListResponse() (response *DescribeProductEventListResponse)
func (*DescribeProductEventListResponse) FromJsonString ¶
func (r *DescribeProductEventListResponse) FromJsonString(s string) error
func (*DescribeProductEventListResponse) ToJsonString ¶
func (r *DescribeProductEventListResponse) ToJsonString() string
type DimensionsDesc ¶
type DimensionsDesc struct {
	// 维度名数组
	Dimensions []*string `json:"Dimensions,omitempty" name:"Dimensions" list`
}
    type GetMonitorDataRequest ¶
type GetMonitorDataRequest struct {
	*tchttp.BaseRequest
	// 命名空间,每个云产品会有一个命名空间
	Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
	// 指标名称,各个云产品的详细指标说明请参阅各个产品[监控接口](https://cloud.tencent.com/document/product/248/30384)文档
	MetricName *string `json:"MetricName,omitempty" name:"MetricName"`
	// 实例对象的维度组合
	Instances []*Instance `json:"Instances,omitempty" name:"Instances" list`
	// 监控统计周期。默认为取值为300,单位为s
	Period *uint64 `json:"Period,omitempty" name:"Period"`
	// 起始时间,如2018-09-22T19:51:23+08:00
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
	// 结束时间,默认为当前时间。 EndTime不能小于StartTime
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}
    func NewGetMonitorDataRequest ¶
func NewGetMonitorDataRequest() (request *GetMonitorDataRequest)
func (*GetMonitorDataRequest) FromJsonString ¶
func (r *GetMonitorDataRequest) FromJsonString(s string) error
func (*GetMonitorDataRequest) ToJsonString ¶
func (r *GetMonitorDataRequest) ToJsonString() string
type GetMonitorDataResponse ¶
type GetMonitorDataResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 统计周期
		Period *uint64 `json:"Period,omitempty" name:"Period"`
		// 指标名
		MetricName *string `json:"MetricName,omitempty" name:"MetricName"`
		// 数据点数组
		DataPoints []*DataPoint `json:"DataPoints,omitempty" name:"DataPoints" list`
		// 开始时间
		StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
		// 结束时间
		EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewGetMonitorDataResponse ¶
func NewGetMonitorDataResponse() (response *GetMonitorDataResponse)
func (*GetMonitorDataResponse) FromJsonString ¶
func (r *GetMonitorDataResponse) FromJsonString(s string) error
func (*GetMonitorDataResponse) ToJsonString ¶
func (r *GetMonitorDataResponse) ToJsonString() string
type Instance ¶
type Instance struct {
	// 实例的维度组合
	Dimensions []*Dimension `json:"Dimensions,omitempty" name:"Dimensions" list`
}
    type MetricDatum ¶
type MetricObjectMeaning ¶
type MetricSet ¶
type MetricSet struct {
	// 命名空间,每个云产品会有一个命名空间
	Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
	// 指标名称
	MetricName *string `json:"MetricName,omitempty" name:"MetricName"`
	// 指标使用的单位
	Unit *string `json:"Unit,omitempty" name:"Unit"`
	// 指标使用的单位
	UnitCname *string `json:"UnitCname,omitempty" name:"UnitCname"`
	// 指标支持的统计周期,单位是秒,如60、300
	Period []*int64 `json:"Period,omitempty" name:"Period" list`
	// 统计周期内指标方式
	Periods []*PeriodsSt `json:"Periods,omitempty" name:"Periods" list`
	// 统计指标含义解释
	Meaning *MetricObjectMeaning `json:"Meaning,omitempty" name:"Meaning"`
	// 维度描述信息
	Dimensions []*DimensionsDesc `json:"Dimensions,omitempty" name:"Dimensions" list`
}
    type ModifyAlarmReceiversRequest ¶
type ModifyAlarmReceiversRequest struct {
	*tchttp.BaseRequest
	// 需要修改接收人的策略组Id
	GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"`
	// 必填。固定为“monitor”
	Module *string `json:"Module,omitempty" name:"Module"`
	// 新接收人信息, 没有填写则删除所有接收人
	ReceiverInfos []*ReceiverInfo `json:"ReceiverInfos,omitempty" name:"ReceiverInfos" list`
}
    func NewModifyAlarmReceiversRequest ¶
func NewModifyAlarmReceiversRequest() (request *ModifyAlarmReceiversRequest)
func (*ModifyAlarmReceiversRequest) FromJsonString ¶
func (r *ModifyAlarmReceiversRequest) FromJsonString(s string) error
func (*ModifyAlarmReceiversRequest) ToJsonString ¶
func (r *ModifyAlarmReceiversRequest) ToJsonString() string
type ModifyAlarmReceiversResponse ¶
type ModifyAlarmReceiversResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewModifyAlarmReceiversResponse ¶
func NewModifyAlarmReceiversResponse() (response *ModifyAlarmReceiversResponse)
func (*ModifyAlarmReceiversResponse) FromJsonString ¶
func (r *ModifyAlarmReceiversResponse) FromJsonString(s string) error
func (*ModifyAlarmReceiversResponse) ToJsonString ¶
func (r *ModifyAlarmReceiversResponse) ToJsonString() string
type PutMonitorDataRequest ¶
type PutMonitorDataRequest struct {
	*tchttp.BaseRequest
	// 一组指标和数据
	Metrics []*MetricDatum `json:"Metrics,omitempty" name:"Metrics" list`
	// 上报时自行指定的 IP
	AnnounceIp *string `json:"AnnounceIp,omitempty" name:"AnnounceIp"`
	// 上报时自行指定的时间戳
	AnnounceTimestamp *uint64 `json:"AnnounceTimestamp,omitempty" name:"AnnounceTimestamp"`
	// 上报时自行指定的 IP 或 产品实例ID
	AnnounceInstance *string `json:"AnnounceInstance,omitempty" name:"AnnounceInstance"`
}
    func NewPutMonitorDataRequest ¶
func NewPutMonitorDataRequest() (request *PutMonitorDataRequest)
func (*PutMonitorDataRequest) FromJsonString ¶
func (r *PutMonitorDataRequest) FromJsonString(s string) error
func (*PutMonitorDataRequest) ToJsonString ¶
func (r *PutMonitorDataRequest) ToJsonString() string
type PutMonitorDataResponse ¶
type PutMonitorDataResponse struct {
	*tchttp.BaseResponse
	Response *struct {
		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}
    func NewPutMonitorDataResponse ¶
func NewPutMonitorDataResponse() (response *PutMonitorDataResponse)
func (*PutMonitorDataResponse) FromJsonString ¶
func (r *PutMonitorDataResponse) FromJsonString(s string) error
func (*PutMonitorDataResponse) ToJsonString ¶
func (r *PutMonitorDataResponse) ToJsonString() string
type ReceiverInfo ¶
type ReceiverInfo struct {
	// 告警时间段开始时间。范围[0,86400),作为unix时间戳转成北京时间后去掉日期,例如7200表示"10:0:0"
	StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"`
	// 告警时间段结束时间。含义同StartTime
	EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"`
	// 告警通知方式。可选 "SMS","SITE","EMAIL","CALL","WECHAT"
	NotifyWay []*string `json:"NotifyWay,omitempty" name:"NotifyWay" list`
	// 接收人类型。“group” 或 “user”
	ReceiverType []*string `json:"ReceiverType,omitempty" name:"ReceiverType" list`
	// Id
	Id *int64 `json:"Id,omitempty" name:"Id"`
	// 电话告警通知时机。可选"OCCUR"(告警时通知),"RECOVER"(恢复时通知)
	SendFor []*string `json:"SendFor,omitempty" name:"SendFor" list`
	// 电话告警接收者uid
	UidList []*int64 `json:"UidList,omitempty" name:"UidList" list`
	// 电话告警轮数
	RoundNumber *int64 `json:"RoundNumber,omitempty" name:"RoundNumber"`
	// 电话告警对个人间隔(秒)
	PersonInterval *int64 `json:"PersonInterval,omitempty" name:"PersonInterval"`
	// 电话告警每轮间隔(秒)
	RoundInterval *int64 `json:"RoundInterval,omitempty" name:"RoundInterval"`
	// 恢复通知方式。可选"SMS"
	RecoverNotify []*string `json:"RecoverNotify,omitempty" name:"RecoverNotify" list`
	// 是否需要电话告警触达提示。0不需要,1需要
	NeedSendNotice *int64 `json:"NeedSendNotice,omitempty" name:"NeedSendNotice"`
	// 接收组列表。通过平台接口查询到的接收组id列表
	ReceiverGroupList []*int64 `json:"ReceiverGroupList,omitempty" name:"ReceiverGroupList" list`
	// 接收人列表。通过平台接口查询到的接收人id列表
	ReceiverUserList []*int64 `json:"ReceiverUserList,omitempty" name:"ReceiverUserList" list`
}
     Click to show internal directories. 
   Click to hide internal directories.