Documentation
¶
Index ¶
- type AgentStatus
- type BaseContact
- type BasicRule
- type BasicRuleDetail
- type CreateAlarmSpec
- type CreateProbeTaskParam
- type CreateProbeTaskSpec
- type CreateSiteMonitorSpec
- type DataPoint
- type DescribeGroupAlarm
- type DescribedAlarmHistory
- type DescribedNoticeContacts
- type EnableSiteMonitorReqItem
- type EnableSiteMonitorSpec
- type Err
- type Event
- type Filter
- type IspLocation
- type KeyValue
- type Location
- type Metric
- type MetricData
- type NoticeLevel
- type NoticeOption
- type NoticeReceiver
- type Probe
- type ProbeInfo
- type ProbeTaskEnableSpec
- type Resource
- type ResourceItem
- type ResourceOption
- type RuleCounting
- type RuleMetricDetail
- type RuleOption
- type RuleOptionDetail
- type RuleState
- type SiteMonitor
- type SiteMonitorDnsOption
- type SiteMonitorFtpOption
- type SiteMonitorHttpOption
- type SiteMonitorPingOption
- type SiteMonitorPop3Option
- type SiteMonitorSmtpOption
- type SiteMonitorSource
- type SiteMonitorTcpOption
- type SiteMonitorUdpOption
- type StatsItem
- type Tag
- type TagFilter
- type TagsOption
- type TaskInfo
- type TasksInfo
- type TemplateOption
- type TestSiteMonitorSpec
- type UpdateAlarmResourcesSpec
- type UpdateAlarmSpec
- type UpdateProbeTaskSpec
- type UpdateSiteMonitorSpec
- type UpdateWebHookOut
- type UpdateWebHookSpec
- type WebHookOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentStatus ¶
type BaseContact ¶
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 EnableSiteMonitorSpec ¶
type EnableSiteMonitorSpec struct {
/* (Optional) */
List []EnableSiteMonitorReqItem `json:"list"`
}
type IspLocation ¶
type MetricData ¶
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 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 ResourceItem ¶
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 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 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 SiteMonitorPop3Option ¶
type SiteMonitorSmtpOption ¶
type SiteMonitorSource ¶
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 TagsOption ¶
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 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"`
}
Source Files
¶
- AgentStatus.go
- BaseContact.go
- BasicRule.go
- BasicRuleDetail.go
- CreateAlarmSpec.go
- CreateProbeTaskParam.go
- CreateProbeTaskSpec.go
- CreateSiteMonitorSpec.go
- DataPoint.go
- DescribeGroupAlarm.go
- DescribedAlarmHistory.go
- DescribedNoticeContacts.go
- EnableSiteMonitorReqItem.go
- EnableSiteMonitorSpec.go
- Err.go
- Event.go
- Filter.go
- IspLocation.go
- KeyValue.go
- Location.go
- Metric.go
- MetricData.go
- NoticeLevel.go
- NoticeOption.go
- NoticeReceiver.go
- Probe.go
- ProbeInfo.go
- ProbeTaskEnableSpec.go
- Resource.go
- ResourceItem.go
- ResourceOption.go
- RuleCounting.go
- RuleMetricDetail.go
- RuleOption.go
- RuleOptionDetail.go
- RuleState.go
- SiteMonitor.go
- SiteMonitorDnsOption.go
- SiteMonitorFtpOption.go
- SiteMonitorHttpOption.go
- SiteMonitorPingOption.go
- SiteMonitorPop3Option.go
- SiteMonitorSmtpOption.go
- SiteMonitorSource.go
- SiteMonitorTcpOption.go
- SiteMonitorUdpOption.go
- StatsItem.go
- Tag.go
- TagFilter.go
- TagsOption.go
- TaskInfo.go
- TasksInfo.go
- TemplateOption.go
- TestSiteMonitorSpec.go
- UpdateAlarmResourcesSpec.go
- UpdateAlarmSpec.go
- UpdateProbeTaskSpec.go
- UpdateSiteMonitorSpec.go
- UpdateWebHookOut.go
- UpdateWebHookSpec.go
- WebHookOption.go
Click to show internal directories.
Click to hide internal directories.