Class UptimeCheckConfig.Builder (3.35.0)

public static final class UptimeCheckConfig.Builder extends GeneratedMessageV3.Builder<UptimeCheckConfig.Builder> implements UptimeCheckConfigOrBuilder

This message configures which resources and services to monitor for availability.

Protobuf type google.monitoring.v3.UptimeCheckConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllContentMatchers(Iterable<? extends UptimeCheckConfig.ContentMatcher> values)

public UptimeCheckConfig.Builder addAllContentMatchers(Iterable<? extends UptimeCheckConfig.ContentMatcher> values)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameter
NameDescription
valuesIterable<? extends com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher>
Returns
TypeDescription
UptimeCheckConfig.Builder

addAllInternalCheckers(Iterable<? extends InternalChecker> values) (deprecated)

public UptimeCheckConfig.Builder addAllInternalCheckers(Iterable<? extends InternalChecker> values)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameter
NameDescription
valuesIterable<? extends com.google.monitoring.v3.InternalChecker>
Returns
TypeDescription
UptimeCheckConfig.Builder

addAllSelectedRegions(Iterable<? extends UptimeCheckRegion> values)

public UptimeCheckConfig.Builder addAllSelectedRegions(Iterable<? extends UptimeCheckRegion> values)

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Parameter
NameDescription
valuesIterable<? extends com.google.monitoring.v3.UptimeCheckRegion>

The selectedRegions to add.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

addAllSelectedRegionsValue(Iterable<Integer> values)

public UptimeCheckConfig.Builder addAllSelectedRegionsValue(Iterable<Integer> values)

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for selectedRegions to add.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

addContentMatchers(UptimeCheckConfig.ContentMatcher value)

public UptimeCheckConfig.Builder addContentMatchers(UptimeCheckConfig.ContentMatcher value)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameter
NameDescription
valueUptimeCheckConfig.ContentMatcher
Returns
TypeDescription
UptimeCheckConfig.Builder

addContentMatchers(UptimeCheckConfig.ContentMatcher.Builder builderForValue)

public UptimeCheckConfig.Builder addContentMatchers(UptimeCheckConfig.ContentMatcher.Builder builderForValue)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameter
NameDescription
builderForValueUptimeCheckConfig.ContentMatcher.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

addContentMatchers(int index, UptimeCheckConfig.ContentMatcher value)

public UptimeCheckConfig.Builder addContentMatchers(int index, UptimeCheckConfig.ContentMatcher value)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameters
NameDescription
indexint
valueUptimeCheckConfig.ContentMatcher
Returns
TypeDescription
UptimeCheckConfig.Builder

addContentMatchers(int index, UptimeCheckConfig.ContentMatcher.Builder builderForValue)

public UptimeCheckConfig.Builder addContentMatchers(int index, UptimeCheckConfig.ContentMatcher.Builder builderForValue)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameters
NameDescription
indexint
builderForValueUptimeCheckConfig.ContentMatcher.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

addContentMatchersBuilder()

public UptimeCheckConfig.ContentMatcher.Builder addContentMatchersBuilder()

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

addContentMatchersBuilder(int index)

public UptimeCheckConfig.ContentMatcher.Builder addContentMatchersBuilder(int index)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

addInternalCheckers(InternalChecker value) (deprecated)

public UptimeCheckConfig.Builder addInternalCheckers(InternalChecker value)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameter
NameDescription
valueInternalChecker
Returns
TypeDescription
UptimeCheckConfig.Builder

addInternalCheckers(InternalChecker.Builder builderForValue) (deprecated)

public UptimeCheckConfig.Builder addInternalCheckers(InternalChecker.Builder builderForValue)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameter
NameDescription
builderForValueInternalChecker.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

addInternalCheckers(int index, InternalChecker value) (deprecated)

public UptimeCheckConfig.Builder addInternalCheckers(int index, InternalChecker value)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameters
NameDescription
indexint
valueInternalChecker
Returns
TypeDescription
UptimeCheckConfig.Builder

