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

oci.LogAnalytics.getNamespaceIngestTimeRules

This data source provides the list of Namespace Ingest Time Rules in Oracle Cloud Infrastructure Log Analytics service.

Returns a list of ingest time rules in a compartment. You may limit the number of rules, provide sorting options, and filter the results.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testNamespaceIngestTimeRules = Oci.LogAnalytics.GetNamespaceIngestTimeRules.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        Namespace = @var.Namespace_ingest_time_rule_namespace,
        ConditionKind = @var.Namespace_ingest_time_rule_condition_kind,
        DisplayName = @var.Namespace_ingest_time_rule_display_name,
        FieldName = @var.Namespace_ingest_time_rule_field_name,
        FieldValue = @var.Namespace_ingest_time_rule_field_value,
        State = @var.Namespace_ingest_time_rule_state,
    });

});
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.GetNamespaceIngestTimeRules(ctx, &loganalytics.GetNamespaceIngestTimeRulesArgs{
			CompartmentId: _var.Compartment_id,
			Namespace:     _var.Namespace_ingest_time_rule_namespace,
			ConditionKind: pulumi.StringRef(_var.Namespace_ingest_time_rule_condition_kind),
			DisplayName:   pulumi.StringRef(_var.Namespace_ingest_time_rule_display_name),
			FieldName:     pulumi.StringRef(_var.Namespace_ingest_time_rule_field_name),
			FieldValue:    pulumi.StringRef(_var.Namespace_ingest_time_rule_field_value),
			State:         pulumi.StringRef(_var.Namespace_ingest_time_rule_state),
		}, nil)
		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.LogAnalyticsFunctions;
import com.pulumi.oci.LogAnalytics.inputs.GetNamespaceIngestTimeRulesArgs;
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 testNamespaceIngestTimeRules = LogAnalyticsFunctions.getNamespaceIngestTimeRules(GetNamespaceIngestTimeRulesArgs.builder()
            .compartmentId(var_.compartment_id())
            .namespace(var_.namespace_ingest_time_rule_namespace())
            .conditionKind(var_.namespace_ingest_time_rule_condition_kind())
            .displayName(var_.namespace_ingest_time_rule_display_name())
            .fieldName(var_.namespace_ingest_time_rule_field_name())
            .fieldValue(var_.namespace_ingest_time_rule_field_value())
            .state(var_.namespace_ingest_time_rule_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_namespace_ingest_time_rules = oci.LogAnalytics.get_namespace_ingest_time_rules(compartment_id=var["compartment_id"],
    namespace=var["namespace_ingest_time_rule_namespace"],
    condition_kind=var["namespace_ingest_time_rule_condition_kind"],
    display_name=var["namespace_ingest_time_rule_display_name"],
    field_name=var["namespace_ingest_time_rule_field_name"],
    field_value=var["namespace_ingest_time_rule_field_value"],
    state=var["namespace_ingest_time_rule_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testNamespaceIngestTimeRules = oci.LogAnalytics.getNamespaceIngestTimeRules({
    compartmentId: _var.compartment_id,
    namespace: _var.namespace_ingest_time_rule_namespace,
    conditionKind: _var.namespace_ingest_time_rule_condition_kind,
    displayName: _var.namespace_ingest_time_rule_display_name,
    fieldName: _var.namespace_ingest_time_rule_field_name,
    fieldValue: _var.namespace_ingest_time_rule_field_value,
    state: _var.namespace_ingest_time_rule_state,
});
variables:
  testNamespaceIngestTimeRules:
    fn::invoke:
      Function: oci:LogAnalytics:getNamespaceIngestTimeRules
      Arguments:
        compartmentId: ${var.compartment_id}
        namespace: ${var.namespace_ingest_time_rule_namespace}
        conditionKind: ${var.namespace_ingest_time_rule_condition_kind}
        displayName: ${var.namespace_ingest_time_rule_display_name}
        fieldName: ${var.namespace_ingest_time_rule_field_name}
        fieldValue: ${var.namespace_ingest_time_rule_field_value}
        state: ${var.namespace_ingest_time_rule_state}

Using getNamespaceIngestTimeRules

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 getNamespaceIngestTimeRules(args: GetNamespaceIngestTimeRulesArgs, opts?: InvokeOptions): Promise<GetNamespaceIngestTimeRulesResult>
function getNamespaceIngestTimeRulesOutput(args: GetNamespaceIngestTimeRulesOutputArgs, opts?: InvokeOptions): Output<GetNamespaceIngestTimeRulesResult>
def get_namespace_ingest_time_rules(compartment_id: Optional[str] = None,
                                    condition_kind: Optional[str] = None,
                                    display_name: Optional[str] = None,
                                    field_name: Optional[str] = None,
                                    field_value: Optional[str] = None,
                                    filters: Optional[Sequence[_loganalytics.GetNamespaceIngestTimeRulesFilter]] = None,
                                    namespace: Optional[str] = None,
                                    state: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetNamespaceIngestTimeRulesResult
def get_namespace_ingest_time_rules_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                    condition_kind: Optional[pulumi.Input[str]] = None,
                                    display_name: Optional[pulumi.Input[str]] = None,
                                    field_name: Optional[pulumi.Input[str]] = None,
                                    field_value: Optional[pulumi.Input[str]] = None,
                                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[_loganalytics.GetNamespaceIngestTimeRulesFilterArgs]]]] = None,
                                    namespace: Optional[pulumi.Input[str]] = None,
                                    state: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceIngestTimeRulesResult]
