models

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 0 Imported by: 10 modules, 18 packages

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentStatus

type AgentStatus struct {

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

	/* agent状态。1-正常 2-异常、 (Optional) */
	Value int64 `json:"value"`
}

type BaseContact

type BaseContact struct {

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

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

type BasicRule

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

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 CreateAlarmSpec

type CreateAlarmSpec struct {

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

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

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

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

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

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

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

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

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

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

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

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

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

type CreateProbeTaskParam

type CreateProbeTaskParam struct {

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

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

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

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

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

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

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

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

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

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

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

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

type CreateProbeTaskSpec

type CreateProbeTaskSpec struct {

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

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

type CreateSiteMonitorSpec

type CreateSiteMonitorSpec struct {

	/* 地址  */
	Address string `json:"address"`

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

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

	/* 探测频率  */
	Cycle int64 `json:"cycle"`

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

	/*  (Optional) */
	DnsOption SiteMonitorDnsOption `json:"dnsOption"`

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

	/*  (Optional) */
	FtpOption SiteMonitorFtpOption `json:"ftpOption"`

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

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

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

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

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

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

	/*  (Optional) */
	PingOption SiteMonitorPingOption `json:"pingOption"`

	/*  (Optional) */
	Pop3Option SiteMonitorPop3Option `json:"pop3Option"`

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

	/*  (Optional) */
	SmtpOption SiteMonitorSmtpOption `json:"smtpOption"`

	/* 探测源  */
	Source []SiteMonitorSource `json:"source"`

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

	/* 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP  */
	TaskType string `json:"taskType"`

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

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

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

type DataPoint

type DataPoint struct {

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

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

type DescribeGroupAlarm

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 DescribedAlarmHistory

type DescribedAlarmHistory struct {

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

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

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

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

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

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

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

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

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

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

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

	/* 资源Id对应的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

type DescribedNoticeContacts struct {

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

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

type EnableSiteMonitorReqItem

type EnableSiteMonitorReqItem struct {

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

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

type EnableSiteMonitorSpec

type EnableSiteMonitorSpec struct {

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

type Err

type Err struct {

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

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

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

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

type Event

type Event struct {

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

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

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

type Filter

type Filter struct {

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

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

type IspLocation

type IspLocation struct {

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

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

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

type KeyValue

type KeyValue struct {

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

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

type Location

type Location struct {

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

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

	/*  (Optional) */
	IsIpv6 bool `json:"isIpv6"`
}

type Metric

type Metric struct {

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

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

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

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

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

type MetricData

type MetricData struct {

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

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

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

type NoticeLevel

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

type NoticeOption struct {

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

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

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

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

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

type NoticeReceiver

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 Probe

type Probe struct {

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

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

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

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

type ProbeInfo

type ProbeInfo struct {

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

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

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

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

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

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

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

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

type ProbeTaskEnableSpec

type ProbeTaskEnableSpec struct {

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

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

type Resource

type Resource struct {

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

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

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

type ResourceItem

type ResourceItem struct {

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

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

type ResourceOption

type ResourceOption struct {

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

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

type RuleCounting

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 RuleMetricDetail

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

type RuleOption struct {

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

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

type RuleOptionDetail

type RuleOptionDetail struct {

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

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

type RuleState

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 SiteMonitor

type SiteMonitor struct {

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

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

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

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

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

	/*  (Optional) */
	DnsOption SiteMonitorDnsOption `json:"dnsOption"`

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

	/*  (Optional) */
	FtpOption SiteMonitorFtpOption `json:"ftpOption"`

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

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

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

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

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

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

	/*  (Optional) */
	PingOption SiteMonitorPingOption `json:"pingOption"`

	/*  (Optional) */
	Pop3Option SiteMonitorPop3Option `json:"pop3Option"`

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

	/*  (Optional) */
	SmtpOption SiteMonitorSmtpOption `json:"smtpOption"`

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

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

	/* 可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP (Optional) */
	TaskType string `json:"taskType"`

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

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

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

type SiteMonitorDnsOption

type SiteMonitorDnsOption struct {

	/* DNS查询类型,可选值:A、MX、NS、CNAME、TXT、ANY,不填默认为A (Optional) */
	CheckType *string `json:"checkType"`

	/* 期望解析别名,多个之间用逗号,分割 (Optional) */
	ExpectAlias *string `json:"expectAlias"`

	/* 期望解析ip,多个之间用逗号,分割 (Optional) */
	ExpectIP *string `json:"expectIP"`

	/* DNS服务器 (Optional) */
	Server *string `json:"server"`

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

type SiteMonitorFtpOption

type SiteMonitorFtpOption struct {

	/* 登陆类型,可选值anonymous(匿名登陆)、login(身份校验)  */
	LoginType string `json:"loginType"`

	/*  (Optional) */
	Passwd *string `json:"passwd"`

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

	/*  (Optional) */
	User *string `json:"user"`
}

type SiteMonitorHttpOption

type SiteMonitorHttpOption struct {

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

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

	/* 请求方法,可选值:GET、POST、HEAD  */
	Method string `json:"method"`

	/* 请求内容 (Optional) */
	ReqContent *string `json:"reqContent"`

	/* 返回校验内容 (Optional) */
	ResCheck *string `json:"resCheck"`

	/* 返回校验方式,可选值:match、notmatch (Optional) */
	ResCheckType *string `json:"resCheckType"`
}

type SiteMonitorPingOption

type SiteMonitorPingOption struct {

	/* 包数,默认为20 (Optional) */
	PacketCount *int64 `json:"packetCount"`

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

type SiteMonitorPop3Option

type SiteMonitorPop3Option struct {

	/*   */
	Passwd string `json:"passwd"`

	/* 协议类型,可选值:pop3、pop3s  */
	Protocol string `json:"protocol"`

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

	/*   */
	User string `json:"user"`
}

type SiteMonitorSmtpOption

type SiteMonitorSmtpOption struct {

	/* 用户密码  */
	Passwd string `json:"passwd"`

	/* 协议类型,可选值:smtp、smtps  */
	Protocol string `json:"protocol"`

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

	/* 用户名  */
	User string `json:"user"`
}

type SiteMonitorSource

type SiteMonitorSource struct {

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

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

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

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

type SiteMonitorTcpOption

type SiteMonitorTcpOption struct {

	/* 请求内容 (Optional) */
	ReqContent *string `json:"reqContent"`

	/* 请求内容类型,可选值text(文本)、hex(十六进制) (Optional) */
	ReqContentType *string `json:"reqContentType"`

	/* 返回校验内容 (Optional) */
	ResCheck *string `json:"resCheck"`

	/* 返回内容类型,可选值text(文本)、hex(十六进制) (Optional) */
	ResCheckType *string `json:"resCheckType"`

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

type SiteMonitorUdpOption

type SiteMonitorUdpOption struct {

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

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

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

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

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

type StatsItem

type StatsItem struct {

	/*  (Optional) */
	AggregateFunc string `json:"aggregateFunc"`

	/*  (Optional) */
	AggregateIntervalMin int `json:"aggregateIntervalMin"`

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

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

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

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

	/*  (Optional) */
	Resource Resource `json:"resource"`

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

type Tag

type Tag struct {

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

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

type TagFilter

type TagFilter struct {

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

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

type TagsOption

type TagsOption struct {

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

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

type TaskInfo

type TaskInfo struct {

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

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

	/* 该task状态[true:被删除] (Optional) */
	Deleted bool `json:"deleted"`

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

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

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

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

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

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

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

type TasksInfo

type TasksInfo struct {

	/* task类型 (Optional) */
	ConfType string `json:"confType"`

	/* UID (Optional) */
	ConfUID string `json:"confUID"`

	/* 任务内容 (Optional) */
	Content interface{} `json:"content"`

	/* 采集间隔 (Optional) */
	Interval int64 `json:"interval"`

	/* meta信息,类型为map[string]string (Optional) */
	Meta interface{} `json:"meta"`
}

type TemplateOption

type TemplateOption struct {

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

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

type TestSiteMonitorSpec

type TestSiteMonitorSpec struct {

	/* 地址  */
	Address string `json:"address"`

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

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

	/* 探测频率  */
	Cycle int64 `json:"cycle"`

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

	/*  (Optional) */
	DnsOption SiteMonitorDnsOption `json:"dnsOption"`

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

	/*  (Optional) */
	FtpOption SiteMonitorFtpOption `json:"ftpOption"`

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

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

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

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

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

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

	/*  (Optional) */
	PingOption SiteMonitorPingOption `json:"pingOption"`

	/*  (Optional) */
	Pop3Option SiteMonitorPop3Option `json:"pop3Option"`

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

	/*  (Optional) */
	SmtpOption SiteMonitorSmtpOption `json:"smtpOption"`

	/* 探测源  */
	Source []SiteMonitorSource `json:"source"`

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

	/* 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP  */
	TaskType string `json:"taskType"`

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

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

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

type UpdateAlarmResourcesSpec

type UpdateAlarmResourcesSpec struct {

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

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

type UpdateAlarmSpec

type UpdateAlarmSpec struct {

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

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

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

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

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

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

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

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

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

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

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

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

type UpdateProbeTaskSpec

type UpdateProbeTaskSpec struct {

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

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

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

	/* http探测方法,可选值:1:get、2:post、3:head (Optional) */
	HttpType int64 `json:"httpType"`

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

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

type UpdateSiteMonitorSpec

type UpdateSiteMonitorSpec struct {

	/* 地址  */
	Address string `json:"address"`

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

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

	/* 探测频率  */
	Cycle int64 `json:"cycle"`

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

	/*  (Optional) */
	DnsOption SiteMonitorDnsOption `json:"dnsOption"`

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

	/*  (Optional) */
	FtpOption SiteMonitorFtpOption `json:"ftpOption"`

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

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

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

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

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

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

	/*  (Optional) */
	PingOption SiteMonitorPingOption `json:"pingOption"`

	/*  (Optional) */
	Pop3Option SiteMonitorPop3Option `json:"pop3Option"`

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

	/*  (Optional) */
	SmtpOption SiteMonitorSmtpOption `json:"smtpOption"`

	/* 探测源  */
	Source []SiteMonitorSource `json:"source"`

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

	/* 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP  */
	TaskType string `json:"taskType"`

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

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

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

type UpdateWebHookOut

type UpdateWebHookOut struct {

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

type UpdateWebHookSpec

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 WebHookOption

type WebHookOption struct {

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

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

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

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

Jump to

Keyboard shortcuts

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