addInternalCheckers(int index, InternalChecker.Builder builderForValue) (deprecated)

public UptimeCheckConfig.Builder addInternalCheckers(int index, InternalChecker.Builder builderForValue)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameters
NameDescription
indexint
builderForValueInternalChecker.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

addInternalCheckersBuilder() (deprecated)

public InternalChecker.Builder addInternalCheckersBuilder()

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Returns
TypeDescription
InternalChecker.Builder

addInternalCheckersBuilder(int index) (deprecated)

public InternalChecker.Builder addInternalCheckersBuilder(int index)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
InternalChecker.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UptimeCheckConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

addSelectedRegions(UptimeCheckRegion value)

public UptimeCheckConfig.Builder addSelectedRegions(UptimeCheckRegion value)

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Parameter
NameDescription
valueUptimeCheckRegion

The selectedRegions to add.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

addSelectedRegionsValue(int value)

public UptimeCheckConfig.Builder addSelectedRegionsValue(int value)

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Parameter
NameDescription
valueint

The enum numeric value on the wire for selectedRegions to add.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

build()

public UptimeCheckConfig build()
Returns
TypeDescription
UptimeCheckConfig

buildPartial()

public UptimeCheckConfig buildPartial()
Returns
TypeDescription
UptimeCheckConfig

clear()

public UptimeCheckConfig.Builder clear()
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

clearCheckRequestType()

public UptimeCheckConfig.Builder clearCheckRequestType()
Returns
TypeDescription
UptimeCheckConfig.Builder

clearCheckerType()

public UptimeCheckConfig.Builder clearCheckerType()

The type of checkers to use to execute the Uptime check.

.google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17;

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

clearContentMatchers()

public UptimeCheckConfig.Builder clearContentMatchers()

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Returns
TypeDescription
UptimeCheckConfig.Builder

clearDisplayName()

public UptimeCheckConfig.Builder clearDisplayName()

A human-friendly name for the Uptime check configuration. The display name should be unique within a Cloud Monitoring Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.

string display_name = 2;

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UptimeCheckConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

clearHttpCheck()

public UptimeCheckConfig.Builder clearHttpCheck()

Contains information needed to make an HTTP or HTTPS check.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;

Returns
TypeDescription
UptimeCheckConfig.Builder

clearInternalCheckers() (deprecated)

public UptimeCheckConfig.Builder clearInternalCheckers()

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Returns
TypeDescription
UptimeCheckConfig.Builder

clearIsInternal() (deprecated)

public UptimeCheckConfig.Builder clearIsInternal()

Deprecated. google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See google/monitoring/v3/uptime.proto;l=478

If this is true, then checks are made only from the 'internal_checkers'. If it is false, then checks are made only from the 'selected_regions'. It is an error to provide 'selected_regions' when is_internal is true, or to provide 'internal_checkers' when is_internal is false.

bool is_internal = 15 [deprecated = true];

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

clearMonitoredResource()

public UptimeCheckConfig.Builder clearMonitoredResource()

The monitored resource associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision

.google.api.MonitoredResource monitored_resource = 3;

Returns
TypeDescription
UptimeCheckConfig.Builder

clearName()

public UptimeCheckConfig.Builder clearName()

A unique resource name for this Uptime check configuration. The format is:

  projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]

[PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.

This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.

string name = 1;

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UptimeCheckConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

clearPeriod()

public UptimeCheckConfig.Builder clearPeriod()

How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.

.google.protobuf.Duration period = 7;

Returns
TypeDescription
UptimeCheckConfig.Builder

clearResource()

public UptimeCheckConfig.Builder clearResource()
Returns
TypeDescription
UptimeCheckConfig.Builder

clearResourceGroup()

public UptimeCheckConfig.Builder clearResourceGroup()

The group resource associated with the configuration.

.google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4;

Returns
TypeDescription
UptimeCheckConfig.Builder

clearSelectedRegions()

public UptimeCheckConfig.Builder clearSelectedRegions()

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

clearTcpCheck()

public UptimeCheckConfig.Builder clearTcpCheck()

Contains information needed to make a TCP check.

.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;

Returns
TypeDescription
UptimeCheckConfig.Builder

clearTimeout()

public UptimeCheckConfig.Builder clearTimeout()

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

.google.protobuf.Duration timeout = 8;

Returns
TypeDescription
UptimeCheckConfig.Builder

clearUserLabels()

public UptimeCheckConfig.Builder clearUserLabels()
Returns
TypeDescription
UptimeCheckConfig.Builder

clone()

public UptimeCheckConfig.Builder clone()
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

containsUserLabels(String key)

public boolean containsUserLabels(String key)

User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.

The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

map<string, string> user_labels = 20;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCheckRequestTypeCase()

public UptimeCheckConfig.CheckRequestTypeCase getCheckRequestTypeCase()
Returns
TypeDescription
UptimeCheckConfig.CheckRequestTypeCase

getCheckerType()

public UptimeCheckConfig.CheckerType getCheckerType()

The type of checkers to use to execute the Uptime check.

.google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17;

Returns
TypeDescription
UptimeCheckConfig.CheckerType

The checkerType.

getCheckerTypeValue()

public int getCheckerTypeValue()

The type of checkers to use to execute the Uptime check.

.google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17;

Returns
TypeDescription
int

The enum numeric value on the wire for checkerType.

getContentMatchers(int index)

public UptimeCheckConfig.ContentMatcher getContentMatchers(int index)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher

getContentMatchersBuilder(int index)

public UptimeCheckConfig.ContentMatcher.Builder getContentMatchersBuilder(int index)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
UptimeCheckConfig.ContentMatcher.Builder

getContentMatchersBuilderList()

public List<UptimeCheckConfig.ContentMatcher.Builder> getContentMatchersBuilderList()

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Returns
TypeDescription
List<Builder>

getContentMatchersCount()

public int getContentMatchersCount()

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Returns
TypeDescription
int

getContentMatchersList()

public List<UptimeCheckConfig.ContentMatcher> getContentMatchersList()

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Returns
TypeDescription
List<ContentMatcher>

getContentMatchersOrBuilder(int index)

public UptimeCheckConfig.ContentMatcherOrBuilder getContentMatchersOrBuilder(int index)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
UptimeCheckConfig.ContentMatcherOrBuilder

getContentMatchersOrBuilderList()

public List<? extends UptimeCheckConfig.ContentMatcherOrBuilder> getContentMatchersOrBuilderList()

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Returns
TypeDescription
List<? extends com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder>

getDefaultInstanceForType()

public UptimeCheckConfig getDefaultInstanceForType()
Returns
TypeDescription
UptimeCheckConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

A human-friendly name for the Uptime check configuration. The display name should be unique within a Cloud Monitoring Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

A human-friendly name for the Uptime check configuration. The display name should be unique within a Cloud Monitoring Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getHttpCheck()

public UptimeCheckConfig.HttpCheck getHttpCheck()

Contains information needed to make an HTTP or HTTPS check.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;

Returns
TypeDescription
UptimeCheckConfig.HttpCheck

The httpCheck.

getHttpCheckBuilder()

public UptimeCheckConfig.HttpCheck.Builder getHttpCheckBuilder()

Contains information needed to make an HTTP or HTTPS check.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;

Returns
TypeDescription
UptimeCheckConfig.HttpCheck.Builder

getHttpCheckOrBuilder()

public UptimeCheckConfig.HttpCheckOrBuilder getHttpCheckOrBuilder()

Contains information needed to make an HTTP or HTTPS check.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;

Returns
TypeDescription
UptimeCheckConfig.HttpCheckOrBuilder

getInternalCheckers(int index) (deprecated)

public InternalChecker getInternalCheckers(int index)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
InternalChecker

getInternalCheckersBuilder(int index) (deprecated)

public InternalChecker.Builder getInternalCheckersBuilder(int index)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
InternalChecker.Builder

getInternalCheckersBuilderList() (deprecated)

public List<InternalChecker.Builder> getInternalCheckersBuilderList()

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Returns
TypeDescription
List<Builder>

getInternalCheckersCount() (deprecated)

public int getInternalCheckersCount()

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Returns
TypeDescription
int

getInternalCheckersList() (deprecated)

public List<InternalChecker> getInternalCheckersList()

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Returns
TypeDescription
List<InternalChecker>

getInternalCheckersOrBuilder(int index) (deprecated)

public InternalCheckerOrBuilder getInternalCheckersOrBuilder(int index)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
InternalCheckerOrBuilder

getInternalCheckersOrBuilderList() (deprecated)

public List<? extends InternalCheckerOrBuilder> getInternalCheckersOrBuilderList()

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Returns
TypeDescription
List<? extends com.google.monitoring.v3.InternalCheckerOrBuilder>

getIsInternal() (deprecated)

public boolean getIsInternal()

Deprecated. google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See google/monitoring/v3/uptime.proto;l=478

If this is true, then checks are made only from the 'internal_checkers'. If it is false, then checks are made only from the 'selected_regions'. It is an error to provide 'selected_regions' when is_internal is true, or to provide 'internal_checkers' when is_internal is false.

bool is_internal = 15 [deprecated = true];

Returns
TypeDescription
boolean

The isInternal.

getMonitoredResource()

public MonitoredResource getMonitoredResource()

The monitored resource associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision

.google.api.MonitoredResource monitored_resource = 3;

Returns
TypeDescription
com.google.api.MonitoredResource

The monitoredResource.

getMonitoredResourceBuilder()

public MonitoredResource.Builder getMonitoredResourceBuilder()

The monitored resource associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision

.google.api.MonitoredResource monitored_resource = 3;

Returns
TypeDescription
com.google.api.MonitoredResource.Builder

getMonitoredResourceOrBuilder()

public MonitoredResourceOrBuilder getMonitoredResourceOrBuilder()

The monitored resource associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision

.google.api.MonitoredResource monitored_resource = 3;

Returns
TypeDescription
com.google.api.MonitoredResourceOrBuilder

getMutableUserLabels() (deprecated)

public Map<String,String> getMutableUserLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

A unique resource name for this Uptime check configuration. The format is:

  projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]

[PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.

This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

A unique resource name for this Uptime check configuration. The format is:

  projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]

[PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.

This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPeriod()

public Duration getPeriod()

How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.

.google.protobuf.Duration period = 7;

Returns
TypeDescription
Duration

The period.

getPeriodBuilder()

public Duration.Builder getPeriodBuilder()

How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.

.google.protobuf.Duration period = 7;

Returns
TypeDescription
Builder

getPeriodOrBuilder()

public DurationOrBuilder getPeriodOrBuilder()

How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.

.google.protobuf.Duration period = 7;

Returns
TypeDescription
DurationOrBuilder

getResourceCase()

public UptimeCheckConfig.ResourceCase getResourceCase()
Returns
TypeDescription
UptimeCheckConfig.ResourceCase

getResourceGroup()

public UptimeCheckConfig.ResourceGroup getResourceGroup()

The group resource associated with the configuration.

.google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4;

Returns
TypeDescription
UptimeCheckConfig.ResourceGroup

The resourceGroup.

getResourceGroupBuilder()

public UptimeCheckConfig.ResourceGroup.Builder getResourceGroupBuilder()

The group resource associated with the configuration.

.google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4;

Returns
TypeDescription
UptimeCheckConfig.ResourceGroup.Builder

getResourceGroupOrBuilder()

public UptimeCheckConfig.ResourceGroupOrBuilder getResourceGroupOrBuilder()

The group resource associated with the configuration.

.google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4;

Returns
TypeDescription
UptimeCheckConfig.ResourceGroupOrBuilder

getSelectedRegions(int index)

public UptimeCheckRegion getSelectedRegions(int index)

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
UptimeCheckRegion

The selectedRegions at the given index.

getSelectedRegionsCount()

public int getSelectedRegionsCount()

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Returns
TypeDescription
int

The count of selectedRegions.

getSelectedRegionsList()

public List<UptimeCheckRegion> getSelectedRegionsList()

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Returns
TypeDescription
List<UptimeCheckRegion>

A list containing the selectedRegions.

getSelectedRegionsValue(int index)

public int getSelectedRegionsValue(int index)

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of selectedRegions at the given index.

getSelectedRegionsValueList()

public List<Integer> getSelectedRegionsValueList()

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for selectedRegions.

getTcpCheck()

public UptimeCheckConfig.TcpCheck getTcpCheck()

Contains information needed to make a TCP check.

.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;

Returns
TypeDescription
UptimeCheckConfig.TcpCheck

The tcpCheck.

getTcpCheckBuilder()

public UptimeCheckConfig.TcpCheck.Builder getTcpCheckBuilder()

Contains information needed to make a TCP check.

.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;

Returns
TypeDescription
UptimeCheckConfig.TcpCheck.Builder

getTcpCheckOrBuilder()

public UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckOrBuilder()

Contains information needed to make a TCP check.

.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;

Returns
TypeDescription
UptimeCheckConfig.TcpCheckOrBuilder

getTimeout()

public Duration getTimeout()

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

.google.protobuf.Duration timeout = 8;

Returns
TypeDescription
Duration

The timeout.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

.google.protobuf.Duration timeout = 8;

Returns
TypeDescription
Builder

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

.google.protobuf.Duration timeout = 8;

Returns
TypeDescription
DurationOrBuilder

getUserLabels() (deprecated)

public Map<String,String> getUserLabels()

Use #getUserLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getUserLabelsCount()

public int getUserLabelsCount()

User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.

The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

map<string, string> user_labels = 20;

Returns
TypeDescription
int

getUserLabelsMap()

public Map<String,String> getUserLabelsMap()

User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.

The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

map<string, string> user_labels = 20;

Returns
TypeDescription
Map<String,String>

getUserLabelsOrDefault(String key, String defaultValue)

public String getUserLabelsOrDefault(String key, String defaultValue)

User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.

The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

map<string, string> user_labels = 20;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getUserLabelsOrThrow(String key)

public String getUserLabelsOrThrow(String key)

User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.

The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

map<string, string> user_labels = 20;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

hasHttpCheck()

public boolean hasHttpCheck()

Contains information needed to make an HTTP or HTTPS check.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;

Returns
TypeDescription
boolean

Whether the httpCheck field is set.

hasMonitoredResource()

public boolean hasMonitoredResource()

The monitored resource associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision

.google.api.MonitoredResource monitored_resource = 3;

Returns
TypeDescription
boolean

Whether the monitoredResource field is set.

hasPeriod()

public boolean hasPeriod()

How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.

.google.protobuf.Duration period = 7;

Returns
TypeDescription
boolean

Whether the period field is set.

hasResourceGroup()

public boolean hasResourceGroup()

The group resource associated with the configuration.

.google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4;

Returns
TypeDescription
boolean

Whether the resourceGroup field is set.

hasTcpCheck()

public boolean hasTcpCheck()

Contains information needed to make a TCP check.

.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;

Returns
TypeDescription
boolean

Whether the tcpCheck field is set.

hasTimeout()

public boolean hasTimeout()

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

.google.protobuf.Duration timeout = 8;

Returns
TypeDescription
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UptimeCheckConfig other)

