public static class UpdateMonitorDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UpdateMonitorDetails.Builder |
batchIntervalInSeconds(Integer batchIntervalInSeconds)
Time interval between 2 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 |
isRunNow(Boolean isRunNow)
If isRunNow is enabled, then the monitor will run now.
|
UpdateMonitorDetails.Builder |
isRunOnce(Boolean isRunOnce)
If runOnce is enabled, then the monitor will run once.
|
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 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. Timeout cannot be more than 30% 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 and REST 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.
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 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 now.
isRunNow
- the value to setpublic UpdateMonitorDetails.Builder schedulingPolicy(SchedulingPolicy schedulingPolicy)
Scheduling policy on Vantage points.
schedulingPolicy
- the value to setpublic UpdateMonitorDetails.Builder batchIntervalInSeconds(Integer batchIntervalInSeconds)
Time interval between 2 runs in round robin batch mode (*SchedulingPolicy - BATCHED_ROUND_ROBIN).
batchIntervalInSeconds
- the value to setpublic UpdateMonitorDetails build()
public UpdateMonitorDetails.Builder copy(UpdateMonitorDetails model)
Copyright © 2016–2022. All rights reserved.