1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. MonitoredResourceTask
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.StackMonitoring.MonitoredResourceTask

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Monitored Resource Task resource in Oracle Cloud Infrastructure Stack Monitoring service.

    Create a new stack monitoring resource task.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMonitoredResourceTask = new oci.stackmonitoring.MonitoredResourceTask("test_monitored_resource_task", {
        compartmentId: compartmentId,
        taskDetails: {
            namespace: monitoredResourceTaskTaskDetailsNamespace,
            source: monitoredResourceTaskTaskDetailsSource,
            type: monitoredResourceTaskTaskDetailsType,
            availabilityProxyMetricCollectionInterval: monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval,
            availabilityProxyMetrics: monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics,
            consolePathPrefix: monitoredResourceTaskTaskDetailsConsolePathPrefix,
            externalIdMapping: monitoredResourceTaskTaskDetailsExternalIdMapping,
            lifecycleStatusMappingsForUpStatuses: monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus,
            resourceGroup: monitoredResourceTaskTaskDetailsResourceGroup,
            resourceNameFilter: monitoredResourceTaskTaskDetailsResourceNameFilter,
            resourceNameMapping: monitoredResourceTaskTaskDetailsResourceNameMapping,
            resourceTypeFilter: monitoredResourceTaskTaskDetailsResourceTypeFilter,
            resourceTypeMapping: monitoredResourceTaskTaskDetailsResourceTypeMapping,
            serviceBaseUrl: monitoredResourceTaskTaskDetailsServiceBaseUrl,
            shouldUseMetricsFlowForStatus: monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus,
        },
        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={
            "namespace": monitored_resource_task_task_details_namespace,
            "source": monitored_resource_task_task_details_source,
            "type": monitored_resource_task_task_details_type,
            "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,
            "lifecycle_status_mappings_for_up_statuses": monitored_resource_task_task_details_lifecycle_status_mappings_for_up_status,
            "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,
            "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,
        },
        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{
    				Namespace: pulumi.Any(monitoredResourceTaskTaskDetailsNamespace),
    				Source:    pulumi.Any(monitoredResourceTaskTaskDetailsSource),
    				Type:      pulumi.Any(monitoredResourceTaskTaskDetailsType),
    				AvailabilityProxyMetricCollectionInterval: pulumi.Any(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval),
    				AvailabilityProxyMetrics:                  pulumi.Any(monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics),
    				ConsolePathPrefix:                         pulumi.Any(monitoredResourceTaskTaskDetailsConsolePathPrefix),
    				ExternalIdMapping:                         pulumi.Any(monitoredResourceTaskTaskDetailsExternalIdMapping),
    				LifecycleStatusMappingsForUpStatuses:      pulumi.Any(monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus),
    				ResourceGroup:                             pulumi.Any(monitoredResourceTaskTaskDetailsResourceGroup),
    				ResourceNameFilter:                        pulumi.Any(monitoredResourceTaskTaskDetailsResourceNameFilter),
    				ResourceNameMapping:                       pulumi.Any(monitoredResourceTaskTaskDetailsResourceNameMapping),
    				ResourceTypeFilter:                        pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypeFilter),
    				ResourceTypeMapping:                       pulumi.Any(monitoredResourceTaskTaskDetailsResourceTypeMapping),
    				ServiceBaseUrl:                            pulumi.Any(monitoredResourceTaskTaskDetailsServiceBaseUrl),
    				ShouldUseMetricsFlowForStatus:             pulumi.Any(monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus),
    			},
    			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
            {
                Namespace = monitoredResourceTaskTaskDetailsNamespace,
                Source = monitoredResourceTaskTaskDetailsSource,
                Type = monitoredResourceTaskTaskDetailsType,
                AvailabilityProxyMetricCollectionInterval = monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval,
                AvailabilityProxyMetrics = monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics,
                ConsolePathPrefix = monitoredResourceTaskTaskDetailsConsolePathPrefix,
                ExternalIdMapping = monitoredResourceTaskTaskDetailsExternalIdMapping,
                LifecycleStatusMappingsForUpStatuses = monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus,
                ResourceGroup = monitoredResourceTaskTaskDetailsResourceGroup,
                ResourceNameFilter = monitoredResourceTaskTaskDetailsResourceNameFilter,
                ResourceNameMapping = monitoredResourceTaskTaskDetailsResourceNameMapping,
                ResourceTypeFilter = monitoredResourceTaskTaskDetailsResourceTypeFilter,
                ResourceTypeMapping = monitoredResourceTaskTaskDetailsResourceTypeMapping,
                ServiceBaseUrl = monitoredResourceTaskTaskDetailsServiceBaseUrl,
                ShouldUseMetricsFlowForStatus = monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus,
            },
            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 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()
                    .namespace(monitoredResourceTaskTaskDetailsNamespace)
                    .source(monitoredResourceTaskTaskDetailsSource)
                    .type(monitoredResourceTaskTaskDetailsType)
                    .availabilityProxyMetricCollectionInterval(monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval)
                    .availabilityProxyMetrics(monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics)
                    .consolePathPrefix(monitoredResourceTaskTaskDetailsConsolePathPrefix)
                    .externalIdMapping(monitoredResourceTaskTaskDetailsExternalIdMapping)
                    .lifecycleStatusMappingsForUpStatuses(monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus)
                    .resourceGroup(monitoredResourceTaskTaskDetailsResourceGroup)
                    .resourceNameFilter(monitoredResourceTaskTaskDetailsResourceNameFilter)
                    .resourceNameMapping(monitoredResourceTaskTaskDetailsResourceNameMapping)
                    .resourceTypeFilter(monitoredResourceTaskTaskDetailsResourceTypeFilter)
                    .resourceTypeMapping(monitoredResourceTaskTaskDetailsResourceTypeMapping)
                    .serviceBaseUrl(monitoredResourceTaskTaskDetailsServiceBaseUrl)
                    .shouldUseMetricsFlowForStatus(monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus)
                    .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:
            namespace: ${monitoredResourceTaskTaskDetailsNamespace}
            source: ${monitoredResourceTaskTaskDetailsSource}
            type: ${monitoredResourceTaskTaskDetailsType}
            availabilityProxyMetricCollectionInterval: ${monitoredResourceTaskTaskDetailsAvailabilityProxyMetricCollectionInterval}
            availabilityProxyMetrics: ${monitoredResourceTaskTaskDetailsAvailabilityProxyMetrics}
            consolePathPrefix: ${monitoredResourceTaskTaskDetailsConsolePathPrefix}
            externalIdMapping: ${monitoredResourceTaskTaskDetailsExternalIdMapping}
            lifecycleStatusMappingsForUpStatuses: ${monitoredResourceTaskTaskDetailsLifecycleStatusMappingsForUpStatus}
            resourceGroup: ${monitoredResourceTaskTaskDetailsResourceGroup}
            resourceNameFilter: ${monitoredResourceTaskTaskDetailsResourceNameFilter}
            resourceNameMapping: ${monitoredResourceTaskTaskDetailsResourceNameMapping}
            resourceTypeFilter: ${monitoredResourceTaskTaskDetailsResourceTypeFilter}
            resourceTypeMapping: ${monitoredResourceTaskTaskDetailsResourceTypeMapping}
            serviceBaseUrl: ${monitoredResourceTaskTaskDetailsServiceBaseUrl}
            shouldUseMetricsFlowForStatus: ${monitoredResourceTaskTaskDetailsShouldUseMetricsFlowForStatus}
          definedTags:
            foo-namespace.bar-key: value
          freeformTags:
            bar-key: value
          name: ${monitoredResourceTaskName}
    

    Create MonitoredResourceTask Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MonitoredResourceTask(name: string, args: MonitoredResourceTaskArgs, opts?: CustomResourceOptions);
    @overload
    def MonitoredResourceTask(resource_name: str,
                              args: MonitoredResourceTaskArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def MonitoredResourceTask(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              compartment_id: Optional[str] = None,
                              task_details: Optional[_stackmonitoring.MonitoredResourceTaskTaskDetailsArgs] = None,
                              defined_tags: Optional[Mapping[str, str]] = None,
                              freeform_tags: Optional[Mapping[str, str]] = None,
                              name: Optional[str] = None)
    func NewMonitoredResourceTask(ctx *Context, name string, args MonitoredResourceTaskArgs, opts ...ResourceOption) (*MonitoredResourceTask, error)
    public MonitoredResourceTask(string name, MonitoredResourceTaskArgs args, CustomResourceOptions? opts = null)
    public MonitoredResourceTask(String name, MonitoredResourceTaskArgs args)
    public MonitoredResourceTask(String name, MonitoredResourceTaskArgs args, CustomResourceOptions options)
    
    type: oci:StackMonitoring:MonitoredResourceTask
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MonitoredResourceTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MonitoredResourceTaskArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MonitoredResourceTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MonitoredResourceTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MonitoredResourceTaskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var monitoredResourceTaskResource = new Oci.StackMonitoring.MonitoredResourceTask("monitoredResourceTaskResource", new()
    {
        CompartmentId = "string",
        TaskDetails = new Oci.StackMonitoring.Inputs.MonitoredResourceTaskTaskDetailsArgs
        {
            Namespace = "string",
            Type = "string",
            Source = "string",
            ResourceGroup = "string",
            LifecycleStatusMappingsForUpStatuses = new[]
            {
                "string",
            },
            ExternalIdMapping = "string",
            AvailabilityProxyMetricCollectionInterval = 0,
            ResourceNameFilter = "string",
            ResourceNameMapping = "string",
            ResourceTypeFilter = "string",
            ResourceTypeMapping = "string",
            ServiceBaseUrl = "string",
            ShouldUseMetricsFlowForStatus = false,
            ConsolePathPrefix = "string",
            AvailabilityProxyMetrics = new[]
            {
                "string",
            },
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
        Name = "string",
    });
    
    example, err := StackMonitoring.NewMonitoredResourceTask(ctx, "monitoredResourceTaskResource", &StackMonitoring.MonitoredResourceTaskArgs{
    	CompartmentId: pulumi.String("string"),
    	TaskDetails: &stackmonitoring.MonitoredResourceTaskTaskDetailsArgs{
    		Namespace:     pulumi.String("string"),
    		Type:          pulumi.String("string"),
    		Source:        pulumi.String("string"),
    		ResourceGroup: pulumi.String("string"),
    		LifecycleStatusMappingsForUpStatuses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ExternalIdMapping:                         pulumi.String("string"),
    		AvailabilityProxyMetricCollectionInterval: pulumi.Int(0),
    		ResourceNameFilter:                        pulumi.String("string"),
    		ResourceNameMapping:                       pulumi.String("string"),
    		ResourceTypeFilter:                        pulumi.String("string"),
    		ResourceTypeMapping:                       pulumi.String("string"),
    		ServiceBaseUrl:                            pulumi.String("string"),
    		ShouldUseMetricsFlowForStatus:             pulumi.Bool(false),
    		ConsolePathPrefix:                         pulumi.String("string"),
    		AvailabilityProxyMetrics: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	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()
            .namespace("string")
            .type("string")
            .source("string")
            .resourceGroup("string")
            .lifecycleStatusMappingsForUpStatuses("string")
            .externalIdMapping("string")
            .availabilityProxyMetricCollectionInterval(0)
            .resourceNameFilter("string")
            .resourceNameMapping("string")
            .resourceTypeFilter("string")
            .resourceTypeMapping("string")
            .serviceBaseUrl("string")
            .shouldUseMetricsFlowForStatus(false)
            .consolePathPrefix("string")
            .availabilityProxyMetrics("string")
            .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={
            "namespace": "string",
            "type": "string",
            "source": "string",
            "resource_group": "string",
            "lifecycle_status_mappings_for_up_statuses": ["string"],
            "external_id_mapping": "string",
            "availability_proxy_metric_collection_interval": 0,
            "resource_name_filter": "string",
            "resource_name_mapping": "string",
            "resource_type_filter": "string",
            "resource_type_mapping": "string",
            "service_base_url": "string",
            "should_use_metrics_flow_for_status": False,
            "console_path_prefix": "string",
            "availability_proxy_metrics": ["string"],
        },
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        },
        name="string")
    
    const monitoredResourceTaskResource = new oci.stackmonitoring.MonitoredResourceTask("monitoredResourceTaskResource", {
        compartmentId: "string",
        taskDetails: {
            namespace: "string",
            type: "string",
            source: "string",
            resourceGroup: "string",
            lifecycleStatusMappingsForUpStatuses: ["string"],
            externalIdMapping: "string",
            availabilityProxyMetricCollectionInterval: 0,
            resourceNameFilter: "string",
            resourceNameMapping: "string",
            resourceTypeFilter: "string",
            resourceTypeMapping: "string",
            serviceBaseUrl: "string",
            shouldUseMetricsFlowForStatus: false,
            consolePathPrefix: "string",
            availabilityProxyMetrics: ["string"],
        },
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
        name: "string",
    });
    
    type: oci:StackMonitoring:MonitoredResourceTask
    properties:
        compartmentId: string
        definedTags:
            string: string
        freeformTags:
            string: string
        name: string
        taskDetails:
            availabilityProxyMetricCollectionInterval: 0
            availabilityProxyMetrics:
                - string
            consolePathPrefix: string
            externalIdMapping: string
            lifecycleStatusMappingsForUpStatuses:
                - string
            namespace: string
            resourceGroup: string
            resourceNameFilter: string
            resourceNameMapping: string
            resourceTypeFilter: string
            resourceTypeMapping: string
            serviceBaseUrl: string
            shouldUseMetricsFlowForStatus: false
            source: string
            type: string
    

    MonitoredResourceTask Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MonitoredResourceTask resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment identifier.
    TaskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Name string
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    CompartmentId string
    (Updatable) The OCID of the compartment identifier.
    TaskDetails MonitoredResourceTaskTaskDetailsArgs
    The request details for the performing the task.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Name string
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    compartmentId String
    (Updatable) The OCID of the compartment identifier.
    taskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name String
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    compartmentId string
    (Updatable) The OCID of the compartment identifier.
    taskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name string
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    compartment_id str
    (Updatable) The OCID of the compartment identifier.
    task_details stackmonitoring.MonitoredResourceTaskTaskDetailsArgs
    The request details for the performing the task.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name str
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    compartmentId String
    (Updatable) The OCID of the compartment identifier.
    taskDetails Property Map
    The request details for the performing the task.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name String
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MonitoredResourceTask resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the stack monitoring resource task.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenantId string
    The OCID of the tenancy.
    TimeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    WorkRequestIds List<string>
    Identifiers OCID for work requests submitted for this task.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current state of the stack monitoring resource task.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TenantId string
    The OCID of the tenancy.
    TimeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    WorkRequestIds []string
    Identifiers OCID for work requests submitted for this task.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the stack monitoring resource task.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String
    The OCID of the tenancy.
    timeCreated String
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    workRequestIds List<String>
    Identifiers OCID for work requests submitted for this task.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current state of the stack monitoring resource task.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId string
    The OCID of the tenancy.
    timeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated string
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    workRequestIds string[]
    Identifiers OCID for work requests submitted for this task.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current state of the stack monitoring resource task.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenant_id str
    The OCID of the tenancy.
    time_created str
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    time_updated str
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    work_request_ids Sequence[str]
    Identifiers OCID for work requests submitted for this task.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current state of the stack monitoring resource task.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String
    The OCID of the tenancy.
    timeCreated String
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    workRequestIds List<String>
    Identifiers OCID for work requests submitted for this task.

    Look up Existing MonitoredResourceTask Resource

    Get an existing MonitoredResourceTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MonitoredResourceTaskState, opts?: CustomResourceOptions): MonitoredResourceTask
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            task_details: Optional[_stackmonitoring.MonitoredResourceTaskTaskDetailsArgs] = None,
            tenant_id: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            work_request_ids: Optional[Sequence[str]] = None) -> MonitoredResourceTask
    func GetMonitoredResourceTask(ctx *Context, name string, id IDInput, state *MonitoredResourceTaskState, opts ...ResourceOption) (*MonitoredResourceTask, error)
    public static MonitoredResourceTask Get(string name, Input<string> id, MonitoredResourceTaskState? state, CustomResourceOptions? opts = null)
    public static MonitoredResourceTask get(String name, Output<String> id, MonitoredResourceTaskState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment identifier.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Name string
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    State string
    The current state of the stack monitoring resource task.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TaskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    TenantId string
    The OCID of the tenancy.
    TimeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    WorkRequestIds List<string>
    Identifiers OCID for work requests submitted for this task.
    CompartmentId string
    (Updatable) The OCID of the compartment identifier.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Name string
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    State string
    The current state of the stack monitoring resource task.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TaskDetails MonitoredResourceTaskTaskDetailsArgs
    The request details for the performing the task.
    TenantId string
    The OCID of the tenancy.
    TimeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    TimeUpdated string
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    WorkRequestIds []string
    Identifiers OCID for work requests submitted for this task.
    compartmentId String
    (Updatable) The OCID of the compartment identifier.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name String
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    state String
    The current state of the stack monitoring resource task.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    tenantId String
    The OCID of the tenancy.
    timeCreated String
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    workRequestIds List<String>
    Identifiers OCID for work requests submitted for this task.
    compartmentId string
    (Updatable) The OCID of the compartment identifier.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name string
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    state string
    The current state of the stack monitoring resource task.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskDetails MonitoredResourceTaskTaskDetails
    The request details for the performing the task.
    tenantId string
    The OCID of the tenancy.
    timeCreated string
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated string
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    workRequestIds string[]
    Identifiers OCID for work requests submitted for this task.
    compartment_id str
    (Updatable) The OCID of the compartment identifier.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name str
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    state str
    The current state of the stack monitoring resource task.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    task_details stackmonitoring.MonitoredResourceTaskTaskDetailsArgs
    The request details for the performing the task.
    tenant_id str
    The OCID of the tenancy.
    time_created str
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    time_updated str
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    work_request_ids Sequence[str]
    Identifiers OCID for work requests submitted for this task.
    compartmentId String
    (Updatable) The OCID of the compartment identifier.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    name String
    Name of the task. If not provided by default the following names will be taken Oracle Cloud Infrastructure tasks - namespace plus timestamp.
    state String
    The current state of the stack monitoring resource task.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskDetails Property Map
    The request details for the performing the task.
    tenantId String
    The OCID of the tenancy.
    timeCreated String
    The date and time when the stack monitoring resource task was created, expressed in RFC 3339 timestamp format.
    timeUpdated String
    The date and time when the stack monitoring resource task was last updated, expressed in RFC 3339 timestamp format.
    workRequestIds List<String>
    Identifiers OCID for work requests submitted for this task.

    Supporting Types

    MonitoredResourceTaskTaskDetails, MonitoredResourceTaskTaskDetailsArgs

    Namespace string
    Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
    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.
    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

    AvailabilityProxyMetricCollectionInterval int
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    AvailabilityProxyMetrics List<string>
    List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
    ConsolePathPrefix string
    The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
    ExternalIdMapping string
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    LifecycleStatusMappingsForUpStatuses List<string>
    Lifecycle states of the external resource which reflects the status of the resource being up.
    ResourceGroup string
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    ResourceNameFilter string
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    ResourceNameMapping string
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    ResourceTypeFilter string
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    ResourceTypeMapping string
    The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
    ServiceBaseUrl string
    The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
    ShouldUseMetricsFlowForStatus bool
    Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
    Namespace string
    Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
    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.
    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

    AvailabilityProxyMetricCollectionInterval int
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    AvailabilityProxyMetrics []string
    List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
    ConsolePathPrefix string
    The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
    ExternalIdMapping string
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    LifecycleStatusMappingsForUpStatuses []string
    Lifecycle states of the external resource which reflects the status of the resource being up.
    ResourceGroup string
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    ResourceNameFilter string
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    ResourceNameMapping string
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    ResourceTypeFilter string
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    ResourceTypeMapping string
    The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
    ServiceBaseUrl string
    The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
    ShouldUseMetricsFlowForStatus bool
    Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
    namespace String
    Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
    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.
    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

    availabilityProxyMetricCollectionInterval Integer
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    availabilityProxyMetrics List<String>
    List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
    consolePathPrefix String
    The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
    externalIdMapping String
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    lifecycleStatusMappingsForUpStatuses List<String>
    Lifecycle states of the external resource which reflects the status of the resource being up.
    resourceGroup String
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    resourceNameFilter String
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    resourceNameMapping String
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    resourceTypeFilter String
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    resourceTypeMapping String
    The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
    serviceBaseUrl String
    The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
    shouldUseMetricsFlowForStatus Boolean
    Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
    namespace string
    Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
    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.
    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

    availabilityProxyMetricCollectionInterval number
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    availabilityProxyMetrics string[]
    List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
    consolePathPrefix string
    The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
    externalIdMapping string
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    lifecycleStatusMappingsForUpStatuses string[]
    Lifecycle states of the external resource which reflects the status of the resource being up.
    resourceGroup string
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    resourceNameFilter string
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    resourceNameMapping string
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    resourceTypeFilter string
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    resourceTypeMapping string
    The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
    serviceBaseUrl string
    The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
    shouldUseMetricsFlowForStatus boolean
    Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
    namespace str
    Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
    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.
    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

    availability_proxy_metric_collection_interval int
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    availability_proxy_metrics Sequence[str]
    List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
    console_path_prefix str
    The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
    external_id_mapping str
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    lifecycle_status_mappings_for_up_statuses Sequence[str]
    Lifecycle states of the external resource which reflects the status of the resource being up.
    resource_group str
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    resource_name_filter str
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    resource_name_mapping str
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    resource_type_filter str
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    resource_type_mapping str
    The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
    service_base_url str
    The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
    should_use_metrics_flow_for_status bool
    Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.
    namespace String
    Name space to be used for Oracle Cloud Infrastructure Native service resources discovery.
    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.
    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

    availabilityProxyMetricCollectionInterval Number
    Metrics collection interval in seconds used when calculating the availability of the resource based on metrics specified using the property 'availabilityProxyMetrics'.
    availabilityProxyMetrics List<String>
    List of metrics to be used to calculate the availability of the resource. Resource is considered to be up if at least one of the specified metrics is available for the resource during the specified interval using the property 'availabilityProxyMetricCollectionIntervalInSeconds'. If no metrics are specified, availability will not be calculated for the resource.
    consolePathPrefix String
    The console path prefix to use for providing service home url page navigation. For example if the prefix provided is 'security/bastion/bastions', the URL used for navigation will be https:///security/bastion/bastions/. If not provided, service home page link will not be shown in the stack monitoring home page.
    externalIdMapping String
    The external resource identifier property in the metric dimensions. Resources imported will be using this property value for external id.
    lifecycleStatusMappingsForUpStatuses List<String>
    Lifecycle states of the external resource which reflects the status of the resource being up.
    resourceGroup String
    The resource group to use while fetching metrics from telemetry. If not specified, resource group will be skipped in the list metrics request.
    resourceNameFilter String
    The resource name filter. Resources matching with the resource name filter will be imported. Regular expressions will be accepted.
    resourceNameMapping String
    The resource name property in the metric dimensions. Resources imported will be using this property value for resource name.
    resourceTypeFilter String
    The resource type filter. Resources matching with the resource type filter will be imported. Regular expressions will be accepted.
    resourceTypeMapping String
    The resource type property in the metric dimensions. Resources imported will be using this property value for resource type. If not specified, namespace will be used for resource type.
    serviceBaseUrl String
    The base URL of the Oracle Cloud Infrastructure service to which the resource belongs to. Also this property is applicable only when source is OCI_TELEMETRY_NATIVE.
    shouldUseMetricsFlowForStatus Boolean
    Flag to indicate whether status is calculated using metrics or LifeCycleState attribute of the resource in Oracle Cloud Infrastructure service.

    Import

    MonitoredResourceTasks can be imported using the id, e.g.

    $ pulumi import oci:StackMonitoring/monitoredResourceTask:MonitoredResourceTask test_monitored_resource_task "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi