public static class UpdateMonitorDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UpdateMonitorDetails.Builder |
availabilityConfiguration(AvailabilityConfiguration availabilityConfiguration) |
UpdateMonitorDetails.Builder |
batchIntervalInSeconds(Integer batchIntervalInSeconds)
Time interval between two runs in round robin batch mode (SchedulingPolicy -
BATCHED_ROUND_ROBIN).
|
UpdateMonitorDetails |
build() |
UpdateMonitorDetails.Builder |
configuration(MonitorConfiguration configuration) |
UpdateMonitorDetails.Builder |
copy(UpdateMonitorDetails model) |
UpdateMonitorDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
UpdateMonitorDetails.Builder |
displayName(String displayName)
Unique name that can be edited.
|
UpdateMonitorDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
UpdateMonitorDetails.Builder |
isIPv6(Boolean isIPv6)
If enabled, domain name will resolve to an IPv6 address.
|
UpdateMonitorDetails.Builder |
isRunNow(Boolean isRunNow)
If isRunNow is enabled, then the monitor will run immediately.
|
UpdateMonitorDetails.Builder |
isRunOnce(Boolean isRunOnce)
If runOnce is enabled, then the monitor will run once.
|
UpdateMonitorDetails.Builder |
maintenanceWindowSchedule(MaintenanceWindowSchedule maintenanceWindowSchedule) |
UpdateMonitorDetails.Builder |
repeatIntervalInSeconds(Integer repeatIntervalInSeconds)
Interval in seconds after the start time when the job should be repeated.
|
UpdateMonitorDetails.Builder |
schedulingPolicy(SchedulingPolicy schedulingPolicy)
Scheduling policy to decide the distribution of monitor executions on vantage points.
|
UpdateMonitorDetails.Builder |
scriptId(String scriptId)
The OCID of the
script.
|
UpdateMonitorDetails.Builder |
scriptParameters(List<MonitorScriptParameter> scriptParameters)
List of script parameters in the monitor.
|
UpdateMonitorDetails.Builder |
status(MonitorStatus status)
Enables or disables the monitor.
|
UpdateMonitorDetails.Builder |
target(String target)
Specify the endpoint on which to run the monitor.
|
UpdateMonitorDetails.Builder |
timeoutInSeconds(Integer timeoutInSeconds)
Timeout in seconds.
|
UpdateMonitorDetails.Builder |
vantagePoints(List<String> vantagePoints)
A list of public and dedicated vantage points from which to execute the monitor.
|
public UpdateMonitorDetails.Builder displayName(String displayName)
Unique name that can be edited. The name should not contain any confidential information.
displayName
- the value to setpublic UpdateMonitorDetails.Builder vantagePoints(List<String> vantagePoints)
A list of public and dedicated vantage points from which to execute the monitor. Use /publicVantagePoints to fetch public vantage points, and /dedicatedVantagePoints to fetch dedicated vantage points.
vantagePoints
- the value to setpublic UpdateMonitorDetails.Builder scriptId(String scriptId)
The OCID of the script. scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null.
scriptId
- the value to setpublic UpdateMonitorDetails.Builder status(MonitorStatus status)
Enables or disables the monitor.
status
- the value to setpublic UpdateMonitorDetails.Builder repeatIntervalInSeconds(Integer repeatIntervalInSeconds)
Interval in seconds after the start time when the job should be repeated. Minimum repeatIntervalInSeconds should be 300 seconds for Scripted REST, Scripted Browser and Browser monitors, and 60 seconds for REST monitor.
repeatIntervalInSeconds
- the value to setpublic UpdateMonitorDetails.Builder isRunOnce(Boolean isRunOnce)
If runOnce is enabled, then the monitor will run once.
isRunOnce
- the value to setpublic UpdateMonitorDetails.Builder timeoutInSeconds(Integer timeoutInSeconds)
Timeout in seconds. If isFailureRetried is true, then timeout cannot be more than 30% of repeatIntervalInSeconds time for monitors. If isFailureRetried is false, then timeout cannot be more than 50% of repeatIntervalInSeconds time for monitors. Also, timeoutInSeconds should be a multiple of 60 for Scripted REST, Scripted Browser and Browser monitors. Monitor will be allowed to run only for timeoutInSeconds time. It would be terminated after that.
timeoutInSeconds
- the value to setpublic UpdateMonitorDetails.Builder target(String target)
Specify the endpoint on which to run the monitor. For BROWSER, REST, NETWORK, DNS and FTP monitor types, target is mandatory. If target is specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. If target is not specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script as it is. For NETWORK monitor with TCP protocol, a port needs to be provided along with target. Example: 192.168.0.1:80.
target
- the value to setpublic UpdateMonitorDetails.Builder scriptParameters(List<MonitorScriptParameter> scriptParameters)
List of script parameters in the monitor. This is valid only for SCRIPTED_BROWSER and
SCRIPTED_REST monitor types. For other monitor types, it should be set to null. Example:
[{"paramName": "userid", "paramValue":"testuser"}]
scriptParameters
- the value to setpublic UpdateMonitorDetails.Builder configuration(MonitorConfiguration configuration)
public UpdateMonitorDetails.Builder availabilityConfiguration(AvailabilityConfiguration availabilityConfiguration)
public UpdateMonitorDetails.Builder maintenanceWindowSchedule(MaintenanceWindowSchedule maintenanceWindowSchedule)
public UpdateMonitorDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope. Exists
for cross-compatibility only. Example: {"bar-key": "value"}
freeformTags
- the value to setpublic UpdateMonitorDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic UpdateMonitorDetails.Builder isRunNow(Boolean isRunNow)
If isRunNow is enabled, then the monitor will run immediately.
isRunNow
- the value to setpublic UpdateMonitorDetails.Builder schedulingPolicy(SchedulingPolicy schedulingPolicy)
Scheduling policy to decide the distribution of monitor executions on vantage points.
schedulingPolicy
- the value to setpublic UpdateMonitorDetails.Builder batchIntervalInSeconds(Integer batchIntervalInSeconds)
Time interval between two runs in round robin batch mode (SchedulingPolicy - BATCHED_ROUND_ROBIN).
batchIntervalInSeconds
- the value to setpublic UpdateMonitorDetails.Builder isIPv6(Boolean isIPv6)
If enabled, domain name will resolve to an IPv6 address.
isIPv6
- the value to setpublic UpdateMonitorDetails build()
public UpdateMonitorDetails.Builder copy(UpdateMonitorDetails model)
Copyright © 2016–2024. All rights reserved.