oci.StackMonitoring.MonitoredResourceTask
Explore with Pulumi AI
This resource provides the Monitored Resource Task resource in Oracle Cloud Infrastructure Stack Monitoring service.
Create a new stack monitoring resource task.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMonitoredResourceTask = new oci.stackmonitoring.MonitoredResourceTask("test_monitored_resource_task", {
    compartmentId: compartmentId,
    taskDetails: {
        type: monitoredResourceTaskTaskDetailsType,
        agentId: testAgent.id,
        availabilityProxyMetricCollectionInterval: monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval,
        availabilityProxyMetrics: monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics,
        consolePathPrefix: monitoredResourceTaskTaskDetailsConsolePathPrefix,
        externalIdMapping: monitoredResourceTaskTaskDetailsExternalIdMapping,
        handlerType: monitoredResourceTaskTaskDetailsHandlerType,
        isEnable: monitoredResourceTaskTaskDetailsIsEnable,
        lifecycleStatusMappingsForUpStatuses: monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus,
        namespace: monitoredResourceTaskTaskDetailsNamespace,
        receiverProperties: {
            listenerPort: monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort,
        },
        resourceGroup: monitoredResourceTaskTaskDetailsResourceGroup,
        resourceNameFilter: monitoredResourceTaskTaskDetailsResourceNameFilter,
        resourceNameMapping: monitoredResourceTaskTaskDetailsResourceNameMapping,
        resourceTypeFilter: monitoredResourceTaskTaskDetailsResourceTypeFilter,
        resourceTypeMapping: monitoredResourceTaskTaskDetailsResourceTypeMapping,
        resourceTypesConfigurations: [{
            availabilityMetricsConfig: {
                collectionIntervalInSeconds: monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds,
                metrics: monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics,
            },
            handlerConfig: {
                collectdResourceNameConfig: {
                    excludeProperties: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties,
                    includeProperties: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties,
                    suffix: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix,
                },
                collectorTypes: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes,
                handlerProperties: [{
                    name: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName,
                    value: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue,
                }],
                metricMappings: [{
                    collectorMetricName: testMetric.name,
                    isSkipUpload: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload,
                    metricUploadIntervalInSeconds: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds,
                    telemetryMetricName: testMetric.name,
                }],
                metricNameConfig: {
                    excludePatternOnPrefix: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix,
                    isPrefixWithCollectorType: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType,
                },
                metricUploadIntervalInSeconds: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds,
                telegrafResourceNameConfig: {
                    excludeTags: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags,
                    includeTags: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags,
                    isUseTagsOnly: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly,
                },
                telemetryResourceGroup: monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup,
            },
            resourceType: monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType,
        }],
        serviceBaseUrl: monitoredResourceTaskTaskDetailsServiceBaseUrl,
        shouldUseMetricsFlowForStatus: monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus,
        source: monitoredResourceTaskTaskDetailsSource,
    },
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    freeformTags: {
        "bar-key": "value",
    },
    name: monitoredResourceTaskName,
});
import pulumi
import pulumi_oci as oci
test_monitored_resource_task = oci.stack_monitoring.MonitoredResourceTask("test_monitored_resource_task",
    compartment_id=compartment_id,
    task_details={
        "type": monitored_resource_task_task_details_type,
        "agent_id": test_agent["id"],
        "availability_proxy_metric_collection_interval": monitored_resource_task_task_details_availability_proxy_metric_collection_interval,
        "availability_proxy_metrics": monitored_resource_task_task_details_availability_proxy_metrics,
        "console_path_prefix": monitored_resource_task_task_details_console_path_prefix,
        "external_id_mapping": monitored_resource_task_task_details_external_id_mapping,
        "handler_type": monitored_resource_task_task_details_handler_type,
        "is_enable": monitored_resource_task_task_details_is_enable,
        "lifecycle_status_mappings_for_up_statuses": monitored_resource_task_task_details_lifecycle_status_mappings_for_up_status,
        "namespace": monitored_resource_task_task_details_namespace,
        "receiver_properties": {
            "listener_port": monitored_resource_task_task_details_receiver_properties_listener_port,
        },
        "resource_group": monitored_resource_task_task_details_resource_group,
        "resource_name_filter": monitored_resource_task_task_details_resource_name_filter,
        "resource_name_mapping": monitored_resource_task_task_details_resource_name_mapping,
        "resource_type_filter": monitored_resource_task_task_details_resource_type_filter,
        "resource_type_mapping": monitored_resource_task_task_details_resource_type_mapping,
        "resource_types_configurations": [{
            "availability_metrics_config": {
                "collection_interval_in_seconds": monitored_resource_task_task_details_resource_types_configuration_availability_metrics_config_collection_interval_in_seconds,
                "metrics": monitored_resource_task_task_details_resource_types_configuration_availability_metrics_config_metrics,
            },
            "handler_config": {
                "collectd_resource_name_config": {
                    "exclude_properties": monitored_resource_task_task_details_resource_types_configuration_handler_config_collectd_resource_name_config_exclude_properties,
                    "include_properties": monitored_resource_task_task_details_resource_types_configuration_handler_config_collectd_resource_name_config_include_properties,
                    "suffix": monitored_resource_task_task_details_resource_types_configuration_handler_config_collectd_resource_name_config_suffix,
                },
                "collector_types": monitored_resource_task_task_details_resource_types_configuration_handler_config_collector_types,
                "handler_properties": [{
                    "name": monitored_resource_task_task_details_resource_types_configuration_handler_config_handler_properties_name,
                    "value": monitored_resource_task_task_details_resource_types_configuration_handler_config_handler_properties_value,
                }],
                "metric_mappings": [{
                    "collector_metric_name": test_metric["name"],
                    "is_skip_upload": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_mappings_is_skip_upload,
                    "metric_upload_interval_in_seconds": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_mappings_metric_upload_interval_in_seconds,
                    "telemetry_metric_name": test_metric["name"],
                }],
                "metric_name_config": {
                    "exclude_pattern_on_prefix": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_name_config_exclude_pattern_on_prefix,
                    "is_prefix_with_collector_type": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_name_config_is_prefix_with_collector_type,
                },
                "metric_upload_interval_in_seconds": monitored_resource_task_task_details_resource_types_configuration_handler_config_metric_upload_interval_in_seconds,
                "telegraf_resource_name_config": {
                    "exclude_tags": monitored_resource_task_task_details_resource_types_configuration_handler_config_telegraf_resource_name_config_exclude_tags,
                    "include_tags": monitored_resource_task_task_details_resource_types_configuration_handler_config_telegraf_resource_name_config_include_tags,
                    "is_use_tags_only": monitored_resource_task_task_details_resource_types_configuration_handler_config_telegraf_resource_name_config_is_use_tags_only,
                },
                "telemetry_resource_group": monitored_resource_task_task_details_resource_types_configuration_handler_config_telemetry_resource_group,
            },
            "resource_type": monitored_resource_task_task_details_resource_types_configuration_resource_type,
        }],
        "service_base_url": monitored_resource_task_task_details_service_base_url,
        "should_use_metrics_flow_for_status": monitored_resource_task_task_details_should_use_metrics_flow_for_status,
        "source": monitored_resource_task_task_details_source,
    },
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    freeform_tags={
        "bar-key": "value",
    },
    name=monitored_resource_task_name)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/stackmonitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := stackmonitoring.NewMonitoredResourceTask(ctx, "test_monitored_resource_task", &stackmonitoring.MonitoredResourceTaskArgs{
			CompartmentId: pulumi.Any(compartmentId),
			TaskDetails: &stackmonitoring.MonitoredResourceTaskTaskDetailsArgs{
				Type:    pulumi.Any(monitoredResourceTaskTaskDetailsType),
				AgentId: pulumi.Any(testAgent.Id),
				AvailabilityProxyMetricCollectionInterval: pulumi.Any(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval),
				AvailabilityProxyMetrics:                  pulumi.Any(monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics),
				ConsolePathPrefix:                         pulumi.Any(monitoredResourceTaskTaskDetailsConsolePathPrefix),
				ExternalIdMapping:                         pulumi.Any(monitoredResourceTaskTaskDetailsExternalIdMapping),
				HandlerType:                               pulumi.Any(monitoredResourceTaskTaskDetailsHandlerType),
				IsEnable:                                  pulumi.Any(monitoredResourceTaskTaskDetailsIsEnable),
				LifecycleStatusMappingsForUpStatuses:      pulumi.Any(monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus),
				Namespace:                                 pulumi.Any(monitoredResourceTaskTaskDetailsNamespace),
				ReceiverProperties: &stackmonitoring.MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs{
					ListenerPort: pulumi.Any(monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort),
				},
				ResourceGroup:       pulumi.Any(monitoredResourceTaskTaskDetailsResourceGroup),
				ResourceNameFilter:  pulumi.Any(monitoredResourceTaskTaskDetailsResourceNameFilter),
				ResourceNameMapping: pulumi.Any(monitoredResourceTaskTaskDetailsResourceNameMapping),
				ResourceTypeFilter:  pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypeFilter),
				ResourceTypeMapping: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypeMapping),
				ResourceTypesConfigurations: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArray{
					&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs{
						AvailabilityMetricsConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs{
							CollectionIntervalInSeconds: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds),
							Metrics:                     pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics),
						},
						HandlerConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs{
							CollectdResourceNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs{
								ExcludeProperties: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties),
								IncludeProperties: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties),
								Suffix:            pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix),
							},
							CollectorTypes: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes),
							HandlerProperties: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArray{
								&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs{
									Name:  pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName),
									Value: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue),
								},
							},
							MetricMappings: stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArray{
								&stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs{
									CollectorMetricName:           pulumi.Any(testMetric.Name),
									IsSkipUpload:                  pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload),
									MetricUploadIntervalInSeconds: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds),
									TelemetryMetricName:           pulumi.Any(testMetric.Name),
								},
							},
							MetricNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs{
								ExcludePatternOnPrefix:    pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix),
								IsPrefixWithCollectorType: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType),
							},
							MetricUploadIntervalInSeconds: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds),
							TelegrafResourceNameConfig: &stackmonitoring.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs{
								ExcludeTags:   pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags),
								IncludeTags:   pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags),
								IsUseTagsOnly: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly),
							},
							TelemetryResourceGroup: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup),
						},
						ResourceType: pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType),
					},
				},
				ServiceBaseUrl:                pulumi.Any(monitoredResourceTaskTaskDetailsServiceBaseUrl),
				ShouldUseMetricsFlowForStatus: pulumi.Any(monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus),
				Source:                        pulumi.Any(monitoredResourceTaskTaskDetailsSource),
			},
			DefinedTags: pulumi.StringMap{
				"foo-namespace.bar-key": pulumi.String("value"),
			},
			FreeformTags: pulumi.StringMap{
				"bar-key": pulumi.String("value"),
			},
			Name: pulumi.Any(monitoredResourceTaskName),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testMonitoredResourceTask = new Oci.StackMonitoring.MonitoredResourceTask("test_monitored_resource_task", new()
    {
        CompartmentId = compartmentId,
        TaskDetails = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsArgs
        {
            Type = monitoredResourceTaskTaskDetailsType,
            AgentId = testAgent.Id,
            AvailabilityProxyMetricCollectionInterval = monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval,
            AvailabilityProxyMetrics = monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics,
            ConsolePathPrefix = monitoredResourceTaskTaskDetailsConsolePathPrefix,
            ExternalIdMapping = monitoredResourceTaskTaskDetailsExternalIdMapping,
            HandlerType = monitoredResourceTaskTaskDetailsHandlerType,
            IsEnable = monitoredResourceTaskTaskDetailsIsEnable,
            LifecycleStatusMappingsForUpStatuses = monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus,
            Namespace = monitoredResourceTaskTaskDetailsNamespace,
            ReceiverProperties = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs
            {
                ListenerPort = monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort,
            },
            ResourceGroup = monitoredResourceTaskTaskDetailsResourceGroup,
            ResourceNameFilter = monitoredResourceTaskTaskDetailsResourceNameFilter,
            ResourceNameMapping = monitoredResourceTaskTaskDetailsResourceNameMapping,
            ResourceTypeFilter = monitoredResourceTaskTaskDetailsResourceTypeFilter,
            ResourceTypeMapping = monitoredResourceTaskTaskDetailsResourceTypeMapping,
            ResourceTypesConfigurations = new[]
            {
                new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs
                {
                    AvailabilityMetricsConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs
                    {
                        CollectionIntervalInSeconds = monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds,
                        Metrics = monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics,
                    },
                    HandlerConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs
                    {
                        CollectdResourceNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs
                        {
                            ExcludeProperties = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties,
                            IncludeProperties = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties,
                            Suffix = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix,
                        },
                        CollectorTypes = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes,
                        HandlerProperties = new[]
                        {
                            new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs
                            {
                                Name = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName,
                                Value = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue,
                            },
                        },
                        MetricMappings = new[]
                        {
                            new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs
                            {
                                CollectorMetricName = testMetric.Name,
                                IsSkipUpload = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload,
                                MetricUploadIntervalInSeconds = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds,
                                TelemetryMetricName = testMetric.Name,
                            },
                        },
                        MetricNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs
                        {
                            ExcludePatternOnPrefix = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix,
                            IsPrefixWithCollectorType = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType,
                        },
                        MetricUploadIntervalInSeconds = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds,
                        TelegrafResourceNameConfig = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs
                        {
                            ExcludeTags = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags,
                            IncludeTags = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags,
                            IsUseTagsOnly = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly,
                        },
                        TelemetryResourceGroup = monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup,
                    },
                    ResourceType = monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType,
                },
            },
            ServiceBaseUrl = monitoredResourceTaskTaskDetailsServiceBaseUrl,
            ShouldUseMetricsFlowForStatus = monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus,
            Source = monitoredResourceTaskTaskDetailsSource,
        },
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
        Name = monitoredResourceTaskName,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MonitoredResourceTask;
import com.pulumi.oci.StackMonitoring.MonitoredResourceTaskArgs;
import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceTaskTaskDetailsArgs;
import com.pulumi.oci.StackMonitoring.inputs.MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var testMonitoredResourceTask = new MonitoredResourceTask("testMonitoredResourceTask", MonitoredResourceTaskArgs.builder()
            .compartmentId(compartmentId)
            .taskDetails(MonitoredResourceTaskTaskDetailsArgs.builder()
                .type(monitoredResourceTaskTaskDetailsType)
                .agentId(testAgent.id())
                .availabilityProxyMetricCollectionInterval(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval)
                .availabilityProxyMetrics(monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics)
                .consolePathPrefix(monitoredResourceTaskTaskDetailsConsolePathPrefix)
                .externalIdMapping(monitoredResourceTaskTaskDetailsExternalIdMapping)
                .handlerType(monitoredResourceTaskTaskDetailsHandlerType)
                .isEnable(monitoredResourceTaskTaskDetailsIsEnable)
                .lifecycleStatusMappingsForUpStatuses(monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus)
                .namespace(monitoredResourceTaskTaskDetailsNamespace)
                .receiverProperties(MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs.builder()
                    .listenerPort(monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort)
                    .build())
                .resourceGroup(monitoredResourceTaskTaskDetailsResourceGroup)
                .resourceNameFilter(monitoredResourceTaskTaskDetailsResourceNameFilter)
                .resourceNameMapping(monitoredResourceTaskTaskDetailsResourceNameMapping)
                .resourceTypeFilter(monitoredResourceTaskTaskDetailsResourceTypeFilter)
                .resourceTypeMapping(monitoredResourceTaskTaskDetailsResourceTypeMapping)
                .resourceTypesConfigurations(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationArgs.builder()
                    .availabilityMetricsConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs.builder()
                        .collectionIntervalInSeconds(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds)
                        .metrics(monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics)
                        .build())
                    .handlerConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs.builder()
                        .collectdResourceNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigArgs.builder()
                            .excludeProperties(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties)
                            .includeProperties(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties)
                            .suffix(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix)
                            .build())
                        .collectorTypes(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes)
                        .handlerProperties(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertyArgs.builder()
                            .name(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName)
                            .value(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue)
                            .build())
                        .metricMappings(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs.builder()
                            .collectorMetricName(testMetric.name())
                            .isSkipUpload(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload)
                            .metricUploadIntervalInSeconds(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds)
                            .telemetryMetricName(testMetric.name())
                            .build())
                        .metricNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs.builder()
                            .excludePatternOnPrefix(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix)
                            .isPrefixWithCollectorType(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType)
                            .build())
                        .metricUploadIntervalInSeconds(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds)
                        .telegrafResourceNameConfig(MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs.builder()
                            .excludeTags(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags)
                            .includeTags(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags)
                            .isUseTagsOnly(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly)
                            .build())
                        .telemetryResourceGroup(monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup)
                        .build())
                    .resourceType(monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType)
                    .build())
                .serviceBaseUrl(monitoredResourceTaskTaskDetailsServiceBaseUrl)
                .shouldUseMetricsFlowForStatus(monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus)
                .source(monitoredResourceTaskTaskDetailsSource)
                .build())
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .freeformTags(Map.of("bar-key", "value"))
            .name(monitoredResourceTaskName)
            .build());
    }
}
resources:
  testMonitoredResourceTask:
    type: oci:StackMonitoring:MonitoredResourceTask
    name: test_monitored_resource_task
    properties:
      compartmentId: ${compartmentId}
      taskDetails:
        type: ${monitoredResourceTaskTaskDetailsType}
        agentId: ${testAgent.id}
        availabilityProxyMetricCollectionInterval: ${monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval}
        availabilityProxyMetrics: ${monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics}
        consolePathPrefix: ${monitoredResourceTaskTaskDetailsConsolePathPrefix}
        externalIdMapping: ${monitoredResourceTaskTaskDetailsExternalIdMapping}
        handlerType: ${monitoredResourceTaskTaskDetailsHandlerType}
        isEnable: ${monitoredResourceTaskTaskDetailsIsEnable}
        lifecycleStatusMappingsForUpStatuses: ${monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus}
        namespace: ${monitoredResourceTaskTaskDetailsNamespace}
        receiverProperties:
          listenerPort: ${monitoredResourceTaskTaskDetailsReceiverPropertiesListenerPort}
        resourceGroup: ${monitoredResourceTaskTaskDetailsResourceGroup}
        resourceNameFilter: ${monitoredResourceTaskTaskDetailsResourceNameFilter}
        resourceNameMapping: ${monitoredResourceTaskTaskDetailsResourceNameMapping}
        resourceTypeFilter: ${monitoredResourceTaskTaskDetailsResourceTypeFilter}
        resourceTypeMapping: ${monitoredResourceTaskTaskDetailsResourceTypeMapping}
        resourceTypesConfigurations:
          - availabilityMetricsConfig:
              collectionIntervalInSeconds: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigCollectionIntervalInSeconds}
              metrics: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigMetrics}
            handlerConfig:
              collectdResourceNameConfig:
                excludeProperties: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigExcludeProperties}
                includeProperties: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigIncludeProperties}
                suffix: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectdResourceNameConfigSuffix}
              collectorTypes: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigCollectorTypes}
              handlerProperties:
                - name: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesName}
                  value: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigHandlerPropertiesValue}
              metricMappings:
                - collectorMetricName: ${testMetric.name}
                  isSkipUpload: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsIsSkipUpload}
                  metricUploadIntervalInSeconds: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingsMetricUploadIntervalInSeconds}
                  telemetryMetricName: ${testMetric.name}
              metricNameConfig:
                excludePatternOnPrefix: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigExcludePatternOnPrefix}
                isPrefixWithCollectorType: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigIsPrefixWithCollectorType}
              metricUploadIntervalInSeconds: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricUploadIntervalInSeconds}
              telegrafResourceNameConfig:
                excludeTags: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigExcludeTags}
                includeTags: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIncludeTags}
                isUseTagsOnly: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigIsUseTagsOnly}
              telemetryResourceGroup: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelemetryResourceGroup}
            resourceType: ${monitoredResourceTaskTaskDetailsResourceTypesConfigurationResourceType}
        serviceBaseUrl: ${monitoredResourceTaskTaskDetailsServiceBaseUrl}
        shouldUseMetricsFlowForStatus: ${monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus}
        source: ${monitoredResourceTaskTaskDetailsSource}
      definedTags:
        foo-namespace.bar-key: value
      freeformTags:
        bar-key: value
      name: ${monitoredResourceTaskName}
