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