public final class UptimeCheckConfig
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Monitoring API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
UptimeCheckConfig() |
| Modifier and Type | Method and Description |
|---|---|
UptimeCheckConfig |
clone() |
String |
getCheckerType()
The type of checkers to use to execute the Uptime check.
|
List<ContentMatcher> |
getContentMatchers()
The content that is expected to appear in the data returned by the target server against which
the check is run.
|
Boolean |
getDisabled()
Whether the check is disabled or not.
|
String |
getDisplayName()
A human-friendly name for the Uptime check configuration.
|
HttpCheck |
getHttpCheck()
Contains information needed to make an HTTP or HTTPS check.
|
List<InternalChecker> |
getInternalCheckers()
The internal checkers that this check will egress from.
|
Boolean |
getIsInternal()
If this is true, then checks are made only from the 'internal_checkers'.
|
Boolean |
getLogCheckFailures()
To specify whether to log the results of failed probes to Cloud Logging.
|
MonitoredResource |
getMonitoredResource()
The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the
configuration.
|
String |
getName()
Identifier.
|
String |
getPeriod()
How often, in seconds, the Uptime check is performed.
|
ResourceGroup |
getResourceGroup()
The group resource associated with the configuration.
|
List<String> |
getSelectedRegions()
The list of regions from which the check will be run.
|
SyntheticMonitorTarget |
getSyntheticMonitor()
Specifies a Synthetic Monitor to invoke.
|
TcpCheck |
getTcpCheck()
Contains information needed to make a TCP check.
|
String |
getTimeout()
The maximum amount of time to wait for the request to complete (must be between 1 and 60
seconds).
|
Map<String,String> |
getUserLabels()
User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig
objects.The field can contain up to 64 entries.
|
UptimeCheckConfig |
set(String fieldName,
Object value) |
UptimeCheckConfig |
setCheckerType(String checkerType)
The type of checkers to use to execute the Uptime check.
|
UptimeCheckConfig |
setContentMatchers(List<ContentMatcher> contentMatchers)
The content that is expected to appear in the data returned by the target server against which
the check is run.
|
UptimeCheckConfig |
setDisabled(Boolean disabled)
Whether the check is disabled or not.
|
UptimeCheckConfig |
setDisplayName(String displayName)
A human-friendly name for the Uptime check configuration.
|
UptimeCheckConfig |
setHttpCheck(HttpCheck httpCheck)
Contains information needed to make an HTTP or HTTPS check.
|
UptimeCheckConfig |
setInternalCheckers(List<InternalChecker> internalCheckers)
The internal checkers that this check will egress from.
|
UptimeCheckConfig |
setIsInternal(Boolean isInternal)
If this is true, then checks are made only from the 'internal_checkers'.
|
UptimeCheckConfig |
setLogCheckFailures(Boolean logCheckFailures)
To specify whether to log the results of failed probes to Cloud Logging.
|
UptimeCheckConfig |
setMonitoredResource(MonitoredResource monitoredResource)
The monitored resource (https://cloud.google.com/monitoring/api/resources) associated with the
configuration.
|
UptimeCheckConfig |
setName(String name)
Identifier.
|
UptimeCheckConfig |
setPeriod(String period)
How often, in seconds, the Uptime check is performed.
|
UptimeCheckConfig |
setResourceGroup(ResourceGroup resourceGroup)
The group resource associated with the configuration.
|
UptimeCheckConfig |
setSelectedRegions(List<String> selectedRegions)
The list of regions from which the check will be run.
|
UptimeCheckConfig |
setSyntheticMonitor(SyntheticMonitorTarget syntheticMonitor)
Specifies a Synthetic Monitor to invoke.
|
UptimeCheckConfig |
setTcpCheck(TcpCheck tcpCheck)
Contains information needed to make a TCP check.
|
UptimeCheckConfig |
setTimeout(String timeout)
The maximum amount of time to wait for the request to complete (must be between 1 and 60
seconds).
|
UptimeCheckConfig |
setUserLabels(Map<String,String> userLabels)
User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig
objects.The field can contain up to 64 entries.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCheckerType()
null for nonepublic UptimeCheckConfig setCheckerType(String checkerType)
checkerType - checkerType or null for nonepublic List<ContentMatcher> getContentMatchers()
null for nonepublic UptimeCheckConfig setContentMatchers(List<ContentMatcher> contentMatchers)
contentMatchers - contentMatchers or null for nonepublic Boolean getDisabled()
null for nonepublic UptimeCheckConfig setDisabled(Boolean disabled)
disabled - disabled or null for nonepublic String getDisplayName()
null for nonepublic UptimeCheckConfig setDisplayName(String displayName)
displayName - displayName or null for nonepublic HttpCheck getHttpCheck()
null for nonepublic UptimeCheckConfig setHttpCheck(HttpCheck httpCheck)
httpCheck - httpCheck or null for nonepublic List<InternalChecker> getInternalCheckers()
null for nonepublic UptimeCheckConfig setInternalCheckers(List<InternalChecker> internalCheckers)
internalCheckers - internalCheckers or null for nonepublic Boolean getIsInternal()
null for nonepublic UptimeCheckConfig setIsInternal(Boolean isInternal)
isInternal - isInternal or null for nonepublic Boolean getLogCheckFailures()
null for nonepublic UptimeCheckConfig setLogCheckFailures(Boolean logCheckFailures)
logCheckFailures - logCheckFailures or null for nonepublic MonitoredResource getMonitoredResource()
null for nonepublic UptimeCheckConfig setMonitoredResource(MonitoredResource monitoredResource)
monitoredResource - monitoredResource or null for nonepublic String getName()
null for nonepublic UptimeCheckConfig setName(String name)
name - name or null for nonepublic String getPeriod()
null for nonepublic UptimeCheckConfig setPeriod(String period)
period - period or null for nonepublic ResourceGroup getResourceGroup()
null for nonepublic UptimeCheckConfig setResourceGroup(ResourceGroup resourceGroup)
resourceGroup - resourceGroup or null for nonepublic List<String> getSelectedRegions()
null for nonepublic UptimeCheckConfig setSelectedRegions(List<String> selectedRegions)
selectedRegions - selectedRegions or null for nonepublic SyntheticMonitorTarget getSyntheticMonitor()
null for nonepublic UptimeCheckConfig setSyntheticMonitor(SyntheticMonitorTarget syntheticMonitor)
syntheticMonitor - syntheticMonitor or null for nonepublic TcpCheck getTcpCheck()
null for nonepublic UptimeCheckConfig setTcpCheck(TcpCheck tcpCheck)
tcpCheck - tcpCheck or null for nonepublic String getTimeout()
null for nonepublic UptimeCheckConfig setTimeout(String timeout)
timeout - timeout or null for nonepublic Map<String,String> getUserLabels()
null for nonepublic UptimeCheckConfig setUserLabels(Map<String,String> userLabels)
userLabels - userLabels or null for nonepublic UptimeCheckConfig set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic UptimeCheckConfig clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.