public UptimeCheckConfig.Builder mergeFrom(UptimeCheckConfig other)
Parameter
NameDescription
otherUptimeCheckConfig
Returns
TypeDescription
UptimeCheckConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UptimeCheckConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UptimeCheckConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

mergeHttpCheck(UptimeCheckConfig.HttpCheck value)

public UptimeCheckConfig.Builder mergeHttpCheck(UptimeCheckConfig.HttpCheck value)

Contains information needed to make an HTTP or HTTPS check.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;

Parameter
NameDescription
valueUptimeCheckConfig.HttpCheck
Returns
TypeDescription
UptimeCheckConfig.Builder

mergeMonitoredResource(MonitoredResource value)

public UptimeCheckConfig.Builder mergeMonitoredResource(MonitoredResource value)

The monitored resource associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision

.google.api.MonitoredResource monitored_resource = 3;

Parameter
NameDescription
valuecom.google.api.MonitoredResource
Returns
TypeDescription
UptimeCheckConfig.Builder

mergePeriod(Duration value)

public UptimeCheckConfig.Builder mergePeriod(Duration value)

How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.

.google.protobuf.Duration period = 7;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
UptimeCheckConfig.Builder

mergeResourceGroup(UptimeCheckConfig.ResourceGroup value)

