models

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 0 Imported by: 12 modules, 20 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTagsSpec added in v1.2.1

type AddTagsSpec struct {

	/* 应用码。调用此API前需找云监控提供  */
	AppCode string `json:"appCode"`

	/* 组id。须确保在一个APP范围内全局唯一  */
	GroupCode string `json:"groupCode"`

	/* 资源列表。总资源不能超过100个  */
	ResourceIds []string `json:"resourceIds"`

	/* 资源的产品线  */
	ServiceCode string `json:"serviceCode"`

	/* 标签名称。调用此API前需要与云监控确认可以使用的标签名称  */
	TagK string `json:"tagK"`

	/* 标签值  */
	TagV string `json:"tagV"`
}

type Alarm

type Alarm struct {

	/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
	Calculation string `json:"calculation"`

	/*  (Optional) */
	ContactGroups []string `json:"contactGroups"`

	/*  (Optional) */
	ContactPersons []string `json:"contactPersons"`

	/*  (Optional) */
	CreateTime string `json:"createTime"`

	/* 启用禁用 1启用,0禁用 (Optional) */
	Enabled int64 `json:"enabled"`

	/* 规则id (Optional) */
	Id string `json:"id"`

	/* 监控项 (Optional) */
	Metric string `json:"metric"`

	/* 规则id监控项名称 (Optional) */
	MetricName string `json:"metricName"`

	/* 通知周期 单位:小时 (Optional) */
	NoticePeriod int64 `json:"noticePeriod"`

	/*  (Optional) */
	NoticeTime string `json:"noticeTime"`

	/* >=、>、<、<=、=、!= (Optional) */
	Operation string `json:"operation"`

	/* 统计周期(单位:分钟) (Optional) */
	Period int64 `json:"period"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 此规则所应用的资源id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 报警规则对应的产品 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 监控项状态:1正常,2告警,4数据不足 (Optional) */
	Status int64 `json:"status"`

	/* 监控项附属信息 (Optional) */
	Tag string `json:"tag"`

	/* 阈值 (Optional) */
	Threshold float64 `json:"threshold"`

	/* 连续多少次后报警 (Optional) */
	Times int64 `json:"times"`

	/* 报警值 (Optional) */
	Value float64 `json:"value"`
}

type AlarmHistory

type AlarmHistory struct {

	/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
	Calculation string `json:"calculation"`

	/* 通知的联系组,如 [“联系组1”,”联系组2”] (Optional) */
	ContactGroups []string `json:"contactGroups"`

	/* 通知的联系人,如 [“联系人1”,”联系人2”] (Optional) */
	ContactPersons []string `json:"contactPersons"`

	/* 该规则是否已经被删除,1表示已经被删除,0表示未删除,被删除的规则,在使用查询规则的接口时,将不会被检索到 (Optional) */
	Deleted int `json:"deleted"`

	/* 启用禁用 1启用,0禁用 (Optional) */
	Enabled int `json:"enabled"`

	/* 规则id (Optional) */
	Id string `json:"id"`

	/* 监控项 (Optional) */
	Metric string `json:"metric"`

	/* 规则id监控项名称 (Optional) */
	MetricName string `json:"metricName"`

	/* 通知周期 单位:小时 (Optional) */
	NoticePeriod int `json:"noticePeriod"`

	/* 报警的时间 (Optional) */
	NoticeTime string `json:"noticeTime"`

	/* >=、>、<、<=、==、!= (Optional) */
	Operation string `json:"operation"`

	/* 统计周期(单位:分钟) (Optional) */
	Period int `json:"period"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 此规则所应用的资源id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 报警规则对应的产品 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 监控项附属信息 (Optional) */
	Tag string `json:"tag"`

	/* 阈值 (Optional) */
	Threshold float64 `json:"threshold"`

	/* 连续多少次后报警 (Optional) */
	Times int `json:"times"`

	/* 报警值 (Optional) */
	Value float64 `json:"value"`
}

type AlarmHistoryWithDetail added in v1.2.1

type AlarmHistoryWithDetail struct {

	/* 告警联系人 (Optional) */
	Contacts []DescribedNoticeContacts `json:"contacts"`

	/* 用于前端显示的‘触发告警级别’。从低到高分别为‘普通’, ‘紧急’, ‘严重’ (Optional) */
	NoticeLevel string `json:"noticeLevel"`

	/* noticeTime (Optional) */
	NoticeTime int64 `json:"noticeTime"`

	/*  (Optional) */
	Rule Rule `json:"rule"`

	/* 告警值 (Optional) */
	Value float64 `json:"value"`
}

type AlarmVo added in v1.2.1

type AlarmVo struct {

	/* 监控项单位 (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
	Calculation string `json:"calculation"`

	/* 联系人列表 (Optional) */
	Contacts []BaseContact `json:"contacts"`

	/*  (Optional) */
	CreateTime string `json:"createTime"`

	/* 是否删除 1正常,0删除 (Optional) */
	Deleted int64 `json:"deleted"`

	/* downSample (Optional) */
	DownSample string `json:"downSample"`

	/* 规则ID (Optional) */
	Id int64 `json:"id"`

	/* 监控项 (Optional) */
	Metric string `json:"metric"`

	/* 监控项ID (Optional) */
	MetricId int64 `json:"metricId"`

	/* 监控项名称 (Optional) */
	MetricName string `json:"metricName"`

	/*  (Optional) */
	NoticeLevel NoticeLevel `json:"noticeLevel"`

	/* 通知周期 (Optional) */
	NoticePeriod int64 `json:"noticePeriod"`

	/* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=) (Optional) */
	Operation string `json:"operation"`

	/* 统计周期(单位:分钟) (Optional) */
	Period int64 `json:"period"`

	/* 规则类型 (Optional) */
	RuleType int64 `json:"ruleType"`

	/* 规则所属资源类型 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 监控项附属信息 (Optional) */
	Tag string `json:"tag"`

	/* 多值标签 (Optional) */
	Tags interface{} `json:"tags"`

	/* 阈值 (Optional) */
	Threshold float64 `json:"threshold"`

	/* 连续多少次后报警 (Optional) */
	Times int64 `json:"times"`

	/*  (Optional) */
	UpdateTime string `json:"updateTime"`
}

type ApplyTemplateSpec added in v1.2.1

type ApplyTemplateSpec struct {

	/* 幂等性校验参数,最长36位  */
	ClientToken string `json:"clientToken"`

	/* 联系人列表 (Optional) */
	Contacts []BaseContact `json:"contacts"`

	/* dataCenters,该资源所处地域,与resourceIds一一对应  */
	DataCenters []string `json:"dataCenters"`

	/* 资源ID列表,resourceIds数量为1--40,每一项不能为空或包含*  */
	ResourceIds []string `json:"resourceIds"`

	/* 资源类型  */
	ServiceCode string `json:"serviceCode"`

	/* 标签组,模板下面规则对应的tags,与resourceIds一一对应 (Optional) */
	TagsArray []interface{} `json:"tagsArray"`

	/* 模板类型,1表示默认模板,2表示用户自定义模板  */
	TemplateType int64 `json:"templateType"`

	/* 回调content 注:仅webHookUrl和webHookContent均不为空时,才会创建webHook (Optional) */
	WebHookContent string `json:"webHookContent"`

	/* webHook协议,https或http 注:此处需和webHookUrl相匹配 (Optional) */
	WebHookProtocol string `json:"webHookProtocol"`

	/* 回调secret,用户请求签名,防伪造 (Optional) */
	WebHookSecret string `json:"webHookSecret"`

	/* 回调url (Optional) */
	WebHookUrl string `json:"webHookUrl"`
}

type BaseContact added in v1.1.1

type BaseContact struct {

	/* 联系人id  */
	ReferenceId int64 `json:"referenceId"`

	/* 联系人id类型:0,联系人分组id;1,联系人id  */
	ReferenceType int64 `json:"referenceType"`
}

type BaseRule added in v1.1.1

type BaseRule struct {

	/* 弹性伸缩组ID (Optional) */
	AutoScalingPolicyId *string `json:"autoScalingPolicyId"`

	/* 单位  */
	CalculateUnit string `json:"calculateUnit"`

	/* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min  */
	Calculation string `json:"calculation"`

	/* 降采样函数  */
	DownSample string `json:"downSample"`

	/* 监控项  */
	Metric string `json:"metric"`

	/*  (Optional) */
	NoticeLevel *NoticeLevel `json:"noticeLevel"`

	/* 通知周期,单位:小时  */
	NoticePeriod int64 `json:"noticePeriod"`

	/* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=)  */
	Operation string `json:"operation"`

	/* 查询指标的周期,单位为分钟,目前支持的取值:1,2,5,15,30,60  */
	Period int64 `json:"period"`

	/* 规则类型, 1云监控的规则, 6站点监控。默认为1 (Optional) */
	RuleType *int64 `json:"ruleType"`

	/* 多值标签 (Optional) */
	Tags *interface{} `json:"tags"`

	/* 报警阈值,目前只开放数值类型功能  */
	Threshold float64 `json:"threshold"`

	/* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60  */
	Times int64 `json:"times"`
}

type BaseRuleT added in v1.2.1