func GetNamespaceIngestTimeRules(ctx *Context, args *GetNamespaceIngestTimeRulesArgs, opts ...InvokeOption) (*GetNamespaceIngestTimeRulesResult, error)
func GetNamespaceIngestTimeRulesOutput(ctx *Context, args *GetNamespaceIngestTimeRulesOutputArgs, opts ...InvokeOption) GetNamespaceIngestTimeRulesResultOutput

> Note: This function is named GetNamespaceIngestTimeRules in the Go SDK.

public static class GetNamespaceIngestTimeRules 
{
    public static Task<GetNamespaceIngestTimeRulesResult> InvokeAsync(GetNamespaceIngestTimeRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetNamespaceIngestTimeRulesResult> Invoke(GetNamespaceIngestTimeRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespaceIngestTimeRulesResult> getNamespaceIngestTimeRules(GetNamespaceIngestTimeRulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:LogAnalytics/getNamespaceIngestTimeRules:getNamespaceIngestTimeRules
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The ID of the compartment in which to list resources.

Namespace string

The Logging Analytics namespace used for the request.

ConditionKind string

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

DisplayName string

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

FieldName string

The field name used for filtering. Only rules using the specified field name will be returned.

FieldValue string

The field value used for filtering. Only rules using the specified field value will be returned.

Filters List<GetNamespaceIngestTimeRulesFilter>
State string

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

CompartmentId string

The ID of the compartment in which to list resources.

Namespace string

The Logging Analytics namespace used for the request.

ConditionKind string

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

DisplayName string

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

FieldName string

The field name used for filtering. Only rules using the specified field name will be returned.

FieldValue string

The field value used for filtering. Only rules using the specified field value will be returned.

Filters []GetNamespaceIngestTimeRulesFilter
State string

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

compartmentId String

The ID of the compartment in which to list resources.

namespace String

The Logging Analytics namespace used for the request.

conditionKind String

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

displayName String

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

fieldName String

The field name used for filtering. Only rules using the specified field name will be returned.

fieldValue String

The field value used for filtering. Only rules using the specified field value will be returned.

filters List<GetNamespaceIngestTimeRulesFilter>
state String

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

compartmentId string

The ID of the compartment in which to list resources.

namespace string

The Logging Analytics namespace used for the request.

conditionKind string

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

displayName string

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

fieldName string

The field name used for filtering. Only rules using the specified field name will be returned.

fieldValue string

The field value used for filtering. Only rules using the specified field value will be returned.

filters GetNamespaceIngestTimeRulesFilter[]
state string

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

compartment_id str

The ID of the compartment in which to list resources.

namespace str

The Logging Analytics namespace used for the request.

condition_kind str

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

display_name str

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

field_name str

The field name used for filtering. Only rules using the specified field name will be returned.

field_value str

The field value used for filtering. Only rules using the specified field value will be returned.

filters GetNamespaceIngestTimeRulesFilter]
state str

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

compartmentId String

The ID of the compartment in which to list resources.

namespace String

The Logging Analytics namespace used for the request.

conditionKind String

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

displayName String

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

fieldName String

The field name used for filtering. Only rules using the specified field name will be returned.

fieldValue String

The field value used for filtering. Only rules using the specified field value will be returned.

filters List<Property Map>
state String

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

getNamespaceIngestTimeRules Result

The following output properties are available:

CompartmentId string

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

Id string

The provider-assigned unique ID for this managed resource.

IngestTimeRuleSummaryCollections List<GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollection>

The list of ingest_time_rule_summary_collection.

Namespace string

The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).

ConditionKind string
DisplayName string

The ingest time rule display name.

FieldName string

The field name to be evaluated.

FieldValue string

The field value to be evaluated.

Filters List<GetNamespaceIngestTimeRulesFilter>
State string

The current state of the ingest time rule.

CompartmentId string

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

Id string

The provider-assigned unique ID for this managed resource.

IngestTimeRuleSummaryCollections []GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollection

The list of ingest_time_rule_summary_collection.

Namespace string

The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).

ConditionKind string
DisplayName string

The ingest time rule display name.

FieldName string

The field name to be evaluated.

FieldValue string

The field value to be evaluated.

Filters []GetNamespaceIngestTimeRulesFilter
State string

The current state of the ingest time rule.

compartmentId String

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

id String

The provider-assigned unique ID for this managed resource.

ingestTimeRuleSummaryCollections List<GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollection>

The list of ingest_time_rule_summary_collection.

namespace String

The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).