public UptimeCheckConfig.Builder mergeResourceGroup(UptimeCheckConfig.ResourceGroup value)

The group resource associated with the configuration.

.google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4;

Parameter
NameDescription
valueUptimeCheckConfig.ResourceGroup
Returns
TypeDescription
UptimeCheckConfig.Builder

mergeTcpCheck(UptimeCheckConfig.TcpCheck value)

public UptimeCheckConfig.Builder mergeTcpCheck(UptimeCheckConfig.TcpCheck value)

Contains information needed to make a TCP check.

.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;

Parameter
NameDescription
valueUptimeCheckConfig.TcpCheck
Returns
TypeDescription
UptimeCheckConfig.Builder

mergeTimeout(Duration value)

public UptimeCheckConfig.Builder mergeTimeout(Duration value)

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

.google.protobuf.Duration timeout = 8;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
UptimeCheckConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UptimeCheckConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

putAllUserLabels(Map<String,String> values)

public UptimeCheckConfig.Builder putAllUserLabels(Map<String,String> values)

User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.

The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

map<string, string> user_labels = 20;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
UptimeCheckConfig.Builder

putUserLabels(String key, String value)

public UptimeCheckConfig.Builder putUserLabels(String key, String value)

User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.

The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

map<string, string> user_labels = 20;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
UptimeCheckConfig.Builder

removeContentMatchers(int index)

public UptimeCheckConfig.Builder removeContentMatchers(int index)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
UptimeCheckConfig.Builder

removeInternalCheckers(int index) (deprecated)

public UptimeCheckConfig.Builder removeInternalCheckers(int index)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameter
NameDescription
indexint
Returns
TypeDescription
UptimeCheckConfig.Builder

removeUserLabels(String key)

public UptimeCheckConfig.Builder removeUserLabels(String key)

User-supplied key/value data to be used for organizing and identifying the UptimeCheckConfig objects.

The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

map<string, string> user_labels = 20;

Parameter
NameDescription
keyString
Returns
TypeDescription
UptimeCheckConfig.Builder

setCheckerType(UptimeCheckConfig.CheckerType value)

public UptimeCheckConfig.Builder setCheckerType(UptimeCheckConfig.CheckerType value)

The type of checkers to use to execute the Uptime check.

.google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17;

Parameter
NameDescription
valueUptimeCheckConfig.CheckerType

The checkerType to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setCheckerTypeValue(int value)

public UptimeCheckConfig.Builder setCheckerTypeValue(int value)

The type of checkers to use to execute the Uptime check.

.google.monitoring.v3.UptimeCheckConfig.CheckerType checker_type = 17;

Parameter
NameDescription
valueint

The enum numeric value on the wire for checkerType to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setContentMatchers(int index, UptimeCheckConfig.ContentMatcher value)