type BaseRuleT struct {

	/* 弹性伸缩组ID (Optional) */
	AutoScalingPolicyId string `json:"autoScalingPolicyId"`

	/* 监控项单位 (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min  */
	Calculation string `json:"calculation"`

	/* 降采样函数 (Optional) */
	DownSample string `json:"downSample"`

	/* 监控项ID  */
	MetricId int64 `json:"metricId"`

	/*  (Optional) */
	NoticeLevel NoticeLevel `json:"noticeLevel"`

	/* 通知周期,单位:小时  */
	NoticePeriod int64 `json:"noticePeriod"`

	/* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=)  */
	Operation string `json:"operation"`

	/* 查询指标的周期,单位为分钟,目前支持的取值:1, 2,5,15,30,60  */
	Period int64 `json:"period"`

	/* 规则类型, 1表示云监控,2表示弹性伸缩,3表示AG,4表示AutoHeal,5表示自定义监控,6表示hawkeye  */
	RuleType int64 `json:"ruleType"`

	/* 多值标签 (Optional) */
	Tags interface{} `json:"tags"`

	/* 报警阈值,目前只开放数值类型功能  */
	Threshold float64 `json:"threshold"`

	/* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60  */
	Times int64 `json:"times"`
}

type BatchCreateAlarmsSpec added in v1.1.1

type BatchCreateAlarmsSpec struct {

	/* 幂等性校验参数,最长36位  */
	ClientToken string `json:"clientToken"`

	/* 通知的联系人 (Optional) */
	Contacts []BaseContact `json:"contacts"`

	/* 地域 (Optional) */
	Datacenter string `json:"datacenter"`

	/* 是否启用, 1表示启用规则,0表示禁用规则,默认为1 (Optional) */
	Enabled int64 `json:"enabled"`

	/* 报警规则对应实例列表,每次最多100个,例如"['resourceId1','resourceId2']"  */
	ResourceIds []string `json:"resourceIds"`

	/* 规则类型, 1表示资源监控,6表示站点监控,默认为1 (Optional) */
	RuleType int64 `json:"ruleType"`

	/* 要批量创建的规则列表  */
	Rules []BaseRule `json:"rules"`

	/* 是否保存为模板 (Optional) */
	SaveTemplate bool `json:"saveTemplate"`

	/* 产品线标识,规则对应的serviceCode  */
	ServiceCode string `json:"serviceCode"`

	/* 模板名称,保存模板时,不能为空 (Optional) */
	TemplateName string `json:"templateName"`

	/* 产品线标识,保存为模板时,模板对应的serviceCode (Optional) */
	TemplateServiceCode string `json:"templateServiceCode"`

	/* 回调content 注:仅webHookUrl和webHookContent均不为空时,才会创建webHook (Optional) */
	WebHookContent string `json:"webHookContent"`

	/* webHook协议 (Optional) */
	WebHookProtocol string `json:"webHookProtocol"`

	/* 回调secret,用户请求签名,防伪造 (Optional) */
	WebHookSecret string `json:"webHookSecret"`

	/* 回调url (Optional) */
	WebHookUrl string `json:"webHookUrl"`
}

type BatchSwitchAlarmsSpec added in v1.1.1

type BatchSwitchAlarmsSpec struct {

	/* 告警规则的ID列表  */
	Ids []string `json:"ids"`
}

type BatchUpdateWidgetError added in v1.2.1

type BatchUpdateWidgetError struct {

	/*  (Optional) */
	DashboardId string `json:"dashboardId"`

	/*  (Optional) */
	Error string `json:"error"`

	/*  (Optional) */
	WidgetId string `json:"widgetId"`
}

type BatchUpdateWidgetOut added in v1.2.1

type BatchUpdateWidgetOut struct {

	/*  (Optional) */
	Errors []BatchUpdateWidgetError `json:"errors"`

	/*  (Optional) */
	Suc int64 `json:"suc"`
}

type BatchUpdateWidgetSpec added in v1.2.1

type BatchUpdateWidgetSpec struct {

	/*  (Optional) */
	List []Widget `json:"list"`
}

type CmAlarm added in v1.2.1

type CmAlarm struct {

	/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
	Calculation string `json:"calculation"`

	/*  (Optional) */
	ContactGroups []string `json:"contactGroups"`

	/*  (Optional) */
	ContactPersons []string `json:"contactPersons"`

	/*  (Optional) */
	CreateTime string `json:"createTime"`

	/* 启用禁用 1启用,0禁用 (Optional) */
	Enabled int64 `json:"enabled"`

	/* 规则id (Optional) */
	Id string `json:"id"`

	/* 监控项 (Optional) */
	Metric string `json:"metric"`

	/* 规则id监控项名称 (Optional) */
	MetricName string `json:"metricName"`

	/* 命名空间 (Optional) */
	Namespace string `json:"namespace"`

	/* 命名空间id (Optional) */
	NamespaceUID string `json:"namespaceUID"`

	/* 通知周期 单位:小时 (Optional) */
	NoticePeriod int64 `json:"noticePeriod"`

	/*  (Optional) */
	NoticeTime string `json:"noticeTime"`

	/* 对象 (Optional) */
	Obj string `json:"obj"`

	/* 对象id (Optional) */
	ObjUID string `json:"objUID"`

	/* >=、>、<、<=、=、!= (Optional) */
	Operation string `json:"operation"`

	/* 统计周期(单位:分钟) (Optional) */
	Period int64 `json:"period"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 此规则所应用的资源id (Optional) */
	ResourceId string `json:"resourceId"`

	/* root rule id (Optional) */
	RootRuleId int64 `json:"rootRuleId"`

	/* rule id (Optional) */
	RuleId int64 `json:"ruleId"`

	/* 报警规则对应的产品 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 监控项状态:1正常,2告警,4数据不足 (Optional) */
	Status int64 `json:"status"`

	/* 监控项附属信息 (Optional) */
	Tag string `json:"tag"`

	/* 阈值 (Optional) */
	Threshold float64 `json:"threshold"`

	/* 连续多少次后报警 (Optional) */
	Times int64 `json:"times"`

	/* 报警值 (Optional) */
	Value float64 `json:"value"`
}

type CmAlarmHistory added in v1.2.1

type CmAlarmHistory struct {

	/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
	Calculation string `json:"calculation"`

	/*  (Optional) */
	ContactGroups []string `json:"contactGroups"`

	/*  (Optional) */
	ContactPersons []string `json:"contactPersons"`

	/* 该规则是否已经被删除,1表示已经被删除,0表示未删除,被删除的规则,在使用查询规则的接口时,将不会被检索到 (Optional) */
	Deleted int64 `json:"deleted"`

	/* 启用禁用 1启用,0禁用 (Optional) */
	Enabled int64 `json:"enabled"`

	/* 规则id (Optional) */
	Id string `json:"id"`

	/* 监控项 (Optional) */
	Metric string `json:"metric"`

	/* 规则id监控项名称 (Optional) */
	MetricName string `json:"metricName"`

	/* 命名空间 (Optional) */
	Namespace string `json:"namespace"`

	/* 命名空间id (Optional) */
	NamespaceUID string `json:"namespaceUID"`

	/* 通知周期 单位:小时 (Optional) */
	NoticePeriod int64 `json:"noticePeriod"`

	/*  (Optional) */
	NoticeTime string `json:"noticeTime"`

	/* 对象 (Optional) */
	Obj string `json:"obj"`

	/* 对象id (Optional) */
	ObjUID string `json:"objUID"`

	/* >=、>、<、<=、=、!= (Optional) */
	Operation string `json:"operation"`

	/* 统计周期(单位:分钟) (Optional) */
	Period int64 `json:"period"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 此规则所应用的资源id (Optional) */
	ResourceId string `json:"resourceId"`

	/* root rule id (Optional) */
	RootRuleId int64 `json:"rootRuleId"`

	/* rule id (Optional) */
	RuleId int64 `json:"ruleId"`

	/* 报警规则对应的产品 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 监控项附属信息 (Optional) */
	Tag string `json:"tag"`

	/* 阈值 (Optional) */
	Threshold float64 `json:"threshold"`

	/* 连续多少次后报警 (Optional) */
	Times int64 `json:"times"`

	/* 报警值 (Optional) */
	Value float64 `json:"value"`
}

type CreateAlarmBody

type CreateAlarmBody struct {

	/* 幂等性校验参数,最长32位,值不变则返回值不会变  */
	ClientToken string `json:"clientToken"`

	/*   */
	CreateAlarmSpec CreateAlarmSpec `json:"createAlarmSpec"`
}

type CreateAlarmParam added in v1.2.1

