public static class MetricExtension.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MetricExtension |
build() |
MetricExtension.Builder |
collectionMethod(String collectionMethod)
Collection Method Metric Extension applies
|
MetricExtension.Builder |
collectionRecurrences(String collectionRecurrences)
Schedule of metric extension should use RFC 5545 format -> recur-rule-part =
“FREQ”;“INTERVAL” where FREQ rule part identifies the type of recurrence rule.
|
MetricExtension.Builder |
compartmentId(String compartmentId)
Compartment Identifier
OCID
|
MetricExtension.Builder |
copy(MetricExtension model) |
MetricExtension.Builder |
createdBy(String createdBy)
Created by user
|
MetricExtension.Builder |
description(String description)
Description of the metric extension.
|
MetricExtension.Builder |
displayName(String displayName)
Metric Extension resource display name
|
MetricExtension.Builder |
enabledOnResources(List<EnabledResourceDetails> enabledOnResources)
List of resource objects on which this metric extension is enabled.
|
MetricExtension.Builder |
enabledOnResourcesCount(Integer enabledOnResourcesCount)
Count of resources on which this metric extension is enabled.
|
MetricExtension.Builder |
id(String id)
The OCID of
Metric Extension resource
|
MetricExtension.Builder |
lastUpdatedBy(String lastUpdatedBy)
Last updated by user
|
MetricExtension.Builder |
lifecycleState(MetricExtensionLifeCycleStates lifecycleState)
The current lifecycle state of the metric extension
|
MetricExtension.Builder |
metricList(List<Metric> metricList)
List of metrics which are part of this metric extension
|
MetricExtension.Builder |
name(String name)
Metric Extension resource name
|
MetricExtension.Builder |
queryProperties(MetricExtensionQueryProperties queryProperties) |
MetricExtension.Builder |
resourceType(String resourceType)
Resource type to which Metric Extension applies
|
MetricExtension.Builder |
resourceUri(String resourceUri)
The URI path that the user can do a GET on to access the metric extension metadata
|
MetricExtension.Builder |
status(MetricExtensionLifeCycleDetails status)
The current status of the metric extension i.e.
|
MetricExtension.Builder |
tenantId(String tenantId)
Tenant Identifier
OCID
|
MetricExtension.Builder |
timeCreated(Date timeCreated)
Metric Extension creation time.
|
MetricExtension.Builder |
timeUpdated(Date timeUpdated)
Metric Extension update time.
|
public MetricExtension.Builder id(String id)
The OCID of Metric Extension resource
id
- the value to setpublic MetricExtension.Builder name(String name)
Metric Extension resource name
name
- the value to setpublic MetricExtension.Builder displayName(String displayName)
Metric Extension resource display name
displayName
- the value to setpublic MetricExtension.Builder description(String description)
Description of the metric extension.
description
- the value to setpublic MetricExtension.Builder resourceType(String resourceType)
Resource type to which Metric Extension applies
resourceType
- the value to setpublic MetricExtension.Builder compartmentId(String compartmentId)
Compartment Identifier OCID
compartmentId
- the value to setpublic MetricExtension.Builder tenantId(String tenantId)
Tenant Identifier OCID
tenantId
- the value to setpublic MetricExtension.Builder collectionMethod(String collectionMethod)
Collection Method Metric Extension applies
collectionMethod
- the value to setpublic MetricExtension.Builder status(MetricExtensionLifeCycleDetails status)
The current status of the metric extension i.e. whether it is Draft or Published
status
- the value to setpublic MetricExtension.Builder lifecycleState(MetricExtensionLifeCycleStates lifecycleState)
The current lifecycle state of the metric extension
lifecycleState
- the value to setpublic MetricExtension.Builder createdBy(String createdBy)
Created by user
createdBy
- the value to setpublic MetricExtension.Builder lastUpdatedBy(String lastUpdatedBy)
Last updated by user
lastUpdatedBy
- the value to setpublic MetricExtension.Builder timeCreated(Date timeCreated)
Metric Extension creation time. An RFC3339 formatted datetime string.
timeCreated
- the value to setpublic MetricExtension.Builder timeUpdated(Date timeUpdated)
Metric Extension update time. An RFC3339 formatted datetime string.
timeUpdated
- the value to setpublic MetricExtension.Builder collectionRecurrences(String collectionRecurrences)
Schedule of metric extension should use RFC 5545 format -> recur-rule-part = “FREQ”;“INTERVAL” where FREQ rule part identifies the type of recurrence rule. Valid values are “MINUTELY”,“HOURLY”,“DAILY” to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
collectionRecurrences
- the value to setpublic MetricExtension.Builder metricList(List<Metric> metricList)
List of metrics which are part of this metric extension
metricList
- the value to setpublic MetricExtension.Builder queryProperties(MetricExtensionQueryProperties queryProperties)
public MetricExtension.Builder enabledOnResources(List<EnabledResourceDetails> enabledOnResources)
List of resource objects on which this metric extension is enabled.
enabledOnResources
- the value to setpublic MetricExtension.Builder enabledOnResourcesCount(Integer enabledOnResourcesCount)
Count of resources on which this metric extension is enabled.
enabledOnResourcesCount
- the value to setpublic MetricExtension.Builder resourceUri(String resourceUri)
The URI path that the user can do a GET on to access the metric extension metadata
resourceUri
- the value to setpublic MetricExtension build()
public MetricExtension.Builder copy(MetricExtension model)
Copyright © 2016–2024. All rights reserved.