public static class HttpMonitor.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpMonitor |
build() |
HttpMonitor.Builder |
compartmentId(String compartmentId)
The OCID of the compartment.
|
HttpMonitor.Builder |
copy(HttpMonitor model) |
HttpMonitor.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
HttpMonitor.Builder |
displayName(String displayName)
A user-friendly and mutable name suitable for display in a user interface.
|
HttpMonitor.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
HttpMonitor.Builder |
headers(Map<String,String> headers)
A dictionary of HTTP request headers.
|
HttpMonitor.Builder |
homeRegion(String homeRegion)
The region where updates must be made and where results must be fetched from.
|
HttpMonitor.Builder |
id(String id)
The OCID of the resource.
|
HttpMonitor.Builder |
intervalInSeconds(Integer intervalInSeconds)
The monitor interval in seconds.
|
HttpMonitor.Builder |
isEnabled(Boolean isEnabled)
Enables or disables the monitor.
|
HttpMonitor.Builder |
method(HttpProbeMethod method) |
HttpMonitor.Builder |
path(String path)
The optional URL path to probe, including query parameters.
|
HttpMonitor.Builder |
port(Integer port)
The port on which to probe endpoints.
|
HttpMonitor.Builder |
protocol(HttpProbeProtocol protocol) |
HttpMonitor.Builder |
resultsUrl(String resultsUrl)
A URL for fetching the probe results.
|
HttpMonitor.Builder |
targets(List<String> targets)
A list of targets (hostnames or IP addresses) of the probe.
|
HttpMonitor.Builder |
timeCreated(Date timeCreated)
The RFC 3339-formatted creation date and time of the probe.
|
HttpMonitor.Builder |
timeoutInSeconds(Integer timeoutInSeconds)
The probe timeout in seconds.
|
HttpMonitor.Builder |
vantagePointNames(List<String> vantagePointNames)
A list of names of vantage points from which to execute the probe.
|
public HttpMonitor.Builder id(String id)
The OCID of the resource.
id
- the value to setpublic HttpMonitor.Builder resultsUrl(String resultsUrl)
A URL for fetching the probe results.
resultsUrl
- the value to setpublic HttpMonitor.Builder homeRegion(String homeRegion)
The region where updates must be made and where results must be fetched from.
homeRegion
- the value to setpublic HttpMonitor.Builder timeCreated(Date timeCreated)
The RFC 3339-formatted creation date and time of the probe.
timeCreated
- the value to setpublic HttpMonitor.Builder compartmentId(String compartmentId)
The OCID of the compartment.
compartmentId
- the value to setpublic HttpMonitor.Builder targets(List<String> targets)
A list of targets (hostnames or IP addresses) of the probe.
targets
- the value to setpublic HttpMonitor.Builder vantagePointNames(List<String> vantagePointNames)
A list of names of vantage points from which to execute the probe.
vantagePointNames
- the value to setpublic HttpMonitor.Builder port(Integer port)
The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol.
port
- the value to setpublic HttpMonitor.Builder timeoutInSeconds(Integer timeoutInSeconds)
The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be
less than or equal to intervalInSeconds
for monitors.
timeoutInSeconds
- the value to setpublic HttpMonitor.Builder protocol(HttpProbeProtocol protocol)
public HttpMonitor.Builder method(HttpProbeMethod method)
public HttpMonitor.Builder path(String path)
The optional URL path to probe, including query parameters.
path
- the value to setpublic HttpMonitor.Builder headers(Map<String,String> headers)
A dictionary of HTTP request headers.
Note:* Monitors and probes do not support the use of the Authorization
HTTP
header.
headers
- the value to setpublic HttpMonitor.Builder displayName(String displayName)
A user-friendly and mutable name suitable for display in a user interface.
displayName
- the value to setpublic HttpMonitor.Builder intervalInSeconds(Integer intervalInSeconds)
The monitor interval in seconds. Valid values: 10, 30, and 60.
intervalInSeconds
- the value to setpublic HttpMonitor.Builder isEnabled(Boolean isEnabled)
Enables or disables the monitor. Set to ‘true’ to launch monitoring.
isEnabled
- the value to setpublic HttpMonitor.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined
name, type, or namespace. For more information, see Resource
Tags. Example:
{"Department": "Finance"}
freeformTags
- the value to setpublic HttpMonitor.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For
more information, see Resource
Tags. Example:
{"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic HttpMonitor build()
public HttpMonitor.Builder copy(HttpMonitor model)
Copyright © 2016–2024. All rights reserved.