type CreateAlarmParam struct {

	/* 单位  */
	CalculateUnit string `json:"calculateUnit"`

	/* 统计方法,必须与定义的metric一致,可选值列表:avg,sum,max,min  */
	Calculation string `json:"calculation"`

	/* 报警规则通知的联系组,必须在控制台上已创建,例如" ['联系组1','联系组2']" (Optional) */
	ContactGroups []string `json:"contactGroups"`

	/* 报警规则通知的联系人,必须在控制台上已创建,例如 [“联系人1”,”联系人2”] (Optional) */
	ContactPersons []string `json:"contactPersons"`

	/* 降采样函数  */
	DownSample string `json:"downSample"`

	/* 根据产品线查询可用监控项列表 接口 返回的Metric字段  */
	Metric string `json:"metric"`

	/*  (Optional) */
	NoticeLevel *NoticeLevel `json:"noticeLevel"`

	/* 通知周期 单位:小时 (Optional) */
	NoticePeriod *int64 `json:"noticePeriod"`

	/* 报警比较符,只能为以下几种lte(<=),lt(<),gt(>),gte(>=),eq(==),ne(!=)  */
	Operation string `json:"operation"`

	/* 查询指标的周期,单位为分钟,目前支持的取值:1,2,5,15,30,60  */
	Period int64 `json:"period"`

	/* 报警规则对应实例列表,每次最多100个,例如"['resourceId1','resourceId2']"  */
	ResourceIds []string `json:"resourceIds"`

	/* 产品名称  */
	ServiceCode string `json:"serviceCode"`

	/* 多值标签 (Optional) */
	Tags *interface{} `json:"tags"`

	/* 报警阈值,目前只开放数值类型功能  */
	Threshold float64 `json:"threshold"`

	/* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5,10,15,30,60  */
	Times int64 `json:"times"`

	/* 回调content 注:仅webHookUrl和webHookContent均不为空时,才会创建webHook (Optional) */
	WebHookContent *string `json:"webHookContent"`

	/* webHook协议 (Optional) */
	WebHookProtocol *string `json:"webHookProtocol"`

	/* 回调secret,用户请求签名,防伪造 (Optional) */
	WebHookSecret *string `json:"webHookSecret"`

	/* 回调url (Optional) */
	WebHookUrl *string `json:"webHookUrl"`
}

type CreateAlarmSpec

type CreateAlarmSpec struct {

	/* 幂等性校验参数,最长36位  */
	ClientToken string `json:"clientToken"`

	/*   */
	CreateAlarmSpec CreateAlarmParam `json:"createAlarmSpec"`
}

type CreateCmAlarmParam added in v1.2.1

type CreateCmAlarmParam struct {

	/* 统计方法,必须与定义的metric一致,可选值列表:avg,max,sum,min  */
	Calculation string `json:"calculation"`

	/* 报警规则通知的联系组,必须在控制台上已创建,例如" ['联系组1','联系组2']" (Optional) */
	ContactGroups []string `json:"contactGroups"`

	/* 报警规则通知的联系人,必须在控制台上已创建,例如 [“联系人1”,”联系人2”] (Optional) */
	ContactPersons []string `json:"contactPersons"`

	/* 取样频次 (Optional) */
	DownSample string `json:"downSample"`

	/* 根据产品线查询可用监控项列表 接口 返回的Metric字段  */
	MetricUID string `json:"metricUID"`

	/* 命名空间  */
	NamespaceUID string `json:"namespaceUID"`

	/* 通知周期 单位:小时 (Optional) */
	NoticePeriod int64 `json:"noticePeriod"`

	/* 报警规则对应实例列表,每次最多100个,例如"['resourceId1','resourceId2']"  */
	ObjUIDs []string `json:"objUIDs"`

	/* 报警比较符,只能为以下几种<=,<,>,>=,==,!=  */
	Operation string `json:"operation"`

	/* 查询指标的周期,单位为分钟,目前支持的取值:2,5,15,30,60  */
	Period int64 `json:"period"`

	/* 报警阈值,目前只开放数值类型功能  */
	Threshold float64 `json:"threshold"`

	/* 连续探测几次都满足阈值条件时报警,可选值:1,2,3,5  */
	Times int64 `json:"times"`
}

type CreateCmAlarmSpec added in v1.2.1

type CreateCmAlarmSpec struct {

	/* 幂等性校验参数,最长36位  */
	ClientToken string `json:"clientToken"`

	/*   */
	CreateCmAlarmSpec CreateCmAlarmParam `json:"createCmAlarmSpec"`
}

type CreateDashboardSpec added in v1.2.1

type CreateDashboardSpec struct {

	/*  (Optional) */
	Name string `json:"name"`
}

type CreateProbeTaskParam added in v1.2.1

type CreateProbeTaskParam struct {

	/* 探测地址,探测类型为http:内容为url(校验http或https头);探测类型为telnet:内容为ip或域名(只允许中英文 、数字、中划线(-)、小数点(.)、开头及结尾均不能含有“-”)  */
	Address string `json:"address"`

	/* 探测间隔(单位:秒):默认值:300,取值范围[60,1200] (Optional) */
	Frequency int64 `json:"frequency"`

	/* http body:选择探测类型为1=http时有效,最长不超过1024字节
	in: query (Optional) */
	HttpBody string `json:"httpBody"`

	/* http cookie:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节 (Optional) */
	HttpCookie []KeyValue `json:"httpCookie"`

	/* http header:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节 (Optional) */
	HttpHeader []KeyValue `json:"httpHeader"`

	/* http探测方法:选择探测类型为1=http时有效,默认值为1=get,可选值:1:get、2:post、3:head (Optional) */
	HttpType int64 `json:"httpType"`

	/* task名称,不允许重复,长度不超过32字符,只允许中英文、数字、下划线_、中划线-, [0-9][a-z] [A-Z] [- _ ]  */
	Name string `json:"name"`

	/* 探测端口,探测类型为telnet时必填,取值范围 [1-65535],http类型忽略该参数
	in: query (Optional) */
	Port int64 `json:"port"`

	/* 探测类型:1=http、2=telnet  */
	ProbeType int64 `json:"probeType"`

	/* 探测源(发起对探测目标探测的云主机,需安装相应的agent才能探测)  */
	Probes []Probe `json:"probes"`

	/* 探测目标id:该探测对象的uuid,任务类型为2:rds、3:redis时必填, (Optional) */
	TargetId string `json:"targetId"`

	/* 探测目标region:该探测对象所在region,任务类型为2:rds、3:redis时必填
	in: query (Optional) */
	TargetRegion string `json:"targetRegion"`

	/* task类型:1=url/ip、2=RDS、3=redis  */
	TaskType int64 `json:"taskType"`

	/* 探测超时时间(单位:秒):默认值:5,取值范围 [1,300] (Optional) */
	Timeout int64 `json:"timeout"`
}

type CreateProbeTaskSpec added in v1.2.1

type CreateProbeTaskSpec struct {

	/* 幂等性校验参数,最长36位  */
	ClientToken string `json:"clientToken"`

	/*   */
	CreateProbeTaskSpec CreateProbeTaskParam `json:"createProbeTaskSpec"`
}

type CreateSiteMonitorSpec added in v1.2.1

type CreateSiteMonitorSpec struct {

	/*  (Optional) */
	Address string `json:"address"`

	/*  (Optional) */
	AdvanceChecked string `json:"advanceChecked"`

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	Cycle int64 `json:"cycle"`

	/*  (Optional) */
	DefaultSource string `json:"defaultSource"`

	/*  (Optional) */
	Enabled string `json:"enabled"`

	/*  (Optional) */
	HawkeyeId int64 `json:"hawkeyeId"`

	/*  (Optional) */
	HttpOption SiteMonitorHttpOption `json:"httpOption"`

	/*  (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	IsDeleted string `json:"isDeleted"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Pin string `json:"pin"`

	/*  (Optional) */
	Port string `json:"port"`

	/*  (Optional) */
	Source []SiteMonitorSource `json:"source"`

	/*  (Optional) */
	Stats interface{} `json:"stats"`

	/*  (Optional) */
	TcpOption SiteMonitorTcpOption `json:"tcpOption"`

	/*  (Optional) */
	Type string `json:"type"`

	/*  (Optional) */
	UdpOption SiteMonitorUdpOption `json:"udpOption"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`
}

type CreateTemplateSpec added in v1.2.1

type CreateTemplateSpec struct {

	/* 幂等性校验参数,最长36位  */
	ClientToken string `json:"clientToken"`

	/* 模板描述 (Optional) */
	Description string `json:"description"`

	/* 规则的资源类型  */
	RuleServiceCode string `json:"ruleServiceCode"`

	/* 模板的资源类型  */
	ServiceCode string `json:"serviceCode"`

	/* 模板名称,长度1-32个字符,只允许中英文、数字、”-”和"_"  */
	TemplateName string `json:"templateName"`

	/* 模板内包含的规则  */
	TemplateRules []BaseRuleT `json:"templateRules"`
}

type CreateWidgetSpec added in v1.2.1

type CreateWidgetSpec struct {

	/*  (Optional) */
	Aggregated string `json:"aggregated"`

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	DashboardId string `json:"dashboardId"`

	/*  (Optional) */
	Metrics []WidgetMetric `json:"metrics"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Position WidgetPosition `json:"position"`

	/*  (Optional) */
	Resources WidgetResources `json:"resources"`

	/*  (Optional) */
	ServiceCode string `json:"serviceCode"`

	/*  (Optional) */
	TopN int `json:"topN"`

	/*  (Optional) */
	Type string `json:"type"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`

	/*  (Optional) */
	WidgetId string `json:"widgetId"`
}

type Dashboard added in v1.2.1

type Dashboard struct {

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	DashboardId string `json:"dashboardId"`

	/*  (Optional) */
	Focused string `json:"focused"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Pin string `json:"pin"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`

	/*  (Optional) */
	WidgetCount int64 `json:"widgetCount"`
}

type DataPoint

type DataPoint struct {

	/*  (Optional) */
	Timestamp int64 `json:"timestamp"`

	/*  (Optional) */
	Value interface{} `json:"value"`
}

type DataPointX added in v1.1.1

