apis

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProbeTaskRequest

type CreateProbeTaskRequest struct {
	core.JDCloudRequest

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

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

func NewCreateProbeTaskRequest

func NewCreateProbeTaskRequest(
	clientToken string,
	createProbeTaskSpec *detection.CreateProbeTaskParam,
) *CreateProbeTaskRequest

* param clientToken: 幂等性校验参数,最长36位 (Required) * param createProbeTaskSpec: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateProbeTaskRequestWithAllParams

func NewCreateProbeTaskRequestWithAllParams(
	clientToken string,
	createProbeTaskSpec *detection.CreateProbeTaskParam,
) *CreateProbeTaskRequest

* param clientToken: 幂等性校验参数,最长36位 (Required) * param createProbeTaskSpec: (Required)

func NewCreateProbeTaskRequestWithoutParam

func NewCreateProbeTaskRequestWithoutParam() *CreateProbeTaskRequest

This constructor has better compatible ability when API parameters changed

func (CreateProbeTaskRequest) GetRegionId

func (r CreateProbeTaskRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateProbeTaskRequest) SetClientToken

func (r *CreateProbeTaskRequest) SetClientToken(clientToken string)

param clientToken: 幂等性校验参数,最长36位(Required)

func (*CreateProbeTaskRequest) SetCreateProbeTaskSpec

func (r *CreateProbeTaskRequest) SetCreateProbeTaskSpec(createProbeTaskSpec *detection.CreateProbeTaskParam)

param createProbeTaskSpec: (Required)

type CreateProbeTaskResponse

type CreateProbeTaskResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    CreateProbeTaskResult `json:"result"`
}

type CreateProbeTaskResult

type CreateProbeTaskResult struct {
	Suc    bool   `json:"suc"`
	TaskId string `json:"taskId"`
}

type CreateSiteMonitorRequest

type CreateSiteMonitorRequest struct {
	core.JDCloudRequest

	/* 地址  */
	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 *detection.SiteMonitorDnsOption `json:"dnsOption"`

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func NewCreateSiteMonitorRequest

func NewCreateSiteMonitorRequest(
	address string,
	cycle int64,
	name string,
	source []detection.SiteMonitorSource,
	taskType string,
) *CreateSiteMonitorRequest

* param address: 地址 (Required) * param cycle: 探测频率 (Required) * param name: 任务名称 (Required) * param source: 探测源 (Required) * param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateSiteMonitorRequestWithAllParams

func NewCreateSiteMonitorRequestWithAllParams(
	address string,
	advanceChecked *string,
	createdTime *int64,
	cycle int64,
	defaultSource *string,
	dnsOption *detection.SiteMonitorDnsOption,
	enabled *string,
	ftpOption *detection.SiteMonitorFtpOption,
	hawkeyeId *int64,
	httpOption *detection.SiteMonitorHttpOption,
	id *string,
	isDeleted *string,
	name string,
	pin *string,
	pingOption *detection.SiteMonitorPingOption,
	pop3Option *detection.SiteMonitorPop3Option,
	port *string,
	smtpOption *detection.SiteMonitorSmtpOption,
	source []detection.SiteMonitorSource,
	stats *interface{},
	taskType string,
	tcpOption *detection.SiteMonitorTcpOption,
	udpOption *detection.SiteMonitorUdpOption,
	updatedTime *int64,
) *CreateSiteMonitorRequest

* param address: 地址 (Required) * param advanceChecked: (Optional) * param createdTime: (Optional) * param cycle: 探测频率 (Required) * param defaultSource: (Optional) * param dnsOption: (Optional) * param enabled: (Optional) * param ftpOption: (Optional) * param hawkeyeId: (Optional) * param httpOption: (Optional) * param id: (Optional) * param isDeleted: (Optional) * param name: 任务名称 (Required) * param pin: (Optional) * param pingOption: (Optional) * param pop3Option: (Optional) * param port: 端口 (Optional) * param smtpOption: (Optional) * param source: 探测源 (Required) * param stats: (Optional) * param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP (Required) * param tcpOption: (Optional) * param udpOption: (Optional) * param updatedTime: (Optional)

func NewCreateSiteMonitorRequestWithoutParam

func NewCreateSiteMonitorRequestWithoutParam() *CreateSiteMonitorRequest

This constructor has better compatible ability when API parameters changed

func (CreateSiteMonitorRequest) GetRegionId

func (r CreateSiteMonitorRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateSiteMonitorRequest) SetAddress

func (r *CreateSiteMonitorRequest) SetAddress(address string)

param address: 地址(Required)

func (*CreateSiteMonitorRequest) SetAdvanceChecked

func (r *CreateSiteMonitorRequest) SetAdvanceChecked(advanceChecked string)

param advanceChecked: (Optional)

func (*CreateSiteMonitorRequest) SetCreatedTime

func (r *CreateSiteMonitorRequest) SetCreatedTime(createdTime int64)

param createdTime: (Optional)

func (*CreateSiteMonitorRequest) SetCycle

func (r *CreateSiteMonitorRequest) SetCycle(cycle int64)

param cycle: 探测频率(Required)

func (*CreateSiteMonitorRequest) SetDefaultSource

func (r *CreateSiteMonitorRequest) SetDefaultSource(defaultSource string)

param defaultSource: (Optional)

func (*CreateSiteMonitorRequest) SetDnsOption

func (r *CreateSiteMonitorRequest) SetDnsOption(dnsOption *detection.SiteMonitorDnsOption)

param dnsOption: (Optional)

func (*CreateSiteMonitorRequest) SetEnabled

func (r *CreateSiteMonitorRequest) SetEnabled(enabled string)

param enabled: (Optional)

func (*CreateSiteMonitorRequest) SetFtpOption

func (r *CreateSiteMonitorRequest) SetFtpOption(ftpOption *detection.SiteMonitorFtpOption)

param ftpOption: (Optional)

func (*CreateSiteMonitorRequest) SetHawkeyeId

func (r *CreateSiteMonitorRequest) SetHawkeyeId(hawkeyeId int64)

param hawkeyeId: (Optional)

func (*CreateSiteMonitorRequest) SetHttpOption

func (r *CreateSiteMonitorRequest) SetHttpOption(httpOption *detection.SiteMonitorHttpOption)

param httpOption: (Optional)

func (*CreateSiteMonitorRequest) SetId

func (r *CreateSiteMonitorRequest) SetId(id string)

param id: (Optional)

func (*CreateSiteMonitorRequest) SetIsDeleted

func (r *CreateSiteMonitorRequest) SetIsDeleted(isDeleted string)

param isDeleted: (Optional)

func (*CreateSiteMonitorRequest) SetName

func (r *CreateSiteMonitorRequest) SetName(name string)

param name: 任务名称(Required)

func (*CreateSiteMonitorRequest) SetPin

func (r *CreateSiteMonitorRequest) SetPin(pin string)

param pin: (Optional)

func (*CreateSiteMonitorRequest) SetPingOption

func (r *CreateSiteMonitorRequest) SetPingOption(pingOption *detection.SiteMonitorPingOption)

param pingOption: (Optional)

func (*CreateSiteMonitorRequest) SetPop3Option

func (r *CreateSiteMonitorRequest) SetPop3Option(pop3Option *detection.SiteMonitorPop3Option)

param pop3Option: (Optional)

func (*CreateSiteMonitorRequest) SetPort

func (r *CreateSiteMonitorRequest) SetPort(port string)

param port: 端口(Optional)

func (*CreateSiteMonitorRequest) SetSmtpOption

func (r *CreateSiteMonitorRequest) SetSmtpOption(smtpOption *detection.SiteMonitorSmtpOption)

param smtpOption: (Optional)

func (*CreateSiteMonitorRequest) SetSource

func (r *CreateSiteMonitorRequest) SetSource(source []detection.SiteMonitorSource)

param source: 探测源(Required)

func (*CreateSiteMonitorRequest) SetStats

func (r *CreateSiteMonitorRequest) SetStats(stats interface{})

param stats: (Optional)

func (*CreateSiteMonitorRequest) SetTaskType

func (r *CreateSiteMonitorRequest) SetTaskType(taskType string)

param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP(Required)

func (*CreateSiteMonitorRequest) SetTcpOption

func (r *CreateSiteMonitorRequest) SetTcpOption(tcpOption *detection.SiteMonitorTcpOption)

param tcpOption: (Optional)

func (*CreateSiteMonitorRequest) SetUdpOption

func (r *CreateSiteMonitorRequest) SetUdpOption(udpOption *detection.SiteMonitorUdpOption)

param udpOption: (Optional)

func (*CreateSiteMonitorRequest) SetUpdatedTime

func (r *CreateSiteMonitorRequest) SetUpdatedTime(updatedTime int64)

param updatedTime: (Optional)

type CreateSiteMonitorResponse

type CreateSiteMonitorResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    CreateSiteMonitorResult `json:"result"`
}