public UptimeCheckConfig.Builder setContentMatchers(int index, UptimeCheckConfig.ContentMatcher value)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameters
NameDescription
indexint
valueUptimeCheckConfig.ContentMatcher
Returns
TypeDescription
UptimeCheckConfig.Builder

setContentMatchers(int index, UptimeCheckConfig.ContentMatcher.Builder builderForValue)

public UptimeCheckConfig.Builder setContentMatchers(int index, UptimeCheckConfig.ContentMatcher.Builder builderForValue)

The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the content_matchers list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

repeated .google.monitoring.v3.UptimeCheckConfig.ContentMatcher content_matchers = 9;

Parameters
NameDescription
indexint
builderForValueUptimeCheckConfig.ContentMatcher.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

setDisplayName(String value)

public UptimeCheckConfig.Builder setDisplayName(String value)

A human-friendly name for the Uptime check configuration. The display name should be unique within a Cloud Monitoring Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public UptimeCheckConfig.Builder setDisplayNameBytes(ByteString value)

A human-friendly name for the Uptime check configuration. The display name should be unique within a Cloud Monitoring Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UptimeCheckConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

setHttpCheck(UptimeCheckConfig.HttpCheck value)

public UptimeCheckConfig.Builder setHttpCheck(UptimeCheckConfig.HttpCheck value)

Contains information needed to make an HTTP or HTTPS check.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;

Parameter
NameDescription
valueUptimeCheckConfig.HttpCheck
Returns
TypeDescription
UptimeCheckConfig.Builder

setHttpCheck(UptimeCheckConfig.HttpCheck.Builder builderForValue)

public UptimeCheckConfig.Builder setHttpCheck(UptimeCheckConfig.HttpCheck.Builder builderForValue)

Contains information needed to make an HTTP or HTTPS check.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;

Parameter
NameDescription
builderForValueUptimeCheckConfig.HttpCheck.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

setInternalCheckers(int index, InternalChecker value) (deprecated)

public UptimeCheckConfig.Builder setInternalCheckers(int index, InternalChecker value)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameters
NameDescription
indexint
valueInternalChecker
Returns
TypeDescription
UptimeCheckConfig.Builder

setInternalCheckers(int index, InternalChecker.Builder builderForValue) (deprecated)

public UptimeCheckConfig.Builder setInternalCheckers(int index, InternalChecker.Builder builderForValue)

The internal checkers that this check will egress from. If is_internal is true and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this UptimeCheckConfig.

repeated .google.monitoring.v3.InternalChecker internal_checkers = 14 [deprecated = true];

Parameters
NameDescription
indexint
builderForValueInternalChecker.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

setIsInternal(boolean value) (deprecated)

public UptimeCheckConfig.Builder setIsInternal(boolean value)

Deprecated. google.monitoring.v3.UptimeCheckConfig.is_internal is deprecated. See google/monitoring/v3/uptime.proto;l=478

If this is true, then checks are made only from the 'internal_checkers'. If it is false, then checks are made only from the 'selected_regions'. It is an error to provide 'selected_regions' when is_internal is true, or to provide 'internal_checkers' when is_internal is false.

bool is_internal = 15 [deprecated = true];

Parameter
NameDescription
valueboolean

The isInternal to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setMonitoredResource(MonitoredResource value)

public UptimeCheckConfig.Builder setMonitoredResource(MonitoredResource value)

The monitored resource associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision

.google.api.MonitoredResource monitored_resource = 3;

Parameter
NameDescription
valuecom.google.api.MonitoredResource
Returns
TypeDescription
UptimeCheckConfig.Builder

setMonitoredResource(MonitoredResource.Builder builderForValue)

public UptimeCheckConfig.Builder setMonitoredResource(MonitoredResource.Builder builderForValue)

The monitored resource associated with the configuration. The following monitored resource types are valid for this field: uptime_url, gce_instance, gae_app, aws_ec2_instance, aws_elb_load_balancer k8s_service servicedirectory_service cloud_run_revision

.google.api.MonitoredResource monitored_resource = 3;

Parameter
NameDescription
builderForValuecom.google.api.MonitoredResource.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

setName(String value)

public UptimeCheckConfig.Builder setName(String value)

A unique resource name for this Uptime check configuration. The format is:

  projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]

[PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.

This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UptimeCheckConfig.Builder setNameBytes(ByteString value)

A unique resource name for this Uptime check configuration. The format is:

  projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]

[PROJECT_ID_OR_NUMBER] is the Workspace host project associated with the Uptime check.

This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setPeriod(Duration value)

public UptimeCheckConfig.Builder setPeriod(Duration value)

How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.

.google.protobuf.Duration period = 7;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
UptimeCheckConfig.Builder

setPeriod(Duration.Builder builderForValue)

public UptimeCheckConfig.Builder setPeriod(Duration.Builder builderForValue)

How often, in seconds, the Uptime check is performed. Currently, the only supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), and 900s (15 minutes). Optional, defaults to 60s.

.google.protobuf.Duration period = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UptimeCheckConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UptimeCheckConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides

setResourceGroup(UptimeCheckConfig.ResourceGroup value)

public UptimeCheckConfig.Builder setResourceGroup(UptimeCheckConfig.ResourceGroup value)

The group resource associated with the configuration.

.google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4;

Parameter
NameDescription
valueUptimeCheckConfig.ResourceGroup
Returns
TypeDescription
UptimeCheckConfig.Builder

setResourceGroup(UptimeCheckConfig.ResourceGroup.Builder builderForValue)

public UptimeCheckConfig.Builder setResourceGroup(UptimeCheckConfig.ResourceGroup.Builder builderForValue)

The group resource associated with the configuration.

.google.monitoring.v3.UptimeCheckConfig.ResourceGroup resource_group = 4;

Parameter
NameDescription
builderForValueUptimeCheckConfig.ResourceGroup.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

setSelectedRegions(int index, UptimeCheckRegion value)

public UptimeCheckConfig.Builder setSelectedRegions(int index, UptimeCheckRegion value)

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Parameters
NameDescription
indexint

The index to set the value at.

valueUptimeCheckRegion

The selectedRegions to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setSelectedRegionsValue(int index, int value)

public UptimeCheckConfig.Builder setSelectedRegionsValue(int index, int value)

The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

repeated .google.monitoring.v3.UptimeCheckRegion selected_regions = 10;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for selectedRegions to set.

Returns
TypeDescription
UptimeCheckConfig.Builder

This builder for chaining.

setTcpCheck(UptimeCheckConfig.TcpCheck value)

public UptimeCheckConfig.Builder setTcpCheck(UptimeCheckConfig.TcpCheck value)

Contains information needed to make a TCP check.

.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;

Parameter
NameDescription
valueUptimeCheckConfig.TcpCheck
Returns
TypeDescription
UptimeCheckConfig.Builder

setTcpCheck(UptimeCheckConfig.TcpCheck.Builder builderForValue)

public UptimeCheckConfig.Builder setTcpCheck(UptimeCheckConfig.TcpCheck.Builder builderForValue)

Contains information needed to make a TCP check.

.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;

Parameter
NameDescription
builderForValueUptimeCheckConfig.TcpCheck.Builder
Returns
TypeDescription
UptimeCheckConfig.Builder

setTimeout(Duration value)

public UptimeCheckConfig.Builder setTimeout(Duration value)

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

.google.protobuf.Duration timeout = 8;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
UptimeCheckConfig.Builder

setTimeout(Duration.Builder builderForValue)

public UptimeCheckConfig.Builder setTimeout(Duration.Builder builderForValue)

The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

.google.protobuf.Duration timeout = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UptimeCheckConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UptimeCheckConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UptimeCheckConfig.Builder
Overrides