type DataPointX struct {

	/* 监控指标名称,长度不超过255字节,只允许英文、数字、下划线_、点.,  [0-9][a-z] [A-Z] [. _ ], 其它会返回err  */
	Metric string `json:"metric"`

	/* 数据维度,数据类型为map类型,最多五个标签,尽量不传或少传。总长度不大于255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ],  其它会返回err (Optional) */
	Tags interface{} `json:"tags"`

	/* 秒级时间戳,早于当前时间30天的不能写入;建议的上报时间戳:上报时间间隔的整数倍,如上报间隔为5s,则建议上报的时间戳为 timestamp = current timestamp - (current timestamp % time interval) = 1487647187 - (1487647187 % 5) = 1487647187 -2 = 1487647185  */
	Timestamp int64 `json:"timestamp"`

	/* 监控的值。number or string。最大值为long.MAX_VALUE=9223372036854775807=263-1。累计类型的指标,累计到最大值后需要翻转为0,重新开始计数。翻转后不影响速率的计算。  */
	Value interface{} `json:"value"`
}

type DataTag added in v1.4.0

type DataTag struct {

	/* 标签名称  */
	TagKey string `json:"tagKey"`

	/* 标签值  */
	TagValue string `json:"tagValue"`

	/* 标签的处理方式,1 代表对于新增标签的时候,如果数据点存在该标签,跳过不处理,2、代表新增标签的时候,如果标签存在进行覆盖 (Optional) */
	Operation int64 `json:"operation"`
}

type DescribeAlarmingRulesEnd added in v1.2.1

type DescribeAlarmingRulesEnd struct {

	/* 未恢复的报警 (Optional) */
	AlarmHistoryList []AlarmHistoryWithDetail `json:"alarmHistoryList"`

	/* 总页数 (Optional) */
	NumberPages int64 `json:"numberPages"`

	/* 总记录数 (Optional) */
	NumberRecords int64 `json:"numberRecords"`

	/* 当前页码 (Optional) */
	PageNumber int64 `json:"pageNumber"`

	/* 分页大小 (Optional) */
	PageSize int64 `json:"pageSize"`
}

type DescribeCMMetricsDataSpec added in v1.2.1

type DescribeCMMetricsDataSpec struct {

	/*  (Optional) */
	AggrType string `json:"aggrType"`

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12- yyyy-MM-dd'T'HH:mm:ssZ(为空时,将由startTime与timeInterval计算得出)
	in: query (Optional) */
	EndTime string `json:"endTime"`

	/* metric id列表
	in: query (Optional) */
	MetricUID []string `json:"metricUID"`

	/* 查询时间范围的开始时间, UTC时间,格式:yyyy-MM-dd'T'HH:mm:ssZ(默认为当前时间,早于30d时,将被重置为30d)
	in: query (Optional) */
	StartTime string `json:"startTime"`

	/* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval 与 endTime 至少填一项
	in: query (Optional) */
	TimeInterval string `json:"timeInterval"`
}

type DescribeCmMetricDataByTagSpec added in v1.2.1

type DescribeCmMetricDataByTagSpec struct {

	/* 指标聚合方式,每个指标都有默认的聚合方式, 可选值包括:sum,avg.max.min (Optional) */
	AggrType string `json:"aggrType"`

	/* 指标采样方式,默认avg, 可选值包括:sum,avg,max,min,last (Optional) */
	DownSampleType string `json:"downSampleType"`

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12- yyyy-MM-dd'T'HH:mm:ssZ(为空时,将由startTime与timeInterval计算得出)
	in: query (Optional) */
	EndTime string `json:"endTime"`

	/* 是否对查询的tags分组
	in: query (Optional) */
	GroupBy bool `json:"groupBy"`

	/* 查询时间范围的开始时间, UTC时间,格式:yyyy-MM-dd'T'HH:mm:ssZ(默认为当前时间,早于30d时,将被重置为30d)
	in: query (Optional) */
	StartTime string `json:"startTime"`

	/* 自定义标签
	in: query (Optional) */
	Tags []TagFilter `json:"tags"`

	/* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval 与 endTime 至少填一项
	in: query (Optional) */
	TimeInterval string `json:"timeInterval"`
}

type DescribeMetricDataSpec added in v1.2.1

type DescribeMetricDataSpec struct {

	/* 聚合方式,默认等于downSampleType或avg,可选值参考http://opentsdb.net/docs/build/html/user_guide/query/aggregators.html?highlight=zimsum#available-aggregators (Optional) */
	AggrType string `json:"aggrType"`

	/* 采样方式,默认等于aggrType或avg,可选值参考http://opentsdb.net/docs/build/html/user_guide/query/aggregators.html?highlight=avg#available-aggregators (Optional) */
	DownSampleType string `json:"downSampleType"`

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12- yyyy-MM-dd'T'HH:mm:ssZ(为空时,将由startTime与timeInterval计算得出)
	in: query (Optional) */
	EndTime string `json:"endTime"`

	/* 是否对查询的tags分组
	in: query (Optional) */
	GroupBy bool `json:"groupBy"`

	/* 是否求速率
	in: query (Optional) */
	Rate bool `json:"rate"`

	/* 资源的uuid  */
	ResourceId string `json:"resourceId"`

	/* 资源的类型,取值vm, lb, ip, database 等  */
	ServiceCode string `json:"serviceCode"`

	/* 查询时间范围的开始时间, UTC时间,格式:yyyy-MM-dd'T'HH:mm:ssZ
	in: query (Optional) */
	StartTime string `json:"startTime"`

	/* 自定义标签/tag;至少要传一个tag,且tag.Values不为空
	in: query (Optional) */
	Tags []TagFilter `json:"tags"`

	/* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval默认为1h,当前时间往 前1h
	in: query (Optional) */
	TimeInterval string `json:"timeInterval"`
}

type DescribeRuleCountingEnd added in v1.2.1

type DescribeRuleCountingEnd struct {

	/* 处于报警状态的规则个数  status:2 (Optional) */
	AlarmRuleCount int64 `json:"alarmRuleCount"`

	/* 未启用的规则 数量 (Optional) */
	DisableRuleCount int64 `json:"disableRuleCount"`

	/* 处于正常状态的规则个数  status:1 (Optional) */
	NormalRuleCount int64 `json:"normalRuleCount"`

	/* 报警联系人列表 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 默认为true,当使用主子帐号功能,且用户没有任何规则的权限时,为false (Optional) */
	SubUserPermission bool `json:"subUserPermission"`

	/* 监控规则 总数 (Optional) */
	TotalRuleCount int64 `json:"totalRuleCount"`

	/* 处于数据不足状态的规则 个数  status:4 (Optional) */
	UnknownRuleCount int64 `json:"unknownRuleCount"`
}

type DescribeSqlserverBlockProcessOut added in v1.2.1

type DescribeSqlserverBlockProcessOut struct {

	/*  (Optional) */
	List []LastDownsampleRespItem `json:"list"`
}

type DescribeTemplateByIDSpec added in v1.2.1

type DescribeTemplateByIDSpec struct {

	/* 模板类型,区分默认模板和用户自定义模板:1表示默认模板,2表示用户自定义模板
	in: query  */
	TemplateType int64 `json:"templateType"`
}

type DescribeTopNSlowSqlSpec added in v1.2.1

type DescribeTopNSlowSqlSpec struct {

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12- yyyy-MM-dd'T'HH:mm:ssZ(为空时,将由startTime与timeInterval计算得出)
	in: query (Optional) */
	EndTime string `json:"endTime"`

	/* 资源的uuid  */
	ResourceId string `json:"resourceId"`

	/* 资源的类型,sqlserver  */
	ServiceCode string `json:"serviceCode"`

	/* 查询时间范围的开始时间, UTC时间,格式:yyyy-MM-dd'T'HH:mm:ssZ(默认为当前时间,早于30d时,将被重置为30d)
	in: query (Optional) */
	StartTime string `json:"startTime"`

	/* 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval 与 endTime 至少填一项
	in: query (Optional) */
	TimeInterval string `json:"timeInterval"`

	/* topN数量  */
	TopN int64 `json:"topN"`
}

type DescribedAlarm added in v1.1.1

type DescribedAlarm struct {

	/* 计算单位 (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/* 统计方法:平均值=avg、最大值=max、最小值=min (Optional) */
	Calculation string `json:"calculation"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 降采样方法 (Optional) */
	DownSample string `json:"downSample"`

	/* 是否启用 (Optional) */
	Enabled int64 `json:"enabled"`

	/* 报警规则ID (Optional) */
	Id string `json:"id"`

	/* 监控项 (Optional) */
	Metric string `json:"metric"`

	/* 监控项名称 (Optional) */
	MetricName string `json:"metricName"`

	/*  (Optional) */
	NoticeLevel NoticeLevel `json:"noticeLevel"`

	/* 告警周期 (Optional) */
	NoticePeriod int64 `json:"noticePeriod"`

	/* gt, gte, lt, lte, eq, ne (Optional) */
	Operation string `json:"operation"`

	/* 统计周期(单位:分钟) (Optional) */
	Period int64 `json:"period"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 资源id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 产品线编码 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 监控项状态:1正常,2告警,4数据不足 (Optional) */
	Status int64 `json:"status"`

	/* 标签 (Optional) */
	Tags interface{} `json:"tags"`

	/* 告警阈值 (Optional) */
	Threshold float64 `json:"threshold"`

	/* 告警次数 (Optional) */
	Times int64 `json:"times"`
}

type DescribedAlarmHistory added in v1.1.1

type DescribedAlarmHistory struct {

	/*  (Optional) */
	Alarm DescribedAlarm `json:"alarm"`

	/* 告警联系人 (Optional) */
	Contacts []DescribedNoticeContacts `json:"contacts"`

	/* 触发的告警级别。从低到高分别为‘common’, ‘critical’, ‘fatal’ (Optional) */
	NoticeLevelTriggered string `json:"noticeLevelTriggered"`

	/* 告警时间 (Optional) */
	NoticeTime string `json:"noticeTime"`

	/* 告警值 (Optional) */
	Value float64 `json:"value"`
}

type DescribedNoticeContacts added in v1.1.1

type DescribedNoticeContacts struct {

	/* 联系人ID (Optional) */
	ReferenceId int64 `json:"referenceId"`

	/* 联系人类型。 0 - 联系人分组id, 1 - 联系人id (Optional) */
	ReferenceType int64 `json:"referenceType"`
}

type EnableSiteMonitorReqItem added in v1.2.1

type EnableSiteMonitorReqItem struct {

	/*  (Optional) */
	Enabled string `json:"enabled"`

	/*  (Optional) */
	Id string `json:"id"`
}

type EnableSiteMonitorSpec added in v1.2.1

type EnableSiteMonitorSpec struct {

	/*  (Optional) */
	List []EnableSiteMonitorReqItem `json:"list"`
}

type Err added in v1.1.1

type Err struct {

	/*  (Optional) */
	Code int64 `json:"code"`

	/*  (Optional) */
	Details interface{} `json:"details"`

	/*  (Optional) */
	Message string `json:"message"`

	/*  (Optional) */
	Status string `json:"status"`
}

type ErrorBody

type ErrorBody struct {

	/* 错误码 (Optional) */
	Code int `json:"code"`

	/* 错误信息 (Optional) */
	Message string `json:"message"`

	/* 错误状态 (Optional) */
	Status string `json:"status"`
}

type Event added in v1.2.1

type Event struct {

	/* 探测结果 1:探测成功  2:探测失败  3:探测超时 (Optional) */
	ProbeResult int64 `json:"probeResult"`

	/* 插件状态 1:正常  2:异常 (Optional) */
	ProbeStatus int64 `json:"probeStatus"`

	/* 时间戳 (Optional) */
	Timestamp int64 `json:"timestamp"`
}

type Filter added in v1.1.1

type Filter struct {

	/*  (Optional) */
	Name *string `json:"name"`

	/*  (Optional) */
	Values []string `json:"values"`
}

type GetSiteMonitorDataPointsOut added in v1.2.1

type GetSiteMonitorDataPointsOut struct {
}

type GetWidgetDataPointsSpec added in v1.2.1

type GetWidgetDataPointsSpec struct {

	/*  (Optional) */
	Aggregated string `json:"aggregated"`

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	DashboardId string `json:"dashboardId"`

	/*  (Optional) */
	EndTime string `json:"endTime"`

	/* name为widgetId - 多个图表的id (Optional) */
	Filters []Filter `json:"filters"`

	/*  (Optional) */
	Metrics []WidgetMetric `json:"metrics"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Position WidgetPosition `json:"position"`

	/*  (Optional) */
	Resources WidgetResources `json:"resources"`

	/*  (Optional) */
	ServiceCode string `json:"serviceCode"`

	/*  (Optional) */
	StartTime string `json:"startTime"`

	/*  (Optional) */
	TopN int `json:"topN"`

	/*  (Optional) */
	Type string `json:"type"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`

	/*  (Optional) */
	WidgetId []string `json:"widgetId"`
}

type GetWidgetMetricOut added in v1.2.1

type GetWidgetMetricOut struct {

	/*  (Optional) */
	List []ServiceMetric `json:"list"`
}

type HandleTag added in v1.4.0

type HandleTag struct {

	/* 处理编码 1、复制元数据打tag 2 进行原数据上打tag  */
	HandleTagCode int64 `json:"handleTagCode"`

	/* 对于进行复制数据点打tag,需要提供metric 前缀 (Optional) */
	PrefixMetric string `json:"prefixMetric"`

	/* 打标签数据  */
	HandleTags []DataTag `json:"handleTags"`
}

type IspLocation added in v1.2.1

type IspLocation struct {

	/*  (Optional) */
	Sisp string `json:"sisp"`

	/*  (Optional) */
	SispName string `json:"sispName"`

	/*  (Optional) */
	Slocs []Location `json:"slocs"`
}

type KeyValue added in v1.2.1

type KeyValue struct {

	/* key (Optional) */
	Key string `json:"key"`

	/* value (Optional) */
	Value string `json:"value"`
}

type LastDownsampleRespItem added in v1.0.7

type LastDownsampleRespItem struct {

	/*  (Optional) */
	Metric string `json:"metric"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Value interface{} `json:"value"`
}

type Location added in v1.2.1

type Location struct {

	/*  (Optional) */
	Sloc string `json:"sloc"`

	/*  (Optional) */
	SlocName string `json:"slocName"`
}

type Metric

type Metric struct {

	/*  (Optional) */
	Aggregator string `json:"aggregator"`

	/*  (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/*  (Optional) */
	Metric string `json:"metric"`

	/*  (Optional) */
	MetricName string `json:"metricName"`

	/*  (Optional) */
	Period string `json:"period"`
}

type MetricCm added in v1.2.1

type MetricCm struct {

	/*  (Optional) */
	AggrPeriod string `json:"aggrPeriod"`

	/*  (Optional) */
	AggrType string `json:"aggrType"`

	/*  (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/*  (Optional) */
	DownSampleType string `json:"downSampleType"`

	/*  (Optional) */
	Metric string `json:"metric"`

	/*  (Optional) */
	MetricName string `json:"metricName"`

	/*  (Optional) */
	MetricUID string `json:"metricUID"`

	/*  (Optional) */
	Tags interface{} `json:"tags"`
}

type MetricData

type MetricData struct {

	/*  (Optional) */
	Data []DataPoint `json:"data"`

	/*  (Optional) */
	Metric Metric `json:"metric"`

	/*  (Optional) */
	Tags []Tag `json:"tags"`
}

type MetricDataCm added in v1.0.7

type MetricDataCm struct {

	/* 命名空间 ,长度不超过255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ],  其它会返回err  */
	Namespace string `json:"namespace"`

	/* 监控指标名称,长度不超过255字节,只允许英文、数字、下划线_、点.,  [0-9][a-z] [A-Z] [. _ ], 其它会返回err  */
	Metric string `json:"metric"`

	/* 数据维度,数据类型为map类型,支持最少一个,最多6个标签,总长度不大于1024字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ],  其它会返回err  */
	Dimensions interface{} `json:"dimensions"`

	/* 上报数据点的时间戳,只支持10位,秒级时间戳,不能写入过去30天的时间  */
	Timestamp int64 `json:"timestamp"`

	/* 数据上报类型,1为原始值,2为聚合数据。当上报聚合数据时,建议为60s的周期时行上报、否则无法正常查询  */
	Type int `json:"type"`

	/* 指标值集合,数据类型必须为map类型,key为数据类型,value为数据值,当type=1时,key只能为”value”,上报的是原始值,当type=2时,K的值可以为"avg","sum","last","max","min","count",只支持以上类型,否则会报错,value内容为整型或浮点型数字,最大值为9223372036854775807,count只支持>=0的数  */
	Values interface{} `json:"values"`

	/* 数据的单位,长度不超过64字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ],  其它会返回err (Optional) */
	Unit *string `json:"unit"`
}

type MetricDataItemCm added in v1.2.1

type MetricDataItemCm struct {

	/*  (Optional) */
	Data []DataPoint `json:"data"`

	/*  (Optional) */
	Metric MetricCm `json:"metric"`
}

type MetricDataList added in v1.0.7

type MetricDataList struct {

	/* 错误数据 (Optional) */
	ErrMetricData string `json:"errMetricData"`

	/* 错误数据描述 (Optional) */
	ErrDetail string `json:"errDetail"`
}

type MetricDataRespToFE added in v1.2.1

type MetricDataRespToFE struct {

	/*  (Optional) */
	MetricDatas []MetricData `json:"metricDatas"`
}

type MetricDetail

type MetricDetail struct {

	/* 指标的计算单位,比如bit/s、%、byte等 (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/* 监控指标英文标识 (Optional) */
	Metric string `json:"metric"`

	/* 监控指标名称 (Optional) */
	MetricName string `json:"metricName"`

	/* 资源类型标识 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 取样频次 (Optional) */
	DownSample string `json:"downSample"`
}

type MetricInfo added in v1.2.1

type MetricInfo struct {

	/* metric单位 (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/* metric (Optional) */
	Metric string `json:"metric"`

	/* metricID (Optional) */
	MetricId int64 `json:"metricId"`

	/* metric中文显示名称 (Optional) */
	MetricName string `json:"metricName"`

	/* 资源的类型 (Optional) */
	ServiceCode string `json:"serviceCode"`
}

type NoticeLevel added in v1.1.1

type NoticeLevel struct {

	/* 是否为用户自己定义的级别,自定义(true) or 固定(false)  */
	Custom bool `json:"custom"`

	/* 报警级别以及对应的阈值,是一个map[string]float64对象。key:common(一般)、critial(严重)、 fatal(紧急),value:各报警级别对应的阀值,要符合operation参数对应的递进关系。 eg: "levels":{"common":1000,"critial":10000,"fatal":15000}  */
	Levels interface{} `json:"levels"`
}

type NsInfo added in v1.2.1