type CreateSiteMonitorResult

type CreateSiteMonitorResult struct {
	Id string `json:"id"`
}

type DeleteProbeTaskRequest

type DeleteProbeTaskRequest struct {
	core.JDCloudRequest

	/* 探测任务的task_id,多个taskId用|分隔  */
	ProbeTaskIDs string `json:"probeTaskIDs"`
}

func NewDeleteProbeTaskRequest

func NewDeleteProbeTaskRequest(
	probeTaskIDs string,
) *DeleteProbeTaskRequest

* param probeTaskIDs: 探测任务的task_id,多个taskId用|分隔 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteProbeTaskRequestWithAllParams

func NewDeleteProbeTaskRequestWithAllParams(
	probeTaskIDs string,
) *DeleteProbeTaskRequest

* param probeTaskIDs: 探测任务的task_id,多个taskId用|分隔 (Required)

func NewDeleteProbeTaskRequestWithoutParam

func NewDeleteProbeTaskRequestWithoutParam() *DeleteProbeTaskRequest

This constructor has better compatible ability when API parameters changed

func (DeleteProbeTaskRequest) GetRegionId

func (r DeleteProbeTaskRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteProbeTaskRequest) SetProbeTaskIDs

func (r *DeleteProbeTaskRequest) SetProbeTaskIDs(probeTaskIDs string)

param probeTaskIDs: 探测任务的task_id,多个taskId用|分隔(Required)

type DeleteProbeTaskResponse

type DeleteProbeTaskResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DeleteProbeTaskResult `json:"result"`
}

type DeleteProbeTaskResult

type DeleteProbeTaskResult struct {
	Suc bool `json:"suc"`
}

type DeleteSiteMonitorRequest

type DeleteSiteMonitorRequest struct {
	core.JDCloudRequest

	/* name为'list' - 站点监控id (Optional) */
	Filters []detection.Filter `json:"filters"`
}

func NewDeleteSiteMonitorRequest

func NewDeleteSiteMonitorRequest() *DeleteSiteMonitorRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteSiteMonitorRequestWithAllParams

func NewDeleteSiteMonitorRequestWithAllParams(
	filters []detection.Filter,
) *DeleteSiteMonitorRequest

* param filters: name为'list' - 站点监控id (Optional)

func NewDeleteSiteMonitorRequestWithoutParam

func NewDeleteSiteMonitorRequestWithoutParam() *DeleteSiteMonitorRequest

This constructor has better compatible ability when API parameters changed

func (DeleteSiteMonitorRequest) GetRegionId

func (r DeleteSiteMonitorRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteSiteMonitorRequest) SetFilters

func (r *DeleteSiteMonitorRequest) SetFilters(filters []detection.Filter)

param filters: name为'list' - 站点监控id(Optional)

type DeleteSiteMonitorResponse

type DeleteSiteMonitorResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DeleteSiteMonitorResult `json:"result"`
}

type DeleteSiteMonitorResult

type DeleteSiteMonitorResult struct {
	Suc bool `json:"suc"`
}

type DescribeAgentStatusRequest

type DescribeAgentStatusRequest struct {
	core.JDCloudRequest

	/* agent id列表
	uuid - agent id,精确匹配,支持多个  */
	Filters []detection.Filter `json:"filters"`
}

func NewDescribeAgentStatusRequest

func NewDescribeAgentStatusRequest(
	filters []detection.Filter,
) *DescribeAgentStatusRequest
  • param filters: agent id列表

uuid - agent id,精确匹配,支持多个 (Required)

*
* @Deprecated, not compatible when mandatory parameters changed

func NewDescribeAgentStatusRequestWithAllParams

func NewDescribeAgentStatusRequestWithAllParams(
	filters []detection.Filter,
) *DescribeAgentStatusRequest
  • param filters: agent id列表

uuid - agent id,精确匹配,支持多个 (Required)

func NewDescribeAgentStatusRequestWithoutParam

func NewDescribeAgentStatusRequestWithoutParam() *DescribeAgentStatusRequest

This constructor has better compatible ability when API parameters changed

func (DescribeAgentStatusRequest) GetRegionId

func (r DescribeAgentStatusRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeAgentStatusRequest) SetFilters

func (r *DescribeAgentStatusRequest) SetFilters(filters []detection.Filter)
param filters: agent id列表

uuid - agent id,精确匹配,支持多个(Required)

type DescribeAgentStatusResponse

type DescribeAgentStatusResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    DescribeAgentStatusResult `json:"result"`
}

type DescribeAgentStatusResult

type DescribeAgentStatusResult struct {
	Items []detection.AgentStatus `json:"items"`
}

type DescribeMetricDataAmRequest

type DescribeMetricDataAmRequest struct {
	core.JDCloudRequest

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

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

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

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

func NewDescribeMetricDataAmRequest

func NewDescribeMetricDataAmRequest(
	resourceId string,
) *DescribeMetricDataAmRequest

* param resourceId: 资源的uuid (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeMetricDataAmRequestWithAllParams

func NewDescribeMetricDataAmRequestWithAllParams(
	resourceId string,
	startTime *string,
	endTime *string,
	timeInterval *string,
) *DescribeMetricDataAmRequest

* param resourceId: 资源的uuid (Required) * param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(早于30d时,将被重置为30d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) * param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,将由startTime与timeInterval计算得出)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) * param timeInterval: 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval 与 endTime 至少填一项 (Optional)

func NewDescribeMetricDataAmRequestWithoutParam