Create MonitoredResourceTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoredResourceTask(name: string, args: MonitoredResourceTaskArgs, opts?: CustomResourceOptions);@overload
def MonitoredResourceTask(resource_name: str,
                          args: MonitoredResourceTaskArgs,
                          opts: Optional[ResourceOptions] = None)
@overload
def MonitoredResourceTask(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          compartment_id: Optional[str] = None,
                          task_details: Optional[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 MonitoredResource Task Task Details 
- The request details for the performing the task.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- CompartmentId string
- (Updatable) The OCID of the compartment identifier.
- TaskDetails MonitoredResource Task Task Details Args 
- The request details for the performing the task.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartmentId String
- (Updatable) The OCID of the compartment identifier.
- taskDetails MonitoredResource Task Task Details 
- The request details for the performing the task.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartmentId string
- (Updatable) The OCID of the compartment identifier.
- taskDetails MonitoredResource Task Task Details 
- The request details for the performing the task.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartment_id str
- (Updatable) The OCID of the compartment identifier.
- task_details MonitoredResource Task Task Details Args 
- The request details for the performing the task.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- name str
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- compartmentId String
- (Updatable) The OCID of the compartment identifier.
- taskDetails Property Map
- The request details for the performing the task.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitoredResourceTask resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the stack monitoring resource task.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- 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.
- WorkRequest List<string>Ids 
- Identifiers OCID for work requests submitted for this task.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The current state of the stack monitoring resource task.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- 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.
- WorkRequest []stringIds 
- Identifiers OCID for work requests submitted for this task.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the stack monitoring resource task.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- 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.
- workRequest List<String>Ids 
- Identifiers OCID for work requests submitted for this task.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The current state of the stack monitoring resource task.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- 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.
- workRequest string[]Ids 
- Identifiers OCID for work requests submitted for this task.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The current state of the stack monitoring resource task.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- tenant_id str
- The OCID of the tenancy.
- time_created str
- The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time_updated str
- The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type str
- Type of the task.
- work_request_ Sequence[str]ids 
- Identifiers OCID for work requests submitted for this task.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The current state of the stack monitoring resource task.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- 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.
- workRequest List<String>Ids 
- Identifiers OCID for work requests submitted for this task.
Look up Existing MonitoredResourceTask Resource
Get an existing MonitoredResourceTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MonitoredResourceTaskState, opts?: CustomResourceOptions): MonitoredResourceTask@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        task_details: Optional[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) -> MonitoredResourceTaskfunc 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.
- CompartmentId string
- (Updatable) The OCID of the compartment identifier.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- State string
- The current state of the stack monitoring resource task.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TaskDetails MonitoredResource Task Task Details 
- 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.
- WorkRequest List<string>Ids 
- Identifiers OCID for work requests submitted for this task.
- CompartmentId string
- (Updatable) The OCID of the compartment identifier.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- State string
- The current state of the stack monitoring resource task.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TaskDetails MonitoredResource Task Task Details Args 
- 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.
- WorkRequest []stringIds 
- Identifiers OCID for work requests submitted for this task.
- compartmentId String
- (Updatable) The OCID of the compartment identifier.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state String
- The current state of the stack monitoring resource task.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- taskDetails MonitoredResource Task Task Details 
- 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.
- workRequest List<String>Ids 
- Identifiers OCID for work requests submitted for this task.
- compartmentId string
- (Updatable) The OCID of the compartment identifier.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- name string
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state string
- The current state of the stack monitoring resource task.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- taskDetails MonitoredResource Task Task Details 
- 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.
- workRequest string[]Ids 
- Identifiers OCID for work requests submitted for this task.
- compartment_id str
- (Updatable) The OCID of the compartment identifier.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- name str
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state str
- The current state of the stack monitoring resource task.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- task_details MonitoredResource Task Task Details Args 
- The request details for the performing the task.
- tenant_id str
- The OCID of the tenancy.
- time_created str
- The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
- time_updated str
- The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
- type str
- Type of the task.
- work_request_ Sequence[str]ids 
- Identifiers OCID for work requests submitted for this task.
- compartmentId String
- (Updatable) The OCID of the compartment identifier.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- name String
- Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
- state String
- The current state of the stack monitoring resource task.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- 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.
- workRequest List<String>Ids 
- Identifiers OCID for work requests submitted for this task.
Supporting Types
MonitoredResourceTaskTaskDetails, MonitoredResourceTaskTaskDetailsArgs          
- Type string
- Task type. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- AgentId string
- Management Agent Identifier OCID.
- AvailabilityProxy intMetric Collection Interval 
- Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- AvailabilityProxy List<string>Metrics 
- List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionInterval'. If no metrics are specified, availability will not be calculated for the resource.
- ConsolePath stringPrefix 
- The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- ExternalId stringMapping 
- 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.
- LifecycleStatus List<string>Mappings For Up Statuses 
- Lifecycle states of the external resource which reflects the status of the resource being up.
- Namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- ReceiverProperties MonitoredResource Task Task Details Receiver Properties 
- 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.
- ResourceName stringFilter 
- The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- ResourceName stringMapping 
- The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- ResourceType stringFilter 
- The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- ResourceType stringMapping 
- The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- ResourceTypes List<MonitoredConfigurations Resource Task Task Details Resource Types Configuration> 
- A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- ServiceBase stringUrl 
- The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- ShouldUse boolMetrics Flow For Status 
- Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- Source string
- Source from where the metrics pushed to telemetry. Possible values:- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- OCI_TELEMETRY_TELEGRAF - The metrics are pushed to telemetry from Telegraf receiver.
- OCI_TELEMETRY_COLLECTD - The metrics are pushed to telemetry from CollectD receiver.
 
- Type string
- Task type. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- AgentId string
- Management Agent Identifier OCID.
- AvailabilityProxy intMetric Collection Interval 
- Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- AvailabilityProxy []stringMetrics 
- List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionInterval'. If no metrics are specified, availability will not be calculated for the resource.
- ConsolePath stringPrefix 
- The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- ExternalId stringMapping 
- 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.
- LifecycleStatus []stringMappings For Up Statuses 
- Lifecycle states of the external resource which reflects the status of the resource being up.
- Namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- ReceiverProperties MonitoredResource Task Task Details Receiver Properties 
- 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.
- ResourceName stringFilter 
- The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- ResourceName stringMapping 
- The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- ResourceType stringFilter 
- The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- ResourceType stringMapping 
- The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- ResourceTypes []MonitoredConfigurations Resource Task Task Details Resource Types Configuration 
- A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- ServiceBase stringUrl 
- The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- ShouldUse boolMetrics Flow For Status 
- Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- Source string
- Source from where the metrics pushed to telemetry. Possible values:- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- OCI_TELEMETRY_TELEGRAF - The metrics are pushed to telemetry from Telegraf receiver.
- OCI_TELEMETRY_COLLECTD - The metrics are pushed to telemetry from CollectD receiver.
 
- type String
- Task type. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- agentId String
- Management Agent Identifier OCID.
- availabilityProxy IntegerMetric Collection Interval 
- Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availabilityProxy List<String>Metrics 
- List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionInterval'. If no metrics are specified, availability will not be calculated for the resource.
- consolePath StringPrefix 
- The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- externalId StringMapping 
- 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.
- lifecycleStatus List<String>Mappings For Up Statuses 
- Lifecycle states of the external resource which reflects the status of the resource being up.
- namespace String
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- receiverProperties MonitoredResource Task Task Details Receiver Properties 
- 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.
- resourceName StringFilter 
- The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resourceName StringMapping 
- The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resourceType StringFilter 
- The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resourceType StringMapping 
- The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- resourceTypes List<MonitoredConfigurations Resource Task Task Details Resource Types Configuration> 
- A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- serviceBase StringUrl 
- The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- shouldUse BooleanMetrics Flow For Status 
- Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- source String
- Source from where the metrics pushed to telemetry. Possible values:- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- OCI_TELEMETRY_TELEGRAF - The metrics are pushed to telemetry from Telegraf receiver.
- OCI_TELEMETRY_COLLECTD - The metrics are pushed to telemetry from CollectD receiver.
 
- type string
- Task type. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- agentId string
- Management Agent Identifier OCID.
- availabilityProxy numberMetric Collection Interval 
- Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availabilityProxy string[]Metrics 
- List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionInterval'. If no metrics are specified, availability will not be calculated for the resource.
- consolePath stringPrefix 
- The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- externalId stringMapping 
- 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.
- lifecycleStatus string[]Mappings For Up Statuses 
- Lifecycle states of the external resource which reflects the status of the resource being up.
- namespace string
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- receiverProperties MonitoredResource Task Task Details Receiver Properties 
- 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.
- resourceName stringFilter 
- The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resourceName stringMapping 
- The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resourceType stringFilter 
- The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resourceType stringMapping 
- The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- resourceTypes MonitoredConfigurations Resource Task Task Details Resource Types Configuration[] 
- A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- serviceBase stringUrl 
- The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- shouldUse booleanMetrics Flow For Status 
- Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- source string
- Source from where the metrics pushed to telemetry. Possible values:- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- OCI_TELEMETRY_TELEGRAF - The metrics are pushed to telemetry from Telegraf receiver.
- OCI_TELEMETRY_COLLECTD - The metrics are pushed to telemetry from CollectD receiver.
 
- type str
- Task type. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- agent_id str
- Management Agent Identifier OCID.
- availability_proxy_ intmetric_ collection_ interval 
- Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availability_proxy_ Sequence[str]metrics 
- List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionInterval'. If no metrics are specified, availability will not be calculated for the resource.
- console_path_ strprefix 
- The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- external_id_ strmapping 
- The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
- handler_type str
- Type of the handler.
- is_enable bool
- True to enable the receiver and false to disable the receiver on the agent.
- lifecycle_status_ Sequence[str]mappings_ for_ up_ statuses 
- Lifecycle states of the external resource which reflects the status of the resource being up.
- namespace str
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- receiver_properties MonitoredResource Task Task Details Receiver Properties 
- Properties for agent receiver.
- resource_group str
- The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
- resource_name_ strfilter 
- The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resource_name_ strmapping 
- The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resource_type_ strfilter 
- The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resource_type_ strmapping 
- The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- resource_types_ Sequence[Monitoredconfigurations Resource Task Task Details Resource Types Configuration] 
- A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- service_base_ strurl 
- The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- should_use_ boolmetrics_ flow_ for_ status 
- Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- source str
- Source from where the metrics pushed to telemetry. Possible values:- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- OCI_TELEMETRY_TELEGRAF - The metrics are pushed to telemetry from Telegraf receiver.
- OCI_TELEMETRY_COLLECTD - The metrics are pushed to telemetry from CollectD receiver.
 
- type String
- Task type. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- agentId String
- Management Agent Identifier OCID.
- availabilityProxy NumberMetric Collection Interval 
- Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
- availabilityProxy List<String>Metrics 
- List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionInterval'. If no metrics are specified, availability will not be calculated for the resource.
- consolePath StringPrefix 
- The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
- externalId StringMapping 
- 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.
- lifecycleStatus List<String>Mappings For Up Statuses 
- Lifecycle states of the external resource which reflects the status of the resource being up.
- namespace String
- Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
- 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.
- resourceName StringFilter 
- The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
- resourceName StringMapping 
- The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
- resourceType StringFilter 
- The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
- resourceType StringMapping 
- The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
- resourceTypes List<Property Map>Configurations 
- A collection of resource type configuration details. User can provide availability proxy metrics list for resource types along with the telegraf/collectd handler configuration for the resource types.
- serviceBase StringUrl 
- The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
- shouldUse BooleanMetrics Flow For Status 
- Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
- source String
- Source from where the metrics pushed to telemetry. Possible values:- OCI_TELEMETRY_NATIVE - The metrics are pushed to telemetry from Oracle Cloud Infrastructure Native Services.
- OCI_TELEMETRY_PROMETHEUS - The metrics are pushed to telemetry from Prometheus.
- OCI_TELEMETRY_TELEGRAF - The metrics are pushed to telemetry from Telegraf receiver.
- OCI_TELEMETRY_COLLECTD - The metrics are pushed to telemetry from CollectD receiver.
 
MonitoredResourceTaskTaskDetailsReceiverProperties, MonitoredResourceTaskTaskDetailsReceiverPropertiesArgs              
- 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                
- AvailabilityMetrics MonitoredConfig Resource Task Task Details Resource Types Configuration Availability Metrics Config 
- Availability metrics details.
- HandlerConfig MonitoredResource Task Task Details Resource Types Configuration Handler Config 
- Specific resource mapping configurations for Agent Extension Handlers.
- ResourceType string
- Resource type.
- AvailabilityMetrics MonitoredConfig Resource Task Task Details Resource Types Configuration Availability Metrics Config 
- Availability metrics details.
- HandlerConfig MonitoredResource Task Task Details Resource Types Configuration Handler Config 
- Specific resource mapping configurations for Agent Extension Handlers.
- ResourceType string
- Resource type.
- availabilityMetrics MonitoredConfig Resource Task Task Details Resource Types Configuration Availability Metrics Config 
- Availability metrics details.
- handlerConfig MonitoredResource Task Task Details Resource Types Configuration Handler Config 
- Specific resource mapping configurations for Agent Extension Handlers.
- resourceType String
- Resource type.
- availabilityMetrics MonitoredConfig Resource Task Task Details Resource Types Configuration Availability Metrics Config 
- Availability metrics details.
- handlerConfig MonitoredResource Task Task Details Resource Types Configuration Handler Config 
- Specific resource mapping configurations for Agent Extension Handlers.
- resourceType string
- Resource type.
- availability_metrics_ Monitoredconfig Resource Task Task Details Resource Types Configuration Availability Metrics Config 
- Availability metrics details.
- handler_config MonitoredResource Task Task Details Resource Types Configuration Handler Config 
- Specific resource mapping configurations for Agent Extension Handlers.
- resource_type str
- Resource type.
- availabilityMetrics Property MapConfig 
- Availability metrics details.
- handlerConfig Property Map
- Specific resource mapping configurations for Agent Extension Handlers.
- resourceType String
- Resource type.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationAvailabilityMetricsConfigArgs                      
- CollectionInterval intIn Seconds 
- Availability metric collection internal in seconds.
- Metrics List<string>
- List of metrics used for availability calculation for the resource.
- CollectionInterval intIn Seconds 
- Availability metric collection internal in seconds.
- Metrics []string
- List of metrics used for availability calculation for the resource.
- collectionInterval IntegerIn Seconds 
- Availability metric collection internal in seconds.
- metrics List<String>
- List of metrics used for availability calculation for the resource.
- collectionInterval numberIn Seconds 
- Availability metric collection internal in seconds.
- metrics string[]
- List of metrics used for availability calculation for the resource.
- collection_interval_ intin_ seconds 
- Availability metric collection internal in seconds.
- metrics Sequence[str]
- List of metrics used for availability calculation for the resource.
- collectionInterval NumberIn Seconds 
- Availability metric collection internal in seconds.
- metrics List<String>
- List of metrics used for availability calculation for the resource.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigArgs                    
- CollectdResource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config 
- Resource name generation overriding configurations for collectd resource types.
- CollectorTypes List<string>
- List of collector/plugin names.
- HandlerProperties List<MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property> 
- List of handler configuration properties
- MetricMappings List<MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping> 
- List of AgentExtensionHandlerMetricMappingDetails.
- MetricName MonitoredConfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config 
- Metric name generation overriding configurations.
- MetricUpload intInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- TelegrafResource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config 
- Resource name generation overriding configurations for telegraf resource types.
- TelemetryResource stringGroup 
- Resource group string; if not specified, the resource group string will be generated by the handler.
- CollectdResource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config 
- Resource name generation overriding configurations for collectd resource types.
- CollectorTypes []string
- List of collector/plugin names.
- HandlerProperties []MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property 
- List of handler configuration properties
- MetricMappings []MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping 
- List of AgentExtensionHandlerMetricMappingDetails.
- MetricName MonitoredConfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config 
- Metric name generation overriding configurations.
- MetricUpload intInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- TelegrafResource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config 
- Resource name generation overriding configurations for telegraf resource types.
- TelemetryResource stringGroup 
- Resource group string; if not specified, the resource group string will be generated by the handler.
- collectdResource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config 
- Resource name generation overriding configurations for collectd resource types.
- collectorTypes List<String>
- List of collector/plugin names.
- handlerProperties List<MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property> 
- List of handler configuration properties
- metricMappings List<MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping> 
- List of AgentExtensionHandlerMetricMappingDetails.
- metricName MonitoredConfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config 
- Metric name generation overriding configurations.
- metricUpload IntegerInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telegrafResource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config 
- Resource name generation overriding configurations for telegraf resource types.
- telemetryResource StringGroup 
- Resource group string; if not specified, the resource group string will be generated by the handler.
- collectdResource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config 
- Resource name generation overriding configurations for collectd resource types.
- collectorTypes string[]
- List of collector/plugin names.
- handlerProperties MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property[] 
- List of handler configuration properties
- metricMappings MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping[] 
- List of AgentExtensionHandlerMetricMappingDetails.
- metricName MonitoredConfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config 
- Metric name generation overriding configurations.
- metricUpload numberInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telegrafResource MonitoredName Config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config 
- Resource name generation overriding configurations for telegraf resource types.
- telemetryResource stringGroup 
- Resource group string; if not specified, the resource group string will be generated by the handler.
- collectd_resource_ Monitoredname_ config Resource Task Task Details Resource Types Configuration Handler Config Collectd Resource Name Config 
- Resource name generation overriding configurations for collectd resource types.
- collector_types Sequence[str]
- List of collector/plugin names.
- handler_properties Sequence[MonitoredResource Task Task Details Resource Types Configuration Handler Config Handler Property] 
- List of handler configuration properties
- metric_mappings Sequence[MonitoredResource Task Task Details Resource Types Configuration Handler Config Metric Mapping] 
- List of AgentExtensionHandlerMetricMappingDetails.
- metric_name_ Monitoredconfig Resource Task Task Details Resource Types Configuration Handler Config Metric Name Config 
- Metric name generation overriding configurations.
- metric_upload_ intinterval_ in_ seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telegraf_resource_ Monitoredname_ config Resource Task Task Details Resource Types Configuration Handler Config Telegraf Resource Name Config 
- Resource name generation overriding configurations for telegraf resource types.
- telemetry_resource_ strgroup 
- Resource group string; if not specified, the resource group string will be generated by the handler.
- collectdResource Property MapName Config 
- 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.
- metricName Property MapConfig 
- Metric name generation overriding configurations.
- metricUpload NumberInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telegrafResource Property MapName Config 
- Resource name generation overriding configurations for telegraf resource types.
- telemetryResource StringGroup 
- 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                        
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMapping, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricMappingArgs                        
- CollectorMetric stringName 
- Metric name as defined by the collector.
- IsSkip boolUpload 
- Is ignoring this metric.
- MetricUpload intInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- TelemetryMetric stringName 
- Metric name to be upload to telemetry.
- CollectorMetric stringName 
- Metric name as defined by the collector.
- IsSkip boolUpload 
- Is ignoring this metric.
- MetricUpload intInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- TelemetryMetric stringName 
- Metric name to be upload to telemetry.
- collectorMetric StringName 
- Metric name as defined by the collector.
- isSkip BooleanUpload 
- Is ignoring this metric.
- metricUpload IntegerInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telemetryMetric StringName 
- Metric name to be upload to telemetry.
- collectorMetric stringName 
- Metric name as defined by the collector.
- isSkip booleanUpload 
- Is ignoring this metric.
- metricUpload numberInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telemetryMetric stringName 
- Metric name to be upload to telemetry.
- collector_metric_ strname 
- Metric name as defined by the collector.
- is_skip_ boolupload 
- Is ignoring this metric.
- metric_upload_ intinterval_ in_ seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telemetry_metric_ strname 
- Metric name to be upload to telemetry.
- collectorMetric StringName 
- Metric name as defined by the collector.
- isSkip BooleanUpload 
- Is ignoring this metric.
- metricUpload NumberInterval In Seconds 
- Metric upload interval in seconds. Any metric sent by telegraf/collectd before the configured interval expires will be dropped.
- telemetryMetric StringName 
- Metric name to be upload to telemetry.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigMetricNameConfigArgs                          
- ExcludePattern stringOn Prefix 
- String pattern to be removed from the prefix of the metric name.
- IsPrefix boolWith Collector Type 
- is prefixing the metric with collector type.
- ExcludePattern stringOn Prefix 
- String pattern to be removed from the prefix of the metric name.
- IsPrefix boolWith Collector Type 
- is prefixing the metric with collector type.
- excludePattern StringOn Prefix 
- String pattern to be removed from the prefix of the metric name.
- isPrefix BooleanWith Collector Type 
- is prefixing the metric with collector type.
- excludePattern stringOn Prefix 
- String pattern to be removed from the prefix of the metric name.
- isPrefix booleanWith Collector Type 
- is prefixing the metric with collector type.
- exclude_pattern_ stron_ prefix 
- String pattern to be removed from the prefix of the metric name.
- is_prefix_ boolwith_ collector_ type 
- is prefixing the metric with collector type.
- excludePattern StringOn Prefix 
- String pattern to be removed from the prefix of the metric name.
- isPrefix BooleanWith Collector Type 
- is prefixing the metric with collector type.
MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfig, MonitoredResourceTaskTaskDetailsResourceTypesConfigurationHandlerConfigTelegrafResourceNameConfigArgs                            
- List<string>
- List of tag names to be excluded.
- List<string>
- List of tag names to be included.
- bool
- Flag to indicate if only tags will be used for resource name generation.
- []string
- List of tag names to be excluded.
- []string
- List of tag names to be included.
- bool
- Flag to indicate if only tags will be used for resource name generation.
- List<String>
- List of tag names to be excluded.
- List<String>
- List of tag names to be included.
- Boolean
- Flag to indicate if only tags will be used for resource name generation.
- string[]
- List of tag names to be excluded.
- string[]
- List of tag names to be included.
- boolean
- Flag to indicate if only tags will be used for resource name generation.
- Sequence[str]
- List of tag names to be excluded.
- Sequence[str]
- List of tag names to be included.
- bool
- Flag to indicate if only tags will be used for resource name generation.
- List<String>
- List of tag names to be excluded.
- List<String>
- List of tag names to be included.
- Boolean
- Flag to indicate if only tags will be used for resource name generation.
Import
MonitoredResourceTasks can be imported using the id, e.g.
$ pulumi import oci:StackMonitoring/monitoredResourceTask:MonitoredResourceTask test_monitored_resource_task "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.