Class ImportOciTelemetryResourcesTaskDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.ImportOciTelemetryResourcesTaskDetails.Builder
-
- Enclosing class:
- ImportOciTelemetryResourcesTaskDetails
public static class ImportOciTelemetryResourcesTaskDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportOciTelemetryResourcesTaskDetails.Builder
availabilityProxyMetricCollectionInterval(Integer availabilityProxyMetricCollectionInterval)
Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property ‘availabilityProxyMetrics’.ImportOciTelemetryResourcesTaskDetails.Builder
availabilityProxyMetrics(List<String> availabilityProxyMetrics)
List of metrics to be used to calculate the availability of the resource.ImportOciTelemetryResourcesTaskDetails
build()
ImportOciTelemetryResourcesTaskDetails.Builder
consolePathPrefix(String consolePathPrefix)
The console path prefix to use for providing service home url page navigation.ImportOciTelemetryResourcesTaskDetails.Builder
copy(ImportOciTelemetryResourcesTaskDetails model)
ImportOciTelemetryResourcesTaskDetails.Builder
externalIdMapping(String externalIdMapping)
The external resource identifier property in the metric dimensions.ImportOciTelemetryResourcesTaskDetails.Builder
lifecycleStatusMappingsForUpStatus(List<String> lifecycleStatusMappingsForUpStatus)
Lifecycle states of the external resource which reflects the status of the resource being up.ImportOciTelemetryResourcesTaskDetails.Builder
namespace(String namespace)
Name space to be used for OCI Native service resources discovery.ImportOciTelemetryResourcesTaskDetails.Builder
resourceGroup(String resourceGroup)
The resource group to use while fetching metrics from telemetry.ImportOciTelemetryResourcesTaskDetails.Builder
resourceNameFilter(String resourceNameFilter)
The resource name filter.ImportOciTelemetryResourcesTaskDetails.Builder
resourceNameMapping(String resourceNameMapping)
The resource name property in the metric dimensions.ImportOciTelemetryResourcesTaskDetails.Builder
resourceTypeFilter(String resourceTypeFilter)
The resource type filter.ImportOciTelemetryResourcesTaskDetails.Builder
resourceTypeMapping(String resourceTypeMapping)
The resource type property in the metric dimensions.ImportOciTelemetryResourcesTaskDetails.Builder
serviceBaseUrl(String serviceBaseUrl)
The base URL of the OCI service to which the resource belongs to.ImportOciTelemetryResourcesTaskDetails.Builder
shouldUseMetricsFlowForStatus(Boolean shouldUseMetricsFlowForStatus)
Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in OCI service.ImportOciTelemetryResourcesTaskDetails.Builder
source(ImportOciTelemetryResourcesTaskDetails.Source source)
Source from where the metrics pushed to telemetry.
-
-
-
Method Detail
-
source
public ImportOciTelemetryResourcesTaskDetails.Builder source(ImportOciTelemetryResourcesTaskDetails.Source source)
Source from where the metrics pushed to telemetry.Possible values: * OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from OCI Native Services. * OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus. * OCI_TELEMETRY_TELEGRAF - The metrics are pushed to telemetry from Telegraf receiver. * OCI_TELEMETRY_COLLECTD - The metrics are pushed to telemetry from CollectD receiver.
- Parameters:
source
- the value to set- Returns:
- this builder
-
namespace
public ImportOciTelemetryResourcesTaskDetails.Builder namespace(String namespace)
Name space to be used for OCI Native service resources discovery.- Parameters:
namespace
- the value to set- Returns:
- this builder
-
resourceGroup
public ImportOciTelemetryResourcesTaskDetails.Builder resourceGroup(String resourceGroup)
The resource group to use while fetching metrics from telemetry.If not specified, resource group will be skipped in the list metrics request.
- Parameters:
resourceGroup
- the value to set- Returns:
- this builder
-
shouldUseMetricsFlowForStatus
public ImportOciTelemetryResourcesTaskDetails.Builder shouldUseMetricsFlowForStatus(Boolean shouldUseMetricsFlowForStatus)
Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in OCI service.- Parameters:
shouldUseMetricsFlowForStatus
- the value to set- Returns:
- this builder
-
serviceBaseUrl
public ImportOciTelemetryResourcesTaskDetails.Builder serviceBaseUrl(String serviceBaseUrl)
The base URL of the OCI service to which the resource belongs to.Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- Parameters:
serviceBaseUrl
- the value to set- Returns:
- this builder
-
consolePathPrefix
public ImportOciTelemetryResourcesTaskDetails.Builder consolePathPrefix(String consolePathPrefix)
The console path prefix to use for providing service home url page navigation.For example if the prefix provided is ‘security/bastion/bastions’, the URL used for navigation will be https://
/security/bastion/bastions/ . If not provided, service home page link will not be shown in the stack monitoring home page. - Parameters:
consolePathPrefix
- the value to set- Returns:
- this builder
-
lifecycleStatusMappingsForUpStatus
public ImportOciTelemetryResourcesTaskDetails.Builder lifecycleStatusMappingsForUpStatus(List<String> lifecycleStatusMappingsForUpStatus)
Lifecycle states of the external resource which reflects the status of the resource being up.- Parameters:
lifecycleStatusMappingsForUpStatus
- the value to set- Returns:
- this builder
-
resourceNameMapping
public ImportOciTelemetryResourcesTaskDetails.Builder resourceNameMapping(String resourceNameMapping)
The resource name property in the metric dimensions.Resources imported will be using this property value for resource name.
- Parameters:
resourceNameMapping
- the value to set- Returns:
- this builder
-
externalIdMapping
public ImportOciTelemetryResourcesTaskDetails.Builder externalIdMapping(String externalIdMapping)
The external resource identifier property in the metric dimensions.Resources imported will be using this property value for external id.
- Parameters:
externalIdMapping
- the value to set- Returns:
- this builder
-
resourceTypeMapping
public ImportOciTelemetryResourcesTaskDetails.Builder resourceTypeMapping(String resourceTypeMapping)
The resource type property in the metric dimensions.Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- Parameters:
resourceTypeMapping
- the value to set- Returns:
- this builder
-
resourceNameFilter
public ImportOciTelemetryResourcesTaskDetails.Builder resourceNameFilter(String resourceNameFilter)
The resource name filter.Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- Parameters:
resourceNameFilter
- the value to set- Returns:
- this builder
-
resourceTypeFilter
public ImportOciTelemetryResourcesTaskDetails.Builder resourceTypeFilter(String resourceTypeFilter)
The resource type filter.Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- Parameters:
resourceTypeFilter
- the value to set- Returns:
- this builder
-
availabilityProxyMetrics
public ImportOciTelemetryResourcesTaskDetails.Builder availabilityProxyMetrics(List<String> availabilityProxyMetrics)
List of metrics to be used to calculate the availability of the resource.Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property ‘availabilityProxyMetricCollectionInterval’. If no metrics are specified, availability will not be calculated for the resource.
- Parameters:
availabilityProxyMetrics
- the value to set- Returns:
- this builder
-
availabilityProxyMetricCollectionInterval
public ImportOciTelemetryResourcesTaskDetails.Builder availabilityProxyMetricCollectionInterval(Integer availabilityProxyMetricCollectionInterval)
Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property ‘availabilityProxyMetrics’.- Parameters:
availabilityProxyMetricCollectionInterval
- the value to set- Returns:
- this builder
-
build
public ImportOciTelemetryResourcesTaskDetails build()
-
copy
public ImportOciTelemetryResourcesTaskDetails.Builder copy(ImportOciTelemetryResourcesTaskDetails model)
-
-