func NewDescribeMetricDataAmRequestWithoutParam() *DescribeMetricDataAmRequest

This constructor has better compatible ability when API parameters changed

func (DescribeMetricDataAmRequest) GetRegionId

func (r DescribeMetricDataAmRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeMetricDataAmRequest) SetEndTime

func (r *DescribeMetricDataAmRequest) SetEndTime(endTime string)

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

func (*DescribeMetricDataAmRequest) SetResourceId

func (r *DescribeMetricDataAmRequest) SetResourceId(resourceId string)

param resourceId: 资源的uuid(Required)

func (*DescribeMetricDataAmRequest) SetStartTime

func (r *DescribeMetricDataAmRequest) SetStartTime(startTime string)

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

func (*DescribeMetricDataAmRequest) SetTimeInterval

func (r *DescribeMetricDataAmRequest) SetTimeInterval(timeInterval string)

param timeInterval: 时间间隔:1h,6h,12h,1d,3d,7d,14d,固定时间间隔,timeInterval 与 endTime 至少填一项(Optional)

type DescribeMetricDataAmResponse

type DescribeMetricDataAmResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DescribeMetricDataAmResult `json:"result"`
}

type DescribeMetricDataAmResult

type DescribeMetricDataAmResult struct {
	MetricDatas []detection.MetricData `json:"metricDatas"`
}

type DescribeProbeHistoryRequest

type DescribeProbeHistoryRequest struct {
	core.JDCloudRequest

	/* 可用性监控task_id, id长度(0,50]  */
	ProbeTaskID string `json:"probeTaskID"`

	/* 探测源id,  id长度(0,50]  */
	ProbeID string `json:"probeID"`

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

	/* 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,默认为当前时间)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) */
	EndTime *string `json:"endTime"`
}

func NewDescribeProbeHistoryRequest

func NewDescribeProbeHistoryRequest(
	probeTaskID string,
	probeID string,
) *DescribeProbeHistoryRequest

* param probeTaskID: 可用性监控task_id, id长度(0,50] (Required) * param probeID: 探测源id, id长度(0,50] (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeProbeHistoryRequestWithAllParams

func NewDescribeProbeHistoryRequestWithAllParams(
	probeTaskID string,
	probeID string,
	startTime *string,
	endTime *string,
) *DescribeProbeHistoryRequest

* param probeTaskID: 可用性监控task_id, id长度(0,50] (Required) * param probeID: 探测源id, id长度(0,50] (Required) * param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(默认为当前时间往前三天,早于3d时,将被重置为3d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional) * param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,默认为当前时间)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800) (Optional)

func NewDescribeProbeHistoryRequestWithoutParam

func NewDescribeProbeHistoryRequestWithoutParam() *DescribeProbeHistoryRequest

This constructor has better compatible ability when API parameters changed

func (DescribeProbeHistoryRequest) GetRegionId

func (r DescribeProbeHistoryRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeProbeHistoryRequest) SetEndTime

func (r *DescribeProbeHistoryRequest) SetEndTime(endTime string)

param endTime: 查询时间范围的结束时间, UTC时间,格式:2016-12-11T00:00:00+0800(为空时,默认为当前时间)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)(Optional)

func (*DescribeProbeHistoryRequest) SetProbeID

func (r *DescribeProbeHistoryRequest) SetProbeID(probeID string)

param probeID: 探测源id, id长度(0,50](Required)

func (*DescribeProbeHistoryRequest) SetProbeTaskID

func (r *DescribeProbeHistoryRequest) SetProbeTaskID(probeTaskID string)

param probeTaskID: 可用性监控task_id, id长度(0,50](Required)

func (*DescribeProbeHistoryRequest) SetStartTime

func (r *DescribeProbeHistoryRequest) SetStartTime(startTime string)

param startTime: 查询时间范围的开始时间, UTC时间,格式:2016-12-11T00:00:00+0800(默认为当前时间往前三天,早于3d时,将被重置为3d)(注意在url中+要转译为%2B故url中为2016-12-11T00:00:00%2B0800)(Optional)

type DescribeProbeHistoryResponse

type DescribeProbeHistoryResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DescribeProbeHistoryResult `json:"result"`
}

type DescribeProbeHistoryResult

type DescribeProbeHistoryResult struct {
	Events []detection.Event `json:"events"`
	Name   string            `json:"name"`
	Uuid   string            `json:"uuid"`
}

type DescribeProbeTaskRequest

type DescribeProbeTaskRequest struct {
	core.JDCloudRequest

	/* 探测任务的task_id  */
	ProbeTaskID string `json:"probeTaskID"`
}

func NewDescribeProbeTaskRequest

func NewDescribeProbeTaskRequest(
	probeTaskID string,
) *DescribeProbeTaskRequest

* param probeTaskID: 探测任务的task_id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeProbeTaskRequestWithAllParams

func NewDescribeProbeTaskRequestWithAllParams(
	probeTaskID string,
) *DescribeProbeTaskRequest

* param probeTaskID: 探测任务的task_id (Required)

func NewDescribeProbeTaskRequestWithoutParam

func NewDescribeProbeTaskRequestWithoutParam() *DescribeProbeTaskRequest

This constructor has better compatible ability when API parameters changed

func (DescribeProbeTaskRequest) GetRegionId

func (r DescribeProbeTaskRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeProbeTaskRequest) SetProbeTaskID

func (r *DescribeProbeTaskRequest) SetProbeTaskID(probeTaskID string)

param probeTaskID: 探测任务的task_id(Required)

type DescribeProbeTaskResponse

type DescribeProbeTaskResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DescribeProbeTaskResult `json:"result"`
}

type DescribeProbeTaskResult

type DescribeProbeTaskResult struct {
	Probes       []detection.Probe    `json:"probes"`
	Address      string               `json:"address"`
	CreateTime   string               `json:"createTime"`
	Deleted      bool                 `json:"deleted"`
	Enable       bool                 `json:"enable"`
	Frequency    int64                `json:"frequency"`
	HttpBody     string               `json:"httpBody"`
	HttpCookie   []detection.KeyValue `json:"httpCookie"`
	HttpHeader   []detection.KeyValue `json:"httpHeader"`
	HttpType     int64                `json:"httpType"`
	Name         string               `json:"name"`
	Pin          string               `json:"pin"`
	Port         int64                `json:"port"`
	ProbeType    int64                `json:"probeType"`
	TargetId     string               `json:"targetId"`
	TargetRegion string               `json:"targetRegion"`
	TaskId       string               `json:"taskId"`
	TaskType     int64                `json:"taskType"`
	Timeout      int64                `json:"timeout"`
	UpdateTime   string               `json:"updateTime"`
}

type DescribeProbeTasksRequest

type DescribeProbeTasksRequest struct {
	core.JDCloudRequest

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

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

	/* 根据探测任务的名称查询,支持模糊查询 (Optional) */
	Name *string `json:"name"`

	/* 根据探测任务的类型查询,1、http 2、telnet (Optional) */
	Type *int `json:"type"`

	/* 查询的可用率、响应时间的时间间隔,为空时默认查询最新点,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d (Optional) */
	TimeInterval *string `json:"timeInterval"`

	/* 是否查询可用率、响应时间 (Optional) */
	WithStats *bool `json:"withStats"`

	/* 是否包含被删除的task (Optional) */
	WithDeleted *bool `json:"withDeleted"`

	/* 任务状态:1为启用,0为禁用。默认为查所有的 (Optional) */
	Enabled *int `json:"enabled"`

	/* taskId - taskId,精确匹配,支持多个
	name - task名称或探测地址,糊模匹配,支持单个 (Optional) */
	Filters []detection.Filter `json:"filters"`
}

