Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.LogAnalytics.getNamespaceIngestTimeRule
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Ingest
Time stringRule Id - Unique ocid of the ingest time rule.
- Namespace string
- The Logging Analytics namespace used for the request.
- Ingest
Time stringRule Id - Unique ocid of the ingest time rule.
- Namespace string
- The Logging Analytics namespace used for the request.
- ingest
Time StringRule Id - Unique ocid of the ingest time rule.
- namespace String
- The Logging Analytics namespace used for the request.
- ingest
Time 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.
- ingest
Time 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<Get
Namespace Ingest Time Rule Action> - The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- Compartment
Id string - Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Conditions
List<Get
Namespace Ingest Time Rule Condition> - The condition(s) to evaluate for an ingest time rule.
- 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.
- Display
Name string - The ingest time rule display name.
- 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.
- Ingest
Time stringRule Id - Is
Enabled 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.
- Time
Created string - The date and time the resource was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the resource was last updated, in the format defined by RFC3339.
- Actions
[]Get
Namespace Ingest Time Rule Action - The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- Compartment
Id string - Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Conditions
[]Get
Namespace Ingest Time Rule Condition - The condition(s) to evaluate for an ingest time rule.
- 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.
- Display
Name string - The ingest time rule display name.
- 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.
- Ingest
Time stringRule Id - Is
Enabled 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.
- Time
Created string - The date and time the resource was created, in the format defined by RFC3339.
- Time
Updated string - The date and time the resource was last updated, in the format defined by RFC3339.
- actions
List<Get
Namespace Ingest Time Rule Action> - The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment
Id String - Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
List<Get
Namespace Ingest Time Rule Condition> - The condition(s) to evaluate for an ingest time rule.
- 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.
- display
Name String - The ingest time rule display name.
- 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.
- ingest
Time StringRule Id - is
Enabled 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.
- time
Created String - The date and time the resource was created, in the format defined by RFC3339.
- time
Updated String - The date and time the resource was last updated, in the format defined by RFC3339.
- actions
Get
Namespace Ingest Time Rule Action[] - The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment
Id string - Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
Get
Namespace Ingest Time Rule Condition[] - The condition(s) to evaluate for an ingest time rule.
- {[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.
- display
Name string - The ingest time rule display name.
- {[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.
- ingest
Time stringRule Id - is
Enabled 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.
- time
Created string - The date and time the resource was created, in the format defined by RFC3339.
- time
Updated string - The date and time the resource was last updated, in the format defined by RFC3339.
- actions
Sequence[loganalytics.
Get Namespace 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[loganalytics.
Get Namespace Ingest Time Rule Condition] - The condition(s) to evaluate for an ingest time rule.
- 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 - The ingest time rule display name.
- 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.
- 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.
- compartment
Id 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<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.
- display
Name String - The ingest time rule display name.
- 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.
- ingest
Time StringRule Id - is
Enabled 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.
- time
Created String - The date and time the resource was created, in the format defined by RFC3339.
- time
Updated String - The date and time the resource was last updated, in the format defined by RFC3339.
Supporting Types
GetNamespaceIngestTimeRuleAction
- Compartment
Id 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
- Metric
Name 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.
- Resource
Group 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 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
- Metric
Name 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.
- Resource
Group 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 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
- metric
Name 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.
- resource
Group 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 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
- metric
Name 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.
- resource
Group 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.
- compartment
Id 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
- metric
Name 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.
- resource
Group 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
- Additional
Conditions List<GetNamespace Ingest Time Rule Condition Additional Condition> - Optional additional condition(s) to be evaluated.
- Field
Name string - The field name to be evaluated.
- Field
Operator string - The operator to be used for evaluating the field.
- Field
Value string - The field value to be evaluated.
- Kind string
- Discriminator.
- Additional
Conditions []GetNamespace Ingest Time Rule Condition Additional Condition - Optional additional condition(s) to be evaluated.
- Field
Name string - The field name to be evaluated.
- Field
Operator string - The operator to be used for evaluating the field.
- Field
Value string - The field value to be evaluated.
- Kind string
- Discriminator.
- additional
Conditions List<GetNamespace Ingest Time Rule Condition Additional Condition> - Optional additional condition(s) to be evaluated.
- field
Name String - The field name to be evaluated.
- field
Operator String - The operator to be used for evaluating the field.
- field
Value String - The field value to be evaluated.
- kind String
- Discriminator.
- additional
Conditions GetNamespace Ingest Time Rule Condition Additional Condition[] - Optional additional condition(s) to be evaluated.
- field
Name string - The field name to be evaluated.
- field
Operator string - The operator to be used for evaluating the field.
- field
Value string - The field value to be evaluated.
- kind string
- Discriminator.
- additional_
conditions Sequence[loganalytics.Get Namespace 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.
- additional
Conditions List<Property Map> - Optional additional condition(s) to be evaluated.
- field
Name String - The field name to be evaluated.
- field
Operator String - The operator to be used for evaluating the field.
- field
Value String - The field value to be evaluated.
- kind String
- Discriminator.
GetNamespaceIngestTimeRuleConditionAdditionalCondition
- Condition
Field string - The additional field name to be evaluated.
- Condition
Operator string - The operator to be used for evaluating the additional field.
- Condition
Value string - The additional field value to be evaluated.
- Condition
Field string - The additional field name to be evaluated.
- Condition
Operator string - The operator to be used for evaluating the additional field.
- Condition
Value string - The additional field value to be evaluated.
- condition
Field String - The additional field name to be evaluated.
- condition
Operator String - The operator to be used for evaluating the additional field.
- condition
Value String - The additional field value to be evaluated.
- condition
Field string - The additional field name to be evaluated.
- condition
Operator string - The operator to be used for evaluating the additional field.
- condition
Value 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.
- condition
Field String - The additional field name to be evaluated.
- condition
Operator String - The operator to be used for evaluating the additional field.
- condition
Value 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi