Class Monitor.Builder
- java.lang.Object
- 
- com.oracle.bmc.apmsynthetics.model.Monitor.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Monitor.BuilderavailabilityConfiguration(AvailabilityConfiguration availabilityConfiguration)Monitor.BuilderbatchIntervalInSeconds(Integer batchIntervalInSeconds)Time interval between two runs in round robin batch mode (SchedulingPolicy - BATCHED_ROUND_ROBIN).Monitorbuild()Monitor.Builderconfiguration(MonitorConfiguration configuration)Monitor.BuildercontentType(ContentTypes contentType)Content type of the script.Monitor.Buildercopy(Monitor model)Monitor.BuildercreatedBy(String createdBy)Name of the user that created the monitor.Monitor.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Monitor.BuilderdisplayName(String displayName)Unique name that can be edited.Monitor.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Monitor.Builderid(String id)The OCID of the monitor.Monitor.BuilderisIPv6(Boolean isIPv6)If enabled, domain name will resolve to an IPv6 address.Monitor.BuilderisRunNow(Boolean isRunNow)If isRunNow is enabled, then the monitor will run immediately.Monitor.BuilderisRunOnce(Boolean isRunOnce)If runOnce is enabled, then the monitor will run once.Monitor.BuilderlastUpdatedBy(String lastUpdatedBy)Name of the user that recently updated the monitor.Monitor.BuildermaintenanceWindowSchedule(MaintenanceWindowSchedule maintenanceWindowSchedule)Monitor.BuildermonitorType(MonitorTypes monitorType)Type of monitor.Monitor.BuilderrepeatIntervalInSeconds(Integer repeatIntervalInSeconds)Interval in seconds after the start time when the job should be repeated.Monitor.BuilderschedulingPolicy(SchedulingPolicy schedulingPolicy)Scheduling policy to decide the distribution of monitor executions on vantage points.Monitor.BuilderscriptId(String scriptId)The OCID of the script.Monitor.BuilderscriptName(String scriptName)Name of the script.Monitor.BuilderscriptParameters(List<MonitorScriptParameterInfo> scriptParameters)List of script parameters.Monitor.Builderstatus(MonitorStatus status)Enables or disables the monitor.Monitor.Buildertarget(String target)Specify the endpoint on which to run the monitor.Monitor.BuildertimeCreated(Date timeCreated)The time the resource was created, expressed in RFC 3339 timestamp format.Monitor.BuildertimeoutInSeconds(Integer timeoutInSeconds)Timeout in seconds.Monitor.BuildertimeUpdated(Date timeUpdated)The time the resource was updated, expressed in RFC 3339 timestamp format.Monitor.BuildervantagePointCount(Integer vantagePointCount)Number of vantage points where monitor is running.Monitor.BuildervantagePoints(List<VantagePointInfo> vantagePoints)List of public, dedicated and onPremise vantage points where the monitor is running.
 
- 
- 
- 
Method Detail- 
idpublic Monitor.Builder id(String id) The OCID of the monitor.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Monitor.Builder displayName(String displayName) Unique name that can be edited.The name should not contain any confidential information. - Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
monitorTypepublic Monitor.Builder monitorType(MonitorTypes monitorType) Type of monitor.- Parameters:
- monitorType- the value to set
- Returns:
- this builder
 
 - 
vantagePointspublic Monitor.Builder vantagePoints(List<VantagePointInfo> vantagePoints) List of public, dedicated and onPremise vantage points where the monitor is running.- Parameters:
- vantagePoints- the value to set
- Returns:
- this builder
 
 - 
vantagePointCountpublic Monitor.Builder vantagePointCount(Integer vantagePointCount) Number of vantage points where monitor is running.- Parameters:
- vantagePointCount- the value to set
- Returns:
- this builder
 
 - 
scriptIdpublic 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. - Parameters:
- scriptId- the value to set
- Returns:
- this builder
 
 - 