type NsInfo struct {

	/* metric个数 (Optional) */
	MetricCount int64 `json:"metricCount"`

	/* 命名空间名称 (Optional) */
	NsName string `json:"nsName"`

	/* 命名空间uid (Optional) */
	NsUid string `json:"nsUid"`

	/* obj个数 (Optional) */
	ObjCount int64 `json:"objCount"`
}

type ObjInfo added in v1.2.1

type ObjInfo struct {

	/* metric列表 (Optional) */
	Metrics []string `json:"metrics"`

	/* obj名称 (Optional) */
	ObjName string `json:"objName"`

	/* obj UID (Optional) */
	ObjUid string `json:"objUid"`
}

type Probe added in v1.2.1

type Probe struct {

	/* 探测源所在云主机内网ip  */
	PrivateIp string `json:"privateIp"`

	/* 探测源所在云主机公网ip (Optional) */
	PublicIp string `json:"publicIp"`

	/* 探测源所在region  */
	Region string `json:"region"`

	/* 探测源所在云主机的uuid  */
	Uuid string `json:"uuid"`
}

type ProbeInfo added in v1.2.1

type ProbeInfo struct {

	/* 探测源的所在主机名称 (Optional) */
	Name string `json:"name"`

	/* 探测源的内网ip (Optional) */
	PrivateIp string `json:"privateIp"`

	/* 探测结果,缺点返回null,对应前端显示 "--" ,1:探测正常,2:探测失败,3:探测超时 (Optional) */
	ProbeResult int64 `json:"probeResult"`

	/* 插件状态,  1:正常,2:异常 (Optional) */
	ProbeStatus int64 `json:"probeStatus"`

	/* 探测源的公网ip (Optional) */
	PublicIp string `json:"publicIp"`

	/* 探测目标状态,1:正常,2:异常(探测失败、探测超时),缺点返回null,对应前端显示 "--" (Optional) */
	TargetStatus int64 `json:"targetStatus"`

	/* 探测源主机的uuid (Optional) */
	Uuid string `json:"uuid"`

	/* 云主机状态,对应云主机的状态,当找不到云主机,状态为"unExist" (Optional) */
	VmStatus string `json:"vmStatus"`
}

type ProbeTaskEnableSpec added in v1.2.1

type ProbeTaskEnableSpec struct {

	/* 默认:禁用; true:启用,false:禁用 (Optional) */
	Enabled bool `json:"enabled"`

	/* 要启用或禁用的探测任务的task_id列表,列表长度[1,100)  */
	TaskId []string `json:"taskId"`
}

type PutBody added in v1.1.1

type PutBody struct {

	/* 目前统一用jcloud  */
	AppCode string `json:"appCode"`

	/* 资源的类型,取值vm,ip,database,storage,disk,cdn,redis,balance,nat_gw,db_ro,vpn,ddos等,新接入的产品要求与opentapi命名的产品线名称一致  */
	ServiceCode string `json:"serviceCode"`

	/* 地域信息,如 cn-north-1 等  */
	Region string `json:"region"`

	/* 资源的唯一表示,一般为uuid  */
	ResourceId string `json:"resourceId"`

	/* 监控数据点  */
	DataPoints []DataPointX `json:"dataPoints"`
}

type Resource added in v1.2.1

type Resource struct {

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	RegionId string `json:"regionId"`

	/*  (Optional) */
	ResourceId string `json:"resourceId"`
}

type Rule added in v1.2.1

type Rule struct {

	/* AutoScalingPolicyID (Optional) */
	AutoScalingPolicyId string `json:"autoScalingPolicyId"`

	/* calculateUnit (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/* calculation (Optional) */
	Calculation string `json:"calculation"`

	/* createTime (Optional) */
	CreateTime string `json:"createTime"`

	/* dataMeaning (Optional) */
	DataMeaning int64 `json:"dataMeaning"`

	/* 地域 (Optional) */
	Datacenter string `json:"datacenter"`

	/* deleted (Optional) */
	Deleted int64 `json:"deleted"`

	/* downSample (Optional) */
	DownSample string `json:"downSample"`

	/* enableTime (Optional) */
	EnableTime string `json:"enableTime"`

	/* enabled (Optional) */
	Enabled int64 `json:"enabled"`

	/* uuid (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	Idpk int64 `json:"idpk"`

	/* isLatest (Optional) */
	IsLatest int64 `json:"isLatest"`

	/* metric (Optional) */
	Metric string `json:"metric"`

	/* metricId (Optional) */
	MetricId int64 `json:"metricId"`

	/* metricName (Optional) */
	MetricName string `json:"metricName"`

	/*  (Optional) */
	NoticeLevel NoticeLevel `json:"noticeLevel"`

	/* notice_period (Optional) */
	NoticePeriod int64 `json:"noticePeriod"`

	/* operation (Optional) */
	Operation string `json:"operation"`

	/* period (Optional) */
	Period int64 `json:"period"`

	/* pin (Optional) */
	Pin string `json:"pin"`

	/* preVersionId (Optional) */
	PreVersionId int64 `json:"preVersionId"`

	/* region (Optional) */
	Region string `json:"region"`

	/* 资源 id (Optional) */
	ResourceId string `json:"resourceId"`

	/* rootRuleID (Optional) */
	RootRuleId int64 `json:"rootRuleId"`

	/* rutye 1:经典监控  5:自定义监控   6:站点监控 7:可用性监控 (Optional) */
	RuleType int64 `json:"ruleType"`

	/* serviceCode (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* status (Optional) */
	Status int64 `json:"status"`

	/* statusTime (Optional) */
	StatusTime string `json:"statusTime"`

	/* tags (Optional) */
	Tags interface{} `json:"tags"`

	/* tagsNonGrouping (Optional) */
	TagsNonGrouping string `json:"tagsNonGrouping"`

	/* threshold (Optional) */
	Threshold float64 `json:"threshold"`

	/* times (Optional) */
	Times int64 `json:"times"`

	/* updateTime (Optional) */
	UpdateTime string `json:"updateTime"`

	/* version (Optional) */
	Version int64 `json:"version"`
}

type RuleState added in v1.4.0

type RuleState struct {

	/*  (Optional) */
	ResourceId string `json:"resourceId"`

	/*  (Optional) */
	RuleCount int64 `json:"ruleCount"`

	/*  (Optional) */
	State int64 `json:"state"`
}

type ServiceCodeMetrics

type ServiceCodeMetrics struct {

	/*  (Optional) */
	Metrics []MetricDetail `json:"metrics"`

	/*  (Optional) */
	ServiceCode string `json:"serviceCode"`
}

type ServiceMetric added in v1.2.1

type ServiceMetric struct {

	/*  (Optional) */
	Metric []ServiceMetricItem `json:"metric"`

	/*  (Optional) */
	ServiceCode string `json:"serviceCode"`
}

type ServiceMetricAggregateItem added in v1.2.1

type ServiceMetricAggregateItem struct {

	/*  (Optional) */
	Aggregate string `json:"aggregate"`

	/*  (Optional) */
	Name string `json:"name"`
}

type ServiceMetricItem added in v1.2.1

type ServiceMetricItem struct {

	/*  (Optional) */
	Aggregates []ServiceMetricAggregateItem `json:"aggregates"`

	/*  (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/*  (Optional) */
	Metric string `json:"metric"`

	/*  (Optional) */
	Name string `json:"name"`
}

type SiteMonitor added in v1.2.1

type SiteMonitor struct {

	/*  (Optional) */
	Address string `json:"address"`

	/*  (Optional) */
	AdvanceChecked string `json:"advanceChecked"`

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	Cycle int64 `json:"cycle"`

	/*  (Optional) */
	DefaultSource string `json:"defaultSource"`

	/*  (Optional) */
	Enabled string `json:"enabled"`

	/*  (Optional) */
	HawkeyeId int64 `json:"hawkeyeId"`

	/*  (Optional) */
	HttpOption SiteMonitorHttpOption `json:"httpOption"`

	/*  (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	IsDeleted string `json:"isDeleted"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Pin string `json:"pin"`

	/*  (Optional) */
	Port string `json:"port"`

	/*  (Optional) */
	Source []SiteMonitorSource `json:"source"`

	/*  (Optional) */
	Stats interface{} `json:"stats"`

	/*  (Optional) */
	TcpOption SiteMonitorTcpOption `json:"tcpOption"`

	/*  (Optional) */
	Type string `json:"type"`

	/*  (Optional) */
	UdpOption SiteMonitorUdpOption `json:"udpOption"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`
}

type SiteMonitorEnableReqItem added in v1.2.1

type SiteMonitorEnableReqItem struct {

	/*  (Optional) */
	Enabled string `json:"enabled"`

	/*  (Optional) */
	Id string `json:"id"`
}

type SiteMonitorHttpOption added in v1.2.1

type SiteMonitorHttpOption struct {

	/*  (Optional) */
	Cookie interface{} `json:"cookie"`

	/*  (Optional) */
	Header interface{} `json:"header"`

	/*  (Optional) */
	Method string `json:"method"`

	/*  (Optional) */
	ReqContent string `json:"reqContent"`

	/*  (Optional) */
	ResCheck string `json:"resCheck"`
}

type SiteMonitorSource added in v1.2.1

type SiteMonitorSource struct {

	/*  (Optional) */
	Sisp string `json:"sisp"`

	/*  (Optional) */
	SispName string `json:"sispName"`

	/*  (Optional) */
	Sloc string `json:"sloc"`

	/*  (Optional) */
	SlocName string `json:"slocName"`
}

