models

package
v1.13.0 Latest Latest
Warning

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

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

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"`

	/* 打标签操作所属产品线的serviceCode  */
	SrcServiceCode string `json:"srcServiceCode"`

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

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

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 BaseContact added in v1.1.1

type BaseContact struct {

	/* 联系人id。  注:ReferenceType=2时,联系人id请填0  */
	ReferenceId int64 `json:"referenceId"`

	/* 联系人id类型:0,联系人分组id;1,联系人id,2,pin帐号主联系人  */
	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"`

	/* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric: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,10,15,30,60  */
	Period int64 `json:"period"`

	/* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、”-”和"_" (Optional) */
	RuleName string `json:"ruleName"`

	/* 规则类型, 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"`

	/* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample  */
	Metric string `json:"metric"`

	/* 监控项ID (Optional) */
	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,10,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 BasicRule added in v1.13.0

type BasicRule struct {

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

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

	/* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample  */
	Metric string `json:"metric"`

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

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

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

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

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

type BasicRuleDetail added in v1.13.0

type BasicRuleDetail struct {

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

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

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

	/* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample  */
	Metric string `json:"metric"`

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

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

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

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

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

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

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 BatchUpdateWidgetSpec added in v1.2.1

type BatchUpdateWidgetSpec struct {

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

type Chart added in v1.6.0

type Chart struct {

	/* 监控图名称 (Optional) */
	ChartName string `json:"chartName"`

	/* 监控图单位 (Optional) */
	ChartUnit string `json:"chartUnit"`

	/* 监控图包含的指标 (Optional) */
	Include []string `json:"include"`
}

type ChartDetail added in v1.13.0

type ChartDetail struct {

	/* 监控图名称 (Optional) */
	ChartName string `json:"chartName"`

	/* 监控图单位 (Optional) */
	ChartUnit string `json:"chartUnit"`

	/* 监控图包含的指标 (Optional) */
	Include []string `json:"include"`
}

type ChartDimension added in v1.13.0

type ChartDimension struct {

	/* 分组groupCode (Optional) */
	Dimension string `json:"dimension"`

	/* 分组名称 (Optional) */
	DimensionName string `json:"dimensionName"`

	/* 分组下metric对应的tags (Optional) */
	Tags interface{} `json:"tags"`
}

type ChartDimensionDetail added in v1.13.0

type ChartDimensionDetail struct {

	/* 监控图的展示方式 (Optional) */
	Charts []ChartDetail `json:"charts"`

	/* 维度dimension (Optional) */
	Dimension string `json:"dimension"`

	/* 分组名称 (Optional) */
	DimensionName string `json:"dimensionName"`

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

	/* 分组名称 (Optional) */
	ServiceName string `json:"serviceName"`

	/* 分组下metric对应的tags (Optional) */
	Tags interface{} `json:"tags"`
}

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) */
	RuleName string `json:"ruleName"`

	/* 报警规则对应的产品 (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) */
	RuleName string `json:"ruleName"`

	/* 报警规则对应的产品 (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 CreateAlarmSpec

type CreateAlarmSpec struct {

	/* 告警通知联系人 (Optional) */
	BaseContact []BaseContact `json:"baseContact"`

	/* 幂等性校验参数,最长36位,若两个请求clientToken相等,则返回第一次创建的规则id,只创建一次规则  */
	ClientToken string `json:"clientToken"`

	/* 资源维度,可用的维度请使用 describeProductsForAlarm接口查询 (Optional) */
	Dimension string `json:"dimension"`

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

	/* 通知策略 (Optional) */
	NoticeOption []NoticeOption `json:"noticeOption"`

	/* 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。  */
	Product string `json:"product"`

	/*   */
	ResourceOption ResourceOption `json:"resourceOption"`

	/* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、”-”和"_"  */
	RuleName string `json:"ruleName"`

	/*   */
	RuleOption RuleOption `json:"ruleOption"`

	/* 规则类型, 默认为resourceMonitor (Optional) */
	RuleType string `json:"ruleType"`

	/* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) */
	Tags interface{} `json:"tags"`

	/*  (Optional) */
	WebHookOption WebHookOption `json:"webHookOption"`
}

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"`

	/* 规则名称,最大长度42个字符,只允许中英文、数字、”-”和"_" (Optional) */
	RuleName string `json:"ruleName"`

	/* 报警阈值,目前只开放数值类型功能  */
	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 CreateTemplateRequestV2 added in v1.13.0

type CreateTemplateRequestV2 struct {

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

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

	/* 模板资源类型下的维度,如果该资源分维度,则必须传入此参数 (Optional) */
	Dimension string `json:"dimension"`

	/* 模板的资源类型  */
	Product string `json:"product"`

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

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

type CreateTemplateResponseEnd added in v1.13.0

type CreateTemplateResponseEnd struct {

	/* 是否创建成功 (Optional) */
	Success bool `json:"success"`

	/* 创建成功的模板id (Optional) */
	TemplateId int64 `json:"templateId"`
}

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 {

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

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

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

type DeleteAlarmsSpec added in v1.13.0

type DeleteAlarmsSpec struct {

	/* filter name为'ids'为要删除的告警id
	in: query  */
	Filters []Filter `json:"filters"`
}

type DeleteTemplateResponseEnd added in v1.13.0

type DeleteTemplateResponseEnd struct {

	/* 是否删除成功 (Optional) */
	Success bool `json:"success"`
}

type DescribeAlarmHistoryResponseEnd added in v1.13.0

type DescribeAlarmHistoryResponseEnd struct {

	/* 告警历史列表 (Optional) */
	AlarmHistoryList []DescribedAlarmHistory `json:"alarmHistoryList"`

	/* 总数 (Optional) */
	Total int64 `json:"total"`
}

type DescribeCMMetricsDataSpec added in v1.2.1

type DescribeCMMetricsDataSpec struct {

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

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)
	in: query (Optional) */
	EndTime string `json:"endTime"`

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

	/* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(早于30d时,将被重置为30d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)
	in: query (Optional) */
	StartTime string `json:"startTime"`

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

type DescribeGroupAlarm added in v1.13.0

type DescribeGroupAlarm struct {

	/* 报警规则ID (Optional) */
	AlarmId string `json:"alarmId"`

	/* 规则状态,当一个规则下同时存在报警、数据不足、正常的资源时,规则状态按 报警>数据不足>正常的优先级展示
	监控项状态:-1 未启用 1正常,2告警,4数据不足 (Optional) */
	AlarmStatus int64 `json:"alarmStatus"`

	/* 规则的状态列表,可能同时存在多个:1正常,2告警,4数据不足 (Optional) */
	AlarmStatusList []int64 `json:"alarmStatusList"`

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

	/* 资源维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 资源维度名称 (Optional) */
	DimensionName string `json:"dimensionName"`

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

	/* 资源类型  */
	Product string `json:"product"`

	/* 资源类型名称 (Optional) */
	ProductName string `json:"productName"`

	/*   */
	ResourceOption ResourceOption `json:"resourceOption"`

	/* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、”-”和"_"  */
	RuleName string `json:"ruleName"`

	/*   */
	RuleOption RuleOptionDetail `json:"ruleOption"`

	/* 规则类型, 默认为resourceMonitor (Optional) */
	RuleType string `json:"ruleType"`

	/* 规则版本  v1  v2 (Optional) */
	RuleVersion string `json:"ruleVersion"`

	/* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) */
	Tags interface{} `json:"tags"`
}

type DescribeMetricDataSpec added in v1.2.1

type DescribeMetricDataSpec struct {

	/* 聚合方式,可选值参考:sum、avg、min、max (Optional) */
	AggrType string `json:"aggrType"`

	/* 资源的维度。当serviceCode下存在多个维度时,查询数据必须指定相应的维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 采样方式,可选值参考:sum、avg、last、min、max (Optional) */
	DownSampleType string `json:"downSampleType"`

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)
	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 等,<a href="https://docs.jdcloud.com/cn/monitoring/api/describeservices?content=API&SOP=JDCloud">describeServices</a>:查询己接入云监控的产品线列表,当产品线下有多个分组时,查询分组对应的监控项,serviceCode请传对应分组的groupCode字段值 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)
	in: query (Optional) */
	StartTime string `json:"startTime"`

	/* 监控指标数据的维度信息,根据tags来筛选指标数据不同的维度
	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 DescribeMetricsForCreateAlarmEnd added in v1.13.0

type DescribeMetricsForCreateAlarmEnd struct {

	/*  (Optional) */
	ServiceCodeList []ServiceCodeMetrics `json:"serviceCodeList"`
}

type DescribeTemplateByIDSpec added in v1.2.1

type DescribeTemplateByIDSpec struct {

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

type DescribeTemplatesByTemplateIDResponseEnd added in v1.13.0

type DescribeTemplatesByTemplateIDResponseEnd struct {

	/*  (Optional) */
	Template TemplateVo `json:"template"`
}

type DescribeTemplatesResponseEnd added in v1.13.0

type DescribeTemplatesResponseEnd struct {

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

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

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

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

	/* 当查询用户自定义模板时,表示该用户目前已有的自定义模板总数量;当查询默认模板时,表示该用户目前已有的默认模板总数量 (Optional) */
	TemplateCount int64 `json:"templateCount"`

	/* 模板列表 (Optional) */
	TemplateList []TemplateVo `json:"templateList"`
}

type DescribeTopNSlowSqlSpec added in v1.2.1

type DescribeTopNSlowSqlSpec struct {

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)
	in: query (Optional) */
	EndTime string `json:"endTime"`

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

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

	/* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(早于30d时,将被重置为30d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)
	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) */
	RuleName string `json:"ruleName"`

	/* 产品线编码 (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"`

	/* 回调content (Optional) */
	WebHookContent string `json:"webHookContent"`

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

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

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

type DescribedAlarmHistory added in v1.1.1

type DescribedAlarmHistory struct {

	/* 报警规则ID (Optional) */
	AlarmId string `json:"alarmId"`

	/* 资源维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 资源维度名称 (Optional) */
	DimensionName string `json:"dimensionName"`

	/* 告警持续次数 (Optional) */
	DurationTimes int64 `json:"durationTimes"`

	/* 告警持续时间,单位分钟 (Optional) */
	NoticeDurationTime int64 `json:"noticeDurationTime"`

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

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

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

	/* 资源类型 (Optional) */
	Product string `json:"product"`

	/* 资源类型名称 (Optional) */
	ProductName string `json:"productName"`

	/* 告警通知人 (Optional) */
	Receivers []NoticeReceiver `json:"receivers"`

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

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

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

	/* 告警类型  1-告警恢复  2-告警 4-数据不足 (Optional) */
	Status int64 `json:"status"`

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

	/* 告警值 (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 Dimension added in v1.13.0

type Dimension struct {

	/* 维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 维度名称 (Optional) */
	DimensionName string `json:"dimensionName"`

	/* 是否是子结点 (Optional) */
	IsNode bool `json:"isNode"`

	/* 对应标签服务的serviceCode (Optional) */
	TagServiceCode string `json:"tagServiceCode"`

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

type EnableAlarmsSpec added in v1.13.0

type EnableAlarmsSpec struct {

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

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 Filter added in v1.1.1

type Filter struct {

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

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

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 GroupAlarm added in v1.13.0

type GroupAlarm struct {

	/* 报警规则ID (Optional) */
	AlarmId string `json:"alarmId"`

	/* 告警通知联系人 (Optional) */
	BaseContact []BaseContact `json:"baseContact"`

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

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

	/* 通知策略 (Optional) */
	NoticeOption []NoticeOption `json:"noticeOption"`

	/*   */
	ResourceOption ResourceOption `json:"resourceOption"`

	/* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、”-”和"_"  */
	RuleName string `json:"ruleName"`

	/*   */
	RuleOption RuleOption `json:"ruleOption"`

	/* 规则类型, 默认为resourceMonitor (Optional) */
	RuleType string `json:"ruleType"`

	/* 规则版本  v1  v2 (Optional) */
	RuleVersion string `json:"ruleVersion"`

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

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

	/*  (Optional) */
	WebHookOption WebHookOption `json:"webHookOption"`
}

type GroupInfo added in v1.6.0

type GroupInfo struct {

	/* 监控图的展示方式 (Optional) */
	Charts []Chart `json:"charts"`

	/* 分组groupCode (Optional) */
	GroupCode string `json:"groupCode"`

	/* 分组名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 分组下metric对应的tags (Optional) */
	Tags interface{} `json:"tags"`

	/* 分组的webCode (Optional) */
	WebCode string `json:"webCode"`
}

type GroupNode added in v1.11.0

type GroupNode struct {

	/* 分组子节点 (Optional) */
	Childs []GroupNode `json:"childs"`

	/* 分组groupCode (Optional) */
	GroupCode string `json:"groupCode"`

	/* 分组父节点的groupCode (Optional) */
	Parent string `json:"parent"`
}

type GroupTree added in v1.11.0

type GroupTree struct {

	/* 分组groupCodes (Optional) */
	Childs []GroupNode `json:"childs"`

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

type HandleTags added in v1.6.0

type HandleTags struct {

	/*  (Optional) */
	HandleTagCode int64 `json:"handleTagCode"`

	/*  (Optional) */
	PrefixMetric string `json:"prefixMetric"`
}

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) */
	Tags interface{} `json:"tags"`

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

type LinkPolicyInfo added in v1.13.0

type LinkPolicyInfo struct {

	/* 该模板关联策略的名字 (Optional) */
	LinkPolicyName string `json:"linkPolicyName"`

	/* 该模板关联策略的uuid (Optional) */
	LinkPolicyUuid string `json:"linkPolicyUuid"`
}

type Location added in v1.2.1

type Location struct {

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

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

type MaintainAuxiliaryTags added in v1.6.0

type MaintainAuxiliaryTags struct {

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

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

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

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

	/* 资源的产品线,要对哪个产品线的资源打标签  */
	ServiceCode string `json:"serviceCode"`

	/* 打标签操作所属产品线的serviceCode  */
	SrcServiceCode string `json:"srcServiceCode"`

	/*   */
	Tags HandleTags `json:"tags"`
}

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。eg:{"host":"127.0.0.1","region":"cn-north-1","role":"M"}  */
	Dimensions interface{} `json:"dimensions"`

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

	/* 数据上报类型,1为原始值  */
	Type int `json:"type"`

	/* 指标值集合,数据类型必须为map类型,key为数据类型,value为数据值,当type=1时,key只能为”value”,上报的是原始值,value内容为整型或浮点型数字,最大值为9223372036854775807  */
	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 MetricDetail

type MetricDetail struct {

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

	/* 维度标识 (Optional) */
	Dimension string `json:"dimension"`

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

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

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

	/* 产品线标识 (Optional) */
	ServiceCode string `json:"serviceCode"`
}

type MetricInfo added in v1.2.1

type MetricInfo struct {

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

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

	/* metric uid (Optional) */
	MetricUid string `json:"metricUid"`
}

type NoticeLevel added in v1.1.1

type NoticeLevel struct {

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

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

type NoticeOption added in v1.13.0

type NoticeOption struct {

	/* 生效截止时间,默认值:23:59 (Optional) */
	EffectiveIntervalEnd *string `json:"effectiveIntervalEnd"`

	/* 生效起始时间,默认值:00:00 (Optional) */
	EffectiveIntervalStart *string `json:"effectiveIntervalStart"`

	/* 通知条件 1-告警 2-数据不足3-告警恢复 (Optional) */
	NoticeCondition []int64 `json:"noticeCondition"`

	/* 通知沉默周期,单位:分钟,默认值:24小时,目前支持的取值“24小时、12小时、6小时、3小时、1小时、30分钟、15分钟、10分钟、5分钟” (Optional) */
	NoticePeriod *int64 `json:"noticePeriod"`

	/* 通知方法    1-短信 2-邮件 (Optional) */
	NoticeWay []int64 `json:"noticeWay"`
}

type NoticeReceiver added in v1.13.0

type NoticeReceiver struct {

	/*  (Optional) */
	Email string `json:"email"`

	/*  (Optional) */
	Mobile string `json:"mobile"`

	/*  (Optional) */
	PersonId int64 `json:"personId"`

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

	/*  (Optional) */
	UserName string `json:"userName"`
}

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 Product added in v1.13.0

type Product struct {

	/* 维度信息 (Optional) */
	Dimensions []Dimension `json:"dimensions"`

	/* 产品标识 (Optional) */
	Product string `json:"product"`

	/* 产品名称 (Optional) */
	ProductName string `json:"productName"`

	/* product对应的产品线 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 对应的标签服务serviceCode (Optional) */
	TagServiceCode string `json:"tagServiceCode"`

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

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 ResourceItem added in v1.13.0

type ResourceItem struct {

	/* 资源所属的region  */
	Region string `json:"region"`

	/* 资源id  */
	ResourceId string `json:"resourceId"`
}

type ResourceOption added in v1.13.0

type ResourceOption struct {

	/* 指定具体资源ID设置报警规则,每次最多100个。优先resourceItems生效 (Optional) */
	ResourceItems []ResourceItem `json:"resourceItems"`

	/*  (Optional) */
	TagsOption *TagsOption `json:"tagsOption"`
}

type RuleCounting added in v1.6.0

type RuleCounting struct {

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

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

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

	/* 产品标识 (Optional) */
	Product string `json:"product"`

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

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

type RuleDetail added in v1.13.0

type RuleDetail struct {

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

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

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

	/* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample  */
	Metric string `json:"metric"`

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

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

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

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

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

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

type RuleMetricDetail added in v1.13.0

type RuleMetricDetail struct {

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

	/* 维度标识 (Optional) */
	Dimension string `json:"dimension"`

	/* 监控项唯一标识,可根据DescribeMetricsForCreateAlarm接口查询各产品线可用的监控项(创建规则时使用Metric字段)。格式:metric:downsample (Optional) */
	Metric string `json:"metric"`

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

	/* 产品标识 (Optional) */
	Product string `json:"product"`

	/* 产品线标识 (Optional) */
	ServiceCode string `json:"serviceCode"`
}

type RuleOption added in v1.13.0

type RuleOption struct {

	/* 规则触发条件,与模块参数同时指定时,优先使用rules (Optional) */
	Rules []BasicRule `json:"rules"`

	/*  (Optional) */
	TemplateOption *TemplateOption `json:"templateOption"`
}

type RuleOptionDetail added in v1.13.0

type RuleOptionDetail struct {

	/* 规则触发条件,与模块参数同时指定时,优先使用rules (Optional) */
	Rules []BasicRuleDetail `json:"rules"`

	/*  (Optional) */
	TemplateOption TemplateOption `json:"templateOption"`
}

type RuleResourceInfo added in v1.11.0

type RuleResourceInfo struct {

	/* 维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 产品类型 (Optional) */
	Product string `json:"product"`

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

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

type RuleState added in v1.4.0

type RuleState struct {

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

	/* 规则个数 (Optional) */
	RuleCount int64 `json:"ruleCount"`

	/* 资源的规则状态。1:正常、 2:报警、4:数据不足 -1:没有规则 -2:未启用 (Optional) */
	State int64 `json:"state"`
}

type ServiceCodeMetrics

type ServiceCodeMetrics struct {

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

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

type ServiceInfo added in v1.6.0

type ServiceInfo struct {

	/*  (Optional) */
	GroupTree GroupTree `json:"groupTree"`

	/* 产品线下的分组信息 (Optional) */
	MetricGroup []GroupInfo `json:"metricGroup"`

	/* 上报延迟 (Optional) */
	MetricsTimeDelay int64 `json:"metricsTimeDelay"`

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

	/* 产品线名称 (Optional) */
	ServiceName string `json:"serviceName"`

	/* 上报的时间间隔 (Optional) */
	TimeInterval int64 `json:"timeInterval"`
}

type ServiceInfoV2 added in v1.13.0

type ServiceInfoV2 struct {

	/* 产品线下的分组信息 (Optional) */
	Dimensions []ChartDimension `json:"dimensions"`

	/*  (Optional) */
	GroupTree GroupTree `json:"groupTree"`

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

	/* 产品线名称 (Optional) */
	ServiceName string `json:"serviceName"`
}

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"`

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

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 TagsOption added in v1.13.0

type TagsOption struct {

	/* 操作项(多个tagFilter之间关关系)默认是or (Optional) */
	Operator *string `json:"operator"`

	/* 资源标签,对所有符合该标签的资源设置报警规则,对于新加入该标签的资源自动生效 (Optional) */
	Tags []TagFilter `json:"tags"`
}

type TemplateOption added in v1.13.0

type TemplateOption struct {

	/* 模板Id (Optional) */
	TemplateId *string `json:"templateId"`

	/* 模板类型.1-默认模板  2-自定义模板 (Optional) */
	TemplateType *int64 `json:"templateType"`
}

type TemplateRulesVo added in v1.13.0

type TemplateRulesVo struct {

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

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

	/*  (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"`

	/* 触发条件UUID (Optional) */
	Uuid string `json:"uuid"`
}

type TemplateRulesVoV2 added in v1.13.0

type TemplateRulesVoV2 struct {

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

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

	/*  (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"`

	/* 触发条件UUID (Optional) */
	Uuid string `json:"uuid"`
}

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 TemplateVoV2 added in v1.13.0

type TemplateVoV2 struct {

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

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

	/* 模板所属资源的GroupCode (Optional) */
	Dimension string `json:"dimension"`

	/* dimension的名字 (Optional) */
	DimensionName string `json:"dimensionName"`

	/* 该模板关联策略的数量 (Optional) */
	LinkPolicyCount int64 `json:"linkPolicyCount"`

	/* 该模板所关联的策略 (Optional) */
	LinkPolicyInfos []LinkPolicyInfo `json:"linkPolicyInfos"`

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

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

	/* product的名字 (Optional) */
	ProductName string `json:"productName"`

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

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

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

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

	/* 模板内包含的触发条件 (Optional) */
	TemplateRules []TemplateRulesVo `json:"templateRules"`

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

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

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

	/* 模板uuid (Optional) */
	Uuid string `json:"uuid"`
}

type UpdateAlarmResourcesSpec added in v1.13.0

type UpdateAlarmResourcesSpec struct {

	/* 操作类型,默认为1,说明:1-覆盖  2-追加 3-删除 (Optional) */
	OperatorType int64 `json:"operatorType"`

	/*   */
	ResourceOption ResourceOption `json:"resourceOption"`
}

type UpdateAlarmSpec added in v1.1.1

type UpdateAlarmSpec struct {

	/* 告警通知联系人 (Optional) */
	BaseContact []BaseContact `json:"baseContact"`

	/* 资源维度,可用的维度请使用 describeProductsForAlarm接口查询 (Optional) */
	Dimension string `json:"dimension"`

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

	/* 通知策略 (Optional) */
	NoticeOption []NoticeOption `json:"noticeOption"`

	/* 资源类型, 可用的资源类型列表请使用 describeProductsForAlarm接口查询。  */
	Product string `json:"product"`

	/*   */
	ResourceOption ResourceOption `json:"resourceOption"`

	/* 规则名称,规则名称,最大长度42个字符,只允许中英文、数字、”-”和"_"  */
	RuleName string `json:"ruleName"`

	/*   */
	RuleOption RuleOption `json:"ruleOption"`

	/* 规则类型, 默认为resourceMonitor (Optional) */
	RuleType string `json:"ruleType"`

	/* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足) (Optional) */
	Tags interface{} `json:"tags"`

	/*  (Optional) */
	WebHookOption WebHookOption `json:"webHookOption"`
}

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"`

	/* 规则名称,最大长度42个字符,只允许中英文、数字、”-”和"_" (Optional) */
	RuleName string `json:"ruleName"`

	/* 产品名称  */
	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 UpdateTemplateRequestV2 added in v1.13.0

type UpdateTemplateRequestV2 struct {

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

	/* 模板资源类型下的维度,如果该资源分维度,则必须传入此参数 (Optional) */
	Dimension string `json:"dimension"`

	/* 模板的资源类型  */
	Product string `json:"product"`

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

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

	/* 模板UUID  */
	TemplateUuid string `json:"templateUuid"`
}

type UpdateTemplateResponseEnd added in v1.13.0

type UpdateTemplateResponseEnd struct {

	/* 是否更新成功 (Optional) */
	Success bool `json:"success"`

	/* 更新后的模板id (Optional) */
	TemplateId int64 `json:"templateId"`
}

type UpdateTemplateResponseResultV2 added in v1.13.0

type UpdateTemplateResponseResultV2 struct {

	/* 是否更新成功 (Optional) */
	Success bool `json:"success"`

	/* 更新后的模板uuid (Optional) */
	TemplateUuid string `json:"templateUuid"`
}

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 UpdateWebHookOut added in v1.13.0

type UpdateWebHookOut struct {

	/*  (Optional) */
	Success bool `json:"success"`
}

type UpdateWebHookReq added in v1.11.0

type UpdateWebHookReq struct {

	/* 是否启用, 1表示启用webHook,0表示禁用webHook,默认为1 (Optional) */
	Active int64 `json:"active"`

	/* webHook content (Optional) */
	Content string `json:"content"`

	/* webHook 协议,http或者https  */
	Protocol string `json:"protocol"`

	/* webHook secret,用户请求签名,防伪造 (Optional) */
	Secret string `json:"secret"`

	/* webHook url  */
	Url string `json:"url"`
}

type UpdateWebHookSpec added in v1.13.0

type UpdateWebHookSpec struct {

	/* 是否启用, 1表示启用webHook,0表示禁用webHook,默认为1 (Optional) */
	Active int64 `json:"active"`

	/* webHook content (Optional) */
	Content string `json:"content"`

	/* webHook 协议,http或者https  */
	Protocol string `json:"protocol"`

	/* webHook secret,用户请求签名,防伪造 (Optional) */
	Secret string `json:"secret"`

	/* webHook url  */
	Url string `json:"url"`
}

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 WebHookOption added in v1.13.0

type WebHookOption struct {

	/* 回调content 注:仅webHookUrl和webHookProtocol均不为空时,才会创建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 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