func NewDescribeProbeTasksRequest

func NewDescribeProbeTasksRequest() *DescribeProbeTasksRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeProbeTasksRequestWithAllParams

func NewDescribeProbeTasksRequestWithAllParams(
	pageNumber *int,
	pageSize *int,
	name *string,
	type_ *int,
	timeInterval *string,
	withStats *bool,
	withDeleted *bool,
	enabled *int,
	filters []detection.Filter,
) *DescribeProbeTasksRequest
  • param pageNumber: 当前所在页,默认为1 (Optional)
  • param pageSize: 页面大小,默认为20;取值范围[1, 100] (Optional)
  • param name: 根据探测任务的名称查询,支持模糊查询 (Optional)
  • param type_: 根据探测任务的类型查询,1、http 2、telnet (Optional)
  • param timeInterval: 查询的可用率、响应时间的时间间隔,为空时默认查询最新点,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d (Optional)
  • param withStats: 是否查询可用率、响应时间 (Optional)
  • param withDeleted: 是否包含被删除的task (Optional)
  • param enabled: 任务状态:1为启用,0为禁用。默认为查所有的 (Optional)
  • param filters: taskId - taskId,精确匹配,支持多个

name - task名称或探测地址,糊模匹配,支持单个 (Optional)

func NewDescribeProbeTasksRequestWithoutParam

func NewDescribeProbeTasksRequestWithoutParam() *DescribeProbeTasksRequest

This constructor has better compatible ability when API parameters changed

func (DescribeProbeTasksRequest) GetRegionId

func (r DescribeProbeTasksRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeProbeTasksRequest) SetEnabled

func (r *DescribeProbeTasksRequest) SetEnabled(enabled int)

param enabled: 任务状态:1为启用,0为禁用。默认为查所有的(Optional)

func (*DescribeProbeTasksRequest) SetFilters

func (r *DescribeProbeTasksRequest) SetFilters(filters []detection.Filter)
param filters: taskId - taskId,精确匹配,支持多个

name - task名称或探测地址,糊模匹配,支持单个(Optional)

func (*DescribeProbeTasksRequest) SetName

func (r *DescribeProbeTasksRequest) SetName(name string)

param name: 根据探测任务的名称查询,支持模糊查询(Optional)

func (*DescribeProbeTasksRequest) SetPageNumber

func (r *DescribeProbeTasksRequest) SetPageNumber(pageNumber int)

param pageNumber: 当前所在页,默认为1(Optional)

func (*DescribeProbeTasksRequest) SetPageSize

func (r *DescribeProbeTasksRequest) SetPageSize(pageSize int)

param pageSize: 页面大小,默认为20;取值范围[1, 100](Optional)

func (*DescribeProbeTasksRequest) SetTimeInterval

func (r *DescribeProbeTasksRequest) SetTimeInterval(timeInterval string)

param timeInterval: 查询的可用率、响应时间的时间间隔,为空时默认查询最新点,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d(Optional)

func (*DescribeProbeTasksRequest) SetType

func (r *DescribeProbeTasksRequest) SetType(type_ int)

param type_: 根据探测任务的类型查询,1、http 2、telnet(Optional)

func (*DescribeProbeTasksRequest) SetWithDeleted

func (r *DescribeProbeTasksRequest) SetWithDeleted(withDeleted bool)

param withDeleted: 是否包含被删除的task(Optional)

func (*DescribeProbeTasksRequest) SetWithStats

func (r *DescribeProbeTasksRequest) SetWithStats(withStats bool)

param withStats: 是否查询可用率、响应时间(Optional)

type DescribeProbeTasksResponse

type DescribeProbeTasksResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    DescribeProbeTasksResult `json:"result"`
}

type DescribeProbeTasksResult

type DescribeProbeTasksResult struct {
	NumberPages   int64                `json:"numberPages"`
	NumberRecords int64                `json:"numberRecords"`
	PageNumber    int64                `json:"pageNumber"`
	PageSize      int64                `json:"pageSize"`
	TaskInfo      []detection.TaskInfo `json:"taskInfo"`
	TotalCount    int64                `json:"totalCount"`
}

type DiscribeProbesRequest

type DiscribeProbesRequest struct {
	core.JDCloudRequest

	/* 探测任务的task_id  */
	ProbeTaskID string `json:"probeTaskID"`

	/* 自定义标签 (Optional) */
	Filters []detection.Filter `json:"filters"`
}

func NewDiscribeProbesRequest

func NewDiscribeProbesRequest(
	probeTaskID string,
) *DiscribeProbesRequest

* param probeTaskID: 探测任务的task_id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDiscribeProbesRequestWithAllParams

func NewDiscribeProbesRequestWithAllParams(
	probeTaskID string,
	filters []detection.Filter,
) *DiscribeProbesRequest

* param probeTaskID: 探测任务的task_id (Required) * param filters: 自定义标签 (Optional)

func NewDiscribeProbesRequestWithoutParam

func NewDiscribeProbesRequestWithoutParam() *DiscribeProbesRequest

This constructor has better compatible ability when API parameters changed

func (DiscribeProbesRequest) GetRegionId

func (r DiscribeProbesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DiscribeProbesRequest) SetFilters

func (r *DiscribeProbesRequest) SetFilters(filters []detection.Filter)

param filters: 自定义标签(Optional)

func (*DiscribeProbesRequest) SetProbeTaskID

func (r *DiscribeProbesRequest) SetProbeTaskID(probeTaskID string)

param probeTaskID: 探测任务的task_id(Required)

type DiscribeProbesResponse

type DiscribeProbesResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DiscribeProbesResult `json:"result"`
}

type DiscribeProbesResult

type DiscribeProbesResult struct {
	ProbeList []detection.ProbeInfo `json:"probeList"`
}

type EnableSiteMonitorRequest

type EnableSiteMonitorRequest struct {
	core.JDCloudRequest

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

func NewEnableSiteMonitorRequest

func NewEnableSiteMonitorRequest() *EnableSiteMonitorRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewEnableSiteMonitorRequestWithAllParams

func NewEnableSiteMonitorRequestWithAllParams(
	list []detection.EnableSiteMonitorReqItem,
) *EnableSiteMonitorRequest

* param list: (Optional)

func NewEnableSiteMonitorRequestWithoutParam

func NewEnableSiteMonitorRequestWithoutParam() *EnableSiteMonitorRequest

This constructor has better compatible ability when API parameters changed

func (EnableSiteMonitorRequest) GetRegionId

func (r EnableSiteMonitorRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*EnableSiteMonitorRequest) SetList

param list: (Optional)

type EnableSiteMonitorResponse

type EnableSiteMonitorResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    EnableSiteMonitorResult `json:"result"`
}

type EnableSiteMonitorResult

type EnableSiteMonitorResult struct {
	Suc bool `json:"suc"`
}