type SiteMonitorTcpOption added in v1.2.1

type SiteMonitorTcpOption struct {

	/*  (Optional) */
	ReqContent string `json:"reqContent"`

	/*  (Optional) */
	ReqContentType string `json:"reqContentType"`

	/*  (Optional) */
	ResCheck string `json:"resCheck"`

	/*  (Optional) */
	ResCheckType string `json:"resCheckType"`

	/*  (Optional) */
	Timeout int64 `json:"timeout"`
}

type SiteMonitorUdpOption added in v1.2.1

type SiteMonitorUdpOption struct {

	/*  (Optional) */
	ReqContent string `json:"reqContent"`

	/*  (Optional) */
	ResCheck string `json:"resCheck"`

	/*  (Optional) */
	Timeout int64 `json:"timeout"`
}

type SqlDataPoint added in v1.2.1

type SqlDataPoint struct {

	/* 目前统一用jcloud  */
	AppCode string `json:"appCode"`

	/* 资源的类型,取值sqlserver  */
	ServiceCode string `json:"serviceCode"`

	/* 资源所在的地域  */
	Region string `json:"region"`

	/* 资源的uuid  */
	ResourceId string `json:"resourceId"`

	/* 监控指标名称,长度不超过255字节,只允许英文、数字、下划线_、点.,  [0-9][a-z] [A-Z] [. _ ], 其它会返回err  */
	Metric string `json:"metric"`

	/* 毫秒级时间戳,早于当前时间30天的不能写入;建议的上报时间戳:上报时间间隔的整数倍,如上报间隔为5ms,则建议上报的时间戳为 time = current timestamp - (current timestamp % time interval) = 1487647187007 - (1487647187007 % 5) = 1487647187007 -2 = 1487647187005  */
	Time int64 `json:"time"`

	/* 上报的监控值,即慢sql语句已经执行的时间(单位s)  */
	Value int64 `json:"value"`

	/* SQL开始执行的时间  */
	Start_time string `json:"start_time"`

	/* SQL已执行时间(单位s)  */
	Execution_time int64 `json:"execution_time"`

	/* 会话ID  */
	Session_id string `json:"session_id"`

	/* 数据库库名  */
	Database string `json:"database"`

	/* 客户端IP地址  */
	Client_net_address string `json:"client_net_address"`

	/* 用户名  */
	Loginname string `json:"loginname"`

	/* SQL会话请求状态  */
	Status string `json:"status"`

	/* SQL详细文本  */
	Sqlstr string `json:"sqlstr"`
}

type SqlInfo added in v1.2.1

type SqlInfo struct {

	/* 产品标识,目前统一用jcloud (Optional) */
	AppCode string `json:"appCode"`

	/* 客户端IP地址 (Optional) */
	Client_net_address string `json:"client_net_address"`

	/* 库名 (Optional) */
	Database string `json:"database"`

	/* SQL已执行时间(单位s) (Optional) */
	Execution_time int64 `json:"execution_time"`

	/* 用户名 (Optional) */
	Loginname string `json:"loginname"`

	/* 监控项 (Optional) */
	Metric string `json:"metric"`

	/* 资源所在的地域 (Optional) */
	Region string `json:"region"`

	/* 资源的uuid (Optional) */
	ResourceId string `json:"resourceId"`

	/* 资源的类型 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 会话ID (Optional) */
	Session_id string `json:"session_id"`

	/* SQL详细文本 (Optional) */
	Sqlstr string `json:"sqlstr"`

	/* SQL开始执行的时间 (Optional) */
	Start_time string `json:"start_time"`

	/* SQL会话请求状态 (Optional) */
	Status string `json:"status"`

	/* 毫秒级时间戳 (Optional) */
	Time int64 `json:"time"`

	/* 上报的监控值 (Optional) */
	Value int64 `json:"value"`
}

type StatisticsProductMetric added in v1.2.1

type StatisticsProductMetric struct {

	/* 聚合方式 (Optional) */
	Aggregate string `json:"aggregate"`

	/* 单位 (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/* metric (Optional) */
	Metric string `json:"metric"`

	/* metric名称 (Optional) */
	MetricShow string `json:"metricShow"`
}

type StatsItem added in v1.2.1

type StatsItem struct {

	/* 聚合方式 (Optional) */
	AggregateFunc string `json:"aggregateFunc"`

	/* 单位 (Optional) */
	CalculateUnit string `json:"calculateUnit"`

	/* 数据点 (Optional) */
	Dps []DataPoint `json:"dps"`

	/* metric (Optional) */
	Metric string `json:"metric"`

	/* metric名称 (Optional) */
	MetricName string `json:"metricName"`

	/* tags (Optional) */
	Tags interface{} `json:"tags"`
}

type Tag added in v1.1.1

type Tag struct {

	/*  (Optional) */
	TagKey string `json:"tagKey"`

	/*  (Optional) */
	TagValue string `json:"tagValue"`
}

type TagFilter added in v1.0.7

type TagFilter struct {

	/* Tag键 (Optional) */
	Key *string `json:"key"`

	/* Tag值 (Optional) */
	Values []string `json:"values"`
}

type TagKeyValue added in v1.1.1

type TagKeyValue struct {

	/* tag键 (Optional) */
	TagKey string `json:"tagKey"`

	/* tag值 (Optional) */
	TagValue string `json:"tagValue"`
}

type Tags added in v1.0.2

type Tags struct {

	/* 标签名  */
	Name string `json:"name"`

	/* 标签值  */
	Value string `json:"value"`
}

type TagsSpec added in v1.4.0

type TagsSpec struct {

	/* 校验码。调用此API前需找云监控提供  */
	AppCode string `json:"appCode"`

	/* 服务码  */
	ServiceCode string `json:"serviceCode"`

	/* 组id,全局唯一,建议用那个UUID  */
	GroupCode string `json:"groupCode"`

	/* 资源列表  */
	ResourceIds []string `json:"resourceIds"`

	/* 进行打tag的数据以及操作  */
	Tags HandleTag `json:"tags"`

	/* 更详细过滤条件 (Optional) */
	Filter []DataTag `json:"filter"`
}

type TaskInfo added in v1.2.1

type TaskInfo struct {

	/* 探测异常数  ,null代表缺值。只统计探测失败,超时的个数。 (Optional) */
	AbnormalCount int64 `json:"abnormalCount"`

	/* task的探测地址 (Optional) */
	Address string `json:"address"`

	/* 任务状态[false:己禁用,true:己启用] (Optional) */
	Enabled bool `json:"enabled"`

	/* task名称 (Optional) */
	Name string `json:"name"`

	/* task的可用率 (Optional) */
	ProbeAvailability float64 `json:"probeAvailability"`

	/* 该task的探测源个数 (Optional) */
	ProbeCount int64 `json:"probeCount"`

	/* task的探测类型,1:http,2:telnet (Optional) */
	ProbeType int64 `json:"probeType"`

	/* task的探测平均响应时间 (Optional) */
	ResponseTime float64 `json:"responseTime"`

	/* task的id (Optional) */
	TaskId string `json:"taskId"`
}

type TemplateVo added in v1.2.1

type TemplateVo struct {

	/*  (Optional) */
	CreateTime string `json:"createTime"`

	/* 模板描述 (Optional) */
	Description string `json:"description"`

	/* 用户 (Optional) */
	Pin string `json:"pin"`

	/* 模板内包含的规则数量 (Optional) */
	RulesCount int64 `json:"rulesCount"`

	/* 模板所属资源类型 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 模板id (Optional) */
	TemplateId int64 `json:"templateId"`

	/* 模板名称 (Optional) */
	TemplateName string `json:"templateName"`

	/* 模板内包含的规则 (Optional) */
	TemplateRules []AlarmVo `json:"templateRules"`

	/* 模板内包含的提供给前端的拼接好的规则 (Optional) */
	TemplateRulesString []string `json:"templateRulesString"`

	/* 模板类型,区分默认模板和用户自定义模板:1表示默认模板,2表示用户自定义模板 (Optional) */
	TemplateType int64 `json:"templateType"`

	/*  (Optional) */
	UpdateTime string `json:"updateTime"`
}

type UpdateAlarmBody

type UpdateAlarmBody struct {

	/* 统计方法:平均值=avg、最大值=max、最小值=min、总和=sum  */
	Calculation string `json:"calculation"`

	/* 通知的联系组,如 [“联系组1”,”联系组2”] (Optional) */
	ContactGroups []string `json:"contactGroups"`

	/* 通知的联系人,如 [“联系人1”,”联系人2”] (Optional) */
	ContactPersons []string `json:"contactPersons"`

	/* 取样频次 (Optional) */
	DownSample string `json:"downSample"`

	/* 根据产品线查询可用监控项列表 接口 返回的Metric字段  */
	Metric string `json:"metric"`

	/* 通知周期 单位:小时 (Optional) */
	NoticePeriod int `json:"noticePeriod"`

	/* >=、>、<、<=、==、!=  */
	Operation string `json:"operation"`

	/* 统计周期(单位:分钟),可选值:2,5,15,30,60  */
	Period int `json:"period"`

	/* 产品名称  */
	ServiceCode string `json:"serviceCode"`

	/* 阈值  */
	Threshold float64 `json:"threshold"`

	/* 连续多少次后报警,可选值:1,2,3,5  */
	Times int `json:"times"`
}

type UpdateAlarmResponseEnd added in v1.1.1

