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

oci.LogAnalytics.getNamespaceIngestTimeRule

Explore with Pulumi AI

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

    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 GetNamespaceIngestTimeRule(ctx *Context, args *GetNamespaceIngestTimeRuleArgs, opts ...InvokeOption) (*GetNamespaceIngestTimeRuleResult, error)
    func GetNamespaceIngestTimeRuleOutput(ctx *Context, args *GetNamespaceIngestTimeRuleOutputArgs, opts ...InvokeOption) GetNamespaceIngestTimeRuleResultOutput

    > Note: This function is named GetNamespaceIngestTimeRule 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LogAnalytics/getNamespaceIngestTimeRule:getNamespaceIngestTimeRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IngestTimeRuleId string
    Unique ocid of the ingest time rule.
    Namespace string
    The Logging Analytics namespace used for the request.
    IngestTimeRuleId string
    Unique ocid of the ingest time rule.
    Namespace string
    The Logging Analytics namespace used for the request.
    ingestTimeRuleId String
    Unique ocid of the ingest time rule.
    namespace String
    The Logging Analytics namespace used for the request.
    ingestTimeRuleId string
    Unique ocid of the ingest time rule.
    namespace string
    The Logging Analytics namespace used for the request.
    ingest_time_rule_id str
    Unique ocid of the ingest time rule.
    namespace str
    The Logging Analytics namespace used for the request.
    ingestTimeRuleId String
    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<GetNamespaceIngestTimeRuleAction>
    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<GetNamespaceIngestTimeRuleCondition>
    The condition(s) to evaluate for an ingest time rule.
    DefinedTags 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.
    FreeformTags 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.
    IngestTimeRuleId string
    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 []GetNamespaceIngestTimeRuleAction
    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 []GetNamespaceIngestTimeRuleCondition
    The condition(s) to evaluate for an ingest time rule.
    DefinedTags 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.
    FreeformTags 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.
    IngestTimeRuleId string
    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<GetNamespaceIngestTimeRuleAction>
    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<GetNamespaceIngestTimeRuleCondition>
    The condition(s) to evaluate for an ingest time rule.
    definedTags 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.
    freeformTags 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.
    ingestTimeRuleId String
    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 GetNamespaceIngestTimeRuleAction[]
    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 GetNamespaceIngestTimeRuleCondition[]
    The condition(s) to evaluate for an ingest time rule.
    definedTags {[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.
    freeformTags {[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.
    ingestTimeRuleId string
    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[loganalytics.GetNamespaceIngestTimeRuleAction]
    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[loganalytics.GetNamespaceIngestTimeRuleCondition]
    The condition(s) to evaluate for an ingest time rule.
    defined_tags 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.
    freeform_tags 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_rule_id str
    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.
    definedTags 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.
    freeformTags 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.
    ingestTimeRuleId String
    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<GetNamespaceIngestTimeRuleConditionAdditionalCondition>
    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 []GetNamespaceIngestTimeRuleConditionAdditionalCondition
    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<GetNamespaceIngestTimeRuleConditionAdditionalCondition>
    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 GetNamespaceIngestTimeRuleConditionAdditionalCondition[]
    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[loganalytics.GetNamespaceIngestTimeRuleConditionAdditionalCondition]
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi