Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Monitor.Builder |
availabilityConfiguration(AvailabilityConfiguration availabilityConfiguration) |
Monitor.Builder |
batchIntervalInSeconds(Integer batchIntervalInSeconds)
Time interval between two runs in round robin batch mode (SchedulingPolicy -
BATCHED_ROUND_ROBIN).
|
Monitor |
build() |
Monitor.Builder |
configuration(MonitorConfiguration configuration) |
Monitor.Builder |
copy(Monitor model) |
Monitor.Builder |
createdBy(String createdBy)
Name of the user that created the monitor.
|
Monitor.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Monitor.Builder |
displayName(String displayName)
Unique name that can be edited.
|
Monitor.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
Monitor.Builder |
id(String id)
The OCID of the
monitor.
|
Monitor.Builder |
isIPv6(Boolean isIPv6)
If enabled, domain name will resolve to an IPv6 address.
|
Monitor.Builder |
isRunNow(Boolean isRunNow)
If isRunNow is enabled, then the monitor will run immediately.
|
Monitor.Builder |
isRunOnce(Boolean isRunOnce)
If runOnce is enabled, then the monitor will run once.
|
Monitor.Builder |
lastUpdatedBy(String lastUpdatedBy)
Name of the user that recently updated the monitor.
|
Monitor.Builder |
maintenanceWindowSchedule(MaintenanceWindowSchedule maintenanceWindowSchedule) |
Monitor.Builder |
monitorType(MonitorTypes monitorType)
Type of monitor.
|
Monitor.Builder |
repeatIntervalInSeconds(Integer repeatIntervalInSeconds)
Interval in seconds after the start time when the job should be repeated.
|
Monitor.Builder |
schedulingPolicy(SchedulingPolicy schedulingPolicy)
Scheduling policy to decide the distribution of monitor executions on vantage points.
|
Monitor.Builder |
scriptId(String scriptId)
The OCID of the
script.
|
Monitor.Builder |
scriptName(String scriptName)
Name of the script.
|
Monitor.Builder |
scriptParameters(List<MonitorScriptParameterInfo> scriptParameters)
List of script parameters.
|
Monitor.Builder |
status(MonitorStatus status)
Enables or disables the monitor.
|
Monitor.Builder |
target(String target)
Specify the endpoint on which to run the monitor.
|
Monitor.Builder |
timeCreated(Date timeCreated)
The time the resource was created, expressed in RFC
3339 timestamp format.
|
Monitor.Builder |
timeoutInSeconds(Integer timeoutInSeconds)
Timeout in seconds.
|
Monitor.Builder |
timeUpdated(Date timeUpdated)
The time the resource was updated, expressed in RFC
3339 timestamp format.
|
Monitor.Builder |
vantagePointCount(Integer vantagePointCount)
Number of vantage points where monitor is running.
|
Monitor.Builder |
vantagePoints(List<VantagePointInfo> vantagePoints)
List of public, dedicated and onPremise vantage points where the monitor is running.
|
public Monitor.Builder id(String id)
The OCID of the monitor.
id
- the value to setpublic Monitor.Builder displayName(String displayName)
Unique name that can be edited. The name should not contain any confidential information.
displayName
- the value to setpublic Monitor.Builder monitorType(MonitorTypes monitorType)
Type of monitor.
monitorType
- the value to setpublic Monitor.Builder vantagePoints(List<VantagePointInfo> vantagePoints)
List of public, dedicated and onPremise vantage points where the monitor is running.
vantagePoints
- the value to setpublic Monitor.Builder vantagePointCount(Integer vantagePointCount)
Number of vantage points where monitor is running.
vantagePointCount
- the value to setpublic Monitor.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 Monitor.Builder scriptName(String scriptName)
Name of the script.
scriptName
- the value to setpublic Monitor.Builder status(MonitorStatus status)
Enables or disables the monitor.
status
- the value to setpublic Monitor.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 Monitor.Builder isRunOnce(Boolean isRunOnce)
If runOnce is enabled, then the monitor will run once.
isRunOnce
- the value to setpublic Monitor.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 Monitor.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 Monitor.Builder scriptParameters(List<MonitorScriptParameterInfo> scriptParameters)
List of script parameters. Example: [{"monitorScriptParameter": {"paramName":
"userid", "paramValue":"testuser"}, “isSecret”: false, “isOverwritten”: false}]
scriptParameters
- the value to setpublic Monitor.Builder configuration(MonitorConfiguration configuration)
public Monitor.Builder availabilityConfiguration(AvailabilityConfiguration availabilityConfiguration)
public Monitor.Builder maintenanceWindowSchedule(MaintenanceWindowSchedule maintenanceWindowSchedule)
public Monitor.Builder timeCreated(Date timeCreated)
The time the resource was created, expressed in RFC
3339 timestamp format. Example: 2020-02-12T22:47:12.613Z
timeCreated
- the value to setpublic Monitor.Builder timeUpdated(Date timeUpdated)
The time the resource was updated, expressed in RFC
3339 timestamp format. Example: 2020-02-13T22:47:12.613Z
timeUpdated
- the value to setpublic Monitor.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 Monitor.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 Monitor.Builder isRunNow(Boolean isRunNow)
If isRunNow is enabled, then the monitor will run immediately.
isRunNow
- the value to setpublic Monitor.Builder schedulingPolicy(SchedulingPolicy schedulingPolicy)
Scheduling policy to decide the distribution of monitor executions on vantage points.
schedulingPolicy
- the value to setpublic Monitor.Builder batchIntervalInSeconds(Integer batchIntervalInSeconds)
Time interval between two runs in round robin batch mode (SchedulingPolicy - BATCHED_ROUND_ROBIN).
batchIntervalInSeconds
- the value to setpublic Monitor.Builder isIPv6(Boolean isIPv6)
If enabled, domain name will resolve to an IPv6 address.
isIPv6
- the value to setpublic Monitor.Builder createdBy(String createdBy)
Name of the user that created the monitor.
createdBy
- the value to setpublic Monitor.Builder lastUpdatedBy(String lastUpdatedBy)
Name of the user that recently updated the monitor.
lastUpdatedBy
- the value to setpublic Monitor build()
public Monitor.Builder copy(Monitor model)
Copyright © 2016–2024. All rights reserved.