To create a Lighthouse Task object or change an object that already exists, use the descriptions of the object fields provided in this article. Any non-required keys you don’t specify will be set to default or remain unchanged (in case of update), so you can specify or update just a subset of the object’s data.
Fields Description
| Field | Type | Required/Optional | Description | |
| URL |
string |
required |
Specifies a destination address. The URL must starts with HTTP:// or HTTPS:// .
Example:
|
|
| User |
string |
optional |
This field contains a username for HTTP basic access authentication.
Example:
|
|
| Password |
string |
optional |
This field contains a password for HTTP basic access authentication.
Example:
|
|
| CheckCertificate |
boolean |
required |
When enabled – certificates issues will be revealed.
Example:
|
|
| Metric |
string |
required |
The web page audit metric.
POSSIBLE VALUES:
Example:
|
|
| LowerMetricThreshold |
int32 |
optional |
The lower limit for a selected metric. | |
| UpperMetricThreshold |
int32 |
optional |
The upper limit for a selected metric. | |
| AlertOnError |
boolean |
optional |
Send alerts based on the threshold that was set.
Example:
|
|
| DNSResolveMode | string | optional | POSSIBLE VALUES:
For detailed explanation, see the DNS Mode Option article. |
|
| DNSserverIP | string | optional | The field for a custom DNS server IP address. For detailed explanation, see the DNS Mode Option article. | |
| Device_Id |
int32 |
required |
READ ONLY Field. The unique device id.
Example:
|
|
| Id |
int32 |
required *Only for edit operations |
READ ONLY Field. The unique task id. Do not use for create operations.
Example:
|
|
| Task_Type_Id |
int32 |
required |
The type of the task.
Example:
|
|
| Name |
string |
optional |
The name of the task.
Example:
|