scriptNamepublic Monitor.Builder scriptName(String scriptName) Name of the script.- Parameters:
- scriptName- the value to set
- Returns:
- this builder
 
 - 
contentTypepublic Monitor.Builder contentType(ContentTypes contentType) Content type of the script.- Parameters:
- contentType- the value to set
- Returns:
- this builder
 
 - 
statuspublic Monitor.Builder status(MonitorStatus status) Enables or disables the monitor.- Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
repeatIntervalInSecondspublic 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. - Parameters:
- repeatIntervalInSeconds- the value to set
- Returns:
- this builder
 
 - 
isRunOncepublic Monitor.Builder isRunOnce(Boolean isRunOnce) If runOnce is enabled, then the monitor will run once.- Parameters:
- isRunOnce- the value to set
- Returns:
- this builder
 
 - 
timeoutInSecondspublic 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. - Parameters:
- timeoutInSeconds- the value to set
- Returns:
- this builder
 
 - 
targetpublic 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. - Parameters:
- target- the value to set
- Returns:
- this builder
 
 - 
scriptParameterspublic Monitor.Builder scriptParameters(List<MonitorScriptParameterInfo> scriptParameters) List of script parameters.Example: [{“monitorScriptParameter”: {“paramName”: “userid”, “paramValue”:“testuser”}, “isSecret”: false, “isOverwritten”: false}] - Parameters:
- scriptParameters- the value to set
- Returns:
- this builder
 
 - 
configurationpublic Monitor.Builder configuration(MonitorConfiguration configuration) 
 - 
availabilityConfigurationpublic Monitor.Builder availabilityConfiguration(AvailabilityConfiguration availabilityConfiguration) 
 - 
maintenanceWindowSchedulepublic Monitor.Builder maintenanceWindowSchedule(MaintenanceWindowSchedule maintenanceWindowSchedule) 
 - 
timeCreatedpublic Monitor.Builder timeCreated(Date timeCreated) The time the resource was created, expressed in RFC 3339 timestamp format.Example: 2020-02-12T22:47:12.613Z - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic Monitor.Builder timeUpdated(Date timeUpdated) The time the resource was updated, expressed in RFC 3339 timestamp format.Example: 2020-02-13T22:47:12.613Z - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic 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”} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic 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”}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
isRunNowpublic Monitor.Builder isRunNow(Boolean isRunNow) If isRunNow is enabled, then the monitor will run immediately.- Parameters:
- isRunNow- the value to set
- Returns:
- this builder
 
 - 
schedulingPolicypublic Monitor.Builder schedulingPolicy(SchedulingPolicy schedulingPolicy) Scheduling policy to decide the distribution of monitor executions on vantage points.- Parameters:
- schedulingPolicy- the value to set
- Returns:
- this builder
 
 - 
batchIntervalInSecondspublic Monitor.Builder batchIntervalInSeconds(Integer batchIntervalInSeconds) Time interval between two runs in round robin batch mode (SchedulingPolicy - BATCHED_ROUND_ROBIN).- Parameters:
- batchIntervalInSeconds- the value to set
- Returns:
- this builder
 
 - 
isIPv6public Monitor.Builder isIPv6(Boolean isIPv6) If enabled, domain name will resolve to an IPv6 address.- Parameters:
- isIPv6- the value to set
- Returns:
- this builder
 
 - 
createdBypublic Monitor.Builder createdBy(String createdBy) Name of the user that created the monitor.- Parameters:
- createdBy- the value to set
- Returns:
- this builder
 
 - 
lastUpdatedBypublic Monitor.Builder lastUpdatedBy(String lastUpdatedBy) Name of the user that recently updated the monitor.- Parameters:
- lastUpdatedBy- the value to set
- Returns:
- this builder
 
 - 
buildpublic Monitor build() 
 - 
copypublic Monitor.Builder copy(Monitor model) 
 
- 
 
-