API: Connection

JSON Object Example

{
“Timeout”: 0,
“Server”: “test.com”,
“Port”: 80,
“DNSResolveMode”: “Device Cached”,
“DNSserverIP”: null,
“Device_Id”: 57603,
“Id”: 146847,
“Task_Type_Id”: 9,
“Name”: “test.com”
}

Fields description 

Field Type Description

Server

String

This field specifies destination address

Example:
"Server""dotcom-monitor.com"

Port

Int32

This field specifies destination port

Example:
"Port": 80
DNSResolveMode String Available modes:

  • Device Cached
  • Non Cached
  • TTL Cached
  • External DNS Server

For detailed explanation please see “DNS Mode Option” article

 

Example:
"DNSResolveMode""External DNS Server"

 

DNSserverIP String Field for a custom DNS server IP addressFor detailed explanation please see “DNS Mode Option” article

Example:
"DNSserverIP""8.8.8.8"

 

Device_Id

Int32

READ ONLY Field.Unique device ID

Example:
"Device_Id": 8550

Id

Int32

READ ONLY Field.Unique task id

Example:
"Id": 17717

Task_Type_Id

Int32

Type of the task field. Please check Potential values for “Task_type_id” in appropriate table

Example:
"Task_Type_Id": 36

Name

String

Task name

Example:
"Name""TELNET dotcom-monitor.com"

Timeout

Int32

This field defines maximum time value (in milliseconds) for task execution.

Example:
"Timeout": 0