conditionKind String
displayName String

The ingest time rule display name.

fieldName String

The field name to be evaluated.

fieldValue String

The field value to be evaluated.

filters List<GetNamespaceIngestTimeRulesFilter>
state String

The current state of the ingest time rule.

compartmentId string

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

id string

The provider-assigned unique ID for this managed resource.

ingestTimeRuleSummaryCollections GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollection[]

The list of ingest_time_rule_summary_collection.

namespace string

The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).

conditionKind string
displayName string

The ingest time rule display name.

fieldName string

The field name to be evaluated.

fieldValue string

The field value to be evaluated.

filters GetNamespaceIngestTimeRulesFilter[]
state string

The current state of the ingest time rule.

compartment_id str

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

id str

The provider-assigned unique ID for this managed resource.

ingest_time_rule_summary_collections GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollection]

The list of ingest_time_rule_summary_collection.

namespace str

The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).

condition_kind str
display_name str

The ingest time rule display name.

field_name str

The field name to be evaluated.

field_value str

The field value to be evaluated.

filters GetNamespaceIngestTimeRulesFilter]
state str

The current state of the ingest time rule.

compartmentId String

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

id String

The provider-assigned unique ID for this managed resource.

ingestTimeRuleSummaryCollections List<Property Map>

The list of ingest_time_rule_summary_collection.

namespace String

The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).

conditionKind String
displayName String

The ingest time rule display name.

fieldName String

The field name to be evaluated.

fieldValue String

The field value to be evaluated.

filters List<Property Map>
state String

The current state of the ingest time rule.

Supporting Types

GetNamespaceIngestTimeRulesFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollection

GetNamespaceIngestTimeRulesIngestTimeRuleSummaryCollectionItem

CompartmentId string

The ID of the compartment in which to list resources.

ConditionKind string

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

DefinedTags Dictionary<string, object>

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

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

FieldName string

The field name used for filtering. Only rules using the specified field name will be returned.

FieldValue string

The field value used for filtering. Only rules using the specified field value will be returned.

FreeformTags Dictionary<string, object>

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.

IsEnabled bool

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

State string

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

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.

CompartmentId string

The ID of the compartment in which to list resources.

ConditionKind string

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

DefinedTags map[string]interface{}

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

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

FieldName string

The field name used for filtering. Only rules using the specified field name will be returned.

FieldValue string

The field value used for filtering. Only rules using the specified field value will be returned.

FreeformTags map[string]interface{}

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.

IsEnabled bool

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

State string

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

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.

compartmentId String

The ID of the compartment in which to list resources.

conditionKind String

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

definedTags Map<String,Object>

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

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

fieldName String

The field name used for filtering. Only rules using the specified field name will be returned.

fieldValue String

The field value used for filtering. Only rules using the specified field value will be returned.

freeformTags Map<String,Object>

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.

isEnabled Boolean

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

state String

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

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.

compartmentId string

The ID of the compartment in which to list resources.

conditionKind string

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

definedTags {[key: string]: any}

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

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

fieldName string

The field name used for filtering. Only rules using the specified field name will be returned.

fieldValue string

The field value used for filtering. Only rules using the specified field value will be returned.

freeformTags {[key: string]: any}

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.

isEnabled boolean

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

state string

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

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.

compartment_id str

The ID of the compartment in which to list resources.

condition_kind str

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

defined_tags Mapping[str, Any]

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

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

field_name str

The field name used for filtering. Only rules using the specified field name will be returned.

field_value str

The field value used for filtering. Only rules using the specified field value will be returned.

freeform_tags Mapping[str, Any]

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.

is_enabled bool

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

state str

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

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.

compartmentId String

The ID of the compartment in which to list resources.

conditionKind String

The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.

definedTags Map<Any>

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

A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.

fieldName String

The field name used for filtering. Only rules using the specified field name will be returned.

fieldValue String

The field value used for filtering. Only rules using the specified field value will be returned.

freeformTags Map<Any>

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.

isEnabled Boolean

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

state String

The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.

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.

Package Details

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

This Pulumi package is based on the oci Terraform Provider.