1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LogAnalytics
  5. NamespaceScheduledTask
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi

    This resource provides the Namespace Scheduled Task resource in Oracle Cloud Infrastructure Log Analytics service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/logan-api-spec/latest/NamespaceScheduledTask

    Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/log_analytics

    Schedule a task as specified and return task info.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNamespaceScheduledTask = new oci.loganalytics.NamespaceScheduledTask("test_namespace_scheduled_task", {
        compartmentId: compartmentId,
        kind: namespaceScheduledTaskKind,
        namespace: namespaceScheduledTaskNamespace,
        action: {
            type: namespaceScheduledTaskActionType,
            compartmentIdInSubtree: namespaceScheduledTaskActionCompartmentIdInSubtree,
            dataType: namespaceScheduledTaskActionDataType,
            metricExtraction: {
                compartmentId: compartmentId,
                metricCollections: [{
                    dimensions: [{
                        dimensionName: namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsDimensionName,
                        queryFieldName: namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsQueryFieldName,
                    }],
                    metricName: testMetric.name,
                    metricQueryFieldName: namespaceScheduledTaskActionMetricExtractionMetricCollectionsMetricQueryFieldName,
                    queryTableName: testTable.name,
                }],
                metricName: testMetric.name,
                namespace: namespaceScheduledTaskActionMetricExtractionNamespace,
                resourceGroup: namespaceScheduledTaskActionMetricExtractionResourceGroup,
            },
            purgeCompartmentId: testCompartment.id,
            purgeDuration: namespaceScheduledTaskActionPurgeDuration,
            queryString: namespaceScheduledTaskActionQueryString,
            savedSearchId: testSavedSearch.id,
            templateDetails: {
                templateId: testTemplate.id,
                templateParams: [{
                    keyField: namespaceScheduledTaskActionTemplateDetailsTemplateParamsKeyField,
                    valueField: namespaceScheduledTaskActionTemplateDetailsTemplateParamsValueField,
                }],
            },
        },
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        description: namespaceScheduledTaskDescription,
        displayName: namespaceScheduledTaskDisplayName,
        freeformTags: {
            "bar-key": "value",
        },
        savedSearchId: testSavedSearch.id,
        schedules: {
            type: namespaceScheduledTaskSchedulesType,
            expression: namespaceScheduledTaskSchedulesExpression,
            misfirePolicy: namespaceScheduledTaskSchedulesMisfirePolicy,
            queryOffsetSecs: namespaceScheduledTaskSchedulesQueryOffsetSecs,
            recurringInterval: namespaceScheduledTaskSchedulesRecurringInterval,
            repeatCount: namespaceScheduledTaskSchedulesRepeatCount,
            timeEnd: namespaceScheduledTaskSchedulesTimeEnd,
            timeZone: namespaceScheduledTaskSchedulesTimeZone,
        },
        taskType: namespaceScheduledTaskTaskType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_namespace_scheduled_task = oci.loganalytics.NamespaceScheduledTask("test_namespace_scheduled_task",
        compartment_id=compartment_id,
        kind=namespace_scheduled_task_kind,
        namespace=namespace_scheduled_task_namespace,
        action={
            "type": namespace_scheduled_task_action_type,
            "compartment_id_in_subtree": namespace_scheduled_task_action_compartment_id_in_subtree,
            "data_type": namespace_scheduled_task_action_data_type,
            "metric_extraction": {
                "compartment_id": compartment_id,
                "metric_collections": [{
                    "dimensions": [{
                        "dimension_name": namespace_scheduled_task_action_metric_extraction_metric_collections_dimensions_dimension_name,
                        "query_field_name": namespace_scheduled_task_action_metric_extraction_metric_collections_dimensions_query_field_name,
                    }],
                    "metric_name": test_metric["name"],
                    "metric_query_field_name": namespace_scheduled_task_action_metric_extraction_metric_collections_metric_query_field_name,
                    "query_table_name": test_table["name"],
                }],
                "metric_name": test_metric["name"],
                "namespace": namespace_scheduled_task_action_metric_extraction_namespace,
                "resource_group": namespace_scheduled_task_action_metric_extraction_resource_group,
            },
            "purge_compartment_id": test_compartment["id"],
            "purge_duration": namespace_scheduled_task_action_purge_duration,
            "query_string": namespace_scheduled_task_action_query_string,
            "saved_search_id": test_saved_search["id"],
            "template_details": {
                "template_id": test_template["id"],
                "template_params": [{
                    "key_field": namespace_scheduled_task_action_template_details_template_params_key_field,
                    "value_field": namespace_scheduled_task_action_template_details_template_params_value_field,
                }],
            },
        },
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        description=namespace_scheduled_task_description,
        display_name=namespace_scheduled_task_display_name,
        freeform_tags={
            "bar-key": "value",
        },
        saved_search_id=test_saved_search["id"],
        schedules={
            "type": namespace_scheduled_task_schedules_type,
            "expression": namespace_scheduled_task_schedules_expression,
            "misfire_policy": namespace_scheduled_task_schedules_misfire_policy,
            "query_offset_secs": namespace_scheduled_task_schedules_query_offset_secs,
            "recurring_interval": namespace_scheduled_task_schedules_recurring_interval,
            "repeat_count": namespace_scheduled_task_schedules_repeat_count,
            "time_end": namespace_scheduled_task_schedules_time_end,
            "time_zone": namespace_scheduled_task_schedules_time_zone,
        },
        task_type=namespace_scheduled_task_task_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/loganalytics"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := loganalytics.NewNamespaceScheduledTask(ctx, "test_namespace_scheduled_task", &loganalytics.NamespaceScheduledTaskArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			Kind:          pulumi.Any(namespaceScheduledTaskKind),
    			Namespace:     pulumi.Any(namespaceScheduledTaskNamespace),
    			Action: &loganalytics.NamespaceScheduledTaskActionArgs{
    				Type:                   pulumi.Any(namespaceScheduledTaskActionType),
    				CompartmentIdInSubtree: pulumi.Any(namespaceScheduledTaskActionCompartmentIdInSubtree),
    				DataType:               pulumi.Any(namespaceScheduledTaskActionDataType),
    				MetricExtraction: &loganalytics.NamespaceScheduledTaskActionMetricExtractionArgs{
    					CompartmentId: pulumi.Any(compartmentId),
    					MetricCollections: loganalytics.NamespaceScheduledTaskActionMetricExtractionMetricCollectionArray{
    						&loganalytics.NamespaceScheduledTaskActionMetricExtractionMetricCollectionArgs{
    							Dimensions: loganalytics.NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArray{
    								&loganalytics.NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArgs{
    									DimensionName:  pulumi.Any(namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsDimensionName),
    									QueryFieldName: pulumi.Any(namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsQueryFieldName),
    								},
    							},
    							MetricName:           pulumi.Any(testMetric.Name),
    							MetricQueryFieldName: pulumi.Any(namespaceScheduledTaskActionMetricExtractionMetricCollectionsMetricQueryFieldName),
    							QueryTableName:       pulumi.Any(testTable.Name),
    						},
    					},
    					MetricName:    pulumi.Any(testMetric.Name),
    					Namespace:     pulumi.Any(namespaceScheduledTaskActionMetricExtractionNamespace),
    					ResourceGroup: pulumi.Any(namespaceScheduledTaskActionMetricExtractionResourceGroup),
    				},
    				PurgeCompartmentId: pulumi.Any(testCompartment.Id),
    				PurgeDuration:      pulumi.Any(namespaceScheduledTaskActionPurgeDuration),
    				QueryString:        pulumi.Any(namespaceScheduledTaskActionQueryString),
    				SavedSearchId:      pulumi.Any(testSavedSearch.Id),
    				TemplateDetails: &loganalytics.NamespaceScheduledTaskActionTemplateDetailsArgs{
    					TemplateId: pulumi.Any(testTemplate.Id),
    					TemplateParams: loganalytics.NamespaceScheduledTaskActionTemplateDetailsTemplateParamArray{
    						&loganalytics.NamespaceScheduledTaskActionTemplateDetailsTemplateParamArgs{
    							KeyField:   pulumi.Any(namespaceScheduledTaskActionTemplateDetailsTemplateParamsKeyField),
    							ValueField: pulumi.Any(namespaceScheduledTaskActionTemplateDetailsTemplateParamsValueField),
    						},
    					},
    				},
    			},
    			DefinedTags: pulumi.StringMap{
    				"foo-namespace.bar-key": pulumi.String("value"),
    			},
    			Description: pulumi.Any(namespaceScheduledTaskDescription),
    			DisplayName: pulumi.Any(namespaceScheduledTaskDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"bar-key": pulumi.String("value"),
    			},
    			SavedSearchId: pulumi.Any(testSavedSearch.Id),
    			Schedules: &loganalytics.NamespaceScheduledTaskSchedulesArgs{
    				Type:              namespaceScheduledTaskSchedulesType,
    				Expression:        namespaceScheduledTaskSchedulesExpression,
    				MisfirePolicy:     namespaceScheduledTaskSchedulesMisfirePolicy,
    				QueryOffsetSecs:   namespaceScheduledTaskSchedulesQueryOffsetSecs,
    				RecurringInterval: namespaceScheduledTaskSchedulesRecurringInterval,
    				RepeatCount:       namespaceScheduledTaskSchedulesRepeatCount,
    				TimeEnd:           namespaceScheduledTaskSchedulesTimeEnd,
    				TimeZone:          namespaceScheduledTaskSchedulesTimeZone,
    			},
    			TaskType: pulumi.Any(namespaceScheduledTaskTaskType),
    		})
    		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 testNamespaceScheduledTask = new Oci.LogAnalytics.NamespaceScheduledTask("test_namespace_scheduled_task", new()
        {
            CompartmentId = compartmentId,
            Kind = namespaceScheduledTaskKind,
            Namespace = namespaceScheduledTaskNamespace,
            Action = new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionArgs
            {
                Type = namespaceScheduledTaskActionType,
                CompartmentIdInSubtree = namespaceScheduledTaskActionCompartmentIdInSubtree,
                DataType = namespaceScheduledTaskActionDataType,
                MetricExtraction = new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionMetricExtractionArgs
                {
                    CompartmentId = compartmentId,
                    MetricCollections = new[]
                    {
                        new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionMetricExtractionMetricCollectionArgs
                        {
                            Dimensions = new[]
                            {
                                new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArgs
                                {
                                    DimensionName = namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsDimensionName,
                                    QueryFieldName = namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsQueryFieldName,
                                },
                            },
                            MetricName = testMetric.Name,
                            MetricQueryFieldName = namespaceScheduledTaskActionMetricExtractionMetricCollectionsMetricQueryFieldName,
                            QueryTableName = testTable.Name,
                        },
                    },
                    MetricName = testMetric.Name,
                    Namespace = namespaceScheduledTaskActionMetricExtractionNamespace,
                    ResourceGroup = namespaceScheduledTaskActionMetricExtractionResourceGroup,
                },
                PurgeCompartmentId = testCompartment.Id,
                PurgeDuration = namespaceScheduledTaskActionPurgeDuration,
                QueryString = namespaceScheduledTaskActionQueryString,
                SavedSearchId = testSavedSearch.Id,
                TemplateDetails = new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionTemplateDetailsArgs
                {
                    TemplateId = testTemplate.Id,
                    TemplateParams = new[]
                    {
                        new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionTemplateDetailsTemplateParamArgs
                        {
                            KeyField = namespaceScheduledTaskActionTemplateDetailsTemplateParamsKeyField,
                            ValueField = namespaceScheduledTaskActionTemplateDetailsTemplateParamsValueField,
                        },
                    },
                },
            },
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            Description = namespaceScheduledTaskDescription,
            DisplayName = namespaceScheduledTaskDisplayName,
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
            SavedSearchId = testSavedSearch.Id,
            Schedules = new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskSchedulesArgs
            {
                Type = namespaceScheduledTaskSchedulesType,
                Expression = namespaceScheduledTaskSchedulesExpression,
                MisfirePolicy = namespaceScheduledTaskSchedulesMisfirePolicy,
                QueryOffsetSecs = namespaceScheduledTaskSchedulesQueryOffsetSecs,
                RecurringInterval = namespaceScheduledTaskSchedulesRecurringInterval,
                RepeatCount = namespaceScheduledTaskSchedulesRepeatCount,
                TimeEnd = namespaceScheduledTaskSchedulesTimeEnd,
                TimeZone = namespaceScheduledTaskSchedulesTimeZone,
            },
            TaskType = namespaceScheduledTaskTaskType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.LogAnalytics.NamespaceScheduledTask;
    import com.pulumi.oci.LogAnalytics.NamespaceScheduledTaskArgs;
    import com.pulumi.oci.LogAnalytics.inputs.NamespaceScheduledTaskActionArgs;
    import com.pulumi.oci.LogAnalytics.inputs.NamespaceScheduledTaskActionMetricExtractionArgs;
    import com.pulumi.oci.LogAnalytics.inputs.NamespaceScheduledTaskActionTemplateDetailsArgs;
    import com.pulumi.oci.LogAnalytics.inputs.NamespaceScheduledTaskSchedulesArgs;
    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 testNamespaceScheduledTask = new NamespaceScheduledTask("testNamespaceScheduledTask", NamespaceScheduledTaskArgs.builder()
                .compartmentId(compartmentId)
                .kind(namespaceScheduledTaskKind)
                .namespace(namespaceScheduledTaskNamespace)
                .action(NamespaceScheduledTaskActionArgs.builder()
                    .type(namespaceScheduledTaskActionType)
                    .compartmentIdInSubtree(namespaceScheduledTaskActionCompartmentIdInSubtree)
                    .dataType(namespaceScheduledTaskActionDataType)
                    .metricExtraction(NamespaceScheduledTaskActionMetricExtractionArgs.builder()
                        .compartmentId(compartmentId)
                        .metricCollections(NamespaceScheduledTaskActionMetricExtractionMetricCollectionArgs.builder()
                            .dimensions(NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArgs.builder()
                                .dimensionName(namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsDimensionName)
                                .queryFieldName(namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsQueryFieldName)
                                .build())
                            .metricName(testMetric.name())
                            .metricQueryFieldName(namespaceScheduledTaskActionMetricExtractionMetricCollectionsMetricQueryFieldName)
                            .queryTableName(testTable.name())
                            .build())
                        .metricName(testMetric.name())
                        .namespace(namespaceScheduledTaskActionMetricExtractionNamespace)
                        .resourceGroup(namespaceScheduledTaskActionMetricExtractionResourceGroup)
                        .build())
                    .purgeCompartmentId(testCompartment.id())
                    .purgeDuration(namespaceScheduledTaskActionPurgeDuration)
                    .queryString(namespaceScheduledTaskActionQueryString)
                    .savedSearchId(testSavedSearch.id())
                    .templateDetails(NamespaceScheduledTaskActionTemplateDetailsArgs.builder()
                        .templateId(testTemplate.id())
                        .templateParams(NamespaceScheduledTaskActionTemplateDetailsTemplateParamArgs.builder()
                            .keyField(namespaceScheduledTaskActionTemplateDetailsTemplateParamsKeyField)
                            .valueField(namespaceScheduledTaskActionTemplateDetailsTemplateParamsValueField)
                            .build())
                        .build())
                    .build())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .description(namespaceScheduledTaskDescription)
                .displayName(namespaceScheduledTaskDisplayName)
                .freeformTags(Map.of("bar-key", "value"))
                .savedSearchId(testSavedSearch.id())
                .schedules(NamespaceScheduledTaskSchedulesArgs.builder()
                    .type(namespaceScheduledTaskSchedulesType)
                    .expression(namespaceScheduledTaskSchedulesExpression)
                    .misfirePolicy(namespaceScheduledTaskSchedulesMisfirePolicy)
                    .queryOffsetSecs(namespaceScheduledTaskSchedulesQueryOffsetSecs)
                    .recurringInterval(namespaceScheduledTaskSchedulesRecurringInterval)
                    .repeatCount(namespaceScheduledTaskSchedulesRepeatCount)
                    .timeEnd(namespaceScheduledTaskSchedulesTimeEnd)
                    .timeZone(namespaceScheduledTaskSchedulesTimeZone)
                    .build())
                .taskType(namespaceScheduledTaskTaskType)
                .build());
    
        }
    }
    
    resources:
      testNamespaceScheduledTask:
        type: oci:LogAnalytics:NamespaceScheduledTask
        name: test_namespace_scheduled_task
        properties:
          compartmentId: ${compartmentId}
          kind: ${namespaceScheduledTaskKind}
          namespace: ${namespaceScheduledTaskNamespace}
          action:
            type: ${namespaceScheduledTaskActionType}
            compartmentIdInSubtree: ${namespaceScheduledTaskActionCompartmentIdInSubtree}
            dataType: ${namespaceScheduledTaskActionDataType}
            metricExtraction:
              compartmentId: ${compartmentId}
              metricCollections:
                - dimensions:
                    - dimensionName: ${namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsDimensionName}
                      queryFieldName: ${namespaceScheduledTaskActionMetricExtractionMetricCollectionsDimensionsQueryFieldName}
                  metricName: ${testMetric.name}
                  metricQueryFieldName: ${namespaceScheduledTaskActionMetricExtractionMetricCollectionsMetricQueryFieldName}
                  queryTableName: ${testTable.name}
              metricName: ${testMetric.name}
              namespace: ${namespaceScheduledTaskActionMetricExtractionNamespace}
              resourceGroup: ${namespaceScheduledTaskActionMetricExtractionResourceGroup}
            purgeCompartmentId: ${testCompartment.id}
            purgeDuration: ${namespaceScheduledTaskActionPurgeDuration}
            queryString: ${namespaceScheduledTaskActionQueryString}
            savedSearchId: ${testSavedSearch.id}
            templateDetails:
              templateId: ${testTemplate.id}
              templateParams:
                - keyField: ${namespaceScheduledTaskActionTemplateDetailsTemplateParamsKeyField}
                  valueField: ${namespaceScheduledTaskActionTemplateDetailsTemplateParamsValueField}
          definedTags:
            foo-namespace.bar-key: value
          description: ${namespaceScheduledTaskDescription}
          displayName: ${namespaceScheduledTaskDisplayName}
          freeformTags:
            bar-key: value
          savedSearchId: ${testSavedSearch.id}
          schedules:
            type: ${namespaceScheduledTaskSchedulesType}
            expression: ${namespaceScheduledTaskSchedulesExpression}
            misfirePolicy: ${namespaceScheduledTaskSchedulesMisfirePolicy}
            queryOffsetSecs: ${namespaceScheduledTaskSchedulesQueryOffsetSecs}
            recurringInterval: ${namespaceScheduledTaskSchedulesRecurringInterval}
            repeatCount: ${namespaceScheduledTaskSchedulesRepeatCount}
            timeEnd: ${namespaceScheduledTaskSchedulesTimeEnd}
            timeZone: ${namespaceScheduledTaskSchedulesTimeZone}
          taskType: ${namespaceScheduledTaskTaskType}
    

    Schedules

    There are parameters which require a specific constant value to be supplied.

    ### misfire_policy

    ‘RETRY_INDEFINITELY’

    A constant which can be used with the misfire_policy property of a Schedule. This constant has a value of “RETRY_INDEFINITELY”

    ‘RETRY_ONCE’

    A constant which can be used with the misfire_policy property of a Schedule. This constant has a value of “RETRY_ONCE”

    ‘SKIP’

    A constant which can be used with the misfire_policy property of a Schedule. This constant has a value of “SKIP”

    type

    ‘AUTO’

    A constant which can be used with the type property of a Schedule. This constant has a value of “AUTO”

    ‘CRON’

    A constant which can be used with the type property of a Schedule. This constant has a value of “CRON”

    ‘FIXED_FREQUENCY’

    A constant which can be used with the type property of a Schedule. This constant has a value of “FIXED_FREQUENCY”

    Create NamespaceScheduledTask Resource

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

    Constructor syntax

    new NamespaceScheduledTask(name: string, args: NamespaceScheduledTaskArgs, opts?: CustomResourceOptions);
    @overload
    def NamespaceScheduledTask(resource_name: str,
                               args: NamespaceScheduledTaskArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def NamespaceScheduledTask(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               action: Optional[NamespaceScheduledTaskActionArgs] = None,
                               compartment_id: Optional[str] = None,
                               kind: Optional[str] = None,
                               namespace: Optional[str] = None,
                               schedules: Optional[NamespaceScheduledTaskSchedulesArgs] = None,
                               task_type: Optional[str] = None,
                               defined_tags: Optional[Mapping[str, str]] = None,
                               description: Optional[str] = None,
                               display_name: Optional[str] = None,
                               freeform_tags: Optional[Mapping[str, str]] = None,
                               saved_search_id: Optional[str] = None)
    func NewNamespaceScheduledTask(ctx *Context, name string, args NamespaceScheduledTaskArgs, opts ...ResourceOption) (*NamespaceScheduledTask, error)
    public NamespaceScheduledTask(string name, NamespaceScheduledTaskArgs args, CustomResourceOptions? opts = null)
    public NamespaceScheduledTask(String name, NamespaceScheduledTaskArgs args)
    public NamespaceScheduledTask(String name, NamespaceScheduledTaskArgs args, CustomResourceOptions options)
    
    type: oci:LogAnalytics:NamespaceScheduledTask
    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 NamespaceScheduledTaskArgs
    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 NamespaceScheduledTaskArgs
    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 NamespaceScheduledTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceScheduledTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceScheduledTaskArgs
    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 namespaceScheduledTaskResource = new Oci.LogAnalytics.NamespaceScheduledTask("namespaceScheduledTaskResource", new()
    {
        Action = new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionArgs
        {
            Type = "string",
            CompartmentIdInSubtree = false,
            DataType = "string",
            MetricExtraction = new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionMetricExtractionArgs
            {
                CompartmentId = "string",
                MetricCollections = new[]
                {
                    new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionMetricExtractionMetricCollectionArgs
                    {
                        Dimensions = new[]
                        {
                            new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArgs
                            {
                                DimensionName = "string",
                                QueryFieldName = "string",
                            },
                        },
                        MetricName = "string",
                        MetricQueryFieldName = "string",
                        QueryTableName = "string",
                    },
                },
                MetricName = "string",
                Namespace = "string",
                ResourceGroup = "string",
            },
            PurgeCompartmentId = "string",
            PurgeDuration = "string",
            QueryString = "string",
            SavedSearchId = "string",
            TemplateDetails = new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionTemplateDetailsArgs
            {
                TemplateId = "string",
                TemplateParams = new[]
                {
                    new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskActionTemplateDetailsTemplateParamArgs
                    {
                        KeyField = "string",
                        ValueField = "string",
                    },
                },
            },
        },
        CompartmentId = "string",
        Kind = "string",
        Namespace = "string",
        Schedules = new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskSchedulesArgs
        {
            Schedules = new[]
            {
                new Oci.LogAnalytics.Inputs.NamespaceScheduledTaskSchedulesScheduleArgs
                {
                    Type = "string",
                    Expression = "string",
                    MisfirePolicy = "string",
                    QueryOffsetSecs = 0,
                    RecurringInterval = "string",
                    RepeatCount = 0,
                    TimeEnd = "string",
                    TimeZone = "string",
                },
            },
        },
        TaskType = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        SavedSearchId = "string",
    });
    
    example, err := loganalytics.NewNamespaceScheduledTask(ctx, "namespaceScheduledTaskResource", &loganalytics.NamespaceScheduledTaskArgs{
    	Action: &loganalytics.NamespaceScheduledTaskActionArgs{
    		Type:                   pulumi.String("string"),
    		CompartmentIdInSubtree: pulumi.Bool(false),
    		DataType:               pulumi.String("string"),
    		MetricExtraction: &loganalytics.NamespaceScheduledTaskActionMetricExtractionArgs{
    			CompartmentId: pulumi.String("string"),
    			MetricCollections: loganalytics.NamespaceScheduledTaskActionMetricExtractionMetricCollectionArray{
    				&loganalytics.NamespaceScheduledTaskActionMetricExtractionMetricCollectionArgs{
    					Dimensions: loganalytics.NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArray{
    						&loganalytics.NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArgs{
    							DimensionName:  pulumi.String("string"),
    							QueryFieldName: pulumi.String("string"),
    						},
    					},
    					MetricName:           pulumi.String("string"),
    					MetricQueryFieldName: pulumi.String("string"),
    					QueryTableName:       pulumi.String("string"),
    				},
    			},
    			MetricName:    pulumi.String("string"),
    			Namespace:     pulumi.String("string"),
    			ResourceGroup: pulumi.String("string"),
    		},
    		PurgeCompartmentId: pulumi.String("string"),
    		PurgeDuration:      pulumi.String("string"),
    		QueryString:        pulumi.String("string"),
    		SavedSearchId:      pulumi.String("string"),
    		TemplateDetails: &loganalytics.NamespaceScheduledTaskActionTemplateDetailsArgs{
    			TemplateId: pulumi.String("string"),
    			TemplateParams: loganalytics.NamespaceScheduledTaskActionTemplateDetailsTemplateParamArray{
    				&loganalytics.NamespaceScheduledTaskActionTemplateDetailsTemplateParamArgs{
    					KeyField:   pulumi.String("string"),
    					ValueField: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	CompartmentId: pulumi.String("string"),
    	Kind:          pulumi.String("string"),
    	Namespace:     pulumi.String("string"),
    	Schedules: &loganalytics.NamespaceScheduledTaskSchedulesArgs{
    		Schedules: loganalytics.NamespaceScheduledTaskSchedulesScheduleArray{
    			&loganalytics.NamespaceScheduledTaskSchedulesScheduleArgs{
    				Type:              pulumi.String("string"),
    				Expression:        pulumi.String("string"),
    				MisfirePolicy:     pulumi.String("string"),
    				QueryOffsetSecs:   pulumi.Int(0),
    				RecurringInterval: pulumi.String("string"),
    				RepeatCount:       pulumi.Int(0),
    				TimeEnd:           pulumi.String("string"),
    				TimeZone:          pulumi.String("string"),
    			},
    		},
    	},
    	TaskType: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	SavedSearchId: pulumi.String("string"),
    })
    
    var namespaceScheduledTaskResource = new NamespaceScheduledTask("namespaceScheduledTaskResource", NamespaceScheduledTaskArgs.builder()
        .action(NamespaceScheduledTaskActionArgs.builder()
            .type("string")
            .compartmentIdInSubtree(false)
            .dataType("string")
            .metricExtraction(NamespaceScheduledTaskActionMetricExtractionArgs.builder()
                .compartmentId("string")
                .metricCollections(NamespaceScheduledTaskActionMetricExtractionMetricCollectionArgs.builder()
                    .dimensions(NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArgs.builder()
                        .dimensionName("string")
                        .queryFieldName("string")
                        .build())
                    .metricName("string")
                    .metricQueryFieldName("string")
                    .queryTableName("string")
                    .build())
                .metricName("string")
                .namespace("string")
                .resourceGroup("string")
                .build())
            .purgeCompartmentId("string")
            .purgeDuration("string")
            .queryString("string")
            .savedSearchId("string")
            .templateDetails(NamespaceScheduledTaskActionTemplateDetailsArgs.builder()
                .templateId("string")
                .templateParams(NamespaceScheduledTaskActionTemplateDetailsTemplateParamArgs.builder()
                    .keyField("string")
                    .valueField("string")
                    .build())
                .build())
            .build())
        .compartmentId("string")
        .kind("string")
        .namespace("string")
        .schedules(NamespaceScheduledTaskSchedulesArgs.builder()
            .schedules(NamespaceScheduledTaskSchedulesScheduleArgs.builder()
                .type("string")
                .expression("string")
                .misfirePolicy("string")
                .queryOffsetSecs(0)
                .recurringInterval("string")
                .repeatCount(0)
                .timeEnd("string")
                .timeZone("string")
                .build())
            .build())
        .taskType("string")
        .definedTags(Map.of("string", "string"))
        .description("string")
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .savedSearchId("string")
        .build());
    
    namespace_scheduled_task_resource = oci.loganalytics.NamespaceScheduledTask("namespaceScheduledTaskResource",
        action={
            "type": "string",
            "compartment_id_in_subtree": False,
            "data_type": "string",
            "metric_extraction": {
                "compartment_id": "string",
                "metric_collections": [{
                    "dimensions": [{
                        "dimension_name": "string",
                        "query_field_name": "string",
                    }],
                    "metric_name": "string",
                    "metric_query_field_name": "string",
                    "query_table_name": "string",
                }],
                "metric_name": "string",
                "namespace": "string",
                "resource_group": "string",
            },
            "purge_compartment_id": "string",
            "purge_duration": "string",
            "query_string": "string",
            "saved_search_id": "string",
            "template_details": {
                "template_id": "string",
                "template_params": [{
                    "key_field": "string",
                    "value_field": "string",
                }],
            },
        },
        compartment_id="string",
        kind="string",
        namespace="string",
        schedules={
            "schedules": [{
                "type": "string",
                "expression": "string",
                "misfire_policy": "string",
                "query_offset_secs": 0,
                "recurring_interval": "string",
                "repeat_count": 0,
                "time_end": "string",
                "time_zone": "string",
            }],
        },
        task_type="string",
        defined_tags={
            "string": "string",
        },
        description="string",
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        saved_search_id="string")
    
    const namespaceScheduledTaskResource = new oci.loganalytics.NamespaceScheduledTask("namespaceScheduledTaskResource", {
        action: {
            type: "string",
            compartmentIdInSubtree: false,
            dataType: "string",
            metricExtraction: {
                compartmentId: "string",
                metricCollections: [{
                    dimensions: [{
                        dimensionName: "string",
                        queryFieldName: "string",
                    }],
                    metricName: "string",
                    metricQueryFieldName: "string",
                    queryTableName: "string",
                }],
                metricName: "string",
                namespace: "string",
                resourceGroup: "string",
            },
            purgeCompartmentId: "string",
            purgeDuration: "string",
            queryString: "string",
            savedSearchId: "string",
            templateDetails: {
                templateId: "string",
                templateParams: [{
                    keyField: "string",
                    valueField: "string",
                }],
            },
        },
        compartmentId: "string",
        kind: "string",
        namespace: "string",
        schedules: {
            schedules: [{
                type: "string",
                expression: "string",
                misfirePolicy: "string",
                queryOffsetSecs: 0,
                recurringInterval: "string",
                repeatCount: 0,
                timeEnd: "string",
                timeZone: "string",
            }],
        },
        taskType: "string",
        definedTags: {
            string: "string",
        },
        description: "string",
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        savedSearchId: "string",
    });
    
    type: oci:LogAnalytics:NamespaceScheduledTask
    properties:
        action:
            compartmentIdInSubtree: false
            dataType: string
            metricExtraction:
                compartmentId: string
                metricCollections:
                    - dimensions:
                        - dimensionName: string
                          queryFieldName: string
                      metricName: string
                      metricQueryFieldName: string
                      queryTableName: string
                metricName: string
                namespace: string
                resourceGroup: string
            purgeCompartmentId: string
            purgeDuration: string
            queryString: string
            savedSearchId: string
            templateDetails:
                templateId: string
                templateParams:
                    - keyField: string
                      valueField: string
            type: string
        compartmentId: string
        definedTags:
            string: string
        description: string
        displayName: string
        freeformTags:
            string: string
        kind: string
        namespace: string
        savedSearchId: string
        schedules:
            schedules:
                - expression: string
                  misfirePolicy: string
                  queryOffsetSecs: 0
                  recurringInterval: string
                  repeatCount: 0
                  timeEnd: string
                  timeZone: string
                  type: string
        taskType: string
    

    NamespaceScheduledTask 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 NamespaceScheduledTask resource accepts the following input properties:

    Action NamespaceScheduledTaskAction
    Action for scheduled task.
    CompartmentId string
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    Kind string
    (Updatable) Discriminator.
    Namespace string
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    Schedules NamespaceScheduledTaskSchedules
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    TaskType 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

    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"}
    Description string
    (Updatable) Description for this resource.
    DisplayName string
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    SavedSearchId string
    The ManagementSavedSearch id [OCID] to be accelerated.
    Action NamespaceScheduledTaskActionArgs
    Action for scheduled task.
    CompartmentId string
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    Kind string
    (Updatable) Discriminator.
    Namespace string
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    Schedules NamespaceScheduledTaskSchedulesArgs
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    TaskType 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

    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"}
    Description string
    (Updatable) Description for this resource.
    DisplayName string
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    SavedSearchId string
    The ManagementSavedSearch id [OCID] to be accelerated.
    action NamespaceScheduledTaskAction
    Action for scheduled task.
    compartmentId String
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    kind String
    (Updatable) Discriminator.
    namespace String
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    schedules NamespaceScheduledTaskSchedules
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    taskType 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

    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"}
    description String
    (Updatable) Description for this resource.
    displayName String
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    savedSearchId String
    The ManagementSavedSearch id [OCID] to be accelerated.
    action NamespaceScheduledTaskAction
    Action for scheduled task.
    compartmentId string
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    kind string
    (Updatable) Discriminator.
    namespace string
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    schedules NamespaceScheduledTaskSchedules
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    taskType 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

    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"}
    description string
    (Updatable) Description for this resource.
    displayName string
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    savedSearchId string
    The ManagementSavedSearch id [OCID] to be accelerated.
    action NamespaceScheduledTaskActionArgs
    Action for scheduled task.
    compartment_id str
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    kind str
    (Updatable) Discriminator.
    namespace str
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    schedules NamespaceScheduledTaskSchedulesArgs
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    task_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

    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"}
    description str
    (Updatable) Description for this resource.
    display_name str
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    saved_search_id str
    The ManagementSavedSearch id [OCID] to be accelerated.
    action Property Map
    Action for scheduled task.
    compartmentId String
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    kind String
    (Updatable) Discriminator.
    namespace String
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    schedules Property Map
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    taskType 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

    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description for this resource.
    displayName String
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    savedSearchId String
    The ManagementSavedSearch id [OCID] to be accelerated.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    NumOccurrences string
    Number of execution occurrences.
    ScheduledTaskId string
    State string
    The current state of the scheduled task.
    TaskStatus string
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    TimeCreated string
    The date and time the scheduled task was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    WorkRequestId string
    most recent Work Request Identifier OCID for the asynchronous request.
    Id string
    The provider-assigned unique ID for this managed resource.
    NumOccurrences string
    Number of execution occurrences.
    ScheduledTaskId string
    State string
    The current state of the scheduled task.
    TaskStatus string
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    TimeCreated string
    The date and time the scheduled task was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    WorkRequestId string
    most recent Work Request Identifier OCID for the asynchronous request.
    id String
    The provider-assigned unique ID for this managed resource.
    numOccurrences String
    Number of execution occurrences.
    scheduledTaskId String
    state String
    The current state of the scheduled task.
    taskStatus String
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    timeCreated String
    The date and time the scheduled task was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    workRequestId String
    most recent Work Request Identifier OCID for the asynchronous request.
    id string
    The provider-assigned unique ID for this managed resource.
    numOccurrences string
    Number of execution occurrences.
    scheduledTaskId string
    state string
    The current state of the scheduled task.
    taskStatus string
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    timeCreated string
    The date and time the scheduled task was created, in the format defined by RFC3339.
    timeUpdated string
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    workRequestId string
    most recent Work Request Identifier OCID for the asynchronous request.
    id str
    The provider-assigned unique ID for this managed resource.
    num_occurrences str
    Number of execution occurrences.
    scheduled_task_id str
    state str
    The current state of the scheduled task.
    task_status str
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    time_created str
    The date and time the scheduled task was created, in the format defined by RFC3339.
    time_updated str
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    work_request_id str
    most recent Work Request Identifier OCID for the asynchronous request.
    id String
    The provider-assigned unique ID for this managed resource.
    numOccurrences String
    Number of execution occurrences.
    scheduledTaskId String
    state String
    The current state of the scheduled task.
    taskStatus String
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    timeCreated String
    The date and time the scheduled task was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    workRequestId String
    most recent Work Request Identifier OCID for the asynchronous request.

    Look up Existing NamespaceScheduledTask Resource

    Get an existing NamespaceScheduledTask 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?: NamespaceScheduledTaskState, opts?: CustomResourceOptions): NamespaceScheduledTask
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[NamespaceScheduledTaskActionArgs] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            kind: Optional[str] = None,
            namespace: Optional[str] = None,
            num_occurrences: Optional[str] = None,
            saved_search_id: Optional[str] = None,
            scheduled_task_id: Optional[str] = None,
            schedules: Optional[NamespaceScheduledTaskSchedulesArgs] = None,
            state: Optional[str] = None,
            task_status: Optional[str] = None,
            task_type: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            work_request_id: Optional[str] = None) -> NamespaceScheduledTask
    func GetNamespaceScheduledTask(ctx *Context, name string, id IDInput, state *NamespaceScheduledTaskState, opts ...ResourceOption) (*NamespaceScheduledTask, error)
    public static NamespaceScheduledTask Get(string name, Input<string> id, NamespaceScheduledTaskState? state, CustomResourceOptions? opts = null)
    public static NamespaceScheduledTask get(String name, Output<String> id, NamespaceScheduledTaskState state, CustomResourceOptions options)
    resources:  _:    type: oci:LogAnalytics:NamespaceScheduledTask    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action NamespaceScheduledTaskAction
    Action for scheduled task.
    CompartmentId string
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    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"}
    Description string
    (Updatable) Description for this resource.
    DisplayName string
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    Kind string
    (Updatable) Discriminator.
    Namespace string
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    NumOccurrences string
    Number of execution occurrences.
    SavedSearchId string
    The ManagementSavedSearch id [OCID] to be accelerated.
    ScheduledTaskId string
    Schedules NamespaceScheduledTaskSchedules
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    State string
    The current state of the scheduled task.
    TaskStatus string
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    TaskType 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

    TimeCreated string
    The date and time the scheduled task was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    WorkRequestId string
    most recent Work Request Identifier OCID for the asynchronous request.
    Action NamespaceScheduledTaskActionArgs
    Action for scheduled task.
    CompartmentId string
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    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"}
    Description string
    (Updatable) Description for this resource.
    DisplayName string
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    Kind string
    (Updatable) Discriminator.
    Namespace string
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    NumOccurrences string
    Number of execution occurrences.
    SavedSearchId string
    The ManagementSavedSearch id [OCID] to be accelerated.
    ScheduledTaskId string
    Schedules NamespaceScheduledTaskSchedulesArgs
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    State string
    The current state of the scheduled task.
    TaskStatus string
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    TaskType 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

    TimeCreated string
    The date and time the scheduled task was created, in the format defined by RFC3339.
    TimeUpdated string
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    WorkRequestId string
    most recent Work Request Identifier OCID for the asynchronous request.
    action NamespaceScheduledTaskAction
    Action for scheduled task.
    compartmentId String
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    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"}
    description String
    (Updatable) Description for this resource.
    displayName String
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    kind String
    (Updatable) Discriminator.
    namespace String
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    numOccurrences String
    Number of execution occurrences.
    savedSearchId String
    The ManagementSavedSearch id [OCID] to be accelerated.
    scheduledTaskId String
    schedules NamespaceScheduledTaskSchedules
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    state String
    The current state of the scheduled task.
    taskStatus String
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    taskType 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

    timeCreated String
    The date and time the scheduled task was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    workRequestId String
    most recent Work Request Identifier OCID for the asynchronous request.
    action NamespaceScheduledTaskAction
    Action for scheduled task.
    compartmentId string
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    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"}
    description string
    (Updatable) Description for this resource.
    displayName string
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    kind string
    (Updatable) Discriminator.
    namespace string
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    numOccurrences string
    Number of execution occurrences.
    savedSearchId string
    The ManagementSavedSearch id [OCID] to be accelerated.
    scheduledTaskId string
    schedules NamespaceScheduledTaskSchedules
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    state string
    The current state of the scheduled task.
    taskStatus string
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    taskType 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

    timeCreated string
    The date and time the scheduled task was created, in the format defined by RFC3339.
    timeUpdated string
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    workRequestId string
    most recent Work Request Identifier OCID for the asynchronous request.
    action NamespaceScheduledTaskActionArgs
    Action for scheduled task.
    compartment_id str
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    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"}
    description str
    (Updatable) Description for this resource.
    display_name str
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    kind str
    (Updatable) Discriminator.
    namespace str
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    num_occurrences str
    Number of execution occurrences.
    saved_search_id str
    The ManagementSavedSearch id [OCID] to be accelerated.
    scheduled_task_id str
    schedules NamespaceScheduledTaskSchedulesArgs
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    state str
    The current state of the scheduled task.
    task_status str
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    task_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

    time_created str
    The date and time the scheduled task was created, in the format defined by RFC3339.
    time_updated str
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    work_request_id str
    most recent Work Request Identifier OCID for the asynchronous request.
    action Property Map
    Action for scheduled task.
    compartmentId String
    (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    (Updatable) Description for this resource.
    displayName String
    (Updatable) A user-friendly name that is changeable and that does not have to be unique. Format: a leading alphanumeric, followed by zero or more alphanumerics, underscores, spaces, backslashes, or hyphens in any order). No trailing spaces allowed.
    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"}
    kind String
    (Updatable) Discriminator.
    namespace String
    The Log Analytics namespace used for the request. The namespace can be obtained by running 'oci os ns get'
    numOccurrences String
    Number of execution occurrences.
    savedSearchId String
    The ManagementSavedSearch id [OCID] to be accelerated.
    scheduledTaskId String
    schedules Property Map
    (Updatable) Schedules, typically a single schedule. Note there may only be a single schedule for SAVED_SEARCH and PURGE scheduled tasks.
    state String
    The current state of the scheduled task.
    taskStatus String
    Status of the scheduled task. - PURGE_RESOURCE_NOT_FOUND - LIMIT_EXCEEDED
    taskType 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

    timeCreated String
    The date and time the scheduled task was created, in the format defined by RFC3339.
    timeUpdated String
    The date and time the scheduled task was last updated, in the format defined by RFC3339.
    workRequestId String
    most recent Work Request Identifier OCID for the asynchronous request.

    Supporting Types

    NamespaceScheduledTaskAction, NamespaceScheduledTaskActionArgs

    Type string
    Action type discriminator.
    CompartmentIdInSubtree bool
    if true, purge child compartments data
    DataType string
    the type of the log data to be purged
    MetricExtraction NamespaceScheduledTaskActionMetricExtraction
    Specify metric extraction for SAVED_SEARCH scheduled task execution to post to Oracle Cloud Infrastructure Monitoring.
    PurgeCompartmentId string
    the compartment OCID under which the data will be purged
    PurgeDuration string
    The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).
    QueryString string
    Purge query string.
    SavedSearchId string
    The ManagementSavedSearch id [OCID] utilized in the action. Should not be provided when a template ID is present.
    TemplateDetails NamespaceScheduledTaskActionTemplateDetails
    details for scheduled task using template
    Type string
    Action type discriminator.
    CompartmentIdInSubtree bool
    if true, purge child compartments data
    DataType string
    the type of the log data to be purged
    MetricExtraction NamespaceScheduledTaskActionMetricExtraction
    Specify metric extraction for SAVED_SEARCH scheduled task execution to post to Oracle Cloud Infrastructure Monitoring.
    PurgeCompartmentId string
    the compartment OCID under which the data will be purged
    PurgeDuration string
    The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).
    QueryString string
    Purge query string.
    SavedSearchId string
    The ManagementSavedSearch id [OCID] utilized in the action. Should not be provided when a template ID is present.
    TemplateDetails NamespaceScheduledTaskActionTemplateDetails
    details for scheduled task using template
    type String
    Action type discriminator.
    compartmentIdInSubtree Boolean
    if true, purge child compartments data
    dataType String
    the type of the log data to be purged
    metricExtraction NamespaceScheduledTaskActionMetricExtraction
    Specify metric extraction for SAVED_SEARCH scheduled task execution to post to Oracle Cloud Infrastructure Monitoring.
    purgeCompartmentId String
    the compartment OCID under which the data will be purged
    purgeDuration String
    The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).
    queryString String
    Purge query string.
    savedSearchId String
    The ManagementSavedSearch id [OCID] utilized in the action. Should not be provided when a template ID is present.
    templateDetails NamespaceScheduledTaskActionTemplateDetails
    details for scheduled task using template
    type string
    Action type discriminator.
    compartmentIdInSubtree boolean
    if true, purge child compartments data
    dataType string
    the type of the log data to be purged
    metricExtraction NamespaceScheduledTaskActionMetricExtraction
    Specify metric extraction for SAVED_SEARCH scheduled task execution to post to Oracle Cloud Infrastructure Monitoring.
    purgeCompartmentId string
    the compartment OCID under which the data will be purged
    purgeDuration string
    The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).
    queryString string
    Purge query string.
    savedSearchId string
    The ManagementSavedSearch id [OCID] utilized in the action. Should not be provided when a template ID is present.
    templateDetails NamespaceScheduledTaskActionTemplateDetails
    details for scheduled task using template
    type str
    Action type discriminator.
    compartment_id_in_subtree bool
    if true, purge child compartments data
    data_type str
    the type of the log data to be purged
    metric_extraction NamespaceScheduledTaskActionMetricExtraction
    Specify metric extraction for SAVED_SEARCH scheduled task execution to post to Oracle Cloud Infrastructure Monitoring.
    purge_compartment_id str
    the compartment OCID under which the data will be purged
    purge_duration str
    The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).
    query_string str
    Purge query string.
    saved_search_id str
    The ManagementSavedSearch id [OCID] utilized in the action. Should not be provided when a template ID is present.
    template_details NamespaceScheduledTaskActionTemplateDetails
    details for scheduled task using template
    type String
    Action type discriminator.
    compartmentIdInSubtree Boolean
    if true, purge child compartments data
    dataType String
    the type of the log data to be purged
    metricExtraction Property Map
    Specify metric extraction for SAVED_SEARCH scheduled task execution to post to Oracle Cloud Infrastructure Monitoring.
    purgeCompartmentId String
    the compartment OCID under which the data will be purged
    purgeDuration String
    The duration of data to be retained, which is used to calculate the timeDataEnded when the task fires. The value should be negative. Purge duration in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. -P365D (not -P1Y) or -P14D (not -P2W).
    queryString String
    Purge query string.
    savedSearchId String
    The ManagementSavedSearch id [OCID] utilized in the action. Should not be provided when a template ID is present.
    templateDetails Property Map
    details for scheduled task using template

    NamespaceScheduledTaskActionMetricExtraction, NamespaceScheduledTaskActionMetricExtractionArgs

    CompartmentId string
    (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
    MetricCollections List<NamespaceScheduledTaskActionMetricExtractionMetricCollection>
    Details for the metrics to be collected.
    MetricName string
    The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    Namespace string
    The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
    ResourceGroup string
    The resource group of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    CompartmentId string
    (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
    MetricCollections []NamespaceScheduledTaskActionMetricExtractionMetricCollection
    Details for the metrics to be collected.
    MetricName string
    The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    Namespace string
    The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
    ResourceGroup string
    The resource group of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    compartmentId String
    (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
    metricCollections List<NamespaceScheduledTaskActionMetricExtractionMetricCollection>
    Details for the metrics to be collected.
    metricName String
    The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    namespace String
    The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
    resourceGroup String
    The resource group of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    compartmentId string
    (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
    metricCollections NamespaceScheduledTaskActionMetricExtractionMetricCollection[]
    Details for the metrics to be collected.
    metricName string
    The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    namespace string
    The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
    resourceGroup string
    The resource group of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    compartment_id str
    (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
    metric_collections Sequence[NamespaceScheduledTaskActionMetricExtractionMetricCollection]
    Details for the metrics to be collected.
    metric_name str
    The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    namespace str
    The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
    resource_group str
    The resource group of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    compartmentId String
    (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
    metricCollections List<Property Map>
    Details for the metrics to be collected.
    metricName String
    The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    namespace String
    The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
    resourceGroup String
    The resource group of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).

    NamespaceScheduledTaskActionMetricExtractionMetricCollection, NamespaceScheduledTaskActionMetricExtractionMetricCollectionArgs

    Dimensions List<NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimension>
    Selected dimension fields for the metric collection.
    MetricName string
    The metric name for this metric collection. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    MetricQueryFieldName string
    Output field in the query to be used as the metric value.
    QueryTableName string
    Output table in the query.
    Dimensions []NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimension
    Selected dimension fields for the metric collection.
    MetricName string
    The metric name for this metric collection. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    MetricQueryFieldName string
    Output field in the query to be used as the metric value.
    QueryTableName string
    Output table in the query.
    dimensions List<NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimension>
    Selected dimension fields for the metric collection.
    metricName String
    The metric name for this metric collection. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    metricQueryFieldName String
    Output field in the query to be used as the metric value.
    queryTableName String
    Output table in the query.
    dimensions NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimension[]
    Selected dimension fields for the metric collection.
    metricName string
    The metric name for this metric collection. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    metricQueryFieldName string
    Output field in the query to be used as the metric value.
    queryTableName string
    Output table in the query.
    dimensions Sequence[NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimension]
    Selected dimension fields for the metric collection.
    metric_name str
    The metric name for this metric collection. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    metric_query_field_name str
    Output field in the query to be used as the metric value.
    query_table_name str
    Output table in the query.
    dimensions List<Property Map>
    Selected dimension fields for the metric collection.
    metricName String
    The metric name for this metric collection. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
    metricQueryFieldName String
    Output field in the query to be used as the metric value.
    queryTableName String
    Output table in the query.

    NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimension, NamespaceScheduledTaskActionMetricExtractionMetricCollectionDimensionArgs

    DimensionName string
    Dimension name to be stored with the metric.
    QueryFieldName string
    Output field in the query to be used as the source for the metric dimension.
    DimensionName string
    Dimension name to be stored with the metric.
    QueryFieldName string
    Output field in the query to be used as the source for the metric dimension.
    dimensionName String
    Dimension name to be stored with the metric.
    queryFieldName String
    Output field in the query to be used as the source for the metric dimension.
    dimensionName string
    Dimension name to be stored with the metric.
    queryFieldName string
    Output field in the query to be used as the source for the metric dimension.
    dimension_name str
    Dimension name to be stored with the metric.
    query_field_name str
    Output field in the query to be used as the source for the metric dimension.
    dimensionName String
    Dimension name to be stored with the metric.
    queryFieldName String
    Output field in the query to be used as the source for the metric dimension.

    NamespaceScheduledTaskActionTemplateDetails, NamespaceScheduledTaskActionTemplateDetailsArgs

    TemplateId string
    The template Id of a particular template. Should not be provided when a saved search ID is present.
    TemplateParams List<NamespaceScheduledTaskActionTemplateDetailsTemplateParam>
    To store macro params.
    TemplateId string
    The template Id of a particular template. Should not be provided when a saved search ID is present.
    TemplateParams []NamespaceScheduledTaskActionTemplateDetailsTemplateParam
    To store macro params.
    templateId String
    The template Id of a particular template. Should not be provided when a saved search ID is present.
    templateParams List<NamespaceScheduledTaskActionTemplateDetailsTemplateParam>
    To store macro params.
    templateId string
    The template Id of a particular template. Should not be provided when a saved search ID is present.
    templateParams NamespaceScheduledTaskActionTemplateDetailsTemplateParam[]
    To store macro params.
    template_id str
    The template Id of a particular template. Should not be provided when a saved search ID is present.
    template_params Sequence[NamespaceScheduledTaskActionTemplateDetailsTemplateParam]
    To store macro params.
    templateId String
    The template Id of a particular template. Should not be provided when a saved search ID is present.
    templateParams List<Property Map>
    To store macro params.

    NamespaceScheduledTaskActionTemplateDetailsTemplateParam, NamespaceScheduledTaskActionTemplateDetailsTemplateParamArgs

    KeyField string
    Contains a template parameter's name.
    ValueField string
    Contains the desired value for a given parameter.
    KeyField string
    Contains a template parameter's name.
    ValueField string
    Contains the desired value for a given parameter.
    keyField String
    Contains a template parameter's name.
    valueField String
    Contains the desired value for a given parameter.
    keyField string
    Contains a template parameter's name.
    valueField string
    Contains the desired value for a given parameter.
    key_field str
    Contains a template parameter's name.
    value_field str
    Contains the desired value for a given parameter.
    keyField String
    Contains a template parameter's name.
    valueField String
    Contains the desired value for a given parameter.

    NamespaceScheduledTaskSchedules, NamespaceScheduledTaskSchedulesArgs

    NamespaceScheduledTaskSchedulesSchedule, NamespaceScheduledTaskSchedulesScheduleArgs

    Type string
    Schedule type discriminator.
    Expression string
    Value in cron format.
    MisfirePolicy string
    Schedule misfire retry policy.
    QueryOffsetSecs int
    Number of seconds to offset the query time window by to accommodate capture late arriving data. For example, a schedule run at 12:00 with a 10 minute interval and queryOffsetSecs=120 will use the query time window of 11:48-11:58 rather than 11:50-12:00 without queryOffsetSecs.
    RecurringInterval string
    Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).
    RepeatCount int
    Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
    TimeEnd string
    End time for the schedule, even if the schedule would otherwise have remaining executions.
    TimeZone string
    Time zone, by default UTC.
    Type string
    Schedule type discriminator.
    Expression string
    Value in cron format.
    MisfirePolicy string
    Schedule misfire retry policy.
    QueryOffsetSecs int
    Number of seconds to offset the query time window by to accommodate capture late arriving data. For example, a schedule run at 12:00 with a 10 minute interval and queryOffsetSecs=120 will use the query time window of 11:48-11:58 rather than 11:50-12:00 without queryOffsetSecs.
    RecurringInterval string
    Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).
    RepeatCount int
    Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
    TimeEnd string
    End time for the schedule, even if the schedule would otherwise have remaining executions.
    TimeZone string
    Time zone, by default UTC.
    type String
    Schedule type discriminator.
    expression String
    Value in cron format.
    misfirePolicy String
    Schedule misfire retry policy.
    queryOffsetSecs Integer
    Number of seconds to offset the query time window by to accommodate capture late arriving data. For example, a schedule run at 12:00 with a 10 minute interval and queryOffsetSecs=120 will use the query time window of 11:48-11:58 rather than 11:50-12:00 without queryOffsetSecs.
    recurringInterval String
    Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).
    repeatCount Integer
    Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
    timeEnd String
    End time for the schedule, even if the schedule would otherwise have remaining executions.
    timeZone String
    Time zone, by default UTC.
    type string
    Schedule type discriminator.
    expression string
    Value in cron format.
    misfirePolicy string
    Schedule misfire retry policy.
    queryOffsetSecs number
    Number of seconds to offset the query time window by to accommodate capture late arriving data. For example, a schedule run at 12:00 with a 10 minute interval and queryOffsetSecs=120 will use the query time window of 11:48-11:58 rather than 11:50-12:00 without queryOffsetSecs.
    recurringInterval string
    Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).
    repeatCount number
    Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
    timeEnd string
    End time for the schedule, even if the schedule would otherwise have remaining executions.
    timeZone string
    Time zone, by default UTC.
    type str
    Schedule type discriminator.
    expression str
    Value in cron format.
    misfire_policy str
    Schedule misfire retry policy.
    query_offset_secs int
    Number of seconds to offset the query time window by to accommodate capture late arriving data. For example, a schedule run at 12:00 with a 10 minute interval and queryOffsetSecs=120 will use the query time window of 11:48-11:58 rather than 11:50-12:00 without queryOffsetSecs.
    recurring_interval str
    Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).
    repeat_count int
    Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
    time_end str
    End time for the schedule, even if the schedule would otherwise have remaining executions.
    time_zone str
    Time zone, by default UTC.
    type String
    Schedule type discriminator.
    expression String
    Value in cron format.
    misfirePolicy String
    Schedule misfire retry policy.
    queryOffsetSecs Number
    Number of seconds to offset the query time window by to accommodate capture late arriving data. For example, a schedule run at 12:00 with a 10 minute interval and queryOffsetSecs=120 will use the query time window of 11:48-11:58 rather than 11:50-12:00 without queryOffsetSecs.
    recurringInterval String
    Recurring interval in ISO 8601 extended format as described in https://en.wikipedia.org/wiki/ISO_8601#Durations. The largest supported unit is D, e.g. P14D (not P2W). The value must be at least 5 minutes (PT5M) and at most 3 weeks (P21D or PT30240M).
    repeatCount Number
    Number of times (0-based) to execute until auto-stop. Default value -1 will execute indefinitely. Value 0 will execute once.
    timeEnd String
    End time for the schedule, even if the schedule would otherwise have remaining executions.
    timeZone String
    Time zone, by default UTC.

    Import

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

    $ pulumi import oci:LogAnalytics/namespaceScheduledTask:NamespaceScheduledTask test_namespace_scheduled_task "namespaces/{namespaceName}/scheduledTasks/{scheduledTaskId}"
    

    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
    Viewing docs for Oracle Cloud Infrastructure v4.3.0
    published on Thursday, Mar 19, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.