models

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 15

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 AlarmCategory added in v1.56.0

type AlarmCategory struct {

	/* 自增id (Optional) */
	Id int `json:"id"`

	/* 业务线代码 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 类型标识 (Optional) */
	Category string `json:"category"`

	/* 实际没用 (Optional) */
	CategoryType int `json:"categoryType"`

	/* 中文名称 (Optional) */
	CategoryNameCH string `json:"categoryNameCH"`

	/* 英文名称 (Optional) */
	CategoryNameEN string `json:"categoryNameEN"`

	/* 标签服务处注册的serviceCode (Optional) */
	TagServiceCode string `json:"tagServiceCode"`

	/* 前端控制台链接的serviceCode (Optional) */
	WebCode string `json:"webCode"`

	/* dashboard是否可用 (Optional) */
	Dashboard int `json:"dashboard"`

	/* 当有维度时,此处可空,无时需要设置 (Optional) */
	GroupCodes string `json:"groupCodes"`

	/* 除资源tag外,其他需要重点关注的tag,当报警规则运行时,会附加该tag去查询数据,当有维度(dimension)时,此处可空 (Optional) */
	Tags string `json:"tags"`

	/* 分组 (Optional) */
	AlarmDimensions []AlarmDimension `json:"alarmDimensions"`

	/* 排序字段 (Optional) */
	Column string `json:"column"`

	/* 排序方式 (Optional) */
	Dir string `json:"dir"`

	/* 页码 (Optional) */
	Number int `json:"number"`

	/* 查询条数 (Optional) */
	Size int `json:"size"`
}

type AlarmDimension added in v1.56.0

type AlarmDimension struct {

	/* 自增id (Optional) */
	Id int `json:"id"`

	/* 类型id (Optional) */
	CategoryId int `json:"categoryId"`

	/* 代码 (Optional) */
	Dimension string `json:"dimension"`

	/* 中文名称 (Optional) */
	DimensionNameCH string `json:"dimensionNameCH"`

	/* 英文名称 (Optional) */
	DimensionNameEN string `json:"dimensionNameEN"`

	/* 标签服务处注册的serviceCode (Optional) */
	TagServiceCode string `json:"tagServiceCode"`

	/* 前端控制台链接的serviceCode (Optional) */
	WebCode string `json:"webCode"`

	/* dashboard是否可用 (Optional) */
	Dashboard int `json:"dashboard"`

	/* 是否有子节点,一般认为,当下方配置的tags不为空时,即有子节点 (Optional) */
	HasSubNode int `json:"hasSubNode"`

	/* 当有维度时,此处可空,无时需要设置 (Optional) */
	GroupCodes string `json:"groupCodes"`

	/* 除资源tag外,其他需要重点关注的tag,当报警规则运行时,会附加该tag去查询数据,当有维度(dimension)时,此处可空 (Optional) */
	Tags string `json:"tags"`

	/* 排序字段 (Optional) */
	Column string `json:"column"`

	/* 排序方式 (Optional) */
	Dir string `json:"dir"`

	/* 页码 (Optional) */
	Number int `json:"number"`

	/* 查询条数 (Optional) */
	Size int `json:"size"`
}

type AlarmNofityConfig added in v1.54.0

type AlarmNofityConfig struct {

	/* ark节点  */
	ArkNode string `json:"arkNode"`

	/* 通知channle名称  */
	ChannelName string `json:"channelName"`

	/* 通知channle目的地url  */
	ChannelUrl string `json:"channelUrl"`
}

type AlarmUsage added in v1.54.0

type AlarmUsage struct {

	/* 规则类型:resourceMonitor资源监控;customMetric自定义监控;oneclickAlarm一键报警 (Optional) */
	AlarmType string `json:"alarmType"`

	/* 总个数 (Optional) */
	AllCount int64 `json:"allCount"`

	/* 启用个数 (Optional) */
	EnableCount int64 `json:"enableCount"`
}

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 AlertChannel added in v1.54.0

type AlertChannel struct {

	/*  (Optional) */
	Created string `json:"created"`

	/* channel id (Optional) */
	Uid string `json:"uid"`

	/* alert channel类型 (Optional) */
	AlertChannelType string `json:"alertChannelType"`

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

	/* 详情 (Optional) */
	Settings interface{} `json:"settings"`
}

type AlertResource added in v1.16.0