type UpdateAlarmResponseEnd struct {

	/* 更新之后的规则id (Optional) */
	AlarmId string `json:"alarmId"`
}

type UpdateAlarmSpec added in v1.1.1

type UpdateAlarmSpec struct {

	/* 通知联系人 (Optional) */
	Contacts []BaseContact `json:"contacts"`

	/*   */
	Rule BaseRule `json:"rule"`

	/* 回调content 注:仅webHookUrl和webHookContent均不为空时,才会创建webHook (Optional) */
	WebHookContent string `json:"webHookContent"`

	/* webHook协议 (Optional) */
	WebHookProtocol string `json:"webHookProtocol"`

	/* 回调secret,用户请求签名,防伪造 (Optional) */
	WebHookSecret string `json:"webHookSecret"`

	/* 回调url (Optional) */
	WebHookUrl string `json:"webHookUrl"`
}

type UpdateCmAlarmSpec added in v1.2.1

type UpdateCmAlarmSpec struct {

	/* 统计方法:平均值=avg、最大值=max、最小值=min、总和=sum  */
	Calculation string `json:"calculation"`

	/* 通知的联系组,如 [“联系组1”,”联系组2”] (Optional) */
	ContactGroups []string `json:"contactGroups"`

	/* 通知的联系人,如 [“联系人1”,”联系人2”] (Optional) */
	ContactPersons []string `json:"contactPersons"`

	/* 取样频次 (Optional) */
	DownSample string `json:"downSample"`

	/* 根据产品线查询可用监控项列表 接口 返回的Metric字段  */
	Metric string `json:"metric"`

	/* 通知周期 单位:小时 (Optional) */
	NoticePeriod int64 `json:"noticePeriod"`

	/* >=、>、<、<=、=、!=  */
	Operation string `json:"operation"`

	/* 统计周期(单位:分钟)目前支持的取值:2,5,15,30,60  */
	Period int64 `json:"period"`

	/* 产品名称  */
	ServiceCode string `json:"serviceCode"`

	/* 阈值  */
	Threshold float64 `json:"threshold"`

	/* 连续多少次后报警,可选值:1,2,3,5  */
	Times int64 `json:"times"`
}

type UpdateDashboardSpec added in v1.2.1

type UpdateDashboardSpec struct {

	/*  (Optional) */
	DashboardId string `json:"dashboardId"`

	/*  (Optional) */
	Focused string `json:"focused"`

	/*  (Optional) */
	Name string `json:"name"`
}

type UpdateProbeTaskSpec added in v1.2.1

type UpdateProbeTaskSpec struct {

	/* 探测地址,探测类型为http:内容为url(校验http或https头);探测类型为telnet:内容为ip或域名(只允许中英文 、数字、中划线(-)、小数点(.)、开头及结尾均不能含有“-”) (Optional) */
	Address string `json:"address"`

	/* 探测间隔(单位:秒):默认值:300,取值范围[60,1200] (Optional) */
	Frequency int64 `json:"frequency"`

	/* http body:选择探测类型为1=http时有效,最长不超过1024字节 (Optional) */
	HttpBody string `json:"httpBody"`

	/* http cookie:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节 (Optional) */
	HttpCookie []KeyValue `json:"httpCookie"`

	/* http header:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节 (Optional) */
	HttpHeader []KeyValue `json:"httpHeader"`

	/* task名称,不允许重复,长度不超过32字符,只允许中英文、数字、下划线_、中划线-, [0-9][a-z] [A-Z] [- _ ] (Optional) */
	Name string `json:"name"`

	/* 探测端口,探测类型为telnet时必填,取值范围 [1-65535],http类型忽略该参数 (Optional) */
	Port int64 `json:"port"`

	/* 探测源(发起对探测目标探测的云主机,需安装相应的agent才能探测)  */
	Probes []Probe `json:"probes"`

	/* 探测目标id:该探测对象的uuid,任务类型为2:rds、3:redis时必填, (Optional) */
	TargetId string `json:"targetId"`

	/* 探测目标region:该探测对象所在region,任务类型为2:rds、3:redis时必填 (Optional) */
	TargetRegion string `json:"targetRegion"`

	/* 探测超时时间(单位:秒):默认值:5,取值范围 [1,300] (Optional) */
	Timeout int64 `json:"timeout"`
}

type UpdateSiteMonitorSpec added in v1.2.1

type UpdateSiteMonitorSpec struct {

	/*  (Optional) */
	Address string `json:"address"`

	/*  (Optional) */
	AdvanceChecked string `json:"advanceChecked"`

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	Cycle int64 `json:"cycle"`

	/*  (Optional) */
	DefaultSource string `json:"defaultSource"`

	/*  (Optional) */
	Enabled string `json:"enabled"`

	/*  (Optional) */
	HawkeyeId int64 `json:"hawkeyeId"`

	/*  (Optional) */
	HttpOption SiteMonitorHttpOption `json:"httpOption"`

	/*  (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	IsDeleted string `json:"isDeleted"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Pin string `json:"pin"`

	/*  (Optional) */
	Port string `json:"port"`

	/*  (Optional) */
	Source []SiteMonitorSource `json:"source"`

	/*  (Optional) */
	Stats interface{} `json:"stats"`

	/*  (Optional) */
	TcpOption SiteMonitorTcpOption `json:"tcpOption"`

	/*  (Optional) */
	Type string `json:"type"`

	/*  (Optional) */
	UdpOption SiteMonitorUdpOption `json:"udpOption"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`
}

type UpdateTemplateSpec added in v1.2.1

type UpdateTemplateSpec struct {

	/* 模板描述 (Optional) */
	Description string `json:"description"`

	/* 规则的资源类型  */
	RuleServiceCode string `json:"ruleServiceCode"`

	/* 模板的资源类型  */
	ServiceCode string `json:"serviceCode"`

	/* 模板ID  */
	TemplateId int64 `json:"templateId"`

	/* 模板名称  */
	TemplateName string `json:"templateName"`

	/* 模板内包含的规则  */
	TemplateRules []BaseRuleT `json:"templateRules"`
}

type UpdateWidgetSpec added in v1.2.1

type UpdateWidgetSpec struct {

	/*  (Optional) */
	Aggregated string `json:"aggregated"`

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	DashboardId string `json:"dashboardId"`

	/*  (Optional) */
	Metrics []WidgetMetric `json:"metrics"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Position WidgetPosition `json:"position"`

	/*  (Optional) */
	Resources WidgetResources `json:"resources"`

	/*  (Optional) */
	ServiceCode string `json:"serviceCode"`

	/*  (Optional) */
	TopN int `json:"topN"`

	/*  (Optional) */
	Type string `json:"type"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`

	/*  (Optional) */
	WidgetId string `json:"widgetId"`
}

type Widget added in v1.2.1

type Widget struct {

	/*  (Optional) */
	Aggregated string `json:"aggregated"`

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	DashboardId string `json:"dashboardId"`

	/*  (Optional) */
	Metrics []WidgetMetric `json:"metrics"`

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	Position WidgetPosition `json:"position"`

	/*  (Optional) */
	Resources WidgetResources `json:"resources"`

	/*  (Optional) */
	ServiceCode string `json:"serviceCode"`

	/*  (Optional) */
	TopN int `json:"topN"`

	/*  (Optional) */
	Type string `json:"type"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`

	/*  (Optional) */
	WidgetId string `json:"widgetId"`
}

type WidgetDataPointItem added in v1.2.1

type WidgetDataPointItem struct {

	/*  (Optional) */
	Aggregate []StatsItem `json:"aggregate"`

	/*  (Optional) */
	Detail []StatsItem `json:"detail"`

	/*  (Optional) */
	WidgetId string `json:"widgetId"`
}

type WidgetMetric added in v1.2.1

type WidgetMetric struct {

	/*  (Optional) */
	Aggregate string `json:"aggregate"`

	/*  (Optional) */
	Metric string `json:"metric"`

	/*  (Optional) */
	MetricName string `json:"metricName"`
}

type WidgetPosition added in v1.2.1

type WidgetPosition struct {

	/*  (Optional) */
	Col int `json:"col"`

	/*  (Optional) */
	CreatedTime int64 `json:"createdTime"`

	/*  (Optional) */
	Order int `json:"order"`

	/*  (Optional) */
	Row int `json:"row"`

	/*  (Optional) */
	SizeX int `json:"sizeX"`

	/*  (Optional) */
	SizeY int `json:"sizeY"`

	/*  (Optional) */
	UpdatedTime int64 `json:"updatedTime"`
}

type WidgetRawResource added in v1.2.1

type WidgetRawResource struct {

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	RegionId string `json:"regionId"`

	/*  (Optional) */
	ResourceId string `json:"resourceId"`

	/*  (Optional) */
	Tag interface{} `json:"tag"`
}

type WidgetResources added in v1.2.1

type WidgetResources struct {

	/*  (Optional) */
	Raw []WidgetRawResource `json:"raw"`

	/*  (Optional) */
	Tag []WidgetTagResource `json:"tag"`
}

type WidgetSupportedProduct added in v1.2.1

type WidgetSupportedProduct struct {

	/*  (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	ServiceCode string `json:"serviceCode"`
}

type WidgetTagResource added in v1.2.1

type WidgetTagResource struct {

	/*  (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	Key string `json:"key"`

	/*  (Optional) */
	RegionId string `json:"regionId"`

	/*  (Optional) */
	Value string `json:"value"`
}

Source Files

Jump to

Keyboard shortcuts

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