Class ImportOciTelemetryResourcesTaskDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.stackmonitoring.model.MonitoredResourceTaskDetails
-
- com.oracle.bmc.stackmonitoring.model.ImportOciTelemetryResourcesTaskDetails
-
@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 theImportOciTelemetryResourcesTaskDetails.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 theImportOciTelemetryResourcesTaskDetails.Builder
, which maintain a set of all explicitly set fields calledImportOciTelemetryResourcesTaskDetails.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImportOciTelemetryResourcesTaskDetails.Builder
static class
ImportOciTelemetryResourcesTaskDetails.Source
Source from where the metrics pushed to telemetry.-
Nested classes/interfaces inherited from class com.oracle.bmc.stackmonitoring.model.MonitoredResourceTaskDetails
MonitoredResourceTaskDetails.Type
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
ImportOciTelemetryResourcesTaskDetails
@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)
Deprecated.
-
-
Method Detail
-
builder
public static ImportOciTelemetryResourcesTaskDetails.Builder builder()
Create a new builder.
-
toBuilder
public ImportOciTelemetryResourcesTaskDetails.Builder toBuilder()
-
getSource
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. * OCI_TELEMETRY_TELEGRAF - The metrics are pushed to telemetry from Telegraf receiver. * OCI_TELEMETRY_COLLECTD - The metrics are pushed to telemetry from CollectD receiver.
- Returns:
- the value
-
getNamespace
public String getNamespace()
Name space to be used for OCI Native service resources discovery.- Returns:
- the value
-
getResourceGroup
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.
- Returns:
- the value
-
getShouldUseMetricsFlowForStatus
public Boolean getShouldUseMetricsFlowForStatus()
Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in OCI service.- Returns:
- the value
-
getServiceBaseUrl
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.
- Returns:
- the value
-
getConsolePathPrefix
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://
/security/bastion/bastions/ . If not provided, service home page link will not be shown in the stack monitoring home page. - Returns:
- the value
-
getLifecycleStatusMappingsForUpStatus
public List<String> getLifecycleStatusMappingsForUpStatus()
Lifecycle states of the external resource which reflects the status of the resource being up.- Returns:
- the value
-
getResourceNameMapping
public String getResourceNameMapping()
The resource name property in the metric dimensions.Resources imported will be using this property value for resource name.
- Returns:
- the value
-
getExternalIdMapping
public String getExternalIdMapping()
The external resource identifier property in the metric dimensions.Resources imported will be using this property value for external id.
- Returns:
- the value
-
getResourceTypeMapping
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.
- Returns:
- the value
-
getResourceNameFilter
public String getResourceNameFilter()
The resource name filter.Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- Returns:
- the value
-
getResourceTypeFilter
public String getResourceTypeFilter()
The resource type filter.Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- Returns:
- the value
-
getAvailabilityProxyMetrics
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 ‘availabilityProxyMetricCollectionInterval’. If no metrics are specified, availability will not be calculated for the resource.
- Returns:
- the value
-
getAvailabilityProxyMetricCollectionInterval
public Integer getAvailabilityProxyMetricCollectionInterval()
Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property ‘availabilityProxyMetrics’.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classMonitoredResourceTaskDetails
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classMonitoredResourceTaskDetails
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classMonitoredResourceTaskDetails
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMonitoredResourceTaskDetails
-
-