oci.StackMonitoring.MonitoredResourceTask
Explore with Pulumi AI
This resource provides the Monitored Resource Task resource in Oracle Cloud Infrastructure Stack Monitoring service.
Create a new stack monitoring resource task.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMonitoredResourceTask = new oci.stackmonitoring.MonitoredResourceTask("test_monitored_resource_task", {
compartmentId: compartmentId,
taskDetails: {
type: monitoredResourceTaskTaskDetailsType,
agentId: testAgent.id,
availabilityProxyMetricCollectionInterval: monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval,
availabilityProxyMetrics: monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics,
consolePathPrefix: monitoredResourceTaskTaskDetailsConsolePathPrefix,
externalIdMapping: monitoredResourceTaskTaskDetailsExternalIdMapping,
handlerType: monitoredResourceTaskTaskDetailsHandlerType,
isEnable: monitoredResourceTaskTaskDetailsIsEnable,
lifecycleStatusMappingsForUpStatuses: monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus,
namespace: monitoredResourceTaskTaskDetailsNamespace,
receiverProperties: {
listenerPort: monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort,
},
resourceGroup: monitoredResourceTaskTaskDetailsResourceGroup,
resourceNameFilter: monitoredResourceTaskTaskDetailsResourceNameFilter,
resourceNameMapping: monitoredResourceTaskTaskDetailsResourceNameMapping,
resourceTypeFilter: monitoredResourceTaskTaskDetailsResourceTypeFilter,
resourceTypeMapping: monitoredResourceTaskTaskDetailsResourceTypeMapping,
resourceTypesConfigurations: [{
availabilityMetricsConfig: {
collectionIntervalInSeconds: monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds,
metrics: monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics,
},
handlerConfig: {
collectdResourceNameConfig: {
excludeProperties: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties,
includeProperties: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties,
suffix: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix,
},
collectorTypes: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes,
handlerProperties: [{
name: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName,
value: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue,
}],
metricMappings: [{
collectorMetricName: testMetric.name,
isSkipUpload: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload,
metricUploadIntervalInSeconds: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds,
telemetryMetricName: testMetric.name,
}],
metricNameConfig: {
excludePatternOnPrefix: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix,
isPrefixWithCollectorType: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType,
},
metricUploadIntervalInSeconds: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds,
telegrafResourceNameConfig: {
excludeTags: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags,
includeTags: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags,
isUseTagsOnly: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly,
},
telemetryResourceGroup: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup,
},
resourceType: monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType,
}],
serviceBaseUrl: monitoredResourceTaskTaskDetailsServiceBaseUrl,
shouldUseMetricsFlowForStatus: monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus,
source: monitoredResourceTaskTaskDetailsSource,
},
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
name: monitoredResourceTaskName,
});
import pulumi
import pulumi_oci as oci
test_monitored_resource_task = oci.stack_monitoring.MonitoredResourceTask("test_monitored_resource_task",
compartment_id=compartment_id,
task_details={
"type": monitored_resource_task_task_details_type,
"agent_id": test_agent["id"],
"availability_proxy_metric_collection_interval": monitored_resource_task_task_details_availability_proxy_metric_collection_interval,
"availability_proxy_metrics": monitored_resource_task_task_details_availability_proxy_metrics,
"console_path_prefix": monitored_resource_task_task_details_console_path_prefix,
"external_id_mapping": monitored_resource_task_task_details_external_id_mapping,
"handler_type": monitored_resource_task_task_details_handler_type,
"is_enable": monitored_resource_task_task_details_is_enable,
"lifecycle_status_mappings_for_up_statuses": monitored_resource_task_task_details_lifecycle_status_mappings_for_up_status,
"namespace": monitored_resource_task_task_details_namespace,
"receiver_properties": {
"listener_port": monitored_resource_task_task_details_receiver_properties_listener_port,
},
"resource_group": monitored_resource_task_task_details_resource_group,
"resource_name_filter": monitored_resource_task_task_details_resource_name_filter,
"resource_name_mapping": monitored_resource_task_task_details_resource_name_mapping,
"resource_type_filter": monitored_resource_task_task_details_resource_type_filter,
"resource_type_mapping": monitored_resource_task_task_details_resource_type_mapping,
"resource_types_configurations": [{
"availability_metrics_config": {
"collection_interval_in_seconds": monitored_resource_task_task_details_resource_types_configuration_availability_metrics_config_collection_interval_in_seconds,
"metrics": monitored_resource_task_task_details_resource_types_configuration_availability_metrics_config_metrics,
},
"handler_config": {
"collectd_resource_name_config": {
"exclude_properties": monitored_resource_task_task_details_resource_types_configuration_handler_config_collectd_resource_name_config_exclude_properties,
"include_properties": monitored_resource_task_task_details_resource_types_configuration_handler_config_collectd_resource_name_config_include_properties,
"suffix": monitored_resource_task_task_details_resource_types_configuration_handler_config_collectd_resource_name_config_suffix,
},
"collector_types": monitored_resource_task_task_details_resource_types_configuration_handler_config_collector_types,
"handler_properties": [{
"name": monitored_resource_task_task_details_resource_types_configuration_handler_config_handler_properties_name,
"value": monitored_resource_task_task_details_resource_types_configuration_handler_config_handler_properties_value,
}],
"metric_mappings": [{
"collector_metric_name": test_metric["name"],
"is_skip_upload": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_mappings_is_skip_upload,
"metric_upload_interval_in_seconds": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_mappings_metric_upload_interval_in_seconds,
"telemetry_metric_name": test_metric["name"],
}],
"metric_name_config": {
"exclude_pattern_on_prefix": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_name_config_exclude_pattern_on_prefix,
"is_prefix_with_collector_type": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_name_config_is_prefix_with_collector_type,
},
"metric_upload_interval_in_seconds": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_upload_interval_in_seconds,
"telegraf_resource_name_config": {
"exclude_tags": monitored_resource_task_task_details_resource_types_configuration_handler_config_telegraf_resource_name_config_exclude_tags,
"include_tags": monitored_resource_task_task_details_resource_types_configuration_handler_config_telegraf_resource_name_config_include_tags,
"is_use_tags_only": monitored_resource_task_task_details_resource_types_configuration_handler_config_telegraf_resource_name_config_is_use_tags_only,
},
"telemetry_resource_group": monitored_resource_task_task_details_resource_types_configuration_handler_config_telemetry_resource_group,
},
"resource_type": monitored_resource_task_task_details_resource_types_configuration_resource_type,
}],
"service_base_url": monitored_resource_task_task_details_service_base_url,
"should_use_metrics_flow_for_status": monitored_resource_task_task_details_should_use_metrics_flow_for_status,
"source": monitored_resource_task_task_details_source,
},
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
},
name=monitored_resource_task_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/stackmonitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := stackmonitoring.NewMonitoredResourceTask(ctx, "test_monitored_resource_task", &stackmonitoring.MonitoredResourceTaskArgs{
CompartmentId: pulumi.Any(compartmentId),
TaskDetails: &stackmonitoring.MonitoredResourceTaskTaskDetailsArgs{
Type: pulumi.Any(monitoredResourceTaskTaskDetailsType),
AgentId: pulumi.Any(testAgent.Id),
AvailabilityProxyMetricCollectionInterval: pulumi.Any(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval),
AvailabilityProxyMetrics: pulumi.Any(monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics),
ConsolePathPrefix: pulumi.Any(monitoredResourceTaskTaskDetailsConsolePathPrefix),
ExternalIdMapping: pulumi.Any(monitoredResourceTaskTaskDetailsExternalIdMapping),
HandlerType: pulumi.Any(monitoredResourceTaskTaskDetailsHandlerType),
IsEnable: pulumi.Any(monitoredResourceTaskTaskDetailsIsEnable),
LifecycleStatusMappingsForUpStatuses: pulumi.Any(monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus),
Namespace: pulumi.Any(monitoredResourceTaskTaskDetailsNamespace),
ReceiverProperties: &stackmonitoring.MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs{
ListenerPort: pulumi.Any(monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort),
},
ResourceGroup: pulumi.Any(monitoredResourceTaskTaskDetailsResourceGroup),
ResourceNameFilter: pulumi.Any(monitoredResourceTaskTaskDetailsResourceNameFilter),
ResourceNameMapping: pulumi.Any(monitoredResourceTaskTaskDetailsResourceNameMapping),
ResourceTypeFilter: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypeFilter),
ResourceTypeMapping: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypeMapping),
ResourceTypesConfigurations: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArray{
&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs{
AvailabilityMetricsConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs{
CollectionIntervalInSeconds: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds),
Metrics: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics),
},
HandlerConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs{
CollectdResourceNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs{
ExcludeProperties: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties),
IncludeProperties: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties),
Suffix: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix),
},
CollectorTypes: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes),
HandlerProperties: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArray{
&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs{
Name: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName),
Value: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue),
},
},
MetricMappings: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArray{
&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs{
CollectorMetricName: pulumi.Any(testMetric.Name),
IsSkipUpload: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload),
MetricUploadIntervalInSeconds: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds),
TelemetryMetricName: pulumi.Any(testMetric.Name),
},
},
MetricNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs{
ExcludePatternOnPrefix: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix),
IsPrefixWithCollectorType: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType),
},
MetricUploadIntervalInSeconds: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds),
TelegrafResourceNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs{
ExcludeTags: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags),
IncludeTags: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags),
IsUseTagsOnly: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly),
},
TelemetryResourceGroup: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup),
},
ResourceType: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType),
},
},
ServiceBaseUrl: pulumi.Any(monitoredResourceTaskTaskDetailsServiceBaseUrl),
ShouldUseMetricsFlowForStatus: pulumi.Any(monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus),
Source: pulumi.Any(monitoredResourceTaskTaskDetailsSource),
},
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
Name: pulumi.Any(monitoredResourceTaskName),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testMonitoredResourceTask = new Oci.StackMonitoring.MonitoredResourceTask("test_monitored_resource_task", new()
{
CompartmentId = compartmentId,
TaskDetails = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsArgs
{
Type = monitoredResourceTaskTaskDetailsType,
AgentId = testAgent.Id,
AvailabilityProxyMetricCollectionInterval = monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval,
AvailabilityProxyMetrics = monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics,
ConsolePathPrefix = monitoredResourceTaskTaskDetailsConsolePathPrefix,
ExternalIdMapping = monitoredResourceTaskTaskDetailsExternalIdMapping,
HandlerType = monitoredResourceTaskTaskDetailsHandlerType,
IsEnable = monitoredResourceTaskTaskDetailsIsEnable,
LifecycleStatusMappingsForUpStatuses = monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus,
Namespace = monitoredResourceTaskTaskDetailsNamespace,
ReceiverProperties = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs
{
ListenerPort = monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort,
},
ResourceGroup = monitoredResourceTaskTaskDetailsResourceGroup,
ResourceNameFilter = monitoredResourceTaskTaskDetailsResourceNameFilter,
ResourceNameMapping = monitoredResourceTaskTaskDetailsResourceNameMapping,
ResourceTypeFilter = monitoredResourceTaskTaskDetailsResourceTypeFilter,
ResourceTypeMapping = monitoredResourceTaskTaskDetailsResourceTypeMapping,
ResourceTypesConfigurations = new[]
{
new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs
{
AvailabilityMetricsConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs
{
CollectionIntervalInSeconds = monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds,
Metrics = monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics,
},
HandlerConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs
{
CollectdResourceNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs
{
ExcludeProperties = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties,
IncludeProperties = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties,
Suffix = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix,
},
CollectorTypes = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes,
HandlerProperties = new[]
{
new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs
{
Name = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName,
Value = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue,
},
},
MetricMappings = new[]
{
new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs
{
CollectorMetricName = testMetric.Name,
IsSkipUpload = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload,
MetricUploadIntervalInSeconds = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds,
TelemetryMetricName = testMetric.Name,
},
},
MetricNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs
{
ExcludePatternOnPrefix = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix,
IsPrefixWithCollectorType = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType,
},
MetricUploadIntervalInSeconds = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds,
TelegrafResourceNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs
{
ExcludeTags = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags,
IncludeTags = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags,
IsUseTagsOnly = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly,
},
TelemetryResourceGroup = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup,
},
ResourceType = monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType,
},
},
ServiceBaseUrl = monitoredResourceTaskTaskDetailsServiceBaseUrl,
ShouldUseMetricsFlowForStatus = monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus,
Source = monitoredResourceTaskTaskDetailsSource,
},
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
Name = monitoredResourceTaskName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MonitoredResourceTask;
import com.pulumi.oci.StackMonitoring.MonitoredResourceTaskArgs;
import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceTaskTaskDetailsArgs;
import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testMonitoredResourceTask = new MonitoredResourceTask("testMonitoredResourceTask", MonitoredResourceTaskArgs.builder()
.compartmentId(compartmentId)
.taskDetails(MonitoredResourceTaskTaskDetailsArgs.builder()
.type(monitoredResourceTaskTaskDetailsType)
.agentId(testAgent.id())
.availabilityProxyMetricCollectionInterval(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval)
.availabilityProxyMetrics(monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics)
.consolePathPrefix(monitoredResourceTaskTaskDetailsConsolePathPrefix)
.externalIdMapping(monitoredResourceTaskTaskDetailsExternalIdMapping)
.handlerType(monitoredResourceTaskTaskDetailsHandlerType)
.isEnable(monitoredResourceTaskTaskDetailsIsEnable)
.lifecycleStatusMappingsForUpStatuses(monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus)
.namespace(monitoredResourceTaskTaskDetailsNamespace)
.receiverProperties(MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs.builder()
.listenerPort(monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort)
.build())
.resourceGroup(monitoredResourceTaskTaskDetailsResourceGroup)
.resourceNameFilter(monitoredResourceTaskTaskDetailsResourceNameFilter)
.resourceNameMapping(monitoredResourceTaskTaskDetailsResourceNameMapping)
.resourceTypeFilter(monitoredResourceTaskTaskDetailsResourceTypeFilter)
.resourceTypeMapping(monitoredResourceTaskTaskDetailsResourceTypeMapping)
.resourceTypesConfigurations(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs.builder()
.availabilityMetricsConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs.builder()
.collectionIntervalInSeconds(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds)
.metrics(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics)
.build())
.handlerConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs.builder()
.collectdResourceNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs.builder()
.excludeProperties(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties)
.includeProperties(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties)
.suffix(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix)
.build())
.collectorTypes(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes)
.handlerProperties(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs.builder()
.name(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName)
.value(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue)
.build())
.metricMappings(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs.builder()
.collectorMetricName(testMetric.name())
.isSkipUpload(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload)
.metricUploadIntervalInSeconds(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds)
.telemetryMetricName(testMetric.name())
.build())
.metricNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs.builder()
.excludePatternOnPrefix(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix)
.isPrefixWithCollectorType(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType)
.build())
.metricUploadIntervalInSeconds(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds)
.telegrafResourceNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs.builder()
.excludeTags(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags)
.includeTags(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags)
.isUseTagsOnly(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly)
.build())
.telemetryResourceGroup(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup)
.build())
.resourceType(monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType)
.build())
.serviceBaseUrl(monitoredResourceTaskTaskDetailsServiceBaseUrl)
.shouldUseMetricsFlowForStatus(monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus)
.source(monitoredResourceTaskTaskDetailsSource)
.build())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.name(monitoredResourceTaskName)
.build());
}
}
resources:
testMonitoredResourceTask:
type: oci:StackMonitoring:MonitoredResourceTask
name: test_monitored_resource_task
properties:
compartmentId: ${compartmentId}
taskDetails:
type: ${monitoredResourceTaskTaskDetailsType}
agentId: ${testAgent.id}
availabilityProxyMetricCollectionInterval: ${monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval}
availabilityProxyMetrics: ${monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics}
consolePathPrefix: ${monitoredResourceTaskTaskDetailsConsolePathPrefix}
externalIdMapping: ${monitoredResourceTaskTaskDetailsExternalIdMapping}
handlerType: ${monitoredResourceTaskTaskDetailsHandlerType}
isEnable: ${monitoredResourceTaskTaskDetailsIsEnable}
lifecycleStatusMappingsForUpStatuses: ${monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus}
namespace: ${monitoredResourceTaskTaskDetailsNamespace}
receiverProperties:
listenerPort: ${monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort}
resourceGroup: ${monitoredResourceTaskTaskDetailsResourceGroup}
resourceNameFilter: ${monitoredResourceTaskTaskDetailsResourceNameFilter}
resourceNameMapping: ${monitoredResourceTaskTaskDetailsResourceNameMapping}
resourceTypeFilter: ${monitoredResourceTaskTaskDetailsResourceTypeFilter}
resourceTypeMapping: ${monitoredResourceTaskTaskDetailsResourceTypeMapping}
resourceTypesConfigurations:
- availabilityMetricsConfig:
collectionIntervalInSeconds: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds}
metrics: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics}
handlerConfig:
collectdResourceNameConfig:
excludeProperties: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties}
includeProperties: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties}
suffix: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix}
collectorTypes: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes}
handlerProperties:
- name: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName}
value: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue}
metricMappings:
- collectorMetricName: ${testMetric.name}
isSkipUpload: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload}
metricUploadIntervalInSeconds: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds}
telemetryMetricName: ${testMetric.name}
metricNameConfig:
excludePatternOnPrefix: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix}
isPrefixWithCollectorType: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType}
metricUploadIntervalInSeconds: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds}
telegrafResourceNameConfig:
excludeTags: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags}
includeTags: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags}
isUseTagsOnly: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly}
telemetryResourceGroup: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup}
resourceType: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType}
serviceBaseUrl: ${monitoredResourceTaskTaskDetailsServiceBaseUrl}
shouldUseMetricsFlowForStatus: ${monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus}
source: ${monitoredResourceTaskTaskDetailsSource}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
name: ${monitoredResourceTaskName}
Create MonitoredResourceTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoredResourceTask(name: string, args: MonitoredResourceTaskArgs, opts?: CustomResourceOptions);
@overload
def MonitoredResourceTask(resource_name: str,
args: MonitoredResourceTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitoredResourceTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
task_details: Optional[_stackmonitoring.MonitoredResourceTaskTaskDetailsArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = None)
func NewMonitoredResourceTask(ctx *Context, name string, args MonitoredResourceTaskArgs, opts ...ResourceOption) (*MonitoredResourceTask, error)
public MonitoredResourceTask(string name, MonitoredResourceTaskArgs args, CustomResourceOptions? opts = null)
public MonitoredResourceTask(String name, MonitoredResourceTaskArgs args)
public MonitoredResourceTask(String name, MonitoredResourceTaskArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MonitoredResourceTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitoredResourceTaskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitoredResourceTaskResource = new Oci.StackMonitoring.MonitoredResourceTask("monitoredResourceTaskResource", new()
{
CompartmentId = "string",
TaskDetails = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsArgs
{
Type = "string",
ResourceGroup = "string",
ResourceNameFilter = "string",
ConsolePathPrefix = "string",
AgentId = "string",
HandlerType = "string",
IsEnable = false,
LifecycleStatusMappingsForUpStatuses = new[]
{
"string",
},
Namespace = "string",
AvailabilityProxyMetrics = new[]
{
"string",
},
ReceiverProperties = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs
{
ListenerPort = 0,
},
ExternalIdMapping = "string",
ResourceNameMapping = "string",
ResourceTypeFilter = "string",
ResourceTypeMapping = "string",
ResourceTypesConfigurations = new[]
{
new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs
{
AvailabilityMetricsConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs
{
CollectionIntervalInSeconds = 0,
Metrics = new[]
{
"string",
},
},
HandlerConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs
{
CollectdResourceNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs
{
ExcludeProperties = new[]
{
"string",
},
IncludeProperties = new[]
{
"string",
},
Suffix = "string",
},
CollectorTypes = new[]
{
"string",
},
HandlerProperties = new[]
{
new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs
{
Name = "string",
Value = "string",
},
},
MetricMappings = new[]
{
new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs
{
CollectorMetricName = "string",
IsSkipUpload = false,
MetricUploadIntervalInSeconds = 0,
TelemetryMetricName = "string",
},
},
MetricNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs
{
ExcludePatternOnPrefix = "string",
IsPrefixWithCollectorType = false,
},
MetricUploadIntervalInSeconds = 0,
TelegrafResourceNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs
{
ExcludeTags = new[]
{
"string",
},
IncludeTags = new[]
{
"string",
},
IsUseTagsOnly = false,
},
TelemetryResourceGroup = "string",
},
ResourceType = "string",
},
},
ServiceBaseUrl = "string",
ShouldUseMetricsFlowForStatus = false,
Source = "string",
AvailabilityProxyMetricCollectionInterval = 0,
},
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
Name = "string",
});
example, err := stackmonitoring.NewMonitoredResourceTask(ctx, "monitoredResourceTaskResource", &stackmonitoring.MonitoredResourceTaskArgs{
CompartmentId: pulumi.String("string"),
TaskDetails: &stackmonitoring.MonitoredResourceTaskTaskDetailsArgs{
Type: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
ResourceNameFilter: pulumi.String("string"),
ConsolePathPrefix: pulumi.String("string"),
AgentId: pulumi.String("string"),
HandlerType: pulumi.String("string"),
IsEnable: pulumi.Bool(false),
LifecycleStatusMappingsForUpStatuses: pulumi.StringArray{
pulumi.String("string"),
},
Namespace: pulumi.String("string"),
AvailabilityProxyMetrics: pulumi.StringArray{
pulumi.String("string"),
},
ReceiverProperties: &stackmonitoring.MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs{
ListenerPort: pulumi.Int(0),
},
ExternalIdMapping: pulumi.String("string"),
ResourceNameMapping: pulumi.String("string"),
ResourceTypeFilter: pulumi.String("string"),
ResourceTypeMapping: pulumi.String("string"),
ResourceTypesConfigurations: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArray{
&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs{
AvailabilityMetricsConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs{
CollectionIntervalInSeconds: pulumi.Int(0),
Metrics: pulumi.StringArray{
pulumi.String("string"),
},
},
HandlerConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs{
CollectdResourceNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs{
ExcludeProperties: pulumi.StringArray{
pulumi.String("string"),
},
IncludeProperties: pulumi.StringArray{
pulumi.String("string"),
},
Suffix: pulumi.String("string"),
},
CollectorTypes: pulumi.StringArray{
pulumi.String("string"),
},
HandlerProperties: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArray{
&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MetricMappings: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArray{
&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs{
CollectorMetricName: pulumi.String("string"),
IsSkipUpload: pulumi.Bool(false),
MetricUploadIntervalInSeconds: pulumi.Int(0),
TelemetryMetricName: pulumi.String("string"),
},
},
MetricNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs{
ExcludePatternOnPrefix: pulumi.String("string"),
IsPrefixWithCollectorType: pulumi.Bool(false),
},
MetricUploadIntervalInSeconds: pulumi.Int(0),
TelegrafResourceNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs{
ExcludeTags: pulumi.StringArray{
pulumi.String("string"),
},
IncludeTags: pulumi.StringArray{
pulumi.String("string"),
},
IsUseTagsOnly: pulumi.Bool(false),
},
TelemetryResourceGroup: pulumi.String("string"),
},
ResourceType: pulumi.String("string"),
},
},
ServiceBaseUrl: pulumi.String("string"),
ShouldUseMetricsFlowForStatus: pulumi.Bool(false),
Source: pulumi.String("string"),
AvailabilityProxyMetricCollectionInterval: pulumi.Int(0),
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var monitoredResourceTaskResource = new MonitoredResourceTask("monitoredResourceTaskResource", MonitoredResourceTaskArgs.builder()
.compartmentId("string")
.taskDetails(MonitoredResourceTaskTaskDetailsArgs.builder()
.type("string")
.resourceGroup("string")
.resourceNameFilter("string")
.consolePathPrefix("string")
.agentId("string")
.handlerType("string")
.isEnable(false)
.lifecycleStatusMappingsForUpStatuses("string")
.namespace("string")
.availabilityProxyMetrics("string")
.receiverProperties(MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs.builder()
.listenerPort(0)
.build())
.externalIdMapping("string")
.resourceNameMapping("string")
.resourceTypeFilter("string")
.resourceTypeMapping("string")
.resourceTypesConfigurations(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs.builder()
.availabilityMetricsConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs.builder()
.collectionIntervalInSeconds(0)
.metrics("string")
.build())
.handlerConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs.builder()
.collectdResourceNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs.builder()
.excludeProperties("string")
.includeProperties("string")
.suffix("string")
.build())
.collectorTypes("string")
.handlerProperties(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs.builder()
.name("string")
.value("string")
.build())
.metricMappings(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs.builder()
.collectorMetricName("string")
.isSkipUpload(false)
.metricUploadIntervalInSeconds(0)
.telemetryMetricName("string")
.build())
.metricNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs.builder()
.excludePatternOnPrefix("string")
.isPrefixWithCollectorType(false)
.build())
.metricUploadIntervalInSeconds(0)
.telegrafResourceNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs.builder()
.excludeTags("string")
.includeTags("string")
.isUseTagsOnly(false)
.build())
.telemetryResourceGroup("string")
.build())
.resourceType("string")
.build())
.serviceBaseUrl("string")
.shouldUseMetricsFlowForStatus(false)
.source("string")
.availabilityProxyMetricCollectionInterval(0)
.build())
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.name("string")
.build());
monitored_resource_task_resource = oci.stack_monitoring.MonitoredResourceTask("monitoredResourceTaskResource",
compartment_id="string",
task_details={
"type": "string",
"resource_group": "string",
"resource_name_filter": "string",
"console_path_prefix": "string",
"agent_id": "string",
"handler_type": "string",
"is_enable": False,
"lifecycle_status_mappings_for_up_statuses": ["string"],
"namespace": "string",
"availability_proxy_metrics": ["string"],
"receiver_properties": {
"listener_port": 0,
},
"external_id_mapping": "string",
"resource_name_mapping": "string",
"resource_type_filter": "string",
"resource_type_mapping": "string",
"resource_types_configurations": [{
"availability_metrics_config": {
"collection_interval_in_seconds": 0,
"metrics": ["string"],
},
"handler_config": {
"collectd_resource_name_config": {
"exclude_properties": ["string"],
"include_properties": ["string"],
"suffix": "string",
},
"collector_types": ["string"],
"handler_properties": [{
"name": "string",
"value": "string",
}],
"metric_mappings": [{
"collector_metric_name": "string",
"is_skip_upload": False,
"metric_upload_interval_in_seconds": 0,
"telemetry_metric_name": "string",
}],
"metric_name_config": {
"exclude_pattern_on_prefix": "string",
"is_prefix_with_collector_type": False,
},
"metric_upload_interval_in_seconds": 0,
"telegraf_resource_name_config": {
"exclude_tags": ["string"],
"include_tags": ["string"],
"is_use_tags_only": False,
},
"telemetry_resource_group": "string",
},
"resource_type": "string",
}],
"service_base_url": "string",
"should_use_metrics_flow_for_status": False,
"source": "string",
"availability_proxy_metric_collection_interval": 0,
},
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
name="string")
const monitoredResourceTaskResource = new oci.stackmonitoring.MonitoredResourceTask("monitoredResourceTaskResource", {
compartmentId: "string",
taskDetails: {
type: "string",
resourceGroup: "string",
resourceNameFilter: "string",
consolePathPrefix: "string",
agentId: "string",
handlerType: "string",
isEnable: false,
lifecycleStatusMappingsForUpStatuses: ["string"],
namespace: "string",
availabilityProxyMetrics: ["string"],
receiverProperties: {
listenerPort: 0,
},
externalIdMapping: "string",
resourceNameMapping: "string",
resourceTypeFilter: "string",
resourceTypeMapping: "string",
resourceTypesConfigurations: [{
availabilityMetricsConfig: {
collectionIntervalInSeconds: 0,
metrics: ["string"],
},
handlerConfig: {
collectdResourceNameConfig: {
excludeProperties: ["string"],
includeProperties: ["string"],
suffix: "string",
},
collectorTypes: ["string"],
handlerProperties: [{
name: "string",
value: "string",
}],
metricMappings: [{
collectorMetricName: "string",
isSkipUpload: false,
metricUploadIntervalInSeconds: 0,
telemetryMetricName: "string",
}],
metricNameConfig: {
excludePatternOnPrefix: "string",
isPrefixWithCollectorType: false,
},
metricUploadIntervalInSeconds: 0,
telegrafResourceNameConfig: {
excludeTags: ["string"],
includeTags: ["string"],
isUseTagsOnly: false,
},
telemetryResourceGroup: "string",
},
resourceType: "string",
}],
serviceBaseUrl: "string",
shouldUseMetricsFlowForStatus: false,
source: "string",
availabilityProxyMetricCollectionInterval: 0,
},
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
name: "string",
});
type: oci:StackMonitoring:MonitoredResourceTask
properties:
compartmentId: string
definedTags:
string: string
freeformTags:
string: string
name: string
taskDetails:
agentId: string
availabilityProxyMetricCollectionInterval: 0
availabilityProxyMetrics:
- string
consolePathPrefix: string
externalIdMapping: string
handlerType: string
isEnable: false
lifecycleStatusMappingsForUpStatuses:
- string
namespace: string
receiverProperties:
listenerPort: 0
resourceGroup: string
resourceNameFilter: string
resourceNameMapping: string
resourceTypeFilter: string
resourceTypeMapping: string
resourceTypesConfigurations:
- availabilityMetricsConfig:
collectionIntervalInSeconds: 0
metrics:
- string
handlerConfig:
collectdResourceNameConfig:
excludeProperties:
- string
includeProperties:
- string
suffix: string
collectorTypes:
- string
handlerProperties:
- name: string
value: string
metricMappings:
- collectorMetricName: string
isSkipUpload: false
metricUploadIntervalInSeconds: 0
telemetryMetricName: string
metricNameConfig:
excludePatternOnPrefix: string
isPrefixWithCollectorType: false
metricUploadIntervalInSeconds: 0
telegrafResourceNameConfig:
excludeTags:
- string
includeTags:
- string
isUseTagsOnly: false
telemetryResourceGroup: string
resourceType: string
serviceBaseUrl: string
shouldUseMetricsFlowForStatus: false
source: string
type: string
MonitoredResourceTask Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MonitoredResourceTask resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment identifier.
- Task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- Compartment
Id string - (Updatable) The OCID of the compartment identifier.
- Task
Details MonitoredResource Task Task Details Args - The request details for the performing the task.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment
Id String - (Updatable) The OCID of the compartment identifier.
- task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment
Id string - (Updatable) The OCID of the compartment identifier.
- task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment_
id str - (Updatable) The OCID of the compartment identifier.
- task_
details stackmonitoring.Monitored Resource Task Task Details Args - The request details for the performing the task.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name str
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment
Id String - (Updatable) The OCID of the compartment identifier.
- task
Details Property Map - The request details for the performing the task.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitoredResourceTask resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the stack monitoring resource task.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id string - The OCID of the tenancy.
- Time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- Type string
- Type of the task.
- Work
Request List<string>Ids - Identifiers OCID for work requests submitted for this task.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the stack monitoring resource task.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Tenant
Id string - The OCID of the tenancy.
- Time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- Type string
- Type of the task.
- Work
Request []stringIds - Identifiers OCID for work requests submitted for this task.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the stack monitoring resource task.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id String - The OCID of the tenancy.
- time
Created String - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type String
- Type of the task.
- work
Request List<String>Ids - Identifiers OCID for work requests submitted for this task.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the stack monitoring resource task.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id string - The OCID of the tenancy.
- time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type string
- Type of the task.
- work
Request string[]Ids - Identifiers OCID for work requests submitted for this task.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the stack monitoring resource task.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant_
id str - The OCID of the tenancy.
- time_
created str - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type str
- Type of the task.
- work_
request_ Sequence[str]ids - Identifiers OCID for work requests submitted for this task.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the stack monitoring resource task.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- tenant
Id String - The OCID of the tenancy.
- time
Created String - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type String
- Type of the task.
- work
Request List<String>Ids - Identifiers OCID for work requests submitted for this task.
Look up Existing MonitoredResourceTask Resource
Get an existing MonitoredResourceTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MonitoredResourceTaskState, opts?: CustomResourceOptions): MonitoredResourceTask
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
task_details: Optional[_stackmonitoring.MonitoredResourceTaskTaskDetailsArgs] = None,
tenant_id: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
type: Optional[str] = None,
work_request_ids: Optional[Sequence[str]] = None) -> MonitoredResourceTask
func GetMonitoredResourceTask(ctx *Context, name string, id IDInput, state *MonitoredResourceTaskState, opts ...ResourceOption) (*MonitoredResourceTask, error)
public static MonitoredResourceTask Get(string name, Input<string> id, MonitoredResourceTaskState? state, CustomResourceOptions? opts = null)
public static MonitoredResourceTask get(String name, Output<String> id, MonitoredResourceTaskState state, CustomResourceOptions options)
resources: _: type: oci:StackMonitoring:MonitoredResourceTask get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - (Updatable) The OCID of the compartment identifier.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- State string
- The current state of the stack monitoring resource task.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- Tenant
Id string - The OCID of the tenancy.
- Time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- Type string
- Type of the task.
- Work
Request List<string>Ids - Identifiers OCID for work requests submitted for this task.
- Compartment
Id string - (Updatable) The OCID of the compartment identifier.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- State string
- The current state of the stack monitoring resource task.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Task
Details MonitoredResource Task Task Details Args - The request details for the performing the task.
- Tenant
Id string - The OCID of the tenancy.
- Time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- Type string
- Type of the task.
- Work
Request []stringIds - Identifiers OCID for work requests submitted for this task.
- compartment
Id String - (Updatable) The OCID of the compartment identifier.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state String
- The current state of the stack monitoring resource task.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- tenant
Id String - The OCID of the tenancy.
- time
Created String - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type String
- Type of the task.
- work
Request List<String>Ids - Identifiers OCID for work requests submitted for this task.
- compartment
Id string - (Updatable) The OCID of the compartment identifier.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state string
- The current state of the stack monitoring resource task.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- task
Details MonitoredResource Task Task Details - The request details for the performing the task.
- tenant
Id string - The OCID of the tenancy.
- time
Created string - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type string
- Type of the task.
- work
Request string[]Ids - Identifiers OCID for work requests submitted for this task.
- compartment_
id str - (Updatable) The OCID of the compartment identifier.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name str
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state str
- The current state of the stack monitoring resource task.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- task_
details stackmonitoring.Monitored Resource Task Task Details Args - The request details for the performing the task.
- tenant_
id str - The OCID of the tenancy.
- time_
created str - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type str
- Type of the task.
- work_
request_ Sequence[str]ids - Identifiers OCID for work requests submitted for this task.
- compartment
Id String - (Updatable) The OCID of the compartment identifier.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state String
- The current state of the stack monitoring resource task.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- task
Details Property Map - The request details for the performing the task.
- tenant
Id String - The OCID of the tenancy.
- time
Created String - The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type String
- Type of the task.
- work
Request List<String>Ids - Identifiers OCID for work requests submitted for this task.
Supporting Types
MonitoredResourceTaskTaskDetails, MonitoredResourceTaskTaskDetailsArgs
- Type string
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Agent
Id string - Management Agent Identifier OCID.
- Availability
Proxy intMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- Availability
Proxy List<string>Metrics - 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.
- Console
Path stringPrefix - 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.
- External
Id stringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- Handler
Type string - Type of the handler.
- Is
Enable bool - True to enable the receiver and false to disable the receiver on the agent.
- Lifecycle
Status List<string>Mappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- Namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- Receiver
Properties MonitoredResource Task Task Details Receiver Properties - Properties for agent receiver.
- Resource
Group string - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- Resource
Name stringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- Resource
Name stringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- Resource
Type stringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- Resource
Type stringMapping - 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.
- Resource
Types List<MonitoredConfigurations Resource Task Task Details Resource Types Configuration> - A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- Service
Base stringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- Should
Use boolMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- Source string
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure 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.
- Type string
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Agent
Id string - Management Agent Identifier OCID.
- Availability
Proxy intMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- Availability
Proxy []stringMetrics - 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.
- Console
Path stringPrefix - 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.
- External
Id stringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- Handler
Type string - Type of the handler.
- Is
Enable bool - True to enable the receiver and false to disable the receiver on the agent.
- Lifecycle
Status []stringMappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- Namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- Receiver
Properties MonitoredResource Task Task Details Receiver Properties - Properties for agent receiver.
- Resource
Group string - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- Resource
Name stringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- Resource
Name stringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- Resource
Type stringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- Resource
Type stringMapping - 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.
- Resource
Types []MonitoredConfigurations Resource Task Task Details Resource Types Configuration - A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- Service
Base stringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- Should
Use boolMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- Source string
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure 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.
- type String
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- agent
Id String - Management Agent Identifier OCID.
- availability
Proxy IntegerMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability
Proxy List<String>Metrics - 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.
- console
Path StringPrefix - 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.
- external
Id StringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- handler
Type String - Type of the handler.
- is
Enable Boolean - True to enable the receiver and false to disable the receiver on the agent.
- lifecycle
Status List<String>Mappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- namespace String
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- receiver
Properties MonitoredResource Task Task Details Receiver Properties - Properties for agent receiver.
- resource
Group String - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource
Name StringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource
Name StringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource
Type StringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource
Type StringMapping - 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.
- resource
Types List<MonitoredConfigurations Resource Task Task Details Resource Types Configuration> - A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- service
Base StringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should
Use BooleanMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- source String
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure 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.
- type string
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- agent
Id string - Management Agent Identifier OCID.
- availability
Proxy numberMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability
Proxy string[]Metrics - 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.
- console
Path stringPrefix - 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.
- external
Id stringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- handler
Type string - Type of the handler.
- is
Enable boolean - True to enable the receiver and false to disable the receiver on the agent.
- lifecycle
Status string[]Mappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- receiver
Properties MonitoredResource Task Task Details Receiver Properties - Properties for agent receiver.
- resource
Group string - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource
Name stringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource
Name stringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource
Type stringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource
Type stringMapping - 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.
- resource
Types MonitoredConfigurations Resource Task Task Details Resource Types Configuration[] - A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- service
Base stringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should
Use booleanMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- source string
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure 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.
- type str
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- agent_
id str - Management Agent Identifier OCID.
- availability_
proxy_ intmetric_ collection_ interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability_
proxy_ Sequence[str]metrics - 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.
- console_
path_ strprefix - 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.
- external_
id_ strmapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- handler_
type str - Type of the handler.
- is_
enable bool - True to enable the receiver and false to disable the receiver on the agent.
- lifecycle_
status_ Sequence[str]mappings_ for_ up_ statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- namespace str
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- receiver_
properties stackmonitoring.Monitored Resource Task Task Details Receiver Properties - Properties for agent receiver.
- resource_
group str - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource_
name_ strfilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource_
name_ strmapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource_
type_ strfilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource_
type_ strmapping - 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.
- resource_
types_ Sequence[stackmonitoring.configurations Monitored Resource Task Task Details Resource Types Configuration] - A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- service_
base_ strurl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should_
use_ boolmetrics_ flow_ for_ status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- source str
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure 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.
- type String
Task type.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- agent
Id String - Management Agent Identifier OCID.
- availability
Proxy NumberMetric Collection Interval - Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability
Proxy List<String>Metrics - 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.
- console
Path StringPrefix - 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.
- external
Id StringMapping - The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- handler
Type String - Type of the handler.
- is
Enable Boolean - True to enable the receiver and false to disable the receiver on the agent.
- lifecycle
Status List<String>Mappings For Up Statuses - Lifecycle states of the external resource which reflects the status of the resource being up.
- namespace String
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- receiver
Properties Property Map - Properties for agent receiver.
- resource
Group String - The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource
Name StringFilter - The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource
Name StringMapping - The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource
Type StringFilter - The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource
Type StringMapping - 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.
- resource
Types List<Property Map>Configurations - A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- service
Base StringUrl - The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should
Use BooleanMetrics Flow For Status - Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- source String
- Source from where the metrics pushed to telemetry. Possible values:
- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure 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.
MonitoredResourceTaskTaskDetailsReceiverProperties, MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs
- Listener
Port int - Receiver listener port.
- Listener
Port int - Receiver listener port.
- listener
Port Integer - Receiver listener port.
- listener
Port number - Receiver listener port.
- listener_
port int - Receiver listener port.
- listener
Port Number - Receiver listener port.
MonitoredResourceTaskTaskDetailsResourceTypesConfiguration, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs
- Availability
Metrics MonitoredConfig Resource Task Task Details Resource Types Configuration Availability Metrics Config - Availability metrics details.
- Handler
Config MonitoredResource Task Task Details Resource Types Configuration Handler Config - Specific resource mapping configurations for Agent Extension Handlers.
- Resource
Type string - Resource type.
- Availability
Metrics MonitoredConfig Resource Task Task Details Resource Types Configuration Availability Metrics Config - Availability metrics details.
- Handler
Config MonitoredResource Task Task Details Resource Types Configuration Handler Config - Specific resource mapping configurations for Agent Extension Handlers.
- Resource
Type string - Resource type.
- availability
Metrics MonitoredConfig Resource Task Task Details Resource Types Configuration Availability Metrics Config - Availability metrics details.
- handler
Config MonitoredResource Task Task Details Resource Types Configuration Handler Config - Specific resource mapping configurations for Agent Extension Handlers.
- resource
Type String - Resource type.
- availability
Metrics MonitoredConfig Resource Task Task Details Resource Types Configuration Availability Metrics Config - Availability metrics details.
- handler
Config MonitoredResource Task Task Details Resource Types Configuration Handler Config - Specific resource mapping configurations for Agent Extension Handlers.
- resource
Type string - Resource type.
- availability_
metrics_ stackmonitoring.config Monitored Resource Task Task Details Resource Types Configuration Availability Metrics Config - Availability metrics details.
- handler_
config stackmonitoring.Monitored Resource Task Task Details Resource Types Configuration Handler Config - Specific resource mapping configurations for Agent Extension Handlers.
- resource_
type str - Resource type.
- availability
Metrics Property MapConfig - Availability metrics details.
- handler
Config Property Map - Specific resource mapping configurations for Agent Extension Handlers.
- resource
Type String - Resource type.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs
- Collection
Interval intIn Seconds - Availability metric collection internal in seconds.
- Metrics List<string>
- List of metrics used for availability calculation for the resource.
- Collection
Interval intIn Seconds - Availability metric collection internal in seconds.
- Metrics []string
- List of metrics used for availability calculation for the resource.
- collection
Interval IntegerIn Seconds - Availability metric collection internal in seconds.
- metrics List<String>
- List of metrics used for availability calculation for the resource.
- collection
Interval numberIn Seconds - Availability metric collection internal in seconds.
- metrics string[]
- List of metrics used for availability calculation for the resource.
- collection_
interval_ intin_ seconds - Availability metric collection internal in seconds.
- metrics Sequence[str]
- List of metrics used for availability calculation for the resource.
- collection
Interval NumberIn Seconds - Availability metric collection internal in seconds.
- metrics List<String>
- List of metrics used for availability calculation for the resource.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs
- Collectd
Resource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config - Resource name generation overriding configurations for collectd resource types.
- Collector
Types List<string> - List of collector/plugin names.
- Handler
Properties List<MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property> - List of handler configuration properties
- Metric
Mappings List<MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping> - List of AgentExtensionHandlerMetricMappingDetails.
- Metric
Name MonitoredConfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config - Metric name generation overriding configurations.
- Metric
Upload intInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- Telegraf
Resource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config - Resource name generation overriding configurations for telegraf resource types.
- Telemetry
Resource stringGroup - Resource group string; if not specified, the resource group string will be generated by the handler.
- Collectd
Resource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config - Resource name generation overriding configurations for collectd resource types.
- Collector
Types []string - List of collector/plugin names.
- Handler
Properties []MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property - List of handler configuration properties
- Metric
Mappings []MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping - List of AgentExtensionHandlerMetricMappingDetails.
- Metric
Name MonitoredConfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config - Metric name generation overriding configurations.
- Metric
Upload intInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- Telegraf
Resource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config - Resource name generation overriding configurations for telegraf resource types.
- Telemetry
Resource stringGroup - Resource group string; if not specified, the resource group string will be generated by the handler.
- collectd
Resource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config - Resource name generation overriding configurations for collectd resource types.
- collector
Types List<String> - List of collector/plugin names.
- handler
Properties List<MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property> - List of handler configuration properties
- metric
Mappings List<MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping> - List of AgentExtensionHandlerMetricMappingDetails.
- metric
Name MonitoredConfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config - Metric name generation overriding configurations.
- metric
Upload IntegerInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telegraf
Resource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config - Resource name generation overriding configurations for telegraf resource types.
- telemetry
Resource StringGroup - Resource group string; if not specified, the resource group string will be generated by the handler.
- collectd
Resource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config - Resource name generation overriding configurations for collectd resource types.
- collector
Types string[] - List of collector/plugin names.
- handler
Properties MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property[] - List of handler configuration properties
- metric
Mappings MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping[] - List of AgentExtensionHandlerMetricMappingDetails.
- metric
Name MonitoredConfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config - Metric name generation overriding configurations.
- metric
Upload numberInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telegraf
Resource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config - Resource name generation overriding configurations for telegraf resource types.
- telemetry
Resource stringGroup - Resource group string; if not specified, the resource group string will be generated by the handler.
- collectd_
resource_ stackmonitoring.name_ config Monitored Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config - Resource name generation overriding configurations for collectd resource types.
- collector_
types Sequence[str] - List of collector/plugin names.
- handler_
properties Sequence[stackmonitoring.Monitored Resource Task Task Details Resource Types Configuration Handler Config Handler Property] - List of handler configuration properties
- metric_
mappings Sequence[stackmonitoring.Monitored Resource Task Task Details Resource Types Configuration Handler Config Metric Mapping] - List of AgentExtensionHandlerMetricMappingDetails.
- metric_
name_ stackmonitoring.config Monitored Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config - Metric name generation overriding configurations.
- metric_
upload_ intinterval_ in_ seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telegraf_
resource_ stackmonitoring.name_ config Monitored Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config - Resource name generation overriding configurations for telegraf resource types.
- telemetry_
resource_ strgroup - Resource group string; if not specified, the resource group string will be generated by the handler.
- collectd
Resource Property MapName Config - Resource name generation overriding configurations for collectd resource types.
- collector
Types List<String> - List of collector/plugin names.
- handler
Properties List<Property Map> - List of handler configuration properties
- metric
Mappings List<Property Map> - List of AgentExtensionHandlerMetricMappingDetails.
- metric
Name Property MapConfig - Metric name generation overriding configurations.
- metric
Upload NumberInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telegraf
Resource Property MapName Config - Resource name generation overriding configurations for telegraf resource types.
- telemetry
Resource StringGroup - Resource group string; if not specified, the resource group string will be generated by the handler.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs
- Exclude
Properties List<string> - List of property names to be excluded.
- Include
Properties List<string> - List of property names to be included.
- Suffix string
- String to be suffixed to the resource name.
- Exclude
Properties []string - List of property names to be excluded.
- Include
Properties []string - List of property names to be included.
- Suffix string
- String to be suffixed to the resource name.
- exclude
Properties List<String> - List of property names to be excluded.
- include
Properties List<String> - List of property names to be included.
- suffix String
- String to be suffixed to the resource name.
- exclude
Properties string[] - List of property names to be excluded.
- include
Properties string[] - List of property names to be included.
- suffix string
- String to be suffixed to the resource name.
- exclude_
properties Sequence[str] - List of property names to be excluded.
- include_
properties Sequence[str] - List of property names to be included.
- suffix str
- String to be suffixed to the resource name.
- exclude
Properties List<String> - List of property names to be excluded.
- include
Properties List<String> - List of property names to be included.
- suffix String
- String to be suffixed to the resource name.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerProperty, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMapping, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs
- Collector
Metric stringName - Metric name as defined by the collector.
- Is
Skip boolUpload - Is ignoring this metric.
- Metric
Upload intInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- Telemetry
Metric stringName - Metric name to be upload to telemetry.
- Collector
Metric stringName - Metric name as defined by the collector.
- Is
Skip boolUpload - Is ignoring this metric.
- Metric
Upload intInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- Telemetry
Metric stringName - Metric name to be upload to telemetry.
- collector
Metric StringName - Metric name as defined by the collector.
- is
Skip BooleanUpload - Is ignoring this metric.
- metric
Upload IntegerInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telemetry
Metric StringName - Metric name to be upload to telemetry.
- collector
Metric stringName - Metric name as defined by the collector.
- is
Skip booleanUpload - Is ignoring this metric.
- metric
Upload numberInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telemetry
Metric stringName - Metric name to be upload to telemetry.
- collector_
metric_ strname - Metric name as defined by the collector.
- is_
skip_ boolupload - Is ignoring this metric.
- metric_
upload_ intinterval_ in_ seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telemetry_
metric_ strname - Metric name to be upload to telemetry.
- collector
Metric StringName - Metric name as defined by the collector.
- is
Skip BooleanUpload - Is ignoring this metric.
- metric
Upload NumberInterval In Seconds - Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telemetry
Metric StringName - Metric name to be upload to telemetry.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs
- Exclude
Pattern stringOn Prefix - String pattern to be removed from the prefix of the metric name.
- Is
Prefix boolWith Collector Type - is prefixing the metric with collector type.
- Exclude
Pattern stringOn Prefix - String pattern to be removed from the prefix of the metric name.
- Is
Prefix boolWith Collector Type - is prefixing the metric with collector type.
- exclude
Pattern StringOn Prefix - String pattern to be removed from the prefix of the metric name.
- is
Prefix BooleanWith Collector Type - is prefixing the metric with collector type.
- exclude
Pattern stringOn Prefix - String pattern to be removed from the prefix of the metric name.
- is
Prefix booleanWith Collector Type - is prefixing the metric with collector type.
- exclude_
pattern_ stron_ prefix - String pattern to be removed from the prefix of the metric name.
- is_
prefix_ boolwith_ collector_ type - is prefixing the metric with collector type.
- exclude
Pattern StringOn Prefix - String pattern to be removed from the prefix of the metric name.
- is
Prefix BooleanWith Collector Type - is prefixing the metric with collector type.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs
- List<string>
- List of tag names to be excluded.
- List<string>
- List of tag names to be included.
- bool
- Flag to indicate if only tags will be used for resource name generation.
- []string
- List of tag names to be excluded.
- []string
- List of tag names to be included.
- bool
- Flag to indicate if only tags will be used for resource name generation.
- List<String>
- List of tag names to be excluded.
- List<String>
- List of tag names to be included.
- Boolean
- Flag to indicate if only tags will be used for resource name generation.
- string[]
- List of tag names to be excluded.
- string[]
- List of tag names to be included.
- boolean
- Flag to indicate if only tags will be used for resource name generation.
- Sequence[str]
- List of tag names to be excluded.
- Sequence[str]
- List of tag names to be included.
- bool
- Flag to indicate if only tags will be used for resource name generation.
- List<String>
- List of tag names to be excluded.
- List<String>
- List of tag names to be included.
- Boolean
- Flag to indicate if only tags will be used for resource name generation.
Import
MonitoredResourceTasks can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/monitoredResourceTask:MonitoredResourceTask test_monitored_resource_task "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.