@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public final class ImportOciTelemetryResourcesTaskDetails extends MonitoredResourceTaskDetails
Request details for importing resources from Telemetry like resources from OCI Native Services
and prometheus.
Note: Objects should always be created or deserialized using the ImportOciTelemetryResourcesTaskDetails.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the ImportOciTelemetryResourcesTaskDetails.Builder
, which maintain a
set of all explicitly set fields called ImportOciTelemetryResourcesTaskDetails.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ImportOciTelemetryResourcesTaskDetails.Builder |
static class |
ImportOciTelemetryResourcesTaskDetails.Source
Source from where the metrics pushed to telemetry.
|
MonitoredResourceTaskDetails.Type
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ImportOciTelemetryResourcesTaskDetails(ImportOciTelemetryResourcesTaskDetails.Source source,
String namespace,
String resourceGroup,
Boolean shouldUseMetricsFlowForStatus,
String serviceBaseUrl,
String consolePathPrefix,
List<String> lifecycleStatusMappingsForUpStatus,
String resourceNameMapping,
String externalIdMapping,
String resourceTypeMapping,
String resourceNameFilter,
String resourceTypeFilter,
List<String> availabilityProxyMetrics,
Integer availabilityProxyMetricCollectionInterval)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ImportOciTelemetryResourcesTaskDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getAvailabilityProxyMetricCollectionInterval()
Metrics collection interval in seconds used when calculating the availability of the resource
based on metrics specified using the property ‘availabilityProxyMetrics’.
|
List<String> |
getAvailabilityProxyMetrics()
List of metrics to be used to calculate the availability of the resource.
|
String |
getConsolePathPrefix()
The console path prefix to use for providing service home url page navigation.
|
String |
getExternalIdMapping()
The external resource identifier property in the metric dimensions.
|
List<String> |
getLifecycleStatusMappingsForUpStatus()
Lifecycle states of the external resource which reflects the status of the resource being up.
|
String |
getNamespace()
Name space to be used for OCI Native service resources discovery.
|
String |
getResourceGroup()
The resource group to use while fetching metrics from telemetry.
|
String |
getResourceNameFilter()
The resource name filter.
|
String |
getResourceNameMapping()
The resource name property in the metric dimensions.
|
String |
getResourceTypeFilter()
The resource type filter.
|
String |
getResourceTypeMapping()
The resource type property in the metric dimensions.
|
String |
getServiceBaseUrl()
The base URL of the OCI service to which the resource belongs to.
|
Boolean |
getShouldUseMetricsFlowForStatus()
Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of
the resource in OCI service.
|
ImportOciTelemetryResourcesTaskDetails.Source |
getSource()
Source from where the metrics pushed to telemetry.
|
int |
hashCode() |
ImportOciTelemetryResourcesTaskDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public ImportOciTelemetryResourcesTaskDetails(ImportOciTelemetryResourcesTaskDetails.Source source, String namespace, String resourceGroup, Boolean shouldUseMetricsFlowForStatus, String serviceBaseUrl, String consolePathPrefix, List<String> lifecycleStatusMappingsForUpStatus, String resourceNameMapping, String externalIdMapping, String resourceTypeMapping, String resourceNameFilter, String resourceTypeFilter, List<String> availabilityProxyMetrics, Integer availabilityProxyMetricCollectionInterval)
public static ImportOciTelemetryResourcesTaskDetails.Builder builder()
Create a new builder.
public ImportOciTelemetryResourcesTaskDetails.Builder toBuilder()
public ImportOciTelemetryResourcesTaskDetails.Source getSource()
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.
public String getNamespace()
Name space to be used for OCI Native service resources discovery.
public String getResourceGroup()
The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
public Boolean getShouldUseMetricsFlowForStatus()
Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in OCI service.
public String getServiceBaseUrl()
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.
public String getConsolePathPrefix()
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://
public List<String> getLifecycleStatusMappingsForUpStatus()
Lifecycle states of the external resource which reflects the status of the resource being up.
public String getResourceNameMapping()
The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
public String getExternalIdMapping()
The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
public String getResourceTypeMapping()
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.
public String getResourceNameFilter()
The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
public String getResourceTypeFilter()
The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
public List<String> getAvailabilityProxyMetrics()
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 ‘availabilityProxyMetricCollectionIntervalInSeconds’. If no metrics are specified, availability will not be calculated for the resource.
public Integer getAvailabilityProxyMetricCollectionInterval()
Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property ‘availabilityProxyMetrics’.
public String toString()
toString
in class MonitoredResourceTaskDetails
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class MonitoredResourceTaskDetails
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class MonitoredResourceTaskDetails
public int hashCode()
hashCode
in class MonitoredResourceTaskDetails
Copyright © 2016–2024. All rights reserved.