oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.LogAnalytics.NamespaceIngestTimeRule

This resource provides the Namespace Ingest Time Rule resource in Oracle Cloud Infrastructure Log Analytics service.

Creates a new ingest time rule in the specified compartment. You may also specify optional information such as description, defined tags, and free-form tags.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testNamespaceIngestTimeRule = new Oci.LogAnalytics.NamespaceIngestTimeRule("testNamespaceIngestTimeRule", new()
    {
        Actions = new[]
        {
            new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleActionArgs
            {
                CompartmentId = @var.Compartment_id,
                MetricName = oci_monitoring_metric.Test_metric.Name,
                Namespace = @var.Namespace_ingest_time_rule_actions_namespace,
                Type = @var.Namespace_ingest_time_rule_actions_type,
                Dimensions = @var.Namespace_ingest_time_rule_actions_dimensions,
                ResourceGroup = @var.Namespace_ingest_time_rule_actions_resource_group,
            },
        },
        CompartmentId = @var.Compartment_id,
        Conditions = new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleConditionsArgs
        {
            FieldName = @var.Namespace_ingest_time_rule_conditions_field_name,
            FieldOperator = @var.Namespace_ingest_time_rule_conditions_field_operator,
            FieldValue = @var.Namespace_ingest_time_rule_conditions_field_value,
            Kind = @var.Namespace_ingest_time_rule_conditions_kind,
            AdditionalConditions = new[]
            {
                new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleConditionsAdditionalConditionArgs
                {
                    ConditionField = @var.Namespace_ingest_time_rule_conditions_additional_conditions_condition_field,
                    ConditionOperator = @var.Namespace_ingest_time_rule_conditions_additional_conditions_condition_operator,
                    ConditionValue = @var.Namespace_ingest_time_rule_conditions_additional_conditions_condition_value,
                },
            },
        },
        DisplayName = @var.Namespace_ingest_time_rule_display_name,
        Namespace = @var.Namespace_ingest_time_rule_namespace,
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        Description = @var.Namespace_ingest_time_rule_description,
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/LogAnalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LogAnalytics.NewNamespaceIngestTimeRule(ctx, "testNamespaceIngestTimeRule", &LogAnalytics.NamespaceIngestTimeRuleArgs{
			Actions: loganalytics.NamespaceIngestTimeRuleActionArray{
				&loganalytics.NamespaceIngestTimeRuleActionArgs{
					CompartmentId: pulumi.Any(_var.Compartment_id),
					MetricName:    pulumi.Any(oci_monitoring_metric.Test_metric.Name),
					Namespace:     pulumi.Any(_var.Namespace_ingest_time_rule_actions_namespace),
					Type:          pulumi.Any(_var.Namespace_ingest_time_rule_actions_type),
					Dimensions:    pulumi.Any(_var.Namespace_ingest_time_rule_actions_dimensions),
					ResourceGroup: pulumi.Any(_var.Namespace_ingest_time_rule_actions_resource_group),
				},
			},
			CompartmentId: pulumi.Any(_var.Compartment_id),
			Conditions: &loganalytics.NamespaceIngestTimeRuleConditionsArgs{
				FieldName:     pulumi.Any(_var.Namespace_ingest_time_rule_conditions_field_name),
				FieldOperator: pulumi.Any(_var.Namespace_ingest_time_rule_conditions_field_operator),
				FieldValue:    pulumi.Any(_var.Namespace_ingest_time_rule_conditions_field_value),
				Kind:          pulumi.Any(_var.Namespace_ingest_time_rule_conditions_kind),
				AdditionalConditions: loganalytics.NamespaceIngestTimeRuleConditionsAdditionalConditionArray{
					&loganalytics.NamespaceIngestTimeRuleConditionsAdditionalConditionArgs{
						ConditionField:    pulumi.Any(_var.Namespace_ingest_time_rule_conditions_additional_conditions_condition_field),
						ConditionOperator: pulumi.Any(_var.Namespace_ingest_time_rule_conditions_additional_conditions_condition_operator),
						ConditionValue:    pulumi.Any(_var.Namespace_ingest_time_rule_conditions_additional_conditions_condition_value),
					},
				},
			},
			DisplayName: pulumi.Any(_var.Namespace_ingest_time_rule_display_name),
			Namespace:   pulumi.Any(_var.Namespace_ingest_time_rule_namespace),
			DefinedTags: pulumi.AnyMap{
				"foo-namespace.bar-key": pulumi.Any("value"),
			},
			Description: pulumi.Any(_var.Namespace_ingest_time_rule_description),
			FreeformTags: pulumi.AnyMap{
				"bar-key": pulumi.Any("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.NamespaceIngestTimeRule;
import com.pulumi.oci.LogAnalytics.NamespaceIngestTimeRuleArgs;
import com.pulumi.oci.LogAnalytics.inputs.NamespaceIngestTimeRuleActionArgs;
import com.pulumi.oci.LogAnalytics.inputs.NamespaceIngestTimeRuleConditionsArgs;
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 testNamespaceIngestTimeRule = new NamespaceIngestTimeRule("testNamespaceIngestTimeRule", NamespaceIngestTimeRuleArgs.builder()        
            .actions(NamespaceIngestTimeRuleActionArgs.builder()
                .compartmentId(var_.compartment_id())
                .metricName(oci_monitoring_metric.test_metric().name())
                .namespace(var_.namespace_ingest_time_rule_actions_namespace())
                .type(var_.namespace_ingest_time_rule_actions_type())
                .dimensions(var_.namespace_ingest_time_rule_actions_dimensions())
                .resourceGroup(var_.namespace_ingest_time_rule_actions_resource_group())
                .build())
            .compartmentId(var_.compartment_id())
            .conditions(NamespaceIngestTimeRuleConditionsArgs.builder()
                .fieldName(var_.namespace_ingest_time_rule_conditions_field_name())
                .fieldOperator(var_.namespace_ingest_time_rule_conditions_field_operator())
                .fieldValue(var_.namespace_ingest_time_rule_conditions_field_value())
                .kind(var_.namespace_ingest_time_rule_conditions_kind())
                .additionalConditions(NamespaceIngestTimeRuleConditionsAdditionalConditionArgs.builder()
                    .conditionField(var_.namespace_ingest_time_rule_conditions_additional_conditions_condition_field())
                    .conditionOperator(var_.namespace_ingest_time_rule_conditions_additional_conditions_condition_operator())
                    .conditionValue(var_.namespace_ingest_time_rule_conditions_additional_conditions_condition_value())
                    .build())
                .build())
            .displayName(var_.namespace_ingest_time_rule_display_name())
            .namespace(var_.namespace_ingest_time_rule_namespace())
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .description(var_.namespace_ingest_time_rule_description())
            .freeformTags(Map.of("bar-key", "value"))
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_namespace_ingest_time_rule = oci.log_analytics.NamespaceIngestTimeRule("testNamespaceIngestTimeRule",
    actions=[oci.log_analytics.NamespaceIngestTimeRuleActionArgs(
        compartment_id=var["compartment_id"],
        metric_name=oci_monitoring_metric["test_metric"]["name"],
        namespace=var["namespace_ingest_time_rule_actions_namespace"],
        type=var["namespace_ingest_time_rule_actions_type"],
        dimensions=var["namespace_ingest_time_rule_actions_dimensions"],
        resource_group=var["namespace_ingest_time_rule_actions_resource_group"],
    )],
    compartment_id=var["compartment_id"],
    conditions=oci.log_analytics.NamespaceIngestTimeRuleConditionsArgs(
        field_name=var["namespace_ingest_time_rule_conditions_field_name"],
        field_operator=var["namespace_ingest_time_rule_conditions_field_operator"],
        field_value=var["namespace_ingest_time_rule_conditions_field_value"],
        kind=var["namespace_ingest_time_rule_conditions_kind"],
        additional_conditions=[oci.log_analytics.NamespaceIngestTimeRuleConditionsAdditionalConditionArgs(
            condition_field=var["namespace_ingest_time_rule_conditions_additional_conditions_condition_field"],
            condition_operator=var["namespace_ingest_time_rule_conditions_additional_conditions_condition_operator"],
            condition_value=var["namespace_ingest_time_rule_conditions_additional_conditions_condition_value"],
        )],
    ),
    display_name=var["namespace_ingest_time_rule_display_name"],
    namespace=var["namespace_ingest_time_rule_namespace"],
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    description=var["namespace_ingest_time_rule_description"],
    freeform_tags={
        "bar-key": "value",
    })
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNamespaceIngestTimeRule = new oci.loganalytics.NamespaceIngestTimeRule("testNamespaceIngestTimeRule", {
    actions: [{
        compartmentId: _var.compartment_id,
        metricName: oci_monitoring_metric.test_metric.name,
        namespace: _var.namespace_ingest_time_rule_actions_namespace,
        type: _var.namespace_ingest_time_rule_actions_type,
        dimensions: _var.namespace_ingest_time_rule_actions_dimensions,
        resourceGroup: _var.namespace_ingest_time_rule_actions_resource_group,
    }],
    compartmentId: _var.compartment_id,
    conditions: {
        fieldName: _var.namespace_ingest_time_rule_conditions_field_name,
        fieldOperator: _var.namespace_ingest_time_rule_conditions_field_operator,
        fieldValue: _var.namespace_ingest_time_rule_conditions_field_value,
        kind: _var.namespace_ingest_time_rule_conditions_kind,
        additionalConditions: [{
            conditionField: _var.namespace_ingest_time_rule_conditions_additional_conditions_condition_field,
            conditionOperator: _var.namespace_ingest_time_rule_conditions_additional_conditions_condition_operator,
            conditionValue: _var.namespace_ingest_time_rule_conditions_additional_conditions_condition_value,
        }],
    },
    displayName: _var.namespace_ingest_time_rule_display_name,
    namespace: _var.namespace_ingest_time_rule_namespace,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    description: _var.namespace_ingest_time_rule_description,
    freeformTags: {
        "bar-key": "value",
    },
});
resources:
  testNamespaceIngestTimeRule:
    type: oci:LogAnalytics:NamespaceIngestTimeRule
    properties:
      #Required
      actions:
        - compartmentId: ${var.compartment_id}
          metricName: ${oci_monitoring_metric.test_metric.name}
          namespace: ${var.namespace_ingest_time_rule_actions_namespace}
          type: ${var.namespace_ingest_time_rule_actions_type}
          dimensions: ${var.namespace_ingest_time_rule_actions_dimensions}
          resourceGroup: ${var.namespace_ingest_time_rule_actions_resource_group}
      compartmentId: ${var.compartment_id}
      conditions:
        fieldName: ${var.namespace_ingest_time_rule_conditions_field_name}
        fieldOperator: ${var.namespace_ingest_time_rule_conditions_field_operator}
        fieldValue: ${var.namespace_ingest_time_rule_conditions_field_value}
        kind: ${var.namespace_ingest_time_rule_conditions_kind}
        additionalConditions:
          - conditionField: ${var.namespace_ingest_time_rule_conditions_additional_conditions_condition_field}
            conditionOperator: ${var.namespace_ingest_time_rule_conditions_additional_conditions_condition_operator}
            conditionValue: ${var.namespace_ingest_time_rule_conditions_additional_conditions_condition_value}
      displayName: ${var.namespace_ingest_time_rule_display_name}
      namespace: ${var.namespace_ingest_time_rule_namespace}
      #Optional
      definedTags:
        foo-namespace.bar-key: value
      description: ${var.namespace_ingest_time_rule_description}
      freeformTags:
        bar-key: value

Create NamespaceIngestTimeRule Resource

new NamespaceIngestTimeRule(name: string, args: NamespaceIngestTimeRuleArgs, opts?: CustomResourceOptions);
@overload
def NamespaceIngestTimeRule(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            actions: Optional[Sequence[_loganalytics.NamespaceIngestTimeRuleActionArgs]] = None,
                            compartment_id: Optional[str] = None,
                            conditions: Optional[_loganalytics.NamespaceIngestTimeRuleConditionsArgs] = None,
                            defined_tags: Optional[Mapping[str, Any]] = None,
                            description: Optional[str] = None,
                            display_name: Optional[str] = None,
                            freeform_tags: Optional[Mapping[str, Any]] = None,
                            namespace: Optional[str] = None)
@overload
def NamespaceIngestTimeRule(resource_name: str,
                            args: NamespaceIngestTimeRuleArgs,
                            opts: Optional[ResourceOptions] = None)
func NewNamespaceIngestTimeRule(ctx *Context, name string, args NamespaceIngestTimeRuleArgs, opts ...ResourceOption) (*NamespaceIngestTimeRule, error)
public NamespaceIngestTimeRule(string name, NamespaceIngestTimeRuleArgs args, CustomResourceOptions? opts = null)
public NamespaceIngestTimeRule(String name, NamespaceIngestTimeRuleArgs args)
public NamespaceIngestTimeRule(String name, NamespaceIngestTimeRuleArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:NamespaceIngestTimeRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NamespaceIngestTimeRuleArgs
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 NamespaceIngestTimeRuleArgs
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 NamespaceIngestTimeRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NamespaceIngestTimeRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NamespaceIngestTimeRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

NamespaceIngestTimeRule Resource Properties

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

Inputs

The NamespaceIngestTimeRule resource accepts the following input properties:

Actions List<NamespaceIngestTimeRuleActionArgs>

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

Conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

DisplayName string

(Updatable) The ingest time rule display name.

Namespace string

The Logging Analytics namespace used for the request.

DefinedTags Dictionary<string, object>

(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.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Actions []NamespaceIngestTimeRuleActionArgs

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

Conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

DisplayName string

(Updatable) The ingest time rule display name.

Namespace string

The Logging Analytics namespace used for the request.

DefinedTags map[string]interface{}

(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.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

actions List<NamespaceIngestTimeRuleActionArgs>

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

compartmentId String

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

displayName String

(Updatable) The ingest time rule display name.

namespace String

The Logging Analytics namespace used for the request.

definedTags Map<String,Object>

(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.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

actions NamespaceIngestTimeRuleActionArgs[]

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

compartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

displayName string

(Updatable) The ingest time rule display name.

namespace string

The Logging Analytics namespace used for the request.

definedTags {[key: string]: any}

(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.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

actions NamespaceIngestTimeRuleActionArgs]

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

compartment_id str

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

display_name str

(Updatable) The ingest time rule display name.

namespace str

The Logging Analytics namespace used for the request.

defined_tags Mapping[str, Any]

(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.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

actions List<Property Map>

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

compartmentId String

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

conditions Property Map

(Updatable) The condition(s) to evaluate for an ingest time rule.

displayName String

(Updatable) The ingest time rule display name.

namespace String

The Logging Analytics namespace used for the request.

definedTags Map<Any>

(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.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

IngestTimeRuleId string
IsEnabled bool

A flag indicating whether or not the ingest time rule is enabled.

State string

The current state of the ingest time rule.

TimeCreated string

The date and time the resource was created, in the format defined by RFC3339.

TimeUpdated string

The date and time the resource was last updated, in the format defined by RFC3339.

Id string

The provider-assigned unique ID for this managed resource.

IngestTimeRuleId string
IsEnabled bool

A flag indicating whether or not the ingest time rule is enabled.

State string

The current state of the ingest time rule.

TimeCreated string

The date and time the resource was created, in the format defined by RFC3339.

TimeUpdated string

The date and time the resource was last updated, in the format defined by RFC3339.

id String

The provider-assigned unique ID for this managed resource.

ingestTimeRuleId String
isEnabled Boolean

A flag indicating whether or not the ingest time rule is enabled.

state String

The current state of the ingest time rule.

timeCreated String

The date and time the resource was created, in the format defined by RFC3339.

timeUpdated String

The date and time the resource was last updated, in the format defined by RFC3339.

id string

The provider-assigned unique ID for this managed resource.

ingestTimeRuleId string
isEnabled boolean

A flag indicating whether or not the ingest time rule is enabled.

state string

The current state of the ingest time rule.

timeCreated string

The date and time the resource was created, in the format defined by RFC3339.

timeUpdated string

The date and time the resource was last updated, in the format defined by RFC3339.

id str

The provider-assigned unique ID for this managed resource.

ingest_time_rule_id str
is_enabled bool

A flag indicating whether or not the ingest time rule is enabled.

state str

The current state of the ingest time rule.

time_created str

The date and time the resource was created, in the format defined by RFC3339.

time_updated str

The date and time the resource was last updated, in the format defined by RFC3339.

id String

The provider-assigned unique ID for this managed resource.

ingestTimeRuleId String
isEnabled Boolean

A flag indicating whether or not the ingest time rule is enabled.

state String

The current state of the ingest time rule.

timeCreated String

The date and time the resource was created, in the format defined by RFC3339.

timeUpdated String

The date and time the resource was last updated, in the format defined by RFC3339.

Look up Existing NamespaceIngestTimeRule Resource

Get an existing NamespaceIngestTimeRule 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?: NamespaceIngestTimeRuleState, opts?: CustomResourceOptions): NamespaceIngestTimeRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        actions: Optional[Sequence[_loganalytics.NamespaceIngestTimeRuleActionArgs]] = None,
        compartment_id: Optional[str] = None,
        conditions: Optional[_loganalytics.NamespaceIngestTimeRuleConditionsArgs] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        ingest_time_rule_id: Optional[str] = None,
        is_enabled: Optional[bool] = None,
        namespace: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> NamespaceIngestTimeRule
func GetNamespaceIngestTimeRule(ctx *Context, name string, id IDInput, state *NamespaceIngestTimeRuleState, opts ...ResourceOption) (*NamespaceIngestTimeRule, error)
public static NamespaceIngestTimeRule Get(string name, Input<string> id, NamespaceIngestTimeRuleState? state, CustomResourceOptions? opts = null)
public static NamespaceIngestTimeRule get(String name, Output<String> id, NamespaceIngestTimeRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Actions List<NamespaceIngestTimeRuleActionArgs>

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

Conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

DefinedTags Dictionary<string, object>

(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) The ingest time rule display name.

FreeformTags Dictionary<string, object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

IngestTimeRuleId string
IsEnabled bool

A flag indicating whether or not the ingest time rule is enabled.

Namespace string

The Logging Analytics namespace used for the request.

State string

The current state of the ingest time rule.

TimeCreated string

The date and time the resource was created, in the format defined by RFC3339.

TimeUpdated string

The date and time the resource was last updated, in the format defined by RFC3339.

Actions []NamespaceIngestTimeRuleActionArgs

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

Conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

DefinedTags map[string]interface{}

(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) The ingest time rule display name.

FreeformTags map[string]interface{}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

IngestTimeRuleId string
IsEnabled bool

A flag indicating whether or not the ingest time rule is enabled.

Namespace string

The Logging Analytics namespace used for the request.

State string

The current state of the ingest time rule.

TimeCreated string

The date and time the resource was created, in the format defined by RFC3339.

TimeUpdated string

The date and time the resource was last updated, in the format defined by RFC3339.

actions List<NamespaceIngestTimeRuleActionArgs>

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

compartmentId String

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

definedTags Map<String,Object>

(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) The ingest time rule display name.

freeformTags Map<String,Object>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

ingestTimeRuleId String
isEnabled Boolean

A flag indicating whether or not the ingest time rule is enabled.

namespace String

The Logging Analytics namespace used for the request.

state String

The current state of the ingest time rule.

timeCreated String

The date and time the resource was created, in the format defined by RFC3339.

timeUpdated String

The date and time the resource was last updated, in the format defined by RFC3339.

actions NamespaceIngestTimeRuleActionArgs[]

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

compartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

definedTags {[key: string]: any}

(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) The ingest time rule display name.

freeformTags {[key: string]: any}

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

ingestTimeRuleId string
isEnabled boolean

A flag indicating whether or not the ingest time rule is enabled.

namespace string

The Logging Analytics namespace used for the request.

state string

The current state of the ingest time rule.

timeCreated string

The date and time the resource was created, in the format defined by RFC3339.

timeUpdated string

The date and time the resource was last updated, in the format defined by RFC3339.

actions NamespaceIngestTimeRuleActionArgs]

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

compartment_id str

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

conditions NamespaceIngestTimeRuleConditionsArgs

(Updatable) The condition(s) to evaluate for an ingest time rule.

defined_tags Mapping[str, Any]

(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) The ingest time rule display name.

freeform_tags Mapping[str, Any]

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

ingest_time_rule_id str
is_enabled bool

A flag indicating whether or not the ingest time rule is enabled.

namespace str

The Logging Analytics namespace used for the request.

state str

The current state of the ingest time rule.

time_created str

The date and time the resource was created, in the format defined by RFC3339.

time_updated str

The date and time the resource was last updated, in the format defined by RFC3339.

actions List<Property Map>

(Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.

compartmentId String

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

conditions Property Map

(Updatable) The condition(s) to evaluate for an ingest time rule.

definedTags Map<Any>

(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) The ingest time rule display name.

freeformTags Map<Any>

(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

ingestTimeRuleId String
isEnabled Boolean

A flag indicating whether or not the ingest time rule is enabled.

namespace String

The Logging Analytics namespace used for the request.

state String

The current state of the ingest time rule.

timeCreated String

The date and time the resource was created, in the format defined by RFC3339.

timeUpdated String

The date and time the resource was last updated, in the format defined by RFC3339.

Supporting Types

NamespaceIngestTimeRuleAction

CompartmentId string

(Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

MetricName string

(Updatable) 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 Logging Analytics namespace used for the request.

Type string

(Updatable) Discriminator.

Dimensions List<string>

(Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME

ResourceGroup string

(Updatable) The resourceGroup 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) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

MetricName string

(Updatable) 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 Logging Analytics namespace used for the request.

Type string

(Updatable) Discriminator.

Dimensions []string

(Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME

ResourceGroup string

(Updatable) The resourceGroup 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) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

metricName String

(Updatable) 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 Logging Analytics namespace used for the request.

type String

(Updatable) Discriminator.

dimensions List<String>

(Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME

resourceGroup String

(Updatable) The resourceGroup 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) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

metricName string

(Updatable) 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 Logging Analytics namespace used for the request.

type string

(Updatable) Discriminator.

dimensions string[]

(Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME

resourceGroup string

(Updatable) The resourceGroup 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) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

metric_name str

(Updatable) 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 Logging Analytics namespace used for the request.

type str

(Updatable) Discriminator.

dimensions Sequence[str]

(Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME

resource_group str

(Updatable) The resourceGroup 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) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

metricName String

(Updatable) 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 Logging Analytics namespace used for the request.

type String

(Updatable) Discriminator.

dimensions List<String>

(Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME

resourceGroup String

(Updatable) The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).

NamespaceIngestTimeRuleConditions

FieldName string

(Updatable) The field name to be evaluated.

FieldOperator string

(Updatable) The operator to be used for evaluating the field.

FieldValue string

(Updatable) The field value to be evaluated.

Kind string

(Updatable) Discriminator.

AdditionalConditions List<NamespaceIngestTimeRuleConditionsAdditionalCondition>

(Updatable) Optional additional condition(s) to be evaluated.

FieldName string

(Updatable) The field name to be evaluated.

FieldOperator string

(Updatable) The operator to be used for evaluating the field.

FieldValue string

(Updatable) The field value to be evaluated.

Kind string

(Updatable) Discriminator.

AdditionalConditions []NamespaceIngestTimeRuleConditionsAdditionalCondition

(Updatable) Optional additional condition(s) to be evaluated.

fieldName String

(Updatable) The field name to be evaluated.

fieldOperator String

(Updatable) The operator to be used for evaluating the field.

fieldValue String

(Updatable) The field value to be evaluated.

kind String

(Updatable) Discriminator.

additionalConditions List<NamespaceIngestTimeRuleConditionsAdditionalCondition>

(Updatable) Optional additional condition(s) to be evaluated.

fieldName string

(Updatable) The field name to be evaluated.

fieldOperator string

(Updatable) The operator to be used for evaluating the field.

fieldValue string

(Updatable) The field value to be evaluated.

kind string

(Updatable) Discriminator.

additionalConditions NamespaceIngestTimeRuleConditionsAdditionalCondition[]

(Updatable) Optional additional condition(s) to be evaluated.

field_name str

(Updatable) The field name to be evaluated.

field_operator str

(Updatable) The operator to be used for evaluating the field.

field_value str

(Updatable) The field value to be evaluated.

kind str

(Updatable) Discriminator.

additional_conditions NamespaceIngestTimeRuleConditionsAdditionalCondition]

(Updatable) Optional additional condition(s) to be evaluated.

fieldName String

(Updatable) The field name to be evaluated.

fieldOperator String

(Updatable) The operator to be used for evaluating the field.

fieldValue String

(Updatable) The field value to be evaluated.

kind String

(Updatable) Discriminator.

additionalConditions List<Property Map>

(Updatable) Optional additional condition(s) to be evaluated.

NamespaceIngestTimeRuleConditionsAdditionalCondition

ConditionField string

(Updatable) The additional field name to be evaluated.

ConditionOperator string

(Updatable) The operator to be used for evaluating the additional field.

ConditionValue string

(Updatable) The additional field value to be evaluated.

ConditionField string

(Updatable) The additional field name to be evaluated.

ConditionOperator string

(Updatable) The operator to be used for evaluating the additional field.

ConditionValue string

(Updatable) The additional field value to be evaluated.

conditionField String

(Updatable) The additional field name to be evaluated.

conditionOperator String

(Updatable) The operator to be used for evaluating the additional field.

conditionValue String

(Updatable) The additional field value to be evaluated.

conditionField string

(Updatable) The additional field name to be evaluated.

conditionOperator string

(Updatable) The operator to be used for evaluating the additional field.

conditionValue string

(Updatable) The additional field value to be evaluated.

condition_field str

(Updatable) The additional field name to be evaluated.

condition_operator str

(Updatable) The operator to be used for evaluating the additional field.

condition_value str

(Updatable) The additional field value to be evaluated.

conditionField String

(Updatable) The additional field name to be evaluated.

conditionOperator String

(Updatable) The operator to be used for evaluating the additional field.

conditionValue String

(Updatable) The additional field value to be evaluated.

Import

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

 $ pulumi import oci:LogAnalytics/namespaceIngestTimeRule:NamespaceIngestTimeRule test_namespace_ingest_time_rule "namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.