oci.LogAnalytics.NamespaceIngestTimeRule
Explore with Pulumi AI
This resource provides the Namespace Ingest Time Rule resource in Oracle Cloud Infrastructure Log Analytics service.
Creates a new ingest time rule in the specified compartment. You may also specify optional information such as description, defined tags, and free-form tags.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceIngestTimeRule = new oci.loganalytics.NamespaceIngestTimeRule("test_namespace_ingest_time_rule", {
actions: [{
compartmentId: compartmentId,
metricName: testMetric.name,
namespace: namespaceIngestTimeRuleActionsNamespace,
type: namespaceIngestTimeRuleActionsType,
dimensions: namespaceIngestTimeRuleActionsDimensions,
resourceGroup: namespaceIngestTimeRuleActionsResourceGroup,
}],
compartmentId: compartmentId,
conditions: {
fieldName: namespaceIngestTimeRuleConditionsFieldName,
fieldOperator: namespaceIngestTimeRuleConditionsFieldOperator,
fieldValue: namespaceIngestTimeRuleConditionsFieldValue,
kind: namespaceIngestTimeRuleConditionsKind,
additionalConditions: [{
conditionField: namespaceIngestTimeRuleConditionsAdditionalConditionsConditionField,
conditionOperator: namespaceIngestTimeRuleConditionsAdditionalConditionsConditionOperator,
conditionValue: namespaceIngestTimeRuleConditionsAdditionalConditionsConditionValue,
}],
},
displayName: namespaceIngestTimeRuleDisplayName,
namespace: namespaceIngestTimeRuleNamespace,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: namespaceIngestTimeRuleDescription,
freeformTags: {
"bar-key": "value",
},
});
import pulumi
import pulumi_oci as oci
test_namespace_ingest_time_rule = oci.log_analytics.NamespaceIngestTimeRule("test_namespace_ingest_time_rule",
actions=[{
"compartment_id": compartment_id,
"metric_name": test_metric["name"],
"namespace": namespace_ingest_time_rule_actions_namespace,
"type": namespace_ingest_time_rule_actions_type,
"dimensions": namespace_ingest_time_rule_actions_dimensions,
"resource_group": namespace_ingest_time_rule_actions_resource_group,
}],
compartment_id=compartment_id,
conditions={
"field_name": namespace_ingest_time_rule_conditions_field_name,
"field_operator": namespace_ingest_time_rule_conditions_field_operator,
"field_value": namespace_ingest_time_rule_conditions_field_value,
"kind": namespace_ingest_time_rule_conditions_kind,
"additional_conditions": [{
"condition_field": namespace_ingest_time_rule_conditions_additional_conditions_condition_field,
"condition_operator": namespace_ingest_time_rule_conditions_additional_conditions_condition_operator,
"condition_value": namespace_ingest_time_rule_conditions_additional_conditions_condition_value,
}],
},
display_name=namespace_ingest_time_rule_display_name,
namespace=namespace_ingest_time_rule_namespace,
defined_tags={
"foo-namespace.bar-key": "value",
},
description=namespace_ingest_time_rule_description,
freeform_tags={
"bar-key": "value",
})
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.NewNamespaceIngestTimeRule(ctx, "test_namespace_ingest_time_rule", &LogAnalytics.NamespaceIngestTimeRuleArgs{
Actions: loganalytics.NamespaceIngestTimeRuleActionArray{
&loganalytics.NamespaceIngestTimeRuleActionArgs{
CompartmentId: pulumi.Any(compartmentId),
MetricName: pulumi.Any(testMetric.Name),
Namespace: pulumi.Any(namespaceIngestTimeRuleActionsNamespace),
Type: pulumi.Any(namespaceIngestTimeRuleActionsType),
Dimensions: pulumi.Any(namespaceIngestTimeRuleActionsDimensions),
ResourceGroup: pulumi.Any(namespaceIngestTimeRuleActionsResourceGroup),
},
},
CompartmentId: pulumi.Any(compartmentId),
Conditions: &loganalytics.NamespaceIngestTimeRuleConditionsArgs{
FieldName: pulumi.Any(namespaceIngestTimeRuleConditionsFieldName),
FieldOperator: pulumi.Any(namespaceIngestTimeRuleConditionsFieldOperator),
FieldValue: pulumi.Any(namespaceIngestTimeRuleConditionsFieldValue),
Kind: pulumi.Any(namespaceIngestTimeRuleConditionsKind),
AdditionalConditions: loganalytics.NamespaceIngestTimeRuleConditionsAdditionalConditionArray{
&loganalytics.NamespaceIngestTimeRuleConditionsAdditionalConditionArgs{
ConditionField: pulumi.Any(namespaceIngestTimeRuleConditionsAdditionalConditionsConditionField),
ConditionOperator: pulumi.Any(namespaceIngestTimeRuleConditionsAdditionalConditionsConditionOperator),
ConditionValue: pulumi.Any(namespaceIngestTimeRuleConditionsAdditionalConditionsConditionValue),
},
},
},
DisplayName: pulumi.Any(namespaceIngestTimeRuleDisplayName),
Namespace: pulumi.Any(namespaceIngestTimeRuleNamespace),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(namespaceIngestTimeRuleDescription),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
})
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 = new Oci.LogAnalytics.NamespaceIngestTimeRule("test_namespace_ingest_time_rule", new()
{
Actions = new[]
{
new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleActionArgs
{
CompartmentId = compartmentId,
MetricName = testMetric.Name,
Namespace = namespaceIngestTimeRuleActionsNamespace,
Type = namespaceIngestTimeRuleActionsType,
Dimensions = namespaceIngestTimeRuleActionsDimensions,
ResourceGroup = namespaceIngestTimeRuleActionsResourceGroup,
},
},
CompartmentId = compartmentId,
Conditions = new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleConditionsArgs
{
FieldName = namespaceIngestTimeRuleConditionsFieldName,
FieldOperator = namespaceIngestTimeRuleConditionsFieldOperator,
FieldValue = namespaceIngestTimeRuleConditionsFieldValue,
Kind = namespaceIngestTimeRuleConditionsKind,
AdditionalConditions = new[]
{
new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleConditionsAdditionalConditionArgs
{
ConditionField = namespaceIngestTimeRuleConditionsAdditionalConditionsConditionField,
ConditionOperator = namespaceIngestTimeRuleConditionsAdditionalConditionsConditionOperator,
ConditionValue = namespaceIngestTimeRuleConditionsAdditionalConditionsConditionValue,
},
},
},
DisplayName = namespaceIngestTimeRuleDisplayName,
Namespace = namespaceIngestTimeRuleNamespace,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = namespaceIngestTimeRuleDescription,
FreeformTags =
{
{ "bar-key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.NamespaceIngestTimeRule;
import com.pulumi.oci.LogAnalytics.NamespaceIngestTimeRuleArgs;
import com.pulumi.oci.LogAnalytics.inputs.NamespaceIngestTimeRuleActionArgs;
import com.pulumi.oci.LogAnalytics.inputs.NamespaceIngestTimeRuleConditionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testNamespaceIngestTimeRule = new NamespaceIngestTimeRule("testNamespaceIngestTimeRule", NamespaceIngestTimeRuleArgs.builder()
.actions(NamespaceIngestTimeRuleActionArgs.builder()
.compartmentId(compartmentId)
.metricName(testMetric.name())
.namespace(namespaceIngestTimeRuleActionsNamespace)
.type(namespaceIngestTimeRuleActionsType)
.dimensions(namespaceIngestTimeRuleActionsDimensions)
.resourceGroup(namespaceIngestTimeRuleActionsResourceGroup)
.build())
.compartmentId(compartmentId)
.conditions(NamespaceIngestTimeRuleConditionsArgs.builder()
.fieldName(namespaceIngestTimeRuleConditionsFieldName)
.fieldOperator(namespaceIngestTimeRuleConditionsFieldOperator)
.fieldValue(namespaceIngestTimeRuleConditionsFieldValue)
.kind(namespaceIngestTimeRuleConditionsKind)
.additionalConditions(NamespaceIngestTimeRuleConditionsAdditionalConditionArgs.builder()
.conditionField(namespaceIngestTimeRuleConditionsAdditionalConditionsConditionField)
.conditionOperator(namespaceIngestTimeRuleConditionsAdditionalConditionsConditionOperator)
.conditionValue(namespaceIngestTimeRuleConditionsAdditionalConditionsConditionValue)
.build())
.build())
.displayName(namespaceIngestTimeRuleDisplayName)
.namespace(namespaceIngestTimeRuleNamespace)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(namespaceIngestTimeRuleDescription)
.freeformTags(Map.of("bar-key", "value"))
.build());
}
}
resources:
testNamespaceIngestTimeRule:
type: oci:LogAnalytics:NamespaceIngestTimeRule
name: test_namespace_ingest_time_rule
properties:
actions:
- compartmentId: ${compartmentId}
metricName: ${testMetric.name}
namespace: ${namespaceIngestTimeRuleActionsNamespace}
type: ${namespaceIngestTimeRuleActionsType}
dimensions: ${namespaceIngestTimeRuleActionsDimensions}
resourceGroup: ${namespaceIngestTimeRuleActionsResourceGroup}
compartmentId: ${compartmentId}
conditions:
fieldName: ${namespaceIngestTimeRuleConditionsFieldName}
fieldOperator: ${namespaceIngestTimeRuleConditionsFieldOperator}
fieldValue: ${namespaceIngestTimeRuleConditionsFieldValue}
kind: ${namespaceIngestTimeRuleConditionsKind}
additionalConditions:
- conditionField: ${namespaceIngestTimeRuleConditionsAdditionalConditionsConditionField}
conditionOperator: ${namespaceIngestTimeRuleConditionsAdditionalConditionsConditionOperator}
conditionValue: ${namespaceIngestTimeRuleConditionsAdditionalConditionsConditionValue}
displayName: ${namespaceIngestTimeRuleDisplayName}
namespace: ${namespaceIngestTimeRuleNamespace}
definedTags:
foo-namespace.bar-key: value
description: ${namespaceIngestTimeRuleDescription}
freeformTags:
bar-key: value
Create NamespaceIngestTimeRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NamespaceIngestTimeRule(name: string, args: NamespaceIngestTimeRuleArgs, opts?: CustomResourceOptions);
@overload
def NamespaceIngestTimeRule(resource_name: str,
args: NamespaceIngestTimeRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NamespaceIngestTimeRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[_loganalytics.NamespaceIngestTimeRuleActionArgs]] = None,
compartment_id: Optional[str] = None,
conditions: Optional[_loganalytics.NamespaceIngestTimeRuleConditionsArgs] = None,
display_name: Optional[str] = None,
namespace: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None)
func NewNamespaceIngestTimeRule(ctx *Context, name string, args NamespaceIngestTimeRuleArgs, opts ...ResourceOption) (*NamespaceIngestTimeRule, error)
public NamespaceIngestTimeRule(string name, NamespaceIngestTimeRuleArgs args, CustomResourceOptions? opts = null)
public NamespaceIngestTimeRule(String name, NamespaceIngestTimeRuleArgs args)
public NamespaceIngestTimeRule(String name, NamespaceIngestTimeRuleArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:NamespaceIngestTimeRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NamespaceIngestTimeRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NamespaceIngestTimeRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NamespaceIngestTimeRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceIngestTimeRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NamespaceIngestTimeRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var namespaceIngestTimeRuleResource = new Oci.LogAnalytics.NamespaceIngestTimeRule("namespaceIngestTimeRuleResource", new()
{
Actions = new[]
{
new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleActionArgs
{
CompartmentId = "string",
MetricName = "string",
Namespace = "string",
Type = "string",
Dimensions = new[]
{
"string",
},
ResourceGroup = "string",
},
},
CompartmentId = "string",
Conditions = new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleConditionsArgs
{
FieldName = "string",
FieldOperator = "string",
FieldValue = "string",
Kind = "string",
AdditionalConditions = new[]
{
new Oci.LogAnalytics.Inputs.NamespaceIngestTimeRuleConditionsAdditionalConditionArgs
{
ConditionField = "string",
ConditionOperator = "string",
ConditionValue = "string",
},
},
},
DisplayName = "string",
Namespace = "string",
DefinedTags =
{
{ "string", "string" },
},
Description = "string",
FreeformTags =
{
{ "string", "string" },
},
});
example, err := LogAnalytics.NewNamespaceIngestTimeRule(ctx, "namespaceIngestTimeRuleResource", &LogAnalytics.NamespaceIngestTimeRuleArgs{
Actions: loganalytics.NamespaceIngestTimeRuleActionArray{
&loganalytics.NamespaceIngestTimeRuleActionArgs{
CompartmentId: pulumi.String("string"),
MetricName: pulumi.String("string"),
Namespace: pulumi.String("string"),
Type: pulumi.String("string"),
Dimensions: pulumi.StringArray{
pulumi.String("string"),
},
ResourceGroup: pulumi.String("string"),
},
},
CompartmentId: pulumi.String("string"),
Conditions: &loganalytics.NamespaceIngestTimeRuleConditionsArgs{
FieldName: pulumi.String("string"),
FieldOperator: pulumi.String("string"),
FieldValue: pulumi.String("string"),
Kind: pulumi.String("string"),
AdditionalConditions: loganalytics.NamespaceIngestTimeRuleConditionsAdditionalConditionArray{
&loganalytics.NamespaceIngestTimeRuleConditionsAdditionalConditionArgs{
ConditionField: pulumi.String("string"),
ConditionOperator: pulumi.String("string"),
ConditionValue: pulumi.String("string"),
},
},
},
DisplayName: pulumi.String("string"),
Namespace: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var namespaceIngestTimeRuleResource = new NamespaceIngestTimeRule("namespaceIngestTimeRuleResource", NamespaceIngestTimeRuleArgs.builder()
.actions(NamespaceIngestTimeRuleActionArgs.builder()
.compartmentId("string")
.metricName("string")
.namespace("string")
.type("string")
.dimensions("string")
.resourceGroup("string")
.build())
.compartmentId("string")
.conditions(NamespaceIngestTimeRuleConditionsArgs.builder()
.fieldName("string")
.fieldOperator("string")
.fieldValue("string")
.kind("string")
.additionalConditions(NamespaceIngestTimeRuleConditionsAdditionalConditionArgs.builder()
.conditionField("string")
.conditionOperator("string")
.conditionValue("string")
.build())
.build())
.displayName("string")
.namespace("string")
.definedTags(Map.of("string", "string"))
.description("string")
.freeformTags(Map.of("string", "string"))
.build());
namespace_ingest_time_rule_resource = oci.log_analytics.NamespaceIngestTimeRule("namespaceIngestTimeRuleResource",
actions=[oci.log_analytics.NamespaceIngestTimeRuleActionArgs(
compartment_id="string",
metric_name="string",
namespace="string",
type="string",
dimensions=["string"],
resource_group="string",
)],
compartment_id="string",
conditions=oci.log_analytics.NamespaceIngestTimeRuleConditionsArgs(
field_name="string",
field_operator="string",
field_value="string",
kind="string",
additional_conditions=[oci.log_analytics.NamespaceIngestTimeRuleConditionsAdditionalConditionArgs(
condition_field="string",
condition_operator="string",
condition_value="string",
)],
),
display_name="string",
namespace="string",
defined_tags={
"string": "string",
},
description="string",
freeform_tags={
"string": "string",
})
const namespaceIngestTimeRuleResource = new oci.loganalytics.NamespaceIngestTimeRule("namespaceIngestTimeRuleResource", {
actions: [{
compartmentId: "string",
metricName: "string",
namespace: "string",
type: "string",
dimensions: ["string"],
resourceGroup: "string",
}],
compartmentId: "string",
conditions: {
fieldName: "string",
fieldOperator: "string",
fieldValue: "string",
kind: "string",
additionalConditions: [{
conditionField: "string",
conditionOperator: "string",
conditionValue: "string",
}],
},
displayName: "string",
namespace: "string",
definedTags: {
string: "string",
},
description: "string",
freeformTags: {
string: "string",
},
});
type: oci:LogAnalytics:NamespaceIngestTimeRule
properties:
actions:
- compartmentId: string
dimensions:
- string
metricName: string
namespace: string
resourceGroup: string
type: string
compartmentId: string
conditions:
additionalConditions:
- conditionField: string
conditionOperator: string
conditionValue: string
fieldName: string
fieldOperator: string
fieldValue: string
kind: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
namespace: string
NamespaceIngestTimeRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NamespaceIngestTimeRule resource accepts the following input properties:
- Actions
List<Namespace
Ingest Time Rule Action> - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- Compartment
Id string - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Conditions
Namespace
Ingest Time Rule Conditions - (Updatable) The condition(s) to evaluate for an ingest time rule.
- Display
Name string - (Updatable) The ingest time rule display name.
- Namespace string
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Description for this resource.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Actions
[]Namespace
Ingest Time Rule Action Args - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- Compartment
Id string - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Conditions
Namespace
Ingest Time Rule Conditions Args - (Updatable) The condition(s) to evaluate for an ingest time rule.
- Display
Name string - (Updatable) The ingest time rule display name.
- Namespace string
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Description for this resource.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- actions
List<Namespace
Ingest Time Rule Action> - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment
Id String - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
Namespace
Ingest Time Rule Conditions - (Updatable) The condition(s) to evaluate for an ingest time rule.
- display
Name String - (Updatable) The ingest time rule display name.
- namespace String
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Description for this resource.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- actions
Namespace
Ingest Time Rule Action[] - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment
Id string - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
Namespace
Ingest Time Rule Conditions - (Updatable) The condition(s) to evaluate for an ingest time rule.
- display
Name string - (Updatable) The ingest time rule display name.
- namespace string
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) Description for this resource.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- actions
Sequence[loganalytics.
Namespace Ingest Time Rule Action Args] - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment_
id str - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
loganalytics.
Namespace Ingest Time Rule Conditions Args - (Updatable) The condition(s) to evaluate for an ingest time rule.
- display_
name str - (Updatable) The ingest time rule display name.
- namespace str
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) Description for this resource.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- actions List<Property Map>
- (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment
Id String - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions Property Map
- (Updatable) The condition(s) to evaluate for an ingest time rule.
- display
Name String - (Updatable) The ingest time rule display name.
- namespace String
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Description for this resource.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
Outputs
All input properties are implicitly available as output properties. Additionally, the NamespaceIngestTimeRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ingest
Time stringRule Id - Is
Enabled bool - A flag indicating whether or not the ingest time rule is enabled.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ingest
Time stringRule Id - Is
Enabled bool - A flag indicating whether or not the ingest time rule is enabled.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- ingest
Time StringRule Id - is
Enabled Boolean - A flag indicating whether or not the ingest time rule is enabled.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- ingest
Time stringRule Id - is
Enabled boolean - A flag indicating whether or not the ingest time rule is enabled.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- ingest_
time_ strrule_ id - is_
enabled bool - A flag indicating whether or not the ingest time rule is enabled.
- state str
- The current state of the ingest time rule.
- time_
created str - The date and time the resource was created, in the format defined by RFC3339.
- time_
updated str - The date and time the resource was last updated, in the format defined by RFC3339.
- id String
- The provider-assigned unique ID for this managed resource.
- ingest
Time StringRule Id - is
Enabled Boolean - A flag indicating whether or not the ingest time rule is enabled.
- 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.
Look up Existing NamespaceIngestTimeRule Resource
Get an existing NamespaceIngestTimeRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NamespaceIngestTimeRuleState, opts?: CustomResourceOptions): NamespaceIngestTimeRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[_loganalytics.NamespaceIngestTimeRuleActionArgs]] = None,
compartment_id: Optional[str] = None,
conditions: Optional[_loganalytics.NamespaceIngestTimeRuleConditionsArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
ingest_time_rule_id: Optional[str] = None,
is_enabled: Optional[bool] = None,
namespace: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> NamespaceIngestTimeRule
func GetNamespaceIngestTimeRule(ctx *Context, name string, id IDInput, state *NamespaceIngestTimeRuleState, opts ...ResourceOption) (*NamespaceIngestTimeRule, error)
public static NamespaceIngestTimeRule Get(string name, Input<string> id, NamespaceIngestTimeRuleState? state, CustomResourceOptions? opts = null)
public static NamespaceIngestTimeRule get(String name, Output<String> id, NamespaceIngestTimeRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Actions
List<Namespace
Ingest Time Rule Action> - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- Compartment
Id string - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Conditions
Namespace
Ingest Time Rule Conditions - (Updatable) The condition(s) to evaluate for an ingest time rule.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Description for this resource.
- Display
Name string - (Updatable) The ingest time rule display name.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Ingest
Time stringRule Id - Is
Enabled bool - A flag indicating whether or not the ingest time rule is enabled.
- Namespace string
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
[]Namespace
Ingest Time Rule Action Args - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- Compartment
Id string - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- Conditions
Namespace
Ingest Time Rule Conditions Args - (Updatable) The condition(s) to evaluate for an ingest time rule.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) Description for this resource.
- Display
Name string - (Updatable) The ingest time rule display name.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Ingest
Time stringRule Id - Is
Enabled bool - A flag indicating whether or not the ingest time rule is enabled.
- Namespace string
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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<Namespace
Ingest Time Rule Action> - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment
Id String - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
Namespace
Ingest Time Rule Conditions - (Updatable) The condition(s) to evaluate for an ingest time rule.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Description for this resource.
- display
Name String - (Updatable) The ingest time rule display name.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- ingest
Time StringRule Id - is
Enabled Boolean - A flag indicating whether or not the ingest time rule is enabled.
- namespace String
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
Namespace
Ingest Time Rule Action[] - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment
Id string - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
Namespace
Ingest Time Rule Conditions - (Updatable) The condition(s) to evaluate for an ingest time rule.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) Description for this resource.
- display
Name string - (Updatable) The ingest time rule display name.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- ingest
Time stringRule Id - is
Enabled boolean - A flag indicating whether or not the ingest time rule is enabled.
- namespace string
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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.
Namespace Ingest Time Rule Action Args] - (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment_
id str - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions
loganalytics.
Namespace Ingest Time Rule Conditions Args - (Updatable) The condition(s) to evaluate for an ingest time rule.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) Description for this resource.
- display_
name str - (Updatable) The ingest time rule display name.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- ingest_
time_ strrule_ id - is_
enabled bool - A flag indicating whether or not the ingest time rule is enabled.
- namespace str
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- state str
- The current state of the ingest time rule.
- time_
created str - The date and time the resource was created, in the format defined by RFC3339.
- time_
updated str - The date and time the resource was last updated, in the format defined by RFC3339.
- actions List<Property Map>
- (Updatable) The action(s) to be performed if the ingest time rule condition(s) are satisfied.
- compartment
Id String - (Updatable) Compartment Identifier [OCID] (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
- conditions Property Map
- (Updatable) The condition(s) to evaluate for an ingest time rule.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) Description for this resource.
- display
Name String - (Updatable) The ingest time rule display name.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- ingest
Time StringRule Id - is
Enabled Boolean - A flag indicating whether or not the ingest time rule is enabled.
- namespace String
The Logging Analytics namespace used for the request.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- 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
NamespaceIngestTimeRuleAction, NamespaceIngestTimeRuleActionArgs
- Compartment
Id string - (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
- Metric
Name string - (Updatable) The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- Namespace string
- (Updatable) The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- Type string
- (Updatable) Discriminator.
- Dimensions List<string>
- (Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME
- Resource
Group string - (Updatable) The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- Compartment
Id string - (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
- Metric
Name string - (Updatable) The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- Namespace string
- (Updatable) The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- Type string
- (Updatable) Discriminator.
- Dimensions []string
- (Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME
- Resource
Group string - (Updatable) The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- compartment
Id String - (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
- metric
Name String - (Updatable) The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- namespace String
- (Updatable) The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- type String
- (Updatable) Discriminator.
- dimensions List<String>
- (Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME
- resource
Group String - (Updatable) The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- compartment
Id string - (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
- metric
Name string - (Updatable) The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- namespace string
- (Updatable) The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- type string
- (Updatable) Discriminator.
- dimensions string[]
- (Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME
- resource
Group string - (Updatable) The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- compartment_
id str - (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
- metric_
name str - (Updatable) The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- namespace str
- (Updatable) The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- type str
- (Updatable) Discriminator.
- dimensions Sequence[str]
- (Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME
- resource_
group str - (Updatable) The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- compartment
Id String - (Updatable) The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.
- metric
Name String - (Updatable) The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
- namespace String
- (Updatable) The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).
- type String
- (Updatable) Discriminator.
- dimensions List<String>
- (Updatable) Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAME
- resource
Group String - (Updatable) The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
NamespaceIngestTimeRuleConditions, NamespaceIngestTimeRuleConditionsArgs
- Field
Name string - (Updatable) The field name to be evaluated.
- Field
Operator string - (Updatable) The operator to be used for evaluating the field.
- Field
Value string - (Updatable) The field value to be evaluated.
- Kind string
- (Updatable) Discriminator.
- Additional
Conditions List<NamespaceIngest Time Rule Conditions Additional Condition> - (Updatable) Optional additional condition(s) to be evaluated.
- Field
Name string - (Updatable) The field name to be evaluated.
- Field
Operator string - (Updatable) The operator to be used for evaluating the field.
- Field
Value string - (Updatable) The field value to be evaluated.
- Kind string
- (Updatable) Discriminator.
- Additional
Conditions []NamespaceIngest Time Rule Conditions Additional Condition - (Updatable) Optional additional condition(s) to be evaluated.
- field
Name String - (Updatable) The field name to be evaluated.
- field
Operator String - (Updatable) The operator to be used for evaluating the field.
- field
Value String - (Updatable) The field value to be evaluated.
- kind String
- (Updatable) Discriminator.
- additional
Conditions List<NamespaceIngest Time Rule Conditions Additional Condition> - (Updatable) Optional additional condition(s) to be evaluated.
- field
Name string - (Updatable) The field name to be evaluated.
- field
Operator string - (Updatable) The operator to be used for evaluating the field.
- field
Value string - (Updatable) The field value to be evaluated.
- kind string
- (Updatable) Discriminator.
- additional
Conditions NamespaceIngest Time Rule Conditions Additional Condition[] - (Updatable) Optional additional condition(s) to be evaluated.
- field_
name str - (Updatable) The field name to be evaluated.
- field_
operator str - (Updatable) The operator to be used for evaluating the field.
- field_
value str - (Updatable) The field value to be evaluated.
- kind str
- (Updatable) Discriminator.
- additional_
conditions Sequence[loganalytics.Namespace Ingest Time Rule Conditions Additional Condition] - (Updatable) Optional additional condition(s) to be evaluated.
- field
Name String - (Updatable) The field name to be evaluated.
- field
Operator String - (Updatable) The operator to be used for evaluating the field.
- field
Value String - (Updatable) The field value to be evaluated.
- kind String
- (Updatable) Discriminator.
- additional
Conditions List<Property Map> - (Updatable) Optional additional condition(s) to be evaluated.
NamespaceIngestTimeRuleConditionsAdditionalCondition, NamespaceIngestTimeRuleConditionsAdditionalConditionArgs
- Condition
Field string - (Updatable) The additional field name to be evaluated.
- Condition
Operator string - (Updatable) The operator to be used for evaluating the additional field.
- Condition
Value string - (Updatable) The additional field value to be evaluated.
- Condition
Field string - (Updatable) The additional field name to be evaluated.
- Condition
Operator string - (Updatable) The operator to be used for evaluating the additional field.
- Condition
Value string - (Updatable) The additional field value to be evaluated.
- condition
Field String - (Updatable) The additional field name to be evaluated.
- condition
Operator String - (Updatable) The operator to be used for evaluating the additional field.
- condition
Value String - (Updatable) The additional field value to be evaluated.
- condition
Field string - (Updatable) The additional field name to be evaluated.
- condition
Operator string - (Updatable) The operator to be used for evaluating the additional field.
- condition
Value string - (Updatable) The additional field value to be evaluated.
- condition_
field str - (Updatable) The additional field name to be evaluated.
- condition_
operator str - (Updatable) The operator to be used for evaluating the additional field.
- condition_
value str - (Updatable) The additional field value to be evaluated.
- condition
Field String - (Updatable) The additional field name to be evaluated.
- condition
Operator String - (Updatable) The operator to be used for evaluating the additional field.
- condition
Value String - (Updatable) The additional field value to be evaluated.
Import
NamespaceIngestTimeRules can be imported using the id
, e.g.
$ pulumi import oci:LogAnalytics/namespaceIngestTimeRule:NamespaceIngestTimeRule test_namespace_ingest_time_rule "namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.