Create Task
Request URI
All requests you must send using GET or POST to this URI:
Request Parameters
- api_key
-
Required: Yes.
Value: Your unique API key, which you can find in your profile.
Example:
https://ping-admin.com/?a=api&sa=new_task&api_key=6e59663b2ce62ac378be24bc30f48b95946
Default value: http (it means this type of check: HTTP (HEAD)).
Value: available types: http, http_get, http_post, https, https_get, https_post, ping.
Sample:
Value: URL to check.
Example:
Value: IP (IPv4) of checked web site, will be used this IP, not from DNS.
Example:
Value: task name; string, 255 letters maximum.
Example:
Default value: 5.
Value: how often perform the checks, possible values: 1 — every minute; 2 — every 2 minutes; 3; 4; 5; 6; 10; 15; 20; 30; 60 — every hour.
Example:
Value: site should contain this string with check GET or POST (only ASCII-letters).
Example:
Value: HTTP status code in response (begin of allowed interval).
Example:
Value: HTTP status code in response (end of allowed interval).
Example:
Value: minimal size in bytes of checked site.
Example:
Value: maximal size in bytes of checked site.
Example:
Default value: 0.
Value: check the site for viruses: 0 — don't check, 1 — check; only for tasks with types HTTP, HTTPS.
Example:
Default value: 0.
Value: check the site in blacklists (Spamhaus, Roskomnzdzor, etc.): 0 — don't check, 1 — check; only for tasks with types HTTP, HTTPS, Ping.
Example:
Default value: 0.
Value: 0 — search in Roskomnadzor blacklist IP, domain, path; 1 — search in Roskomnadzor blacklist only domain and path (don't search IP); only if parameter rk has value 1.
Example:
Default value: 1.
Value: send alert when down N times (0 — immediately; 1 — after down 2 times; 2 — after down 3 times; 4 — after down 5 times; 9 — after down 10 times).
Example:
Default value: 0.
Value: is it necessary to follow the redirect: 0 — don't follow, 1 — follow.
Example:
Default value: 0.
Value: with value 1 is it necessary to check SSL-certificate: official certification centre, validity period, site address and certificate address compliance and other parameters.
Example:
Default value: 0.
Value: with value 1 we will send e-mail 30, 7 and 3 days before the end date of SSL-certificate and also if it will be revoked.
Example:
Default value: 1.
Value: protocall to use: 1 — TLS; 0 — SSLv3.
Example:
Default value: 0.
Value: if value 1 it's possible to add not working service.
Example:
Value: e-mails from Alerts / E-mails, each other after comma.
Example:
Value: phone numbers for SMS, from Alerts / SMS each other after comma (only digits in international format [country code][city or area code][phone number]).
Example:
Value: phone numbers for phone calls, from Alerts / Phone calls each other after comma (only digits in international format [country code][city or area code][phone number]).
Example:
Value: ID for API of contacts in Telegram, Slack, Viber, ICQ, Skype or Jabber, which you can find in Alerts / Telegram, Viber, Skype, etc. / Edit, each other after comma.
Example:
Value: URL for requests from Alerts / HTTP, each other after comma.
Example:
Default value: 0.
Value: is it necessary to create graphs with time and speed (only for tasks with types: http, http_get, http_post, https, https_get, https_post); 1 — create, 0 — don't create.
Example:
Default value: 0.
Value: 0 — Auto; 1 — From each selected monitoring point independently; 2 — From all selected monitoring points (check algoriths description).
Example:
Value: ID of monitoring points, which you cand find with this method, each other after comma.
Example:
Response
If we can't create new task (for example wrong parameters will be send), response will be with error description.
Response Parameters
- tid
-
Type: integer.
Value: ID of created task.