check.new(name, type)
PARAMETERS:
- name (
string
) - type (
string
)
new
configures a synthetic monitoring check.
Note: The probe list will match a short list of just three nodes across the globe.
check.withFullProbeList(probes=[1,7,8,10,11,12,13,14,15,16,17,18,19,20,21,756,757,853,854,855,856,867])
PARAMETERS:
- probes (
array
)- default value:
[1,7,8,10,11,12,13,14,15,16,17,18,19,20,21,756,757,853,854,855,856,867]
- default value:
withFullProbeList
sets the probes
array to match the fulll list of probes.
Note: Probe IDs hardcoded for now.
check.withHttpSettings(http)
PARAMETERS:
- http (
object
)
withHttpSettings
configures the settings for a HTTP check. The target must be a URL (http or https).
The http
object can be created with check.settings.http.new()
.
check.withHttpStatusCheck(validStatusCodes=[200])
PARAMETERS:
- validStatusCodes (
array
)- default value:
[200]
- default value:
withHttpStatusCheck
configures a simple HTTP status check for the target URL.
check.withLabels(labels)
PARAMETERS:
- labels (
object
)
withLabels
adds custom labels to be included with collected metrics and logs. The maximum number of labels that can be specified per check is 5. These are applied, along with the probe-specific labels, to the outgoing metrics. The names and values of the labels cannot be empty, and the maximum length is 32 bytes.
check.withProbes(probes)
PARAMETERS:
- probes (
array
)
withProbes
takes a list of probe location IDs where the target will be checked from.