type AlertResource struct {

	/* 报警个数 (Optional) */
	AlertCount int64 `json:"alertCount"`

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

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

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

type Annotation added in v1.16.0

type Annotation struct {

	/*  (Optional) */
	Custom interface{} `json:"custom"`

	/*  (Optional) */
	Description string `json:"description"`

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

	/*  (Optional) */
	Notes string `json:"notes"`

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

	/*  (Optional) */
	Tsuid string `json:"tsuid"`
}

type Attrs added in v1.16.0

type Attrs struct {

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

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

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 BasicCustomRule added in v1.16.0

type BasicCustomRule struct {

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

	/* 监控项metric  */
	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 BasicDatasource added in v1.16.0

type BasicDatasource struct {

	/* customHttpHeader (Optional) */
	CustomHttpHeader interface{} `json:"customHttpHeader"`

	/*  (Optional) */
	OpentsdbExtend OpentsdbExtend `json:"opentsdbExtend"`

	/* jdcloud-monitor-opentsdb     后续可能会有其它。如jdcloud-monitor-prometheus等  */
	PluginType string `json:"pluginType"`

	/* 数据源地址  */
	Url string `json:"url"`
}

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 {

	/* 自增id (Optional) */
	Id int `json:"id"`

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

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

	/* chartNameCH (Optional) */
	ChartNameCH string `json:"chartNameCH"`

	/* chartNameEN (Optional) */
	ChartNameEN string `json:"chartNameEN"`

	/* chartUnitCH (Optional) */
	ChartUnitCH string `json:"chartUnitCH"`

	/* chartUnitEN (Optional) */
	ChartUnitEN string `json:"chartUnitEN"`

	/* chartIndex (Optional) */
	ChartIndex int `json:"chartIndex"`

	/* metrics (Optional) */
	Metrics string `json:"metrics"`

	/* metricIds (Optional) */
	MetricIds []int `json:"metricIds"`

	/* 排序字段 (Optional) */
	Column string `json:"column"`

	/* 排序方式 (Optional) */
	Dir string `json:"dir"`

	/* 页码 (Optional) */
	Number int `json:"number"`

	/* 查询条数 (Optional) */
	Size int `json:"size"`
}

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 CloudMonitorAccessList added in v1.16.0

type CloudMonitorAccessList struct {

	/* 是否允许选择全部 (Optional) */
	AllowedAll bool `json:"allowedAll"`

	/* serviceCode列表 (Optional) */
	ServiceCodes []CloudMonitorServiceCodeItem `json:"serviceCodes"`
}

type CloudMonitorOption added in v1.16.0

type CloudMonitorOption struct {

	/* 1-all 2-指定权限 (Optional) */
	ControllerType int64 `json:"controllerType"`

	/* 个数最多20个 (Optional) */
	ServiceCodes []string `json:"serviceCodes"`
}

type CloudMonitorServiceCodeItem added in v1.16.0

type CloudMonitorServiceCodeItem struct {

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

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

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 ConfigNotificationSpec added in v1.54.0

type ConfigNotificationSpec struct {

	/* 事件操作类型、    create、update、delete  */
	ActionType string `json:"actionType"`

	/*  (Optional) */
	MsgDetail AlarmNofityConfig `json:"msgDetail"`

	/* 事件类型、    nofityChannelMsg(通知渠道配置消息)  */
	MsgType string `json:"msgType"`
}

type Contact added in v1.16.0

type Contact struct {

	/* 联系人类型。"group"表示群组,"user"表示用户, "self"表示发给pin自己  */
	Category string `json:"category"`

	/* 联系人ID  */
	Id int64 `json:"id"`
}

type CreateAlarmSpec

type CreateAlarmSpec struct {

	/* 弹性伸缩组Id。注:仅ag\asg产品线内部使用 (Optional) */
	AutoScalingPolicyId string `json:"autoScalingPolicyId"`

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

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

	/* 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) */
	DataOwner int64 `json:"dataOwner"`

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

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

	/* url回调设置数组 (Optional) */
	MultiWebHook []WebHookOption `json:"multiWebHook"`

	/* 通知策略 (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相等,则返回第一次创建的规则id,保证只创建一次规则  */
	ClientToken string `json:"clientToken"`

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

type CreateCustomAlarmParam added in v1.16.0

type CreateCustomAlarmParam struct {

	/* 聚合方式,多个维度聚合成1个维度时,多维度值之间的聚合方式。可选值:sum、avg、min、max  */
	AggrType string `json:"aggrType"`

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

	/* 数据所有者,1云监控控制台; 2云鼎。默认为1
	in: query (Optional) */
	DataOwner int64 `json:"dataOwner"`

	/* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足),至少指定一个  */
	Dimensions []DimensionsParam `json:"dimensions"`

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

	/* 回调数组 (Optional) */
	MultiWebHook []WebHookOption `json:"multiWebHook"`

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

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

	/* 规则绑定资源所在地域  */
	Region string `json:"region"`

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

	/* 规则的触发条件设置选项  */
	RuleOption []BasicCustomRule `json:"ruleOption"`

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

type CreateCustomQuerySpec added in v1.16.0

type CreateCustomQuerySpec struct {

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

	/* 快捷检索条件名称,长度为32个字符,只允许中文、数字、大小写字母、英文下划线“_”及中划线“-”,且不允许重名  */
	Name string `json:"name"`

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

	/*   */
	QueryOption QueryOptionCreate `json:"queryOption"`

	/*   */
	RegionId string `json:"regionId"`
}

type CreateDashboardSpec added in v1.2.1

type CreateDashboardSpec struct {

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

type CreateDynamicSpec added in v1.16.0

type CreateDynamicSpec struct {

	/* 幂等性校验参数  */
	ClientToken string `json:"clientToken"`

	/* 产品动态中文描述  */
	DynamicDetailCN string `json:"dynamicDetailCN"`

	/* 产品动态英文描述  */
	DynamicDetailEN string `json:"dynamicDetailEN"`

	/* 产品动态类型 1-新产品 2-新功能 3-功能调整 4-其它  */
	DynamicType int64 `json:"dynamicType"`

	/* 产品动态链接地址 (Optional) */
	DynamicUrl string `json:"dynamicUrl"`
}

type CreateGrafanaDashboardSpec added in v1.16.0

type CreateGrafanaDashboardSpec struct {

	/*  (Optional) */
	Description string `json:"description"`

	/* FolderId,文件夹id,默认为0 (Optional) */
	FolderId int64 `json:"folderId"`

	/* Params, 模板参数名称及指定值,key为名称、value为指定值  */
	Params interface{} `json:"params"`

	/* templateUid  */
	TemplateUid string `json:"templateUid"`

	/* Title  */
	Title string `json:"title"`
}

type CreateGrafanaFolderReq added in v1.16.0

type CreateGrafanaFolderReq struct {

	/* 文件夹列表  */
	Title string `json:"title"`
}

type CreatePanelSpec added in v1.54.0

type CreatePanelSpec struct {

	/* 该panel所属dashboard的uid  */
	DashboardUid string `json:"dashboardUid"`

	/* 该panel所属维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 该panel包含的metric  */
	PanelMetrics []PanelMetricForCreate `json:"panelMetrics"`

	/* 该panel的名字 (Optional) */
	PanelName string `json:"panelName"`

	/* 资源id列表,与标签服务互斥,且资源id列表与标签服务列表至少传一个 (Optional) */
	PanelResources []PanelResource `json:"panelResources"`

	/* 标签服务列表,与资源id列表互斥,且资源id列表与标签服务列表至少传一个 (Optional) */
	PanelTagResources []PanelTagResource `json:"panelTagResources"`

	/* topN的数量,图表类型为3(topN表格)时必填 (Optional) */
	PanelTopNum int64 `json:"panelTopNum"`

	/* 该panel的类型,1-折线图(明细);2-折线图(汇总);3-topN表格  */
	PanelType int64 `json:"panelType"`

	/* 该panel所属产品  */
	Product string `json:"product"`

	/* 依据tag过滤(维度) (Optional) */
	Tags []TagFilter `json:"tags"`
}

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 CustomMetricStatus added in v1.16.0

type CustomMetricStatus struct {

	/* 影响资源个数 (Optional) */
	Count int64 `json:"count"`

	/* 命名空间数量 (Optional) */
	NamespaceCount int64 `json:"namespaceCount"`

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

	/* 服务状态 (Optional) */
	Status string `json:"status"`
}

type CustomQuery added in v1.16.0

type CustomQuery struct {

	/* 快捷检索条件名称,长度为32个字符,只允许中文、数字、大小写字母、英文下划线“_”及中划线“-”,且不允许重名 (Optional) */
	Name string `json:"name"`

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

	/* 命名空间名字 (Optional) */
	NamespaceName string `json:"namespaceName"`

	/*  (Optional) */
	Query DescribeQueryOption `json:"query"`

	/* 快捷检索条件Uuid (Optional) */
	QueryUuid string `json:"queryUuid"`

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

type CustomReportDetailsInfo added in v1.16.0

type CustomReportDetailsInfo struct {

	/* 该命名空间下metric的数量 (Optional) */
	MetricCount int64 `json:"metricCount"`

	/* 命名空间名称 (Optional) */
	NamespaceName string `json:"namespaceName"`

	/* 命名空间 (Optional) */
	NamespaceUid string `json:"namespaceUid"`

	/* 该命名空间下监控对象的数量 (Optional) */
	ObjectCount int64 `json:"objectCount"`

	/* 该namespace的上报详情 (Optional) */
	ReportInfo []NsReportInfo `json:"reportInfo"`
}

type CustomRuleDetail added in v1.16.0

type CustomRuleDetail struct {

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

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

	/* 监控项metric  */
	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 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 DashboardInfo added in v1.16.0

type DashboardInfo struct {

	/*  (Optional) */
	Description string `json:"description"`

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

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

	/*  (Optional) */
	Timezone string `json:"timezone"`

	/*  (Optional) */
	Title string `json:"title"`

	/*  (Optional) */
	Uid string `json:"uid"`

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

type DataInfoB added in v1.16.0

type DataInfoB struct {

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

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

type DataMappingB added in v1.16.0

type DataMappingB struct {

	/*  (Optional) */
	InstanceId string `json:"instanceId"`

	/*  (Optional) */
	InstanceName string `json:"instanceName"`

	/*  (Optional) */
	InstanceStatus string `json:"instanceStatus"`

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

type DataPoint

type DataPoint struct {

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

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

type DataPointByTag added in v1.16.0

type DataPointByTag 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 {

	/* 1 进数据点打tag,如果数据点存在该tag,予以覆盖,2进行数据点打tag,如果数据存在该tag,跳过不予处理,3 对于数据点中存在tag进行改名称,
	例如:{"tagKey":"resourceId","tagValue":"nodeId","operation":3},原数据点名称resourceId:"ia-adx01"改名成nodeId:"ia-adx01" (Optional) */
	Operation int64 `json:"operation"`

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

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

type Datasource added in v1.16.0

type Datasource struct {

	/* customHttpHeader (Optional) */
	CustomHttpHeader interface{} `json:"customHttpHeader"`

	/* 数据源名称  */
	Name string `json:"name"`

	/*  (Optional) */
	OpentsdbExtend OpentsdbExtend `json:"opentsdbExtend"`

	/* jdcloud-monitor-opentsdb     后续可能会有其它。如jdcloud-monitor-prometheus等  */
	PluginType string `json:"pluginType"`

	/* 数据源地址  */
	Url string `json:"url"`
}

type DatasourceDetail added in v1.16.0

type DatasourceDetail struct {

	/* 数据源id (Optional) */
	DatasourceId int `json:"datasourceId"`

	/* 是否是默认数据源 (Optional) */
	IsDefault bool `json:"isDefault"`

	/* 数据源名称 (Optional) */
	Name string `json:"name"`

	/*  (Optional) */
	OpentsdbExtend OpentsdbExtend `json:"opentsdbExtend"`

	/* orgId (Optional) */
	OrgId int `json:"orgId"`

	/* 插件类型 (Optional) */
	PluginType string `json:"pluginType"`

	/* 数据源地址 (Optional) */
	Url string `json:"url"`
}

type DatasourceToken added in v1.16.0

type DatasourceToken struct {

	/* ark节点名称  */
	ArkNode string `json:"arkNode"`

	/*  (Optional) */
	CloudMonitorOption CloudMonitorOption `json:"cloudMonitorOption"`

	/* cloudmonitor\hawkeye\deeplog  */
	DatasourceType string `json:"datasourceType"`

	/* orgId (Optional) */
	OrgId int `json:"orgId"`
}

type DateAlertCount added in v1.16.0

type DateAlertCount struct {

	/* 报警个数 (Optional) */
	AlertCount int64 `json:"alertCount"`

	/*  (Optional) */
	Date string `json:"date"`
}

type DeepLogOption added in v1.16.0

type DeepLogOption struct {
}

type DeleteAlarmsSpec added in v1.13.0

type DeleteAlarmsSpec struct {

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

type DeleteDashboardsSpec added in v1.16.0

type DeleteDashboardsSpec struct {

	/* filters, name为dashboardUids, values为dashboardUid列表,精确匹配,支持多个  */
	Filters []Filter `json:"filters"`
}

type DeleteDataBackSpec added in v1.16.0

type DeleteDataBackSpec struct {

	/* 要删除数据的key (Optional) */
	Key []string `json:"key"`
}

type DeleteGrafanaDashboardsSpec added in v1.16.0

type DeleteGrafanaDashboardsSpec struct {

	/* filters, name为dashboardUids, values为dashboardUid列表,精确匹配,支持多个 (Optional) */
	Filters []Filter `json:"filters"`
}

type DeleteGrafanaTemplatesSpec added in v1.16.0

type DeleteGrafanaTemplatesSpec struct {

	/* filters, name为templateUids, values为templateUids列表,精确匹配,支持多个  */
	Filters []Filter `json:"filters"`
}

type DeleteTemplateResponseEnd added in v1.13.0

type DeleteTemplateResponseEnd struct {

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

type DeleteTemplateSpec added in v1.16.0

type DeleteTemplateSpec struct {

	/* filters, name为templateUids, values为templateUids列表,精确匹配,支持多个  */
	Filters []Filter `json:"filters"`
}

type DescribeAlarmHistoryDetail added in v1.16.0

type DescribeAlarmHistoryDetail struct {

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

	/* 资源维度 (Optional) */
	Dimension interface{} `json:"dimension"`

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

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

	/* 命名空间名称 (Optional) */
	NamespaceName string `json:"namespaceName"`

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

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

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

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

	/* 规则绑定资源所在地域 (Optional) */
	Region string `json:"region"`

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

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

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

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 DescribeCustomAlarmDetail added in v1.16.0

type DescribeCustomAlarmDetail struct {

	/* 聚合方式,多个维度聚合成1个维度时,多维度值之间的聚合方式。可选值:sum、avg、min、max (Optional) */
	AggrType string `json:"aggrType"`

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

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

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

	/* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足),至少指定一个 (Optional) */
	Dimensions []DimensionParamDetail `json:"dimensions"`

	/* 拼接好的资源维度信息 (Optional) */
	DimensionsText string `json:"dimensionsText"`

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

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

	/* 命名空间名称 (Optional) */
	NamespaceName string `json:"namespaceName"`

	/* 规则绑定资源所在地域 (Optional) */
	Region string `json:"region"`

	/* 规则名称 (Optional) */
	RuleName string `json:"ruleName"`

	/* 规则的触发条件设置选项 (Optional) */
	RuleOption []CustomRuleDetail `json:"ruleOption"`

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

type DescribeCustomMetricDataSpec added in v1.16.0

type DescribeCustomMetricDataSpec struct {

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出) (Optional) */
	EndTime string `json:"endTime"`

	/*   */
	Query QueryOption `json:"query"`

	/* 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800 (Optional) */
	StartTime string `json:"startTime"`

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

type DescribeDashboardsSpec added in v1.16.0

type DescribeDashboardsSpec struct {

	/* folderIds-文件夹Id,精确匹配,支持单个; (Optional) */
	Filters []Filter `json:"filters"`

	/* 当前所在页,默认为1
	in: query (Optional) */
	PageNumber int64 `json:"pageNumber"`

	/* 页面大小,默认为20;取值范围[1, 100]
	in: query (Optional) */
	PageSize int64 `json:"pageSize"`
}

type DescribeDatasourceEnd added in v1.16.0

type DescribeDatasourceEnd struct {

	/* 数据源id (Optional) */
	DatasourceId int `json:"datasourceId"`

	/* 是否是默认数据源 (Optional) */
	IsDefault bool `json:"isDefault"`

	/* 其它属性 (Optional) */
	JsonData interface{} `json:"jsonData"`

	/* 数据源名称 (Optional) */
	Name string `json:"name"`

	/* orgId (Optional) */
	OrgId int `json:"orgId"`

	/* 插件类型 (Optional) */
	PluginType string `json:"pluginType"`

	/* 数据源地址 (Optional) */
	Url string `json:"url"`
}

type DescribeDatasourcesEnd added in v1.16.0

type DescribeDatasourcesEnd struct {

	/* 数据源列表 (Optional) */
	Datasources []DescribeDatasourceEnd `json:"datasources"`
}

type DescribeGrafanaDashboardsSpec added in v1.16.0

type DescribeGrafanaDashboardsSpec struct {

	/* folderIds-文件夹Id,精确匹配,支持单个; (Optional) */
	Filters []Filter `json:"filters"`

	/* 当前所在页,默认为1
	in: query (Optional) */
	PageNumber int64 `json:"pageNumber"`

	/* 页面大小,默认为20;取值范围[1, 100]
	in: query (Optional) */
	PageSize int64 `json:"pageSize"`
}

type DescribeGrafanaTemplatesSpec added in v1.16.0

type DescribeGrafanaTemplatesSpec struct {

	/* 模板uid列表或数据源类型
	templateUids-模板uids,精确匹配,支持多个;
	datasourceType-数据源类型,精确匹配,支持多个(云监控:cloudmonitor,hawkeye:hawkeye,deeplog:deeplog) (Optional) */
	Filters []Filter `json:"filters"`

	/* 当前所在页,默认为1
	in: query (Optional) */
	PageNumber int64 `json:"pageNumber"`

	/* 页面大小,默认为20;取值范围[1, 100]
	in: query (Optional) */
	PageSize int64 `json:"pageSize"`

	/* 模板类型,0表示系统、1表示自定义,默认为0 (Optional) */
	TemplateType int64 `json:"templateType"`
}

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 DescribeMetricsByNameSpaceSpec added in v1.16.0

type DescribeMetricsByNameSpaceSpec struct {

	/* 要搜索的metric前缀 (Optional) */
	Metric string `json:"metric"`
}

type DescribeMetricsForCreateAlarmEnd added in v1.13.0

type DescribeMetricsForCreateAlarmEnd struct {

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

type DescribeMonitorNamespacesSpec added in v1.16.0

type DescribeMonitorNamespacesSpec struct {

	/* 要搜索的namespace,支持前缀匹配 (Optional) */
	Namespace string `json:"namespace"`
}

type DescribeOrgsEnd added in v1.16.0

type DescribeOrgsEnd struct {

	/* org列表 (Optional) */
	Orgs []Org `json:"orgs"`
}

type DescribeQueryOption added in v1.16.0

type DescribeQueryOption struct {

	/* 聚合方式,默认等于downSampleType(若downSampleType为last,AggrType取max)或avg,可选值参考:sum、avg、min、max (Optional) */
	AggrType string `json:"aggrType"`

	/* 监控指标数据的维度信息,根据tags来指定查询的监控数据维度,至少指定一个查询维度 (Optional) */
	Dimensions []DimensionParamDetail `json:"dimensions"`

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

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

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

type DescribeRawMetricDataSpec added in v1.54.0

type DescribeRawMetricDataSpec struct {

	/* 多维度聚合方式,即多条时序数据聚合为一条时序数据的方式,支持zimsum,avg,max,min,参考opentsdb协议http://opentsdb.net/docs/build/html/user_guide/query/aggregators.html  */
	Aggregator string `json:"aggregator"`

	/* 采样方式即时间维度的聚合, 比如5m-sum-zero。若要将时间范围内的数据聚合为一个值,用0all-sum。注意:采样周期不得低于5分钟。参考opentsdb协议http://opentsdb.net/docs/build/html/user_guide/query/downsampling.html  */
	Downsample string `json:"downsample"`

	/* 查询结束时间, 秒级时间戳, 查询时间段不得超过31天  */
	End int64 `json:"end"`

	/* 监控指标数据的维度信息,根据filters来筛选指标数据不同的维度,至少需要包含一个  */
	Filters []TsdbFilter `json:"filters"`

	/* metric  */
	Metric string `json:"metric"`

	/* 查询开始时间, 秒级时间戳, 查询时间段不得超过31天, 最早开始时间不得早于45天前  */
	Start int64 `json:"start"`
}

type DescribeResourceMonitorStatusOut added in v1.16.0

type DescribeResourceMonitorStatusOut struct {

	/* 资源监控服务状态 (Optional) */
	ResourceMonitorStatus []ResourceMonitorStatus `json:"resourceMonitorStatus"`
}

type DescribeTagKeysByMetricSpec added in v1.16.0

type DescribeTagKeysByMetricSpec struct {

	/* 要搜索的dimensionKey前缀 (Optional) */
	DimensionKey string `json:"dimensionKey"`
}

type DescribeTagValuesByTagKeySpec added in v1.16.0

type DescribeTagValuesByTagKeySpec struct {

	/* 要搜索的dimensionValue前缀 (Optional) */
	DimensionValue string `json:"dimensionValue"`

	/* 监控指标数据的维度信息,根据tags来筛选指标数据不同的维度 (Optional) */
	Tags []TagFilter `json:"tags"`
}

type DescribeTemplateByIDSpec added in v1.2.1

type DescribeTemplateByIDSpec struct {

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

type DescribeTemplateSpec added in v1.16.0

type DescribeTemplateSpec struct {

	/* 模板uid列表或数据源类型
	templateUids-模板uids,精确匹配,支持多个;
	datasourceType-数据源类型,精确匹配,支持多个(云监控:cloudmonitor,hawkeye:hawkeye,deeplog:deeplog) (Optional) */
	Filters []Filter `json:"filters"`

	/* 当前所在页,默认为1
	in: query (Optional) */
	PageNumber int64 `json:"pageNumber"`

	/* 页面大小,默认为20;取值范围[1, 100]
	in: query (Optional) */
	PageSize int64 `json:"pageSize"`

	/* 模板类型,0表示系统、1表示自定义,默认为0 (Optional) */
	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 DescribeTokenEnd added in v1.16.0

type DescribeTokenEnd struct {

	/* 数据源token (Optional) */
	AccessToken string `json:"accessToken"`

	/* ark节点 (Optional) */
	Ark string `json:"ark"`

	/*  (Optional) */
	CloudMonitorOption CloudMonitorOption `json:"cloudMonitorOption"`

	/* HawkeyeOption      *model.HawkeyeOption      `json:"hawkeyeOption,omitempty"`
	DeepLogOption      *model.DeepLogOption      `json:"deepLogOption,omitempty"` (Optional) */
	CreateTime string `json:"createTime"`

	/* 数据源类型 (Optional) */
	DatasourceType string `json:"datasourceType"`

	/*  (Optional) */
	OrgId int64 `json:"orgId"`

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

type DescribeTokensEnd added in v1.16.0

type DescribeTokensEnd struct {

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

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

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

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

	/*  (Optional) */
	Tokens []DescribeTokenEnd `json:"tokens"`
}

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 DescribeUsersEnd added in v1.16.0

type DescribeUsersEnd struct {

	/* 用户列表 (Optional) */
	Users []OrgUser `json:"users"`
}

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

	/* 是否是一键告警 (1-一键告警  0-非一键告警) (Optional) */
	IsOneClickAlarm int64 `json:"isOneClickAlarm"`

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

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

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

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

	/* 告警时间对应的时间戳 (Optional) */
	NoticeTimeUnix int64 `json:"noticeTimeUnix"`

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

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

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

	/* 资源Id对应的region (Optional) */
	Region string `json:"region"`

	/* 资源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 DetailAPIB added in v1.16.0

type DetailAPIB struct {

	/*  (Optional) */
	Api string `json:"api"`

	/*  (Optional) */
	Query interface{} `json:"query"`

	/*  (Optional) */
	Root string `json:"root"`
}

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 DimensionParamDetail added in v1.16.0

type DimensionParamDetail struct {

	/* 是否分组查询 (Optional) */
	GroupBy bool `json:"groupBy"`

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

	/* 维度key名字 (Optional) */
	KeyName string `json:"keyName"`

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

type DimensionsParam added in v1.16.0

type DimensionsParam struct {

	/* 是否分组查询 (Optional) */
	GroupBy *bool `json:"groupBy"`

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

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

type Dynamic added in v1.16.0

type Dynamic struct {

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

	/* 产品动态描述,前端展示用,自动中英文适配 (Optional) */
	DynamicDetail string `json:"dynamicDetail"`

	/* 产品动态中文描述 (Optional) */
	DynamicDetailCN string `json:"dynamicDetailCN"`

	/* 产品动态英文描述 (Optional) */
	DynamicDetailEN string `json:"dynamicDetailEN"`

	/* 产品动态状态 1-已上线 0-已下线 (Optional) */
	DynamicStatus int64 `json:"dynamicStatus"`

	/* 产品动态类型 1-新产品 2-新功能 3-功能调整 4-其它 (Optional) */
	DynamicType int64 `json:"dynamicType"`

	/* 产品动态链接地址 (Optional) */
	DynamicUrl string `json:"dynamicUrl"`

	/* 产品动态更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 产品动态uuid (Optional) */
	Uuid string `json:"uuid"`
}

type EnableAlarmsSpec added in v1.13.0

type EnableAlarmsSpec struct {

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

type EnableOneClickAlarmsSpec added in v1.54.0

type EnableOneClickAlarmsSpec struct {

	/* 一键报警规则下的报警规则id  */
	RulePolicyId string `json:"rulePolicyId"`

	/* 1启动、0关闭  */
	State int64 `json:"state"`
}

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 ErrOpenapiResponseInfo added in v1.56.0

type ErrOpenapiResponseInfo struct {

	/*  (Optional) */
	RequestId string `json:"requestId"`
}

type Filter added in v1.1.1

type Filter struct {

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

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

type FolderInfo added in v1.16.0

type FolderInfo struct {

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

	/*  (Optional) */
	Title string `json:"title"`
}

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 {

	/* 操作类型 1 复制原数据点,复制过程中只拷贝对原数据中tag改名的tag 2 不进行复制 (Optional) */
	HandleTagCode int64 `json:"handleTagCode"`

	/*  (Optional) */
	HandleTags []DataTag `json:"handleTags"`

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

type HawkeyeOption added in v1.16.0

type HawkeyeOption struct {
}

type KeyInfo added in v1.16.0

type KeyInfo struct {

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

	/* key名字 (Optional) */
	KeyName string `json:"keyName"`
}

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

	/*  (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 ListAPIB added in v1.16.0

type ListAPIB struct {

	/*  (Optional) */
	Api string `json:"api"`

	/*  (Optional) */
	Query interface{} `json:"query"`

	/*  (Optional) */
	Root string `json:"root"`

	/*  (Optional) */
	TotalCount string `json:"totalCount"`
}

type Location added in v1.2.1

type Location struct {

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

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

type LvInfoB added in v1.16.0

type LvInfoB struct {

	/*  (Optional) */
	Label string `json:"label"`

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

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 {

	/* 自增id (Optional) */
	Id int `json:"id"`

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

	/* metricIndex (Optional) */
	MetricIndex int `json:"metricIndex"`

	/* metricID (Optional) */
	MetricID string `json:"metricID"`

	/* metricNameCH (Optional) */
	MetricNameCH string `json:"metricNameCH"`

	/* metricNameEN (Optional) */
	MetricNameEN string `json:"metricNameEN"`

	/* valueType (Optional) */
	ValueType string `json:"valueType"`

	/* downsampleAgg (Optional) */
	DownsampleAgg string `json:"downsampleAgg"`

	/* groupAgg (Optional) */
	GroupAgg string `json:"groupAgg"`

	/* isRate (Optional) */
	IsRate int `json:"isRate"`

	/* isSumRate (Optional) */
	IsSumRate int `json:"isSumRate"`

	/* defaultDownsample (Optional) */
	DefaultDownsample string `json:"defaultDownsample"`

	/* upUnit (Optional) */
	UpUnit string `json:"upUnit"`

	/* monitorUnitCH (Optional) */
	MonitorUnitCH string `json:"monitorUnitCH"`

	/* monitorUnitEN (Optional) */
	MonitorUnitEN string `json:"monitorUnitEN"`

	/* alarmUnitCH (Optional) */
	AlarmUnitCH string `json:"alarmUnitCH"`

	/* alarmUnitEN (Optional) */
	AlarmUnitEN string `json:"alarmUnitEN"`

	/* unitConvertFrom (Optional) */
	UnitConvertFrom int `json:"unitConvertFrom"`

	/* unitConvertTo (Optional) */
	UnitConvertTo int `json:"unitConvertTo"`

	/* isShow (Optional) */
	IsShow int `json:"isShow"`

	/* isEnable (Optional) */
	IsEnable int `json:"isEnable"`

	/* defaultTagName (Optional) */
	DefaultTagName string `json:"defaultTagName"`

	/* defaultTagValue (Optional) */
	DefaultTagValue string `json:"defaultTagValue"`

	/* tags (Optional) */
	Tags string `json:"tags"`

	/* isAlarm (Optional) */
	IsAlarm int `json:"isAlarm"`

	/* newNet (Optional) */
	NewNet int `json:"newNet"`

	/* timeInterval (Optional) */
	TimeInterval int `json:"timeInterval"`

	/* 业务线代码 (Optional) */
	ServiceCodes []string `json:"serviceCodes"`

	/* 分组id (Optional) */
	GroupIds []int `json:"groupIds"`

	/* 分组信息 (Optional) */
	GroupCodes string `json:"groupCodes"`

	/* 排序字段 (Optional) */
	Column string `json:"column"`

	/* 排序方式 (Optional) */
	Dir string `json:"dir"`

	/* 页码 (Optional) */
	Number int `json:"number"`

	/* 查询条数 (Optional) */
	Size int `json:"size"`
}

type MetricCm added in v1.2.1

type MetricCm struct {

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

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

	/*  (Optional) */
	Dimensions interface{} `json:"dimensions"`

	/*  (Optional) */
	DownSamplePeriod string `json:"downSamplePeriod"`

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

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

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

type MetricCmByTag added in v1.16.0

type MetricCmByTag 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 MetricDataItemCmByTag added in v1.16.0

type MetricDataItemCmByTag struct {

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

	/*  (Optional) */
	Metric MetricCmByTag `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 MetricGroup added in v1.56.0

type MetricGroup struct {

	/* 自增id (Optional) */
	Id int `json:"id"`

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

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

	/* groupNameCH (Optional) */
	GroupNameCH string `json:"groupNameCH"`

	/* groupNameEN (Optional) */
	GroupNameEN string `json:"groupNameEN"`

	/* webCode (Optional) */
	WebCode string `json:"webCode"`

	/* mainTag (Optional) */
	MainTag string `json:"mainTag"`

	/* tags (Optional) */
	Tags string `json:"tags"`

	/* parent (Optional) */
	Parent int `json:"parent"`

	/* hasChildren (Optional) */
	HasChildren bool `json:"hasChildren"`

	/* deletable (Optional) */
	Deletable bool `json:"deletable"`

	/* 业务线代码 (Optional) */
	ServiceCodes []string `json:"serviceCodes"`

	/* 排序字段 (Optional) */
	Column string `json:"column"`

	/* 排序方式 (Optional) */
	Dir string `json:"dir"`

	/* 页码 (Optional) */
	Number int `json:"number"`

	/* 查询条数 (Optional) */
	Size int `json:"size"`
}

type MetricInfo added in v1.2.1

type MetricInfo struct {

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

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

	/* metricUID (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:59 (Optional) */
	EffectiveIntervalEnd *string `json:"effectiveIntervalEnd"`

	/* 生效起始时间,默认值:00: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 {

	/* namespace名字 (Optional) */
	NamespaceName string `json:"namespaceName"`

	/* namespaceUUID (Optional) */
	NamespaceUuid string `json:"namespaceUuid"`
}

type NsReportInfo added in v1.16.0

type NsReportInfo struct {

	/* 维度 (Optional) */
	Dimensions interface{} `json:"dimensions"`

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

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 OneClickAlarm added in v1.54.0

type OneClickAlarm struct {

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

	/* 一键告警规则配置
	in: body (Optional) */
	AlarmOptions []OneClickAlarmOption `json:"alarmOptions"`

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

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

	/* 是否开启, 1表示打开,0表示关闭 (Optional) */
	Enabled int64 `json:"enabled"`

	/* 是否由系统规则刚刚创建的,0代表是刚刚创建的,1代表由用户操作过的 (Optional) */
	Indeed int64 `json:"indeed"`

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

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

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type OneClickAlarmOption added in v1.54.0

type OneClickAlarmOption struct {

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

	/* 资源维度(vm-gpu、mongos-shard) (Optional) */
	Dimension string `json:"dimension"`

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

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

	/* 一键报警规则下的报警规则id (Optional) */
	PolicyId string `json:"policyId"`

	/* 资源类型(vm、database、db_ro……) (Optional) */
	Product string `json:"product"`

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

	/*  (Optional) */
	RuleOption RuleOptionDetail `json:"ruleOption"`
}

type OnlineDynamicSpec added in v1.16.0

type OnlineDynamicSpec struct {

	/* 1-上线 0-下线  */
	Online int64 `json:"online"`
}

type OpenApi added in v1.56.0

type OpenApi struct {

	/* 自增id (Optional) */
	Id int `json:"id"`

	/* 业务线代码 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 代码 (Optional) */
	GroupCode string `json:"groupCode"`

	/* 网关业务线代码 (Optional) */
	GwServiceCode string `json:"gwServiceCode"`

	/* 接口标识 (Optional) */
	InterfaceName string `json:"interfaceName"`

	/* 请求地址 (Optional) */
	ReqUrl string `json:"reqUrl"`

	/* 请求方式 (Optional) */
	ReqMethod string `json:"reqMethod"`

	/* 请求接口版本 (Optional) */
	ReqVersion string `json:"reqVersion"`

	/* 资源 (Optional) */
	ParamResourceIds string `json:"paramResourceIds"`

	/* 地域 (Optional) */
	ParamRegion string `json:"paramRegion"`

	/* 响应实例 (Optional) */
	RespResourceId string `json:"respResourceId"`

	/* 响应实例名 (Optional) */
	RespResourceName string `json:"respResourceName"`

	/* 测试用户 (Optional) */
	TestCasePin string `json:"testCasePin"`

	/* 测试地域 (Optional) */
	TestCaseRegion string `json:"testCaseRegion"`

	/* 测试ids (Optional) */
	TestCaseIds string `json:"testCaseIds"`

	/* 排序字段 (Optional) */
	Column string `json:"column"`

	/* 排序方式 (Optional) */
	Dir string `json:"dir"`

	/* 页码 (Optional) */
	Number int `json:"number"`

	/* 查询条数 (Optional) */
	Size int `json:"size"`
}

type OpenapiErrInfo added in v1.56.0

type OpenapiErrInfo struct {

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

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

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

type OpentsdbExtend added in v1.16.0

type OpentsdbExtend struct {

	/* 数据源类型    cloudmonitor|hawkeye|deeplog (Optional) */
	JdcloudDatasourceType string `json:"jdcloudDatasourceType"`

	/* 数据源token (Optional) */
	JdcloudTsdbToken string `json:"jdcloudTsdbToken"`
}

type OptionsB added in v1.16.0

type OptionsB struct {

	/*  (Optional) */
	Format string `json:"format"`

	/*  (Optional) */
	Map string `json:"map"`

	/*  (Optional) */
	OptionType interface{} `json:"optionType"`

	/*  (Optional) */
	Unix bool `json:"unix"`
}

type Org added in v1.16.0

type Org struct {

	/* ark名称 (Optional) */
	ArkName string `json:"arkName"`

	/* org id (Optional) */
	OrgId int `json:"orgId"`

	/* org名称 (Optional) */
	OrgName string `json:"orgName"`
}

type OrgUser added in v1.16.0

type OrgUser struct {

	/* 邮件地址 (Optional) */
	Email string `json:"email"`

	/*   */
	Login string `json:"login"`

	/* orgId (Optional) */
	OrgId int `json:"orgId"`

	/* 用户角色.   Admin、Editor、Viewer  */
	Role string `json:"role"`
}

type Pagination added in v1.16.0

type Pagination struct {

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

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

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

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

type PanelDimension added in v1.54.0

type PanelDimension struct {

	/* 绑定tags,查数据必传 (Optional) */
	BindTags interface{} `json:"bindTags"`

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

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

	/* 是否有子节点 (Optional) */
	HasSubNode bool `json:"hasSubNode"`

	/* 子节点的tagKey (Optional) */
	SubNodeKeys []SubNodeKeys `json:"subNodeKeys"`
}

type PanelEnd added in v1.54.0

type PanelEnd struct {

	/* 该panel所属dashboard的uid (Optional) */
	DashboardUid string `json:"dashboardUid"`

	/* 该panel所属维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 该panel包含的metric (Optional) */
	PanelMetrics []PanelMetric `json:"panelMetrics"`

	/* 该panel的名字 (Optional) */
	PanelName string `json:"panelName"`

	/*  (Optional) */
	PanelPosition PanelPosition `json:"panelPosition"`

	/* 资源id列表 (Optional) */
	PanelResources []PanelResource `json:"panelResources"`

	/* 标签服务列表 (Optional) */
	PanelTagResources []PanelTagResource `json:"panelTagResources"`

	/* topN的数量,图表类型为3(topN表格)时有效 (Optional) */
	PanelTopNum int64 `json:"panelTopNum"`

	/* 该panel的类型,1-折线图(明细);2-折线图(汇总);3-topN表格 (Optional) */
	PanelType int64 `json:"panelType"`

	/* 该panel的uid (Optional) */
	PanelUid string `json:"panelUid"`

	/* 该panel所属产品 (Optional) */
	Product string `json:"product"`

	/* 依据tag过滤 (Optional) */
	Tags []TagFilter `json:"tags"`
}

type PanelMetric added in v1.54.0

type PanelMetric struct {

	/* 推荐聚合方式 (Optional) */
	Aggregator string `json:"aggregator"`

	/* 推荐采样方式 (Optional) */
	Downsample string `json:"downsample"`

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

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

	/* 单位 (Optional) */
	Unit string `json:"unit"`
}

type PanelMetricForCreate added in v1.54.0

type PanelMetricForCreate struct {

	/* 聚合方式,跨资源计算方式 (Optional) */
	Aggregator string `json:"aggregator"`

	/* 采样方式,同一资源计算方式,如一分钟两个点,计算一分钟内这两个点的平均值得出一个点 (Optional) */
	Downsample string `json:"downsample"`

	/* metric  */
	Metric string `json:"metric"`
}

type PanelMonitorData added in v1.54.0

type PanelMonitorData struct {

	/* 聚合方式 (Optional) */
	Aggregator string `json:"aggregator"`

	/* 监控数据 (Optional) */
	DataPoint []DataPoint `json:"dataPoint"`

	/* 采样方式 (Optional) */
	Downsample string `json:"downsample"`

	/* 采样周期 (Optional) */
	DownsamplePeriod string `json:"downsamplePeriod"`

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

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

	/* 实例id,汇总图无 (Optional) */
	ResourceId string `json:"resourceId"`

	/* 实例名称,汇总图无;标签资源该值为实例id (Optional) */
	ResourceName string `json:"resourceName"`

	/* 该资源的维度值 (Optional) */
	Tags interface{} `json:"tags"`

	/* metric单位 (Optional) */
	Unit string `json:"unit"`
}

type PanelPosition added in v1.54.0

type PanelPosition struct {

	/* 该panel所在列 (Optional) */
	Col int64 `json:"col"`

	/* 该panel高度 (Optional) */
	Height int64 `json:"height"`

	/* 该panel在dashboard中的顺序 (Optional) */
	Order int64 `json:"order"`

	/* 该panel所在行 (Optional) */
	Row int64 `json:"row"`

	/* 该panel宽度 (Optional) */
	Width int64 `json:"width"`
}

type PanelPositionForUpdate added in v1.54.0

type PanelPositionForUpdate struct {

	/* 该panel所在列  */
	Col int64 `json:"col"`

	/* 该panel高度  */
	Height int64 `json:"height"`

	/* 该panel在dashboard中的顺序  */
	Order int64 `json:"order"`

	/* 更新panel的uuid  */
	PanelUid string `json:"panelUid"`

	/* 该panel所在行  */
	Row int64 `json:"row"`

	/* 该panel宽度  */
	Width int64 `json:"width"`
}

type PanelProduct added in v1.54.0

type PanelProduct struct {

	/* 绑定tags,查数据必传 (Optional) */
	BindTags interface{} `json:"bindTags"`

	/* 子维度 (Optional) */
	Dimension []PanelDimension `json:"dimension"`

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

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

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

	/* 标签服务处注册的serviceCode (Optional) */
	TagServiceCode string `json:"tagServiceCode"`
}

type PanelResource added in v1.54.0

type PanelResource struct {

	/* region  */
	RegionId string `json:"regionId"`

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

	/* 资源名称 (Optional) */
	ResourceName string `json:"resourceName"`
}

type PanelTagResource added in v1.54.0

type PanelTagResource struct {

	/* 标签服务对应的key  */
	Key string `json:"key"`

	/* region  */
	RegionId string `json:"regionId"`

	/* 标签服务对应的values  */
	Values []string `json:"values"`
}

type ParamInfo added in v1.16.0

type ParamInfo struct {

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

	/* 是否多值,默认为false (Optional) */
	IsMulti bool `json:"isMulti"`

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

	/* 可选值 (Optional) */
	Optional []string `json:"optional"`

	/* 参数类型,目前只有datasource (Optional) */
	ParamType string `json:"paramType"`

	/* 是否必须 (Optional) */
	Required bool `json:"required"`

	/* 值类型,int, float, string (Optional) */
	ValueType string `json:"valueType"`
}

type PreviewPanelMonitorDataSpec added in v1.54.0

type PreviewPanelMonitorDataSpec struct {

	/* 该panel所属dashboard的uid  */
	DashboardUid string `json:"dashboardUid"`

	/* 该panel包含的metric  */
	PanelMetrics []PanelMetricForCreate `json:"panelMetrics"`

	/* 资源id列表,与标签服务互斥,且资源id列表与标签服务列表至少传一个 (Optional) */
	PanelResources []PanelResource `json:"panelResources"`

	/* 标签服务列表,与资源id列表互斥,且资源id列表与标签服务列表至少传一个 (Optional) */
	PanelTagResources []PanelTagResource `json:"panelTagResources"`

	/* topN的数量,图表类型为3(topN表格)时必填 (Optional) */
	PanelTopNum int64 `json:"panelTopNum"`

	/* 该panel的类型,1-折线图(明细);2-折线图(汇总);3-topN表格  */
	PanelType int64 `json:"panelType"`

	/* 该panel所属产品  */
	Product string `json:"product"`

	/* 依据tag过滤(维度) (Optional) */
	Tags []TagFilter `json:"tags"`
}

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 ProductAlertStatistics added in v1.16.0

type ProductAlertStatistics struct {

	/* 规则个数 (Optional) */
	AlertCount int64 `json:"alertCount"`

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

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

type ProductB added in v1.16.0

type ProductB struct {

	/*  (Optional) */
	Attrs []Attrs `json:"attrs"`

	/*  (Optional) */
	DetailApi DetailAPIB `json:"detailApi"`

	/*  (Optional) */
	DetailLink string `json:"detailLink"`

	/*  (Optional) */
	EnableSwitchAggregates bool `json:"enableSwitchAggregates"`

	/*  (Optional) */
	ListFilter interface{} `json:"listFilter"`

	/*  (Optional) */
	ProductCode string `json:"productCode"`

	/* 中英文适配,创建时不需要填写 (Optional) */
	ProductName string `json:"productName"`

	/*  (Optional) */
	ProductNameCn string `json:"productNameCn"`

	/*  (Optional) */
	ProductNameEn string `json:"productNameEn"`

	/*  (Optional) */
	SpecialRequirements bool `json:"specialRequirements"`
}

type ProductLine added in v1.16.0

type ProductLine struct {

	/*  (Optional) */
	ProductLineCode string `json:"productLineCode"`

	/* 中英文适配 (Optional) */
	ProductLineName string `json:"productLineName"`

	/*  (Optional) */
	ProductLineNameCn string `json:"productLineNameCn"`

	/*  (Optional) */
	ProductLineNameEn string `json:"productLineNameEn"`

	/*  (Optional) */
	ServiceCodes []ServiceInfoB `json:"serviceCodes"`
}

type ProductLineSpec added in v1.16.0

type ProductLineSpec struct {

	/*   */
	ProductLineCode string `json:"productLineCode"`

	/*   */
	ProductLineNameCn string `json:"productLineNameCn"`

	/*   */
	ProductLineNameEn string `json:"productLineNameEn"`

	/*   */
	ServiceCodes []ServiceInfoCreateB `json:"serviceCodes"`
}

type PrometheusExtend added in v1.16.0

type PrometheusExtend struct {

	/* 数据源token (Optional) */
	JdcloudTsdbToken string `json:"jdcloudTsdbToken"`
}

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 PutDataBackSpec added in v1.16.0

type PutDataBackSpec struct {

	/*  (Optional) */
	DataInfo []DataInfoB `json:"dataInfo"`
}

type PutPoint added in v1.56.0

type PutPoint struct {

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

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

	/* 数据维度,数据类型为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。最大值为long.MAX_VALUE=9223372036854775807=263-1。累计类型的指标,累计到最大值后需要翻转为0,重新开始计数。翻转后不影响速率的计算。  */
	Value float64 `json:"value"`
}

type PutRequest added in v1.56.0

type PutRequest struct {

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

	/*  (Optional) */
	DataCenter string `json:"dataCenter"`

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

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

	/*  (Optional) */
	RequestId string `json:"requestId"`

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

type PutResInfo added in v1.56.0

type PutResInfo struct {

	/* 失败数量 (Optional) */
	Failed int `json:"failed"`

	/* 成功数量 (Optional) */
	Success int `json:"success"`
}

type PutResponseInfo added in v1.56.0

type PutResponseInfo struct {

	/* 请求的标识id (Optional) */
	RequestId string `json:"requestId"`
}

type PutResultInfo added in v1.56.0

type PutResultInfo struct {

	/* 失败数量 (Optional) */
	Failed int `json:"failed"`

	/* 成功数量 (Optional) */
	Success int `json:"success"`
}

type QueryOption added in v1.16.0

type QueryOption struct {

	/* 聚合方式,默认等于downSampleType(若downSampleType为last,AggrType取max)或avg,可选值参考:sum、avg、min、max (Optional) */
	AggrType *string `json:"aggrType"`

	/* 监控指标数据的维度信息,根据tags来指定查询的监控数据维度,至少指定一个查询维度  */
	Dimensions []DimensionsParam `json:"dimensions"`

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

	/* metric  */
	Metric string `json:"metric"`
}

type QueryOptionCreate added in v1.16.0

type QueryOptionCreate struct {

	/* 聚合方式,默认等于downSampleType(若downSampleType为last,AggrType取max)或avg,可选值参考:sum、avg、min、max (Optional) */
	AggrType string `json:"aggrType"`

	/* 监控指标数据的维度信息,根据维度来指定查询的监控数据维度,至少指定一个查询维度  */
	Dimensions []DimensionsParam `json:"dimensions"`

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

	/* metric  */
	Metric string `json:"metric"`
}

type QueryResponseItem added in v1.16.0

type QueryResponseItem struct {

	/* 如果结果集中包含多个时间序列,即它们被聚合
	则会显示在所有时间序列中共同发现的标记名称列表 (Optional) */
	AggregateTags []string `json:"aggregateTags"`

	/* 如果查询检索到时间序列在所请求的时间范围内的注释, 则它们将在该组中返回
	每个时间序列的注释将被合并到一个集合中,并按start_time进行排序 (Optional) */
	Annotations []Annotation `json:"annotations"`

	/* 由聚合器处理后检索的数据点
	每个数据点由一个时间戳和一个值组成 (Optional) */
	Dps interface{} `json:"dps"`

	/* 查询将在时间范围内扫描全局注释,并在该组中返回结果 (Optional) */
	GlobalAnnotations []Annotation `json:"globalAnnotations"`

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

	/* 仅当结果为单时间序列时才返回标签列表
	如果是聚合则返回空 (Optional) */
	Tags interface{} `json:"tags"`
}

type RawData added in v1.54.0

type RawData struct {

	/* 被聚合的tags (Optional) */
	AggregateTags []string `json:"aggregateTags"`

	/* 数据点 (Optional) */
	Dps interface{} `json:"dps"`

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

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

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 ResourceMonitorStatus added in v1.16.0

type ResourceMonitorStatus struct {

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

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

	/* 影响资源个数 (Optional) */
	ResourceCount int64 `json:"resourceCount"`

	/* 服务状态, normal-正常 abnormal-异常 reminder-提醒 (Optional) */
	Status string `json:"status"`
}

type ResourceOption added in v1.13.0

type ResourceOption struct {

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

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

	/* 指定资源组设置报警规则 (Optional) */
	ResourceGroups []string `json:"resourceGroups"`

	/* 资源筛选的类型,1:指定具体资源 2:标签筛选 3:资源组筛选 (Optional) */
	ResourceFilterType *int64 `json:"resourceFilterType"`
}

type RuleCount added in v1.16.0

type RuleCount struct {

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

	/* 规则类型,resourceMonitor-资源监控 customMetric-自定义监控 (Optional) */
	RuleType string `json:"ruleType"`

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

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 SearchB added in v1.16.0

type SearchB struct {

	/*  (Optional) */
	Label string `json:"label"`

	/*  (Optional) */
	Placeholder string `json:"placeholder"`

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

type SendEmailSpec added in v1.11.0

type SendEmailSpec struct {

	/* 联系人列表  */
	Contacts []Contact `json:"contacts"`

	/* 邮件内容  */
	Content string `json:"content"`

	/* 邮件标题  */
	Title string `json:"title"`
}

type SendSmsSpec added in v1.11.0

type SendSmsSpec struct {

	/* 联系人列表  */
	Contacts []Contact `json:"contacts"`

	/* 短信模板Id  */
	TemplateId int64 `json:"templateId"`

	/* 短信模板参数  */
	TemplateParam []string `json:"templateParam"`
}

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 ServiceInfoB added in v1.16.0

type ServiceInfoB struct {

	/*  (Optional) */
	DataMapping DataMappingB `json:"dataMapping"`

	/*  (Optional) */
	Filters interface{} `json:"filters"`

	/*  (Optional) */
	Ipv4Regions []LvInfoB `json:"ipv4Regions"`

	/*  (Optional) */
	Ipv6Regions []LvInfoB `json:"ipv6Regions"`

	/*  (Optional) */
	ListApi ListAPIB `json:"listApi"`

	/*  (Optional) */
	Products []ProductB `json:"products"`

	/*  (Optional) */
	Search []SearchB `json:"search"`

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

	/* 中英文适配 (Optional) */
	ServiceName string `json:"serviceName"`

	/*  (Optional) */
	ServiceNameCn string `json:"serviceNameCn"`

	/*  (Optional) */
	ServiceNameEn string `json:"serviceNameEn"`

	/*  (Optional) */
	Status []StatusB `json:"status"`

	/*  (Optional) */
	TableColumns []TableColumnB `json:"tableColumns"`
}

type ServiceInfoCreateB added in v1.16.0

type ServiceInfoCreateB struct {

	/*  (Optional) */
	DataMapping DataMappingB `json:"dataMapping"`

	/*  (Optional) */
	Filters interface{} `json:"filters"`

	/*  (Optional) */
	Ipv4Regions []LvInfoB `json:"ipv4Regions"`

	/*  (Optional) */
	Ipv6Regions []LvInfoB `json:"ipv6Regions"`

	/*   */
	ListApi ListAPIB `json:"listApi"`

	/*  (Optional) */
	Products []ProductB `json:"products"`

	/*  (Optional) */
	Search []SearchB `json:"search"`

	/*   */
	ServiceCode string `json:"serviceCode"`

	/*   */
	ServiceNameCn string `json:"serviceNameCn"`

	/*   */
	ServiceNameEn string `json:"serviceNameEn"`

	/*  (Optional) */
	Status []StatusB `json:"status"`

	/*  (Optional) */
	TableColumns []TableColumnB `json:"tableColumns"`
}

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 ServiceLine added in v1.56.0

type ServiceLine struct {

	/* 自增id (Optional) */
	Id int `json:"id"`

	/* 业务线代码 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 业务线中文名 (Optional) */
	ServiceNameCH string `json:"serviceNameCH"`

	/* 业务线中文名 (Optional) */
	ServiceNameEN string `json:"serviceNameEN"`

	/* 数据上报延迟时间,单位s (Optional) */
	MetricsTimeDelay int `json:"metricsTimeDelay"`

	/* 数据上报时间间隔,单位s (Optional) */
	TimeInterval int `json:"timeInterval"`

	/* 维护者erp (Optional) */
	Owner string `json:"owner"`

	/* 是否禁用报警 (Optional) */
	DisableAlarmGroup int `json:"disableAlarmGroup"`

	/* 提交id (Optional) */
	CommitId string `json:"commitId"`

	/* 分组 (Optional) */
	Groups string `json:"groups"`

	/* 分组 (Optional) */
	GroupList []MetricGroup `json:"groupList"`

	/* 排序字段 (Optional) */
	Column string `json:"column"`

	/* 排序方式 (Optional) */
	Dir string `json:"dir"`

	/* 页码 (Optional) */
	Number int `json:"number"`

	/* 查询条数 (Optional) */
	Size int `json:"size"`
}

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 ServiceUser added in v1.56.0

type ServiceUser struct {

	/* 自增id (Optional) */
	Id int `json:"id"`

	/* erp (Optional) */
	Erp string `json:"erp"`

	/* 是否为管理员 (Optional) */
	IsAdmin bool `json:"isAdmin"`

	/* 业务线代码 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 业务线代码 (Optional) */
	ServiceCodes []string `json:"serviceCodes"`

	/* 排序字段 (Optional) */
	Column string `json:"column"`

	/* 排序方式 (Optional) */
	Dir string `json:"dir"`

	/* 页码 (Optional) */
	Number int `json:"number"`

	/* 查询条数 (Optional) */
	Size int `json:"size"`
}

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 StatusB added in v1.16.0

type StatusB struct {

	/*  (Optional) */
	Color string `json:"color"`

	/*  (Optional) */
	Immediate bool `json:"immediate"`

	/*  (Optional) */
	Label string `json:"label"`

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

type SubNodeKeys added in v1.54.0

type SubNodeKeys struct {

	/* 该key所在层级 (Optional) */
	Index int64 `json:"index"`

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

type SwitchCustomAlarmsSpec added in v1.16.0

type SwitchCustomAlarmsSpec struct {

	/* 告警规则的ID列表  */
	AlarmIds []string `json:"alarmIds"`

	/* 启用1,禁用0, (Optional) */
	State int64 `json:"state"`
}

type SwitchOneClickAlarmsSpec added in v1.54.0

type SwitchOneClickAlarmsSpec struct {

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

	/* 1启动、0关闭  */
	State int64 `json:"state"`
}

type TableColumnB added in v1.16.0

type TableColumnB struct {

	/*  (Optional) */
	Label string `json:"label"`

	/*  (Optional) */
	Link bool `json:"link"`

	/*  (Optional) */
	Options []OptionsB `json:"options"`

	/*  (Optional) */
	Prop string `json:"prop"`
}

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 TemplateInfo added in v1.16.0

type TemplateInfo struct {

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

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

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

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

	/* 模板参数信息 (Optional) */
	Params []ParamInfo `json:"params"`

	/* 模板oss地址 (Optional) */
	TemplateAddr string `json:"templateAddr"`

	/* 类型,0为系统,1为自定义 (Optional) */
	TemplateType int64 `json:"templateType"`

	/* 唯一标识 (Optional) */
	TemplateUid string `json:"templateUid"`

	/* 模板缩略图oss地址 (Optional) */
	ThumbnailAddr string `json:"thumbnailAddr"`

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

type TemplateOption added in v1.13.0

type TemplateOption struct {

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

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

type TemplateParam added in v1.16.0

type TemplateParam struct {

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

	/* 名称  */
	Name string `json:"name"`

	/* 模板参数信息,必须有数据源信息  */
	Params []ParamInfo `json:"params"`

	/* 模板标签, map[string]string, 必须有数据源的标签,比如"datasourceType":"cloudmonitor"  */
	Tags interface{} `json:"tags"`

	/* 模板oss地址  */
	TemplateAddr string `json:"templateAddr"`

	/* 模板缩略图oss地址  */
	ThumbnailAddr string `json:"thumbnailAddr"`
}

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 TsdbFilter added in v1.54.0

type TsdbFilter struct {

	/* 过滤类型支持以下几种
	literal_or:精确匹配一个或多个值,比如key为host,value为web1,表示过滤host=web1的数据(若要匹配多个值,value通过'\\|'分割,比如web1\\|web2);
	not_key:返回不包含key值的时序数据
	wildcard:支持通配,比如key为host,value为web*,会匹配所有key为host,value为web开头的数据  */
	FilterType string `json:"filterType"`

	/* 是否对查询的tags分组,默认false (Optional) */
	GroupBy bool `json:"groupBy"`

	/* Tag键,对应上报数据中tag中的key,必传参数  */
	Key string `json:"key"`

	/* Tag值,对应上报数据中tag中的value (Optional) */
	Value string `json:"value"`
}

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 {

	/* 弹性伸缩组Id。注:仅ag\asg产品线内部使用 (Optional) */
	AutoScalingPolicyId string `json:"autoScalingPolicyId"`

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

	/* 数据所有者,1云监控控制台; 2云鼎。默认为1 (Optional) */
	DataOwner int64 `json:"dataOwner"`

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

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

	/* url回调设置数组 (Optional) */
	MultiWebHook []WebHookOption `json:"multiWebHook"`

	/* 通知策略 (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 {

	/* 聚合方式,多个维度聚合成1个维度时,多维度值之间的聚合方式。可选值:sum、avg、min、max  */
	AggrType string `json:"aggrType"`

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

	/* 数据所有者,1云监控控制台; 2云鼎。默认为1
	in: query (Optional) */
	DataOwner int64 `json:"dataOwner"`

	/* 资源维度,指定监控数据实例的维度标签,如resourceId=id。(请确认资源的监控数据带有该标签,否则规则会报数据不足),至少指定一个  */
	Dimensions []DimensionsParam `json:"dimensions"`

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

	/* 回调数组 (Optional) */
	MultiWebHook []WebHookOption `json:"multiWebHook"`

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

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

	/* 规则绑定资源所在地域  */
	Region string `json:"region"`

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

	/* 规则的触发条件设置选项  */
	RuleOption []BasicCustomRule `json:"ruleOption"`

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

type UpdateCustomQuerySpec added in v1.16.0

type UpdateCustomQuerySpec struct {

	/* 快捷检索条件名称,长度为32个字符,只允许中文、数字、大小写字母、英文下划线“_”及中划线“-”,且不允许重名  */
	Name string `json:"name"`

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

	/*   */
	QueryOption QueryOption `json:"queryOption"`

	/*   */
	RegionId string `json:"regionId"`
}

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 UpdateDataBackSpec added in v1.16.0

type UpdateDataBackSpec struct {

	/*  (Optional) */
	DataInfo []DataInfoB `json:"dataInfo"`
}

type UpdateDynamicSpec added in v1.16.0

type UpdateDynamicSpec struct {

	/* 产品动态中文描述  */
	DynamicDetailCN string `json:"dynamicDetailCN"`

	/* 产品动态英文描述  */
	DynamicDetailEN string `json:"dynamicDetailEN"`

	/* 产品动态类型 1-新产品 2-新功能 3-功能调整 4-其它  */
	DynamicType int64 `json:"dynamicType"`

	/* 产品动态链接地址 (Optional) */
	DynamicUrl string `json:"dynamicUrl"`
}

type UpdateGrafanaDashboardSpec added in v1.16.0

type UpdateGrafanaDashboardSpec struct {

	/*  (Optional) */
	Description string `json:"description"`

	/* Title  */
	Title string `json:"title"`
}

type UpdateOneClickAlarmOption added in v1.54.0

type UpdateOneClickAlarmOption struct {

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

	/* 是否开启一键报警,1打开;0-关闭。默认为0 (Optional) */
	Enabled int64 `json:"enabled"`

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

	/* 一键报警规则下的报警规则id  */
	PolicyId string `json:"policyId"`

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

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

type UpdateOneClickAlarmOptionSpec added in v1.54.0

type UpdateOneClickAlarmOptionSpec struct {

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

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

	/* 一键报警规则下的报警规则id  */
	PolicyId string `json:"policyId"`

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

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

type UpdateOneClickAlarmSpec added in v1.54.0

type UpdateOneClickAlarmSpec struct {

	/* 一键告警规则id  */
	AlarmId string `json:"alarmId"`

	/* 一键告警规则配置
	in: body (Optional) */
	AlarmOptions []UpdateOneClickAlarmOption `json:"alarmOptions"`

	/* 中文描述 (Optional) */
	DescriptionCN string `json:"descriptionCN"`

	/* 英文描述 (Optional) */
	DescriptionEN string `json:"descriptionEN"`
}

type UpdatePanelSpec added in v1.54.0

type UpdatePanelSpec struct {

	/* 要更新panel所属dashboard的uid  */
	DashboardUid string `json:"dashboardUid"`

	/* 要更新panel所属维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 要更新panel包含的metric  */
	PanelMetrics []PanelMetricForCreate `json:"panelMetrics"`

	/* 要更新panel的名字 (Optional) */
	PanelName string `json:"panelName"`

	/* 资源id列表,与标签服务互斥,且资源id列表与标签服务列表至少传一个 (Optional) */
	PanelResources []PanelResource `json:"panelResources"`

	/* 标签服务列表,与资源id列表互斥,且资源id列表与标签服务列表至少传一个 (Optional) */
	PanelTagResources []PanelTagResource `json:"panelTagResources"`

	/* topN的数量,图表类型为3(topN表格)时必填 (Optional) */
	PanelTopNum int64 `json:"panelTopNum"`

	/* 要更新panel的类型,1-折线图(明细);2-折线图(汇总);3-topN表格  */
	PanelType int64 `json:"panelType"`

	/* 要更新panel的uuid  */
	PanelUid string `json:"panelUid"`

	/* 要更新panel所属产品  */
	Product string `json:"product"`

	/* 依据tag过滤(维度) (Optional) */
	Tags []TagFilter `json:"tags"`
}

type UpdatePanelsPositionSpec added in v1.54.0

type UpdatePanelsPositionSpec struct {

	/* 更新panel的所属dashboard的uid  */
	DashboardUid string `json:"dashboardUid"`

	/* 更新位置的panel  */
	PanelsPosition []PanelPositionForUpdate `json:"panelsPosition"`
}

type UpdateProductLineSpec added in v1.16.0

type UpdateProductLineSpec struct {

	/*   */
	ProductLineNameCn string `json:"productLineNameCn"`

	/*   */
	ProductLineNameEn string `json:"productLineNameEn"`

	/*   */
	ServiceCodes []ServiceInfoCreateB `json:"serviceCodes"`
}

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 User added in v1.16.0

type User struct {

	/* 邮件地址 (Optional) */
	Email string `json:"email"`

	/*   */
	Login string `json:"login"`

	/* 用户角色.   Admin、Editor、Viewer  */
	Role string `json:"role"`
}

type UserRole added in v1.16.0

type UserRole struct {

	/*   */
	Login string `json:"login"`

	/* 用户角色.   Admin、Editor、Viewer  */
	Role string `json:"role"`
}

type Users added in v1.16.0

type Users struct {

	/* 用户列表.不允许为空,最大100个  */
	Users []UserRole `json:"users"`
}

type WebHookOption added in v1.13.0

type WebHookOption struct {

	/* 回调content 注:仅webHookUrl和webHookProtocol均不为空时,才会创建webHook。当前支持的变量:${resourceId},${resourceName},${ipAddress},${requestId},${metric},${currentValue},${times},${tags},${alertTime},${region},${threshold},${serviceCode},${asGroupId},${unhealthyInstance} (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