1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. MonitoredResourceTask
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.StackMonitoring.MonitoredResourceTask

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

    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:

    CompartmentId string
    (Updatable) The OCID of the compartment identifier.
    TaskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags 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.
    CompartmentId string
    (Updatable) The OCID of the compartment identifier.
    TaskDetails MonitoredResourceTaskTaskDetailsArgs
    The request details for the performing the task.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags 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.
    compartmentId String
    (Updatable) The OCID of the compartment identifier.
    taskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags 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.
    compartmentId string
    (Updatable) The OCID of the compartment identifier.
    taskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[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.MonitoredResourceTaskTaskDetailsArgs
    The request details for the performing the task.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeform_tags 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.
    compartmentId String
    (Updatable) The OCID of the compartment identifier.
    taskDetails Property Map
    The request details for the performing the task.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags 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.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenantId string
    The OCID of the tenancy.
    TimeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    TimeUpdated 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.
    WorkRequestIds List<string>
    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.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenantId string
    The OCID of the tenancy.
    TimeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    TimeUpdated 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.
    WorkRequestIds []string
    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.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String
    The OCID of the tenancy.
    timeCreated String
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated 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.
    workRequestIds List<String>
    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.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId string
    The OCID of the tenancy.
    timeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated 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.
    workRequestIds string[]
    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.
    system_tags 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_ids Sequence[str]
    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.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String
    The OCID of the tenancy.
    timeCreated String
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated 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.
    workRequestIds List<String>
    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.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment identifier.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags 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.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TaskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    TenantId string
    The OCID of the tenancy.
    TimeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    TimeUpdated 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.
    WorkRequestIds List<string>
    Identifiers OCID for work requests submitted for this task.
    CompartmentId string
    (Updatable) The OCID of the compartment identifier.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags 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.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TaskDetails MonitoredResourceTaskTaskDetailsArgs
    The request details for the performing the task.
    TenantId string
    The OCID of the tenancy.
    TimeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    TimeUpdated 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.
    WorkRequestIds []string
    Identifiers OCID for work requests submitted for this task.
    compartmentId String
    (Updatable) The OCID of the compartment identifier.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags 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.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    tenantId String
    The OCID of the tenancy.
    timeCreated String
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated 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.
    workRequestIds List<String>
    Identifiers OCID for work requests submitted for this task.
    compartmentId string
    (Updatable) The OCID of the compartment identifier.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[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.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    tenantId string
    The OCID of the tenancy.
    timeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated 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.
    workRequestIds string[]
    Identifiers OCID for work requests submitted for this task.
    compartment_id str
    (Updatable) The OCID of the compartment identifier.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeform_tags 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.
    system_tags 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.MonitoredResourceTaskTaskDetailsArgs
    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_ids Sequence[str]
    Identifiers OCID for work requests submitted for this task.
    compartmentId String
    (Updatable) The OCID of the compartment identifier.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags 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.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskDetails Property Map
    The request details for the performing the task.
    tenantId String
    The OCID of the tenancy.
    timeCreated String
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated 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.
    workRequestIds List<String>
    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

    AgentId string
    Management Agent Identifier OCID.
    AvailabilityProxyMetricCollectionInterval int
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    AvailabilityProxyMetrics List<string>
    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.
    ConsolePathPrefix string
    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.
    ExternalIdMapping string
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    HandlerType string
    Type of the handler.
    IsEnable bool
    True to enable the receiver and false to disable the receiver on the agent.
    LifecycleStatusMappingsForUpStatuses List<string>
    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.
    ReceiverProperties MonitoredResourceTaskTaskDetailsReceiverProperties
    Properties for agent receiver.
    ResourceGroup string
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    ResourceNameFilter string
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    ResourceNameMapping string
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    ResourceTypeFilter string
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    ResourceTypeMapping string
    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.
    ResourceTypesConfigurations List<MonitoredResourceTaskTaskDetailsResourceTypesConfiguration>
    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.
    ServiceBaseUrl string
    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.
    ShouldUseMetricsFlowForStatus bool
    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

    AgentId string
    Management Agent Identifier OCID.
    AvailabilityProxyMetricCollectionInterval int
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    AvailabilityProxyMetrics []string
    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.
    ConsolePathPrefix string
    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.
    ExternalIdMapping string
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    HandlerType string
    Type of the handler.
    IsEnable bool
    True to enable the receiver and false to disable the receiver on the agent.
    LifecycleStatusMappingsForUpStatuses []string
    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.
    ReceiverProperties MonitoredResourceTaskTaskDetailsReceiverProperties
    Properties for agent receiver.
    ResourceGroup string
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    ResourceNameFilter string
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    ResourceNameMapping string
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    ResourceTypeFilter string
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    ResourceTypeMapping string
    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.
    ResourceTypesConfigurations []MonitoredResourceTaskTaskDetailsResourceTypesConfiguration
    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.
    ServiceBaseUrl string
    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.
    ShouldUseMetricsFlowForStatus bool
    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

    agentId String
    Management Agent Identifier OCID.
    availabilityProxyMetricCollectionInterval Integer
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    availabilityProxyMetrics List<String>
    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.
    consolePathPrefix String
    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.
    externalIdMapping String
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    handlerType String
    Type of the handler.
    isEnable Boolean
    True to enable the receiver and false to disable the receiver on the agent.
    lifecycleStatusMappingsForUpStatuses List<String>
    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.
    receiverProperties MonitoredResourceTaskTaskDetailsReceiverProperties
    Properties for agent receiver.
    resourceGroup String
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    resourceNameFilter String
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    resourceNameMapping String
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    resourceTypeFilter String
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    resourceTypeMapping String
    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.
    resourceTypesConfigurations List<MonitoredResourceTaskTaskDetailsResourceTypesConfiguration>
    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.
    serviceBaseUrl String
    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.
    shouldUseMetricsFlowForStatus Boolean
    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

    agentId string
    Management Agent Identifier OCID.
    availabilityProxyMetricCollectionInterval number
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    availabilityProxyMetrics string[]
    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.
    consolePathPrefix string
    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.
    externalIdMapping string
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    handlerType string
    Type of the handler.
    isEnable boolean
    True to enable the receiver and false to disable the receiver on the agent.
    lifecycleStatusMappingsForUpStatuses string[]
    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.
    receiverProperties MonitoredResourceTaskTaskDetailsReceiverProperties
    Properties for agent receiver.
    resourceGroup string
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    resourceNameFilter string
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    resourceNameMapping string
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    resourceTypeFilter string
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    resourceTypeMapping string
    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.
    resourceTypesConfigurations MonitoredResourceTaskTaskDetailsResourceTypesConfiguration[]
    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.
    serviceBaseUrl string
    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.
    shouldUseMetricsFlowForStatus boolean
    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_metric_collection_interval int
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    availability_proxy_metrics Sequence[str]
    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_prefix str
    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_mapping str
    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_mappings_for_up_statuses Sequence[str]
    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.MonitoredResourceTaskTaskDetailsReceiverProperties
    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_filter str
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    resource_name_mapping str
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    resource_type_filter str
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    resource_type_mapping str
    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_configurations Sequence[stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfiguration]
    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_url str
    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_metrics_flow_for_status bool
    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

    agentId String
    Management Agent Identifier OCID.
    availabilityProxyMetricCollectionInterval Number
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    availabilityProxyMetrics List<String>
    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.
    consolePathPrefix String
    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.
    externalIdMapping String
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    handlerType String
    Type of the handler.
    isEnable Boolean
    True to enable the receiver and false to disable the receiver on the agent.
    lifecycleStatusMappingsForUpStatuses List<String>
    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.
    receiverProperties Property Map
    Properties for agent receiver.
    resourceGroup String
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    resourceNameFilter String
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    resourceNameMapping String
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    resourceTypeFilter String
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    resourceTypeMapping String
    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.
    resourceTypesConfigurations List<Property Map>
    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.
    serviceBaseUrl String
    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.
    shouldUseMetricsFlowForStatus Boolean
    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

    ListenerPort int
    Receiver listener port.
    ListenerPort int
    Receiver listener port.
    listenerPort Integer
    Receiver listener port.
    listenerPort number
    Receiver listener port.
    listener_port int
    Receiver listener port.
    listenerPort Number
    Receiver listener port.

    MonitoredResourceTaskTaskDetailsResourceTypesConfiguration, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs

    availabilityMetricsConfig Property Map
    Availability metrics details.
    handlerConfig Property Map
    Specific resource mapping configurations for Agent Extension Handlers.
    resourceType String
    Resource type.

    MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs

    CollectionIntervalInSeconds int
    Availability metric collection internal in seconds.
    Metrics List<string>
    List of metrics used for availability calculation for the resource.
    CollectionIntervalInSeconds int
    Availability metric collection internal in seconds.
    Metrics []string
    List of metrics used for availability calculation for the resource.
    collectionIntervalInSeconds Integer
    Availability metric collection internal in seconds.
    metrics List<String>
    List of metrics used for availability calculation for the resource.
    collectionIntervalInSeconds number
    Availability metric collection internal in seconds.
    metrics string[]
    List of metrics used for availability calculation for the resource.
    collection_interval_in_seconds int
    Availability metric collection internal in seconds.
    metrics Sequence[str]
    List of metrics used for availability calculation for the resource.
    collectionIntervalInSeconds Number
    Availability metric collection internal in seconds.
    metrics List<String>
    List of metrics used for availability calculation for the resource.

    MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs

    CollectdResourceNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfig
    Resource name generation overriding configurations for collectd resource types.
    CollectorTypes List<string>
    List of collector/plugin names.
    HandlerProperties List<MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerProperty>
    List of handler configuration properties
    MetricMappings List<MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMapping>
    List of AgentExtensionHandlerMetricMappingDetails.
    MetricNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfig
    Metric name generation overriding configurations.
    MetricUploadIntervalInSeconds int
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    TelegrafResourceNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfig
    Resource name generation overriding configurations for telegraf resource types.
    TelemetryResourceGroup string
    Resource group string; if not specified, the resource group string will be generated by the handler.
    CollectdResourceNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfig
    Resource name generation overriding configurations for collectd resource types.
    CollectorTypes []string
    List of collector/plugin names.
    HandlerProperties []MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerProperty
    List of handler configuration properties
    MetricMappings []MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMapping
    List of AgentExtensionHandlerMetricMappingDetails.
    MetricNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfig
    Metric name generation overriding configurations.
    MetricUploadIntervalInSeconds int
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    TelegrafResourceNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfig
    Resource name generation overriding configurations for telegraf resource types.
    TelemetryResourceGroup string
    Resource group string; if not specified, the resource group string will be generated by the handler.
    collectdResourceNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfig
    Resource name generation overriding configurations for collectd resource types.
    collectorTypes List<String>
    List of collector/plugin names.
    handlerProperties List<MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerProperty>
    List of handler configuration properties
    metricMappings List<MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMapping>
    List of AgentExtensionHandlerMetricMappingDetails.
    metricNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfig
    Metric name generation overriding configurations.
    metricUploadIntervalInSeconds Integer
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    telegrafResourceNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfig
    Resource name generation overriding configurations for telegraf resource types.
    telemetryResourceGroup String
    Resource group string; if not specified, the resource group string will be generated by the handler.
    collectdResourceNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfig
    Resource name generation overriding configurations for collectd resource types.
    collectorTypes string[]
    List of collector/plugin names.
    handlerProperties MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerProperty[]
    List of handler configuration properties
    metricMappings MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMapping[]
    List of AgentExtensionHandlerMetricMappingDetails.
    metricNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfig
    Metric name generation overriding configurations.
    metricUploadIntervalInSeconds number
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    telegrafResourceNameConfig MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfig
    Resource name generation overriding configurations for telegraf resource types.
    telemetryResourceGroup string
    Resource group string; if not specified, the resource group string will be generated by the handler.
    collectd_resource_name_config stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfig
    Resource name generation overriding configurations for collectd resource types.
    collector_types Sequence[str]
    List of collector/plugin names.
    handler_properties Sequence[stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerProperty]
    List of handler configuration properties
    metric_mappings Sequence[stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMapping]
    List of AgentExtensionHandlerMetricMappingDetails.
    metric_name_config stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfig
    Metric name generation overriding configurations.
    metric_upload_interval_in_seconds int
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    telegraf_resource_name_config stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfig
    Resource name generation overriding configurations for telegraf resource types.
    telemetry_resource_group str
    Resource group string; if not specified, the resource group string will be generated by the handler.
    collectdResourceNameConfig Property Map
    Resource name generation overriding configurations for collectd resource types.
    collectorTypes List<String>
    List of collector/plugin names.
    handlerProperties List<Property Map>
    List of handler configuration properties
    metricMappings List<Property Map>
    List of AgentExtensionHandlerMetricMappingDetails.
    metricNameConfig Property Map
    Metric name generation overriding configurations.
    metricUploadIntervalInSeconds Number
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    telegrafResourceNameConfig Property Map
    Resource name generation overriding configurations for telegraf resource types.
    telemetryResourceGroup String
    Resource group string; if not specified, the resource group string will be generated by the handler.

    MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs

    ExcludeProperties List<string>
    List of property names to be excluded.
    IncludeProperties List<string>
    List of property names to be included.
    Suffix string
    String to be suffixed to the resource name.
    ExcludeProperties []string
    List of property names to be excluded.
    IncludeProperties []string
    List of property names to be included.
    Suffix string
    String to be suffixed to the resource name.
    excludeProperties List<String>
    List of property names to be excluded.
    includeProperties List<String>
    List of property names to be included.
    suffix String
    String to be suffixed to the resource name.
    excludeProperties string[]
    List of property names to be excluded.
    includeProperties 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.
    excludeProperties List<String>
    List of property names to be excluded.
    includeProperties List<String>
    List of property names to be included.
    suffix String
    String to be suffixed to the resource name.

    MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerProperty, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs

    Name string
    Property name.
    Value string
    Property value.
    Name string
    Property name.
    Value string
    Property value.
    name String
    Property name.
    value String
    Property value.
    name string
    Property name.
    value string
    Property value.
    name str
    Property name.
    value str
    Property value.
    name String
    Property name.
    value String
    Property value.

    MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMapping, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs

    CollectorMetricName string
    Metric name as defined by the collector.
    IsSkipUpload bool
    Is ignoring this metric.
    MetricUploadIntervalInSeconds int
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    TelemetryMetricName string
    Metric name to be upload to telemetry.
    CollectorMetricName string
    Metric name as defined by the collector.
    IsSkipUpload bool
    Is ignoring this metric.
    MetricUploadIntervalInSeconds int
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    TelemetryMetricName string
    Metric name to be upload to telemetry.
    collectorMetricName String
    Metric name as defined by the collector.
    isSkipUpload Boolean
    Is ignoring this metric.
    metricUploadIntervalInSeconds Integer
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    telemetryMetricName String
    Metric name to be upload to telemetry.
    collectorMetricName string
    Metric name as defined by the collector.
    isSkipUpload boolean
    Is ignoring this metric.
    metricUploadIntervalInSeconds number
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    telemetryMetricName string
    Metric name to be upload to telemetry.
    collector_metric_name str
    Metric name as defined by the collector.
    is_skip_upload bool
    Is ignoring this metric.
    metric_upload_interval_in_seconds int
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    telemetry_metric_name str
    Metric name to be upload to telemetry.
    collectorMetricName String
    Metric name as defined by the collector.
    isSkipUpload Boolean
    Is ignoring this metric.
    metricUploadIntervalInSeconds Number
    Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
    telemetryMetricName String
    Metric name to be upload to telemetry.

    MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs

    ExcludePatternOnPrefix string
    String pattern to be removed from the prefix of the metric name.
    IsPrefixWithCollectorType bool
    is prefixing the metric with collector type.
    ExcludePatternOnPrefix string
    String pattern to be removed from the prefix of the metric name.
    IsPrefixWithCollectorType bool
    is prefixing the metric with collector type.
    excludePatternOnPrefix String
    String pattern to be removed from the prefix of the metric name.
    isPrefixWithCollectorType Boolean
    is prefixing the metric with collector type.
    excludePatternOnPrefix string
    String pattern to be removed from the prefix of the metric name.
    isPrefixWithCollectorType boolean
    is prefixing the metric with collector type.
    exclude_pattern_on_prefix str
    String pattern to be removed from the prefix of the metric name.
    is_prefix_with_collector_type bool
    is prefixing the metric with collector type.
    excludePatternOnPrefix String
    String pattern to be removed from the prefix of the metric name.
    isPrefixWithCollectorType Boolean
    is prefixing the metric with collector type.

    MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs

    ExcludeTags List<string>
    List of tag names to be excluded.
    IncludeTags List<string>
    List of tag names to be included.
    IsUseTagsOnly bool
    Flag to indicate if only tags will be used for resource name generation.
    ExcludeTags []string
    List of tag names to be excluded.
    IncludeTags []string
    List of tag names to be included.
    IsUseTagsOnly bool
    Flag to indicate if only tags will be used for resource name generation.
    excludeTags List<String>
    List of tag names to be excluded.
    includeTags List<String>
    List of tag names to be included.
    isUseTagsOnly Boolean
    Flag to indicate if only tags will be used for resource name generation.
    excludeTags string[]
    List of tag names to be excluded.
    includeTags string[]
    List of tag names to be included.
    isUseTagsOnly boolean
    Flag to indicate if only tags will be used for resource name generation.
    exclude_tags Sequence[str]
    List of tag names to be excluded.
    include_tags Sequence[str]
    List of tag names to be included.
    is_use_tags_only bool
    Flag to indicate if only tags will be used for resource name generation.
    excludeTags List<String>
    List of tag names to be excluded.
    includeTags List<String>
    List of tag names to be included.
    isUseTagsOnly 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.
    oci logo
    Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi