Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.LogAnalytics.getNamespaceIngestTimeRule
Explore with Pulumi AI
This data source provides details about a specific Namespace Ingest Time Rule resource in Oracle Cloud Infrastructure Log Analytics service.
Gets detailed information about the specified ingest time rule such as description, defined tags, and free-form tags.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceIngestTimeRule = oci.LogAnalytics.getNamespaceIngestTimeRule({
    ingestTimeRuleId: testRule.id,
    namespace: namespaceIngestTimeRuleNamespace,
});
import pulumi
import pulumi_oci as oci
test_namespace_ingest_time_rule = oci.LogAnalytics.get_namespace_ingest_time_rule(ingest_time_rule_id=test_rule["id"],
    namespace=namespace_ingest_time_rule_namespace)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/loganalytics"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := loganalytics.GetNamespaceIngestTimeRule(ctx, &loganalytics.GetNamespaceIngestTimeRuleArgs{
			IngestTimeRuleId: testRule.Id,
			Namespace:        namespaceIngestTimeRuleNamespace,
		}, nil)
		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 testNamespaceIngestTimeRule = Oci.LogAnalytics.GetNamespaceIngestTimeRule.Invoke(new()
    {
        IngestTimeRuleId = testRule.Id,
        Namespace = namespaceIngestTimeRuleNamespace,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetNamespaceIngestTimeRuleArgs;
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) {
        final var testNamespaceIngestTimeRule = LogAnalyticsFunctions.getNamespaceIngestTimeRule(GetNamespaceIngestTimeRuleArgs.builder()
            .ingestTimeRuleId(testRule.id())
            .namespace(namespaceIngestTimeRuleNamespace)
            .build());
    }
}
variables:
  testNamespaceIngestTimeRule:
    fn::invoke:
      function: oci:LogAnalytics:getNamespaceIngestTimeRule
      arguments:
        ingestTimeRuleId: ${testRule.id}
        namespace: ${namespaceIngestTimeRuleNamespace}
Using getNamespaceIngestTimeRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNamespaceIngestTimeRule(args: GetNamespaceIngestTimeRuleArgs, opts?: InvokeOptions): Promise<GetNamespaceIngestTimeRuleResult>
function getNamespaceIngestTimeRuleOutput(args: GetNamespaceIngestTimeRuleOutputArgs, opts?: InvokeOptions): Output<GetNamespaceIngestTimeRuleResult>def get_namespace_ingest_time_rule(ingest_time_rule_id: Optional[str] = None,
                                   namespace: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetNamespaceIngestTimeRuleResult
def get_namespace_ingest_time_rule_output(ingest_time_rule_id: Optional[pulumi.Input[str]] = None,
                                   namespace: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceIngestTimeRuleResult]func LookupNamespaceIngestTimeRule(ctx *Context, args *LookupNamespaceIngestTimeRuleArgs, opts ...InvokeOption) (*LookupNamespaceIngestTimeRuleResult, error)
func LookupNamespaceIngestTimeRuleOutput(ctx *Context, args *LookupNamespaceIngestTimeRuleOutputArgs, opts ...InvokeOption) LookupNamespaceIngestTimeRuleResultOutput> Note: This function is named LookupNamespaceIngestTimeRule in the Go SDK.
public static class GetNamespaceIngestTimeRule 
{
    public static Task<GetNamespaceIngestTimeRuleResult> InvokeAsync(GetNamespaceIngestTimeRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetNamespaceIngestTimeRuleResult> Invoke(GetNamespaceIngestTimeRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNamespaceIngestTimeRuleResult> getNamespaceIngestTimeRule(GetNamespaceIngestTimeRuleArgs args, InvokeOptions options)
public static Output<GetNamespaceIngestTimeRuleResult> getNamespaceIngestTimeRule(GetNamespaceIngestTimeRuleArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LogAnalytics/getNamespaceIngestTimeRule:getNamespaceIngestTimeRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- IngestTime stringRule Id 
- Unique ocid of the ingest time rule.
- Namespace string
- The Logging Analytics namespace used for the request.
- IngestTime stringRule Id 
- Unique ocid of the ingest time rule.
- Namespace string
- The Logging Analytics namespace used for the request.
- ingestTime StringRule Id 
- Unique ocid of the ingest time rule.
- namespace String
- The Logging Analytics namespace used for the request.
- ingestTime stringRule Id 
- Unique ocid of the ingest time rule.
- namespace string
- The Logging Analytics namespace used for the request.
- ingest_time_ strrule_ id 
- Unique ocid of the ingest time rule.
- namespace str
- The Logging Analytics namespace used for the request.
- ingestTime StringRule Id 
- Unique ocid of the ingest time rule.
- namespace String
- The Logging Analytics namespace used for the request.
getNamespaceIngestTimeRule Result
The following output properties are available:
- Actions
List<GetNamespace Ingest Time Rule Action> 
- The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- CompartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Conditions
List<GetNamespace Ingest Time Rule Condition> 
- The condition(s) to evaluate for an ingest time rule.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Description for this resource.
- DisplayName string
- The ingest time rule display name.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- IngestTime stringRule Id 
- IsEnabled bool
- A flag indicating whether or not the ingest time rule is enabled.
- Namespace string
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- 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
[]GetNamespace Ingest Time Rule Action 
- The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- CompartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Conditions
[]GetNamespace Ingest Time Rule Condition 
- The condition(s) to evaluate for an ingest time rule.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Description for this resource.
- DisplayName string
- The ingest time rule display name.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- IngestTime stringRule Id 
- IsEnabled bool
- A flag indicating whether or not the ingest time rule is enabled.
- Namespace string
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- 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<GetNamespace Ingest Time Rule Action> 
- The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartmentId String
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
List<GetNamespace Ingest Time Rule Condition> 
- The condition(s) to evaluate for an ingest time rule.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Description for this resource.
- displayName String
- The ingest time rule display name.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- ingestTime StringRule Id 
- isEnabled Boolean
- A flag indicating whether or not the ingest time rule is enabled.
- namespace String
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- 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
GetNamespace Ingest Time Rule Action[] 
- The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
GetNamespace Ingest Time Rule Condition[] 
- The condition(s) to evaluate for an ingest time rule.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- Description for this resource.
- displayName string
- The ingest time rule display name.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- ingestTime stringRule Id 
- isEnabled boolean
- A flag indicating whether or not the ingest time rule is enabled.
- namespace string
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- 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
Sequence[GetNamespace Ingest Time Rule Action] 
- The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment_id str
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
Sequence[GetNamespace Ingest Time Rule Condition] 
- The condition(s) to evaluate for an ingest time rule.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- Description for this resource.
- display_name str
- The ingest time rule display name.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- ingest_time_ strrule_ id 
- is_enabled bool
- A flag indicating whether or not the ingest time rule is enabled.
- namespace str
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- 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>
- The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartmentId String
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions List<Property Map>
- The condition(s) to evaluate for an ingest time rule.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Description for this resource.
- displayName String
- The ingest time rule display name.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.
- ingestTime StringRule Id 
- isEnabled Boolean
- A flag indicating whether or not the ingest time rule is enabled.
- namespace String
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- 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
GetNamespaceIngestTimeRuleAction     
- CompartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Dimensions List<string>
- 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
- 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 Logging Analytics namespace used for the request.
- ResourceGroup string
- 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 ($).
- Type string
- Discriminator.
- CompartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Dimensions []string
- 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
- 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 Logging Analytics namespace used for the request.
- ResourceGroup string
- 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 ($).
- Type string
- Discriminator.
- compartmentId String
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- dimensions List<String>
- 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
- 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 Logging Analytics namespace used for the request.
- resourceGroup String
- 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 ($).
- type String
- Discriminator.
- compartmentId string
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- dimensions string[]
- 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
- 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 Logging Analytics namespace used for the request.
- resourceGroup string
- 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 ($).
- type string
- Discriminator.
- compartment_id str
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- dimensions Sequence[str]
- 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
- 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 Logging Analytics namespace used for the request.
- resource_group str
- 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 ($).
- type str
- Discriminator.
- compartmentId String
- Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- dimensions List<String>
- 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
- 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 Logging Analytics namespace used for the request.
- resourceGroup String
- 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 ($).
- type String
- Discriminator.
GetNamespaceIngestTimeRuleCondition     
- AdditionalConditions List<GetNamespace Ingest Time Rule Condition Additional Condition> 
- Optional additional condition(s) to be evaluated.
- FieldName string
- The field name to be evaluated.
- FieldOperator string
- The operator to be used for evaluating the field.
- FieldValue string
- The field value to be evaluated.
- Kind string
- Discriminator.
- AdditionalConditions []GetNamespace Ingest Time Rule Condition Additional Condition 
- Optional additional condition(s) to be evaluated.
- FieldName string
- The field name to be evaluated.
- FieldOperator string
- The operator to be used for evaluating the field.
- FieldValue string
- The field value to be evaluated.
- Kind string
- Discriminator.
- additionalConditions List<GetNamespace Ingest Time Rule Condition Additional Condition> 
- Optional additional condition(s) to be evaluated.
- fieldName String
- The field name to be evaluated.
- fieldOperator String
- The operator to be used for evaluating the field.
- fieldValue String
- The field value to be evaluated.
- kind String
- Discriminator.
- additionalConditions GetNamespace Ingest Time Rule Condition Additional Condition[] 
- Optional additional condition(s) to be evaluated.
- fieldName string
- The field name to be evaluated.
- fieldOperator string
- The operator to be used for evaluating the field.
- fieldValue string
- The field value to be evaluated.
- kind string
- Discriminator.
- additional_conditions Sequence[GetNamespace Ingest Time Rule Condition Additional Condition] 
- Optional additional condition(s) to be evaluated.
- field_name str
- The field name to be evaluated.
- field_operator str
- The operator to be used for evaluating the field.
- field_value str
- The field value to be evaluated.
- kind str
- Discriminator.
- additionalConditions List<Property Map>
- Optional additional condition(s) to be evaluated.
- fieldName String
- The field name to be evaluated.
- fieldOperator String
- The operator to be used for evaluating the field.
- fieldValue String
- The field value to be evaluated.
- kind String
- Discriminator.
GetNamespaceIngestTimeRuleConditionAdditionalCondition       
- ConditionField string
- The additional field name to be evaluated.
- ConditionOperator string
- The operator to be used for evaluating the additional field.
- ConditionValue string
- The additional field value to be evaluated.
- ConditionField string
- The additional field name to be evaluated.
- ConditionOperator string
- The operator to be used for evaluating the additional field.
- ConditionValue string
- The additional field value to be evaluated.
- conditionField String
- The additional field name to be evaluated.
- conditionOperator String
- The operator to be used for evaluating the additional field.
- conditionValue String
- The additional field value to be evaluated.
- conditionField string
- The additional field name to be evaluated.
- conditionOperator string
- The operator to be used for evaluating the additional field.
- conditionValue string
- The additional field value to be evaluated.
- condition_field str
- The additional field name to be evaluated.
- condition_operator str
- The operator to be used for evaluating the additional field.
- condition_value str
- The additional field value to be evaluated.
- conditionField String
- The additional field name to be evaluated.
- conditionOperator String
- The operator to be used for evaluating the additional field.
- conditionValue String
- The additional field value to be evaluated.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.