type GetSiteMonitorDataPointsRequest

type GetSiteMonitorDataPointsRequest struct {
	core.JDCloudRequest

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

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

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

func NewGetSiteMonitorDataPointsRequest

func NewGetSiteMonitorDataPointsRequest() *GetSiteMonitorDataPointsRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewGetSiteMonitorDataPointsRequestWithAllParams

func NewGetSiteMonitorDataPointsRequestWithAllParams(
	id *string,
	startTime *string,
	endTime *string,
) *GetSiteMonitorDataPointsRequest

* param id: (Optional) * param startTime: (Optional) * param endTime: (Optional)

func NewGetSiteMonitorDataPointsRequestWithoutParam

func NewGetSiteMonitorDataPointsRequestWithoutParam() *GetSiteMonitorDataPointsRequest

This constructor has better compatible ability when API parameters changed

func (GetSiteMonitorDataPointsRequest) GetRegionId

func (r GetSiteMonitorDataPointsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetSiteMonitorDataPointsRequest) SetEndTime

func (r *GetSiteMonitorDataPointsRequest) SetEndTime(endTime string)

param endTime: (Optional)

func (*GetSiteMonitorDataPointsRequest) SetId

param id: (Optional)

func (*GetSiteMonitorDataPointsRequest) SetStartTime

func (r *GetSiteMonitorDataPointsRequest) SetStartTime(startTime string)

param startTime: (Optional)

type GetSiteMonitorDataPointsResponse

type GetSiteMonitorDataPointsResponse struct {
	RequestID string                         `json:"requestId"`
	Error     core.ErrorResponse             `json:"error"`
	Result    GetSiteMonitorDataPointsResult `json:"result"`
}

type GetSiteMonitorDataPointsResult

type GetSiteMonitorDataPointsResult struct {
	MetricData   []detection.StatsItem `json:"metricData"`
	ResTime      []detection.StatsItem `json:"resTime"`
	SuccessRatio []detection.StatsItem `json:"successRatio"`
}

type GetSiteMonitorRequest

type GetSiteMonitorRequest struct {
	core.JDCloudRequest

	/*  (Optional) */
	NameOrAddr *string `json:"nameOrAddr"`

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

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

	/*  (Optional) */
	TaskType *string `json:"taskType"`

	/*  (Optional) */
	PageNumber *int `json:"pageNumber"`

	/*  (Optional) */
	PageSize *int `json:"pageSize"`

	/*  (Optional) */
	WithStats *string `json:"withStats"`

	/* 1:包含删除对象,默认:0 (Optional) */
	WithDeleted *string `json:"withDeleted"`

	/* 查询的可用率、响应时间的时间间隔,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d (Optional) */
	TimeInterval *string `json:"timeInterval"`

	/* name为'id' - 站点监控id (Optional) */
	Filters []detection.Filter `json:"filters"`
}

func NewGetSiteMonitorRequest

func NewGetSiteMonitorRequest() *GetSiteMonitorRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewGetSiteMonitorRequestWithAllParams

func NewGetSiteMonitorRequestWithAllParams(
	nameOrAddr *string,
	name *string,
	id []string,
	taskType *string,
	pageNumber *int,
	pageSize *int,
	withStats *string,
	withDeleted *string,
	timeInterval *string,
	filters []detection.Filter,
) *GetSiteMonitorRequest

* param nameOrAddr: (Optional) * param name: (Optional) * param id: (Optional) * param taskType: (Optional) * param pageNumber: (Optional) * param pageSize: (Optional) * param withStats: (Optional) * param withDeleted: 1:包含删除对象,默认:0 (Optional) * param timeInterval: 查询的可用率、响应时间的时间间隔,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d (Optional) * param filters: name为'id' - 站点监控id (Optional)

func NewGetSiteMonitorRequestWithoutParam

func NewGetSiteMonitorRequestWithoutParam() *GetSiteMonitorRequest

This constructor has better compatible ability when API parameters changed

func (GetSiteMonitorRequest) GetRegionId

func (r GetSiteMonitorRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetSiteMonitorRequest) SetFilters

func (r *GetSiteMonitorRequest) SetFilters(filters []detection.Filter)

param filters: name为'id' - 站点监控id(Optional)

func (*GetSiteMonitorRequest) SetId

func (r *GetSiteMonitorRequest) SetId(id []string)

param id: (Optional)

func (*GetSiteMonitorRequest) SetName

func (r *GetSiteMonitorRequest) SetName(name string)

param name: (Optional)

func (*GetSiteMonitorRequest) SetNameOrAddr

func (r *GetSiteMonitorRequest) SetNameOrAddr(nameOrAddr string)

param nameOrAddr: (Optional)

func (*GetSiteMonitorRequest) SetPageNumber

func (r *GetSiteMonitorRequest) SetPageNumber(pageNumber int)

param pageNumber: (Optional)

func (*GetSiteMonitorRequest) SetPageSize

func (r *GetSiteMonitorRequest) SetPageSize(pageSize int)

param pageSize: (Optional)

func (*GetSiteMonitorRequest) SetTaskType

func (r *GetSiteMonitorRequest) SetTaskType(taskType string)

param taskType: (Optional)

func (*GetSiteMonitorRequest) SetTimeInterval

func (r *GetSiteMonitorRequest) SetTimeInterval(timeInterval string)

param timeInterval: 查询的可用率、响应时间的时间间隔,最大不超过30天,支持分钟级别,小时级别,天级别,例如:1m、1h、1d(Optional)

func (*GetSiteMonitorRequest) SetWithDeleted

func (r *GetSiteMonitorRequest) SetWithDeleted(withDeleted string)

param withDeleted: 1:包含删除对象,默认:0(Optional)

func (*GetSiteMonitorRequest) SetWithStats

func (r *GetSiteMonitorRequest) SetWithStats(withStats string)

param withStats: (Optional)

type GetSiteMonitorResponse

type GetSiteMonitorResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    GetSiteMonitorResult `json:"result"`
}

type GetSiteMonitorResult

type GetSiteMonitorResult struct {
	List  []detection.SiteMonitor `json:"list"`
	Total int64                   `json:"total"`
}

type GetSiteMonitorSourceRequest

type GetSiteMonitorSourceRequest struct {
	core.JDCloudRequest
}

func NewGetSiteMonitorSourceRequest

func NewGetSiteMonitorSourceRequest() *GetSiteMonitorSourceRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewGetSiteMonitorSourceRequestWithAllParams

func NewGetSiteMonitorSourceRequestWithAllParams() *GetSiteMonitorSourceRequest

func NewGetSiteMonitorSourceRequestWithoutParam

func NewGetSiteMonitorSourceRequestWithoutParam() *GetSiteMonitorSourceRequest

This constructor has better compatible ability when API parameters changed

func (GetSiteMonitorSourceRequest) GetRegionId

func (r GetSiteMonitorSourceRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

type GetSiteMonitorSourceResponse

type GetSiteMonitorSourceResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    GetSiteMonitorSourceResult `json:"result"`
}

type GetSiteMonitorSourceResult

type GetSiteMonitorSourceResult struct {
	All     []detection.IspLocation `json:"all"`
	Limited []detection.IspLocation `json:"limited"`
}

type ProbeTaskEnableRequest

type ProbeTaskEnableRequest struct {
	core.JDCloudRequest

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

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

func NewProbeTaskEnableRequest

func NewProbeTaskEnableRequest(
	taskId []string,
) *ProbeTaskEnableRequest

* param taskId: 要启用或禁用的探测任务的task_id列表,列表长度[1,100) (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewProbeTaskEnableRequestWithAllParams

func NewProbeTaskEnableRequestWithAllParams(
	enabled *bool,
	taskId []string,
) *ProbeTaskEnableRequest

* param enabled: 默认:禁用; true:启用,false:禁用 (Optional) * param taskId: 要启用或禁用的探测任务的task_id列表,列表长度[1,100) (Required)

func NewProbeTaskEnableRequestWithoutParam

func NewProbeTaskEnableRequestWithoutParam() *ProbeTaskEnableRequest

This constructor has better compatible ability when API parameters changed

func (ProbeTaskEnableRequest) GetRegionId

func (r ProbeTaskEnableRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ProbeTaskEnableRequest) SetEnabled

func (r *ProbeTaskEnableRequest) SetEnabled(enabled bool)

param enabled: 默认:禁用; true:启用,false:禁用(Optional)

func (*ProbeTaskEnableRequest) SetTaskId

func (r *ProbeTaskEnableRequest) SetTaskId(taskId []string)

param taskId: 要启用或禁用的探测任务的task_id列表,列表长度[1,100)(Required)

type ProbeTaskEnableResponse

type ProbeTaskEnableResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    ProbeTaskEnableResult `json:"result"`
}

type ProbeTaskEnableResult

type ProbeTaskEnableResult struct {
	Suc bool `json:"suc"`
}

type TestSiteMonitorRequest

type TestSiteMonitorRequest struct {
	core.JDCloudRequest

	/* 地址  */
	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 *detection.SiteMonitorDnsOption `json:"dnsOption"`

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func NewTestSiteMonitorRequest

func NewTestSiteMonitorRequest(
	address string,
	cycle int64,
	name string,
	source []detection.SiteMonitorSource,
	taskType string,
) *TestSiteMonitorRequest

* param address: 地址 (Required) * param cycle: 探测频率 (Required) * param name: 任务名称 (Required) * param source: 探测源 (Required) * param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewTestSiteMonitorRequestWithAllParams

func NewTestSiteMonitorRequestWithAllParams(
	address string,
	advanceChecked *string,
	createdTime *int64,
	cycle int64,
	defaultSource *string,
	dnsOption *detection.SiteMonitorDnsOption,
	enabled *string,
	ftpOption *detection.SiteMonitorFtpOption,
	hawkeyeId *int64,
	httpOption *detection.SiteMonitorHttpOption,
	id *string,
	isDeleted *string,
	name string,
	pin *string,
	pingOption *detection.SiteMonitorPingOption,
	pop3Option *detection.SiteMonitorPop3Option,
	port *string,
	smtpOption *detection.SiteMonitorSmtpOption,
	source []detection.SiteMonitorSource,
	stats *interface{},
	taskType string,
	tcpOption *detection.SiteMonitorTcpOption,
	udpOption *detection.SiteMonitorUdpOption,
	updatedTime *int64,
) *TestSiteMonitorRequest

* param address: 地址 (Required) * param advanceChecked: (Optional) * param createdTime: (Optional) * param cycle: 探测频率 (Required) * param defaultSource: (Optional) * param dnsOption: (Optional) * param enabled: (Optional) * param ftpOption: (Optional) * param hawkeyeId: (Optional) * param httpOption: (Optional) * param id: (Optional) * param isDeleted: (Optional) * param name: 任务名称 (Required) * param pin: (Optional) * param pingOption: (Optional) * param pop3Option: (Optional) * param port: 端口 (Optional) * param smtpOption: (Optional) * param source: 探测源 (Required) * param stats: (Optional) * param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP (Required) * param tcpOption: (Optional) * param udpOption: (Optional) * param updatedTime: (Optional)

func NewTestSiteMonitorRequestWithoutParam

func NewTestSiteMonitorRequestWithoutParam() *TestSiteMonitorRequest

This constructor has better compatible ability when API parameters changed

func (TestSiteMonitorRequest) GetRegionId

func (r TestSiteMonitorRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*TestSiteMonitorRequest) SetAddress

func (r *TestSiteMonitorRequest) SetAddress(address string)

param address: 地址(Required)

func (*TestSiteMonitorRequest) SetAdvanceChecked

func (r *TestSiteMonitorRequest) SetAdvanceChecked(advanceChecked string)

param advanceChecked: (Optional)

func (*TestSiteMonitorRequest) SetCreatedTime

func (r *TestSiteMonitorRequest) SetCreatedTime(createdTime int64)

param createdTime: (Optional)

func (*TestSiteMonitorRequest) SetCycle

func (r *TestSiteMonitorRequest) SetCycle(cycle int64)

param cycle: 探测频率(Required)

func (*TestSiteMonitorRequest) SetDefaultSource

func (r *TestSiteMonitorRequest) SetDefaultSource(defaultSource string)

param defaultSource: (Optional)

func (*TestSiteMonitorRequest) SetDnsOption

func (r *TestSiteMonitorRequest) SetDnsOption(dnsOption *detection.SiteMonitorDnsOption)

param dnsOption: (Optional)

func (*TestSiteMonitorRequest) SetEnabled

func (r *TestSiteMonitorRequest) SetEnabled(enabled string)

param enabled: (Optional)

func (*TestSiteMonitorRequest) SetFtpOption

func (r *TestSiteMonitorRequest) SetFtpOption(ftpOption *detection.SiteMonitorFtpOption)

param ftpOption: (Optional)

func (*TestSiteMonitorRequest) SetHawkeyeId

func (r *TestSiteMonitorRequest) SetHawkeyeId(hawkeyeId int64)

param hawkeyeId: (Optional)

func (*TestSiteMonitorRequest) SetHttpOption

func (r *TestSiteMonitorRequest) SetHttpOption(httpOption *detection.SiteMonitorHttpOption)

param httpOption: (Optional)

func (*TestSiteMonitorRequest) SetId

func (r *TestSiteMonitorRequest) SetId(id string)

param id: (Optional)

func (*TestSiteMonitorRequest) SetIsDeleted

func (r *TestSiteMonitorRequest) SetIsDeleted(isDeleted string)

param isDeleted: (Optional)

func (*TestSiteMonitorRequest) SetName

func (r *TestSiteMonitorRequest) SetName(name string)

param name: 任务名称(Required)

func (*TestSiteMonitorRequest) SetPin

func (r *TestSiteMonitorRequest) SetPin(pin string)

param pin: (Optional)

func (*TestSiteMonitorRequest) SetPingOption

func (r *TestSiteMonitorRequest) SetPingOption(pingOption *detection.SiteMonitorPingOption)

param pingOption: (Optional)

func (*TestSiteMonitorRequest) SetPop3Option

func (r *TestSiteMonitorRequest) SetPop3Option(pop3Option *detection.SiteMonitorPop3Option)

param pop3Option: (Optional)

func (*TestSiteMonitorRequest) SetPort

func (r *TestSiteMonitorRequest) SetPort(port string)

param port: 端口(Optional)

func (*TestSiteMonitorRequest) SetSmtpOption

func (r *TestSiteMonitorRequest) SetSmtpOption(smtpOption *detection.SiteMonitorSmtpOption)

param smtpOption: (Optional)

func (*TestSiteMonitorRequest) SetSource

func (r *TestSiteMonitorRequest) SetSource(source []detection.SiteMonitorSource)

param source: 探测源(Required)

func (*TestSiteMonitorRequest) SetStats

func (r *TestSiteMonitorRequest) SetStats(stats interface{})

param stats: (Optional)

func (*TestSiteMonitorRequest) SetTaskType

func (r *TestSiteMonitorRequest) SetTaskType(taskType string)

param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP(Required)

func (*TestSiteMonitorRequest) SetTcpOption

func (r *TestSiteMonitorRequest) SetTcpOption(tcpOption *detection.SiteMonitorTcpOption)

param tcpOption: (Optional)

func (*TestSiteMonitorRequest) SetUdpOption

func (r *TestSiteMonitorRequest) SetUdpOption(udpOption *detection.SiteMonitorUdpOption)

param udpOption: (Optional)

func (*TestSiteMonitorRequest) SetUpdatedTime

func (r *TestSiteMonitorRequest) SetUpdatedTime(updatedTime int64)

param updatedTime: (Optional)

type TestSiteMonitorResponse

type TestSiteMonitorResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    TestSiteMonitorResult `json:"result"`
}

type TestSiteMonitorResult

type TestSiteMonitorResult struct {
	Error  string `json:"error"`
	Msg    string `json:"msg"`
	Status int64  `json:"status"`
}

type UpdateProbeTaskRequest

type UpdateProbeTaskRequest struct {
	core.JDCloudRequest

	/* 探测任务的task_id  */
	ProbeTaskID string `json:"probeTaskID"`

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

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

	/* http header:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节 (Optional) */
	HttpHeader []detection.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 []detection.Probe `json:"probes"`
}

func NewUpdateProbeTaskRequest

func NewUpdateProbeTaskRequest(
	probeTaskID string,
	probes []detection.Probe,
) *UpdateProbeTaskRequest

* param probeTaskID: 探测任务的task_id (Required) * param probes: 探测源(发起对探测目标探测的云主机,需安装相应的agent才能探测) (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateProbeTaskRequestWithAllParams

func NewUpdateProbeTaskRequestWithAllParams(
	probeTaskID string,
	httpBody *string,
	httpCookie []detection.KeyValue,
	httpHeader []detection.KeyValue,
	httpType *int64,
	name *string,
	probes []detection.Probe,
) *UpdateProbeTaskRequest

* param probeTaskID: 探测任务的task_id (Required) * param httpBody: http body:选择探测类型为1=http时有效,最长不超过1024字节 (Optional) * param httpCookie: http cookie:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节 (Optional) * param httpHeader: http header:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节 (Optional) * param httpType: http探测方法,可选值:1:get、2:post、3:head (Optional) * param name: task名称,不允许重复,长度不超过32字符,只允许中英文、数字、下划线_、中划线-, [0-9][a-z] [A-Z] [- _ ] (Optional) * param probes: 探测源(发起对探测目标探测的云主机,需安装相应的agent才能探测) (Required)

func NewUpdateProbeTaskRequestWithoutParam

func NewUpdateProbeTaskRequestWithoutParam() *UpdateProbeTaskRequest

This constructor has better compatible ability when API parameters changed

func (UpdateProbeTaskRequest) GetRegionId

func (r UpdateProbeTaskRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateProbeTaskRequest) SetHttpBody

func (r *UpdateProbeTaskRequest) SetHttpBody(httpBody string)

param httpBody: http body:选择探测类型为1=http时有效,最长不超过1024字节(Optional)

func (*UpdateProbeTaskRequest) SetHttpCookie

func (r *UpdateProbeTaskRequest) SetHttpCookie(httpCookie []detection.KeyValue)

param httpCookie: http cookie:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节(Optional)

func (*UpdateProbeTaskRequest) SetHttpHeader

func (r *UpdateProbeTaskRequest) SetHttpHeader(httpHeader []detection.KeyValue)

param httpHeader: http header:选择探测类型为1=http时有效,最大允许20个key、value对,最长不超过1024字节(Optional)

func (*UpdateProbeTaskRequest) SetHttpType

func (r *UpdateProbeTaskRequest) SetHttpType(httpType int64)

param httpType: http探测方法,可选值:1:get、2:post、3:head(Optional)

func (*UpdateProbeTaskRequest) SetName

func (r *UpdateProbeTaskRequest) SetName(name string)

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

func (*UpdateProbeTaskRequest) SetProbeTaskID

func (r *UpdateProbeTaskRequest) SetProbeTaskID(probeTaskID string)

param probeTaskID: 探测任务的task_id(Required)

func (*UpdateProbeTaskRequest) SetProbes

func (r *UpdateProbeTaskRequest) SetProbes(probes []detection.Probe)

param probes: 探测源(发起对探测目标探测的云主机,需安装相应的agent才能探测)(Required)

type UpdateProbeTaskResponse

type UpdateProbeTaskResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    UpdateProbeTaskResult `json:"result"`
}

type UpdateProbeTaskResult

type UpdateProbeTaskResult struct {
	Suc bool `json:"suc"`
}

type UpdateSiteMonitorRequest

type UpdateSiteMonitorRequest struct {
	core.JDCloudRequest

	/* 地址  */
	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 *detection.SiteMonitorDnsOption `json:"dnsOption"`

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func NewUpdateSiteMonitorRequest

func NewUpdateSiteMonitorRequest(
	address string,
	cycle int64,
	name string,
	source []detection.SiteMonitorSource,
	taskType string,
) *UpdateSiteMonitorRequest

* param address: 地址 (Required) * param cycle: 探测频率 (Required) * param name: 任务名称 (Required) * param source: 探测源 (Required) * param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateSiteMonitorRequestWithAllParams

func NewUpdateSiteMonitorRequestWithAllParams(
	address string,
	advanceChecked *string,
	createdTime *int64,
	cycle int64,
	defaultSource *string,
	dnsOption *detection.SiteMonitorDnsOption,
	enabled *string,
	ftpOption *detection.SiteMonitorFtpOption,
	hawkeyeId *int64,
	httpOption *detection.SiteMonitorHttpOption,
	id *string,
	isDeleted *string,
	name string,
	pin *string,
	pingOption *detection.SiteMonitorPingOption,
	pop3Option *detection.SiteMonitorPop3Option,
	port *string,
	smtpOption *detection.SiteMonitorSmtpOption,
	source []detection.SiteMonitorSource,
	stats *interface{},
	taskType string,
	tcpOption *detection.SiteMonitorTcpOption,
	udpOption *detection.SiteMonitorUdpOption,
	updatedTime *int64,
) *UpdateSiteMonitorRequest

* param address: 地址 (Required) * param advanceChecked: (Optional) * param createdTime: (Optional) * param cycle: 探测频率 (Required) * param defaultSource: (Optional) * param dnsOption: (Optional) * param enabled: (Optional) * param ftpOption: (Optional) * param hawkeyeId: (Optional) * param httpOption: (Optional) * param id: (Optional) * param isDeleted: (Optional) * param name: 任务名称 (Required) * param pin: (Optional) * param pingOption: (Optional) * param pop3Option: (Optional) * param port: 端口 (Optional) * param smtpOption: (Optional) * param source: 探测源 (Required) * param stats: (Optional) * param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP (Required) * param tcpOption: (Optional) * param udpOption: (Optional) * param updatedTime: (Optional)

func NewUpdateSiteMonitorRequestWithoutParam

func NewUpdateSiteMonitorRequestWithoutParam() *UpdateSiteMonitorRequest

This constructor has better compatible ability when API parameters changed

func (UpdateSiteMonitorRequest) GetRegionId

func (r UpdateSiteMonitorRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateSiteMonitorRequest) SetAddress

func (r *UpdateSiteMonitorRequest) SetAddress(address string)

param address: 地址(Required)

func (*UpdateSiteMonitorRequest) SetAdvanceChecked

func (r *UpdateSiteMonitorRequest) SetAdvanceChecked(advanceChecked string)

param advanceChecked: (Optional)

func (*UpdateSiteMonitorRequest) SetCreatedTime

func (r *UpdateSiteMonitorRequest) SetCreatedTime(createdTime int64)

param createdTime: (Optional)

func (*UpdateSiteMonitorRequest) SetCycle

func (r *UpdateSiteMonitorRequest) SetCycle(cycle int64)

param cycle: 探测频率(Required)

func (*UpdateSiteMonitorRequest) SetDefaultSource

func (r *UpdateSiteMonitorRequest) SetDefaultSource(defaultSource string)

param defaultSource: (Optional)

func (*UpdateSiteMonitorRequest) SetDnsOption

func (r *UpdateSiteMonitorRequest) SetDnsOption(dnsOption *detection.SiteMonitorDnsOption)

param dnsOption: (Optional)

func (*UpdateSiteMonitorRequest) SetEnabled

func (r *UpdateSiteMonitorRequest) SetEnabled(enabled string)

param enabled: (Optional)

func (*UpdateSiteMonitorRequest) SetFtpOption

func (r *UpdateSiteMonitorRequest) SetFtpOption(ftpOption *detection.SiteMonitorFtpOption)

param ftpOption: (Optional)

func (*UpdateSiteMonitorRequest) SetHawkeyeId

func (r *UpdateSiteMonitorRequest) SetHawkeyeId(hawkeyeId int64)

param hawkeyeId: (Optional)

func (*UpdateSiteMonitorRequest) SetHttpOption

func (r *UpdateSiteMonitorRequest) SetHttpOption(httpOption *detection.SiteMonitorHttpOption)

param httpOption: (Optional)

func (*UpdateSiteMonitorRequest) SetId

func (r *UpdateSiteMonitorRequest) SetId(id string)

param id: (Optional)

func (*UpdateSiteMonitorRequest) SetIsDeleted

func (r *UpdateSiteMonitorRequest) SetIsDeleted(isDeleted string)

param isDeleted: (Optional)

func (*UpdateSiteMonitorRequest) SetName

func (r *UpdateSiteMonitorRequest) SetName(name string)

param name: 任务名称(Required)

func (*UpdateSiteMonitorRequest) SetPin

func (r *UpdateSiteMonitorRequest) SetPin(pin string)

param pin: (Optional)

func (*UpdateSiteMonitorRequest) SetPingOption

func (r *UpdateSiteMonitorRequest) SetPingOption(pingOption *detection.SiteMonitorPingOption)

param pingOption: (Optional)

func (*UpdateSiteMonitorRequest) SetPop3Option

func (r *UpdateSiteMonitorRequest) SetPop3Option(pop3Option *detection.SiteMonitorPop3Option)

param pop3Option: (Optional)

func (*UpdateSiteMonitorRequest) SetPort

func (r *UpdateSiteMonitorRequest) SetPort(port string)

param port: 端口(Optional)

func (*UpdateSiteMonitorRequest) SetSmtpOption

func (r *UpdateSiteMonitorRequest) SetSmtpOption(smtpOption *detection.SiteMonitorSmtpOption)

param smtpOption: (Optional)

func (*UpdateSiteMonitorRequest) SetSource

func (r *UpdateSiteMonitorRequest) SetSource(source []detection.SiteMonitorSource)

param source: 探测源(Required)

func (*UpdateSiteMonitorRequest) SetStats

func (r *UpdateSiteMonitorRequest) SetStats(stats interface{})

param stats: (Optional)

func (*UpdateSiteMonitorRequest) SetTaskType

func (r *UpdateSiteMonitorRequest) SetTaskType(taskType string)

param taskType: 任务类型,可选值:HTTP、PING 、TCP 、UDP、DNS、SMTP、POP3和FTP(Required)

func (*UpdateSiteMonitorRequest) SetTcpOption

func (r *UpdateSiteMonitorRequest) SetTcpOption(tcpOption *detection.SiteMonitorTcpOption)

param tcpOption: (Optional)

func (*UpdateSiteMonitorRequest) SetUdpOption

func (r *UpdateSiteMonitorRequest) SetUdpOption(udpOption *detection.SiteMonitorUdpOption)

param udpOption: (Optional)

func (*UpdateSiteMonitorRequest) SetUpdatedTime

func (r *UpdateSiteMonitorRequest) SetUpdatedTime(updatedTime int64)

param updatedTime: (Optional)

type UpdateSiteMonitorResponse

type UpdateSiteMonitorResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    UpdateSiteMonitorResult `json:"result"`
}

type UpdateSiteMonitorResult

type UpdateSiteMonitorResult struct {
	Suc bool `json:"suc"`
}

type ValidateSiteMonitorAddressRequest

type ValidateSiteMonitorAddressRequest struct {
	core.JDCloudRequest

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

func NewValidateSiteMonitorAddressRequest

func NewValidateSiteMonitorAddressRequest() *ValidateSiteMonitorAddressRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewValidateSiteMonitorAddressRequestWithAllParams

func NewValidateSiteMonitorAddressRequestWithAllParams(
	address *string,
) *ValidateSiteMonitorAddressRequest

* param address: (Optional)

func NewValidateSiteMonitorAddressRequestWithoutParam

func NewValidateSiteMonitorAddressRequestWithoutParam() *ValidateSiteMonitorAddressRequest

This constructor has better compatible ability when API parameters changed

func (ValidateSiteMonitorAddressRequest) GetRegionId

func (r ValidateSiteMonitorAddressRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ValidateSiteMonitorAddressRequest) SetAddress

func (r *ValidateSiteMonitorAddressRequest) SetAddress(address string)

param address: (Optional)

type ValidateSiteMonitorAddressResponse

type ValidateSiteMonitorAddressResponse struct {
	RequestID string                           `json:"requestId"`
	Error     core.ErrorResponse               `json:"error"`
	Result    ValidateSiteMonitorAddressResult `json:"result"`
}

type ValidateSiteMonitorAddressResult

type ValidateSiteMonitorAddressResult struct {
	Suc bool `json:"suc"`
}

Jump to

Keyboard shortcuts

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