1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LtsKeywordsAlarmRuleV2
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.LtsKeywordsAlarmRuleV2

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for LTS log group you can get at documentation portal

    Manages an LTS keywords alarm rule resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const logGroupId = config.requireObject("logGroupId");
    const logStreamId = config.requireObject("logStreamId");
    const topicName = config.requireObject("topicName");
    const topicUrn = config.requireObject("topicUrn");
    const test = new opentelekomcloud.LtsKeywordsAlarmRuleV2("test", {
        description: "created by terraform",
        severity: "CRITICAL",
        notificationFrequency: 5,
        keywordsRequests: [{
            keyword: "key_words",
            condition: ">",
            number: 100,
            logGroupId: logGroupId,
            logStreamId: logStreamId,
            searchTimeRangeUnit: "minute",
            searchTimeRange: 5,
        }],
        frequency: {
            type: "HOURLY",
        },
        notificationRule: {
            language: "en-us",
            timezone: "xx/xx",
            userName: "test",
            topics: [{
                name: topicName,
                topicUrn: topicUrn,
            }],
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    log_group_id = config.require_object("logGroupId")
    log_stream_id = config.require_object("logStreamId")
    topic_name = config.require_object("topicName")
    topic_urn = config.require_object("topicUrn")
    test = opentelekomcloud.LtsKeywordsAlarmRuleV2("test",
        description="created by terraform",
        severity="CRITICAL",
        notification_frequency=5,
        keywords_requests=[{
            "keyword": "key_words",
            "condition": ">",
            "number": 100,
            "log_group_id": log_group_id,
            "log_stream_id": log_stream_id,
            "search_time_range_unit": "minute",
            "search_time_range": 5,
        }],
        frequency={
            "type": "HOURLY",
        },
        notification_rule={
            "language": "en-us",
            "timezone": "xx/xx",
            "user_name": "test",
            "topics": [{
                "name": topic_name,
                "topic_urn": topic_urn,
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		logGroupId := cfg.RequireObject("logGroupId")
    		logStreamId := cfg.RequireObject("logStreamId")
    		topicName := cfg.RequireObject("topicName")
    		topicUrn := cfg.RequireObject("topicUrn")
    		_, err := opentelekomcloud.NewLtsKeywordsAlarmRuleV2(ctx, "test", &opentelekomcloud.LtsKeywordsAlarmRuleV2Args{
    			Description:           pulumi.String("created by terraform"),
    			Severity:              pulumi.String("CRITICAL"),
    			NotificationFrequency: pulumi.Float64(5),
    			KeywordsRequests: opentelekomcloud.LtsKeywordsAlarmRuleV2KeywordsRequestArray{
    				&opentelekomcloud.LtsKeywordsAlarmRuleV2KeywordsRequestArgs{
    					Keyword:             pulumi.String("key_words"),
    					Condition:           pulumi.String(">"),
    					Number:              pulumi.Float64(100),
    					LogGroupId:          pulumi.Any(logGroupId),
    					LogStreamId:         pulumi.Any(logStreamId),
    					SearchTimeRangeUnit: pulumi.String("minute"),
    					SearchTimeRange:     pulumi.Float64(5),
    				},
    			},
    			Frequency: &opentelekomcloud.LtsKeywordsAlarmRuleV2FrequencyArgs{
    				Type: pulumi.String("HOURLY"),
    			},
    			NotificationRule: &opentelekomcloud.LtsKeywordsAlarmRuleV2NotificationRuleArgs{
    				Language: pulumi.String("en-us"),
    				Timezone: pulumi.String("xx/xx"),
    				UserName: pulumi.String("test"),
    				Topics: opentelekomcloud.LtsKeywordsAlarmRuleV2NotificationRuleTopicArray{
    					&opentelekomcloud.LtsKeywordsAlarmRuleV2NotificationRuleTopicArgs{
    						Name:     pulumi.Any(topicName),
    						TopicUrn: pulumi.Any(topicUrn),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var logGroupId = config.RequireObject<dynamic>("logGroupId");
        var logStreamId = config.RequireObject<dynamic>("logStreamId");
        var topicName = config.RequireObject<dynamic>("topicName");
        var topicUrn = config.RequireObject<dynamic>("topicUrn");
        var test = new Opentelekomcloud.LtsKeywordsAlarmRuleV2("test", new()
        {
            Description = "created by terraform",
            Severity = "CRITICAL",
            NotificationFrequency = 5,
            KeywordsRequests = new[]
            {
                new Opentelekomcloud.Inputs.LtsKeywordsAlarmRuleV2KeywordsRequestArgs
                {
                    Keyword = "key_words",
                    Condition = ">",
                    Number = 100,
                    LogGroupId = logGroupId,
                    LogStreamId = logStreamId,
                    SearchTimeRangeUnit = "minute",
                    SearchTimeRange = 5,
                },
            },
            Frequency = new Opentelekomcloud.Inputs.LtsKeywordsAlarmRuleV2FrequencyArgs
            {
                Type = "HOURLY",
            },
            NotificationRule = new Opentelekomcloud.Inputs.LtsKeywordsAlarmRuleV2NotificationRuleArgs
            {
                Language = "en-us",
                Timezone = "xx/xx",
                UserName = "test",
                Topics = new[]
                {
                    new Opentelekomcloud.Inputs.LtsKeywordsAlarmRuleV2NotificationRuleTopicArgs
                    {
                        Name = topicName,
                        TopicUrn = topicUrn,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LtsKeywordsAlarmRuleV2;
    import com.pulumi.opentelekomcloud.LtsKeywordsAlarmRuleV2Args;
    import com.pulumi.opentelekomcloud.inputs.LtsKeywordsAlarmRuleV2KeywordsRequestArgs;
    import com.pulumi.opentelekomcloud.inputs.LtsKeywordsAlarmRuleV2FrequencyArgs;
    import com.pulumi.opentelekomcloud.inputs.LtsKeywordsAlarmRuleV2NotificationRuleArgs;
    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 config = ctx.config();
            final var logGroupId = config.get("logGroupId");
            final var logStreamId = config.get("logStreamId");
            final var topicName = config.get("topicName");
            final var topicUrn = config.get("topicUrn");
            var test = new LtsKeywordsAlarmRuleV2("test", LtsKeywordsAlarmRuleV2Args.builder()
                .description("created by terraform")
                .severity("CRITICAL")
                .notificationFrequency(5)
                .keywordsRequests(LtsKeywordsAlarmRuleV2KeywordsRequestArgs.builder()
                    .keyword("key_words")
                    .condition(">")
                    .number(100)
                    .logGroupId(logGroupId)
                    .logStreamId(logStreamId)
                    .searchTimeRangeUnit("minute")
                    .searchTimeRange(5)
                    .build())
                .frequency(LtsKeywordsAlarmRuleV2FrequencyArgs.builder()
                    .type("HOURLY")
                    .build())
                .notificationRule(LtsKeywordsAlarmRuleV2NotificationRuleArgs.builder()
                    .language("en-us")
                    .timezone("xx/xx")
                    .userName("test")
                    .topics(LtsKeywordsAlarmRuleV2NotificationRuleTopicArgs.builder()
                        .name(topicName)
                        .topicUrn(topicUrn)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    configuration:
      logGroupId:
        type: dynamic
      logStreamId:
        type: dynamic
      topicName:
        type: dynamic
      topicUrn:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:LtsKeywordsAlarmRuleV2
        properties:
          description: created by terraform
          severity: CRITICAL
          notificationFrequency: 5
          keywordsRequests:
            - keyword: key_words
              condition: '>'
              number: 100
              logGroupId: ${logGroupId}
              logStreamId: ${logStreamId}
              searchTimeRangeUnit: minute
              searchTimeRange: 5
          frequency:
            type: HOURLY
          notificationRule:
            language: en-us
            timezone: xx/xx
            userName: test
            topics:
              - name: ${topicName}
                topicUrn: ${topicUrn}
    

    Create LtsKeywordsAlarmRuleV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LtsKeywordsAlarmRuleV2(name: string, args: LtsKeywordsAlarmRuleV2Args, opts?: CustomResourceOptions);
    @overload
    def LtsKeywordsAlarmRuleV2(resource_name: str,
                               args: LtsKeywordsAlarmRuleV2Args,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def LtsKeywordsAlarmRuleV2(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               notification_frequency: Optional[float] = None,
                               severity: Optional[str] = None,
                               frequency: Optional[LtsKeywordsAlarmRuleV2FrequencyArgs] = None,
                               keywords_requests: Optional[Sequence[LtsKeywordsAlarmRuleV2KeywordsRequestArgs]] = None,
                               trigger_condition_count: Optional[float] = None,
                               name: Optional[str] = None,
                               recovery_policy: Optional[float] = None,
                               alarm_action_rule_name: Optional[str] = None,
                               description: Optional[str] = None,
                               send_notifications: Optional[bool] = None,
                               send_recovery_notifications: Optional[bool] = None,
                               lts_keywords_alarm_rule_v2_id: Optional[str] = None,
                               notification_rule: Optional[LtsKeywordsAlarmRuleV2NotificationRuleArgs] = None,
                               trigger_condition_frequency: Optional[float] = None)
    func NewLtsKeywordsAlarmRuleV2(ctx *Context, name string, args LtsKeywordsAlarmRuleV2Args, opts ...ResourceOption) (*LtsKeywordsAlarmRuleV2, error)
    public LtsKeywordsAlarmRuleV2(string name, LtsKeywordsAlarmRuleV2Args args, CustomResourceOptions? opts = null)
    public LtsKeywordsAlarmRuleV2(String name, LtsKeywordsAlarmRuleV2Args args)
    public LtsKeywordsAlarmRuleV2(String name, LtsKeywordsAlarmRuleV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LtsKeywordsAlarmRuleV2
    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 LtsKeywordsAlarmRuleV2Args
    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 LtsKeywordsAlarmRuleV2Args
    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 LtsKeywordsAlarmRuleV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LtsKeywordsAlarmRuleV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LtsKeywordsAlarmRuleV2Args
    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 ltsKeywordsAlarmRuleV2Resource = new Opentelekomcloud.LtsKeywordsAlarmRuleV2("ltsKeywordsAlarmRuleV2Resource", new()
    {
        NotificationFrequency = 0,
        Severity = "string",
        Frequency = new Opentelekomcloud.Inputs.LtsKeywordsAlarmRuleV2FrequencyArgs
        {
            Type = "string",
            CronExpression = "string",
            DayOfWeek = 0,
            FixedRate = 0,
            FixedRateUnit = "string",
            HourOfDay = 0,
        },
        KeywordsRequests = new[]
        {
            new Opentelekomcloud.Inputs.LtsKeywordsAlarmRuleV2KeywordsRequestArgs
            {
                Condition = "string",
                Keyword = "string",
                LogGroupId = "string",
                LogStreamId = "string",
                Number = 0,
                SearchTimeRange = 0,
                SearchTimeRangeUnit = "string",
            },
        },
        TriggerConditionCount = 0,
        Name = "string",
        RecoveryPolicy = 0,
        AlarmActionRuleName = "string",
        Description = "string",
        SendNotifications = false,
        SendRecoveryNotifications = false,
        LtsKeywordsAlarmRuleV2Id = "string",
        NotificationRule = new Opentelekomcloud.Inputs.LtsKeywordsAlarmRuleV2NotificationRuleArgs
        {
            Topics = new[]
            {
                new Opentelekomcloud.Inputs.LtsKeywordsAlarmRuleV2NotificationRuleTopicArgs
                {
                    Name = "string",
                    TopicUrn = "string",
                    DisplayName = "string",
                    PushPolicy = 0,
                },
            },
            UserName = "string",
            Language = "string",
            TemplateName = "string",
            Timezone = "string",
        },
        TriggerConditionFrequency = 0,
    });
    
    example, err := opentelekomcloud.NewLtsKeywordsAlarmRuleV2(ctx, "ltsKeywordsAlarmRuleV2Resource", &opentelekomcloud.LtsKeywordsAlarmRuleV2Args{
    	NotificationFrequency: pulumi.Float64(0),
    	Severity:              pulumi.String("string"),
    	Frequency: &opentelekomcloud.LtsKeywordsAlarmRuleV2FrequencyArgs{
    		Type:           pulumi.String("string"),
    		CronExpression: pulumi.String("string"),
    		DayOfWeek:      pulumi.Float64(0),
    		FixedRate:      pulumi.Float64(0),
    		FixedRateUnit:  pulumi.String("string"),
    		HourOfDay:      pulumi.Float64(0),
    	},
    	KeywordsRequests: opentelekomcloud.LtsKeywordsAlarmRuleV2KeywordsRequestArray{
    		&opentelekomcloud.LtsKeywordsAlarmRuleV2KeywordsRequestArgs{
    			Condition:           pulumi.String("string"),
    			Keyword:             pulumi.String("string"),
    			LogGroupId:          pulumi.String("string"),
    			LogStreamId:         pulumi.String("string"),
    			Number:              pulumi.Float64(0),
    			SearchTimeRange:     pulumi.Float64(0),
    			SearchTimeRangeUnit: pulumi.String("string"),
    		},
    	},
    	TriggerConditionCount:     pulumi.Float64(0),
    	Name:                      pulumi.String("string"),
    	RecoveryPolicy:            pulumi.Float64(0),
    	AlarmActionRuleName:       pulumi.String("string"),
    	Description:               pulumi.String("string"),
    	SendNotifications:         pulumi.Bool(false),
    	SendRecoveryNotifications: pulumi.Bool(false),
    	LtsKeywordsAlarmRuleV2Id:  pulumi.String("string"),
    	NotificationRule: &opentelekomcloud.LtsKeywordsAlarmRuleV2NotificationRuleArgs{
    		Topics: opentelekomcloud.LtsKeywordsAlarmRuleV2NotificationRuleTopicArray{
    			&opentelekomcloud.LtsKeywordsAlarmRuleV2NotificationRuleTopicArgs{
    				Name:        pulumi.String("string"),
    				TopicUrn:    pulumi.String("string"),
    				DisplayName: pulumi.String("string"),
    				PushPolicy:  pulumi.Float64(0),
    			},
    		},
    		UserName:     pulumi.String("string"),
    		Language:     pulumi.String("string"),
    		TemplateName: pulumi.String("string"),
    		Timezone:     pulumi.String("string"),
    	},
    	TriggerConditionFrequency: pulumi.Float64(0),
    })
    
    var ltsKeywordsAlarmRuleV2Resource = new LtsKeywordsAlarmRuleV2("ltsKeywordsAlarmRuleV2Resource", LtsKeywordsAlarmRuleV2Args.builder()
        .notificationFrequency(0)
        .severity("string")
        .frequency(LtsKeywordsAlarmRuleV2FrequencyArgs.builder()
            .type("string")
            .cronExpression("string")
            .dayOfWeek(0)
            .fixedRate(0)
            .fixedRateUnit("string")
            .hourOfDay(0)
            .build())
        .keywordsRequests(LtsKeywordsAlarmRuleV2KeywordsRequestArgs.builder()
            .condition("string")
            .keyword("string")
            .logGroupId("string")
            .logStreamId("string")
            .number(0)
            .searchTimeRange(0)
            .searchTimeRangeUnit("string")
            .build())
        .triggerConditionCount(0)
        .name("string")
        .recoveryPolicy(0)
        .alarmActionRuleName("string")
        .description("string")
        .sendNotifications(false)
        .sendRecoveryNotifications(false)
        .ltsKeywordsAlarmRuleV2Id("string")
        .notificationRule(LtsKeywordsAlarmRuleV2NotificationRuleArgs.builder()
            .topics(LtsKeywordsAlarmRuleV2NotificationRuleTopicArgs.builder()
                .name("string")
                .topicUrn("string")
                .displayName("string")
                .pushPolicy(0)
                .build())
            .userName("string")
            .language("string")
            .templateName("string")
            .timezone("string")
            .build())
        .triggerConditionFrequency(0)
        .build());
    
    lts_keywords_alarm_rule_v2_resource = opentelekomcloud.LtsKeywordsAlarmRuleV2("ltsKeywordsAlarmRuleV2Resource",
        notification_frequency=0,
        severity="string",
        frequency={
            "type": "string",
            "cron_expression": "string",
            "day_of_week": 0,
            "fixed_rate": 0,
            "fixed_rate_unit": "string",
            "hour_of_day": 0,
        },
        keywords_requests=[{
            "condition": "string",
            "keyword": "string",
            "log_group_id": "string",
            "log_stream_id": "string",
            "number": 0,
            "search_time_range": 0,
            "search_time_range_unit": "string",
        }],
        trigger_condition_count=0,
        name="string",
        recovery_policy=0,
        alarm_action_rule_name="string",
        description="string",
        send_notifications=False,
        send_recovery_notifications=False,
        lts_keywords_alarm_rule_v2_id="string",
        notification_rule={
            "topics": [{
                "name": "string",
                "topic_urn": "string",
                "display_name": "string",
                "push_policy": 0,
            }],
            "user_name": "string",
            "language": "string",
            "template_name": "string",
            "timezone": "string",
        },
        trigger_condition_frequency=0)
    
    const ltsKeywordsAlarmRuleV2Resource = new opentelekomcloud.LtsKeywordsAlarmRuleV2("ltsKeywordsAlarmRuleV2Resource", {
        notificationFrequency: 0,
        severity: "string",
        frequency: {
            type: "string",
            cronExpression: "string",
            dayOfWeek: 0,
            fixedRate: 0,
            fixedRateUnit: "string",
            hourOfDay: 0,
        },
        keywordsRequests: [{
            condition: "string",
            keyword: "string",
            logGroupId: "string",
            logStreamId: "string",
            number: 0,
            searchTimeRange: 0,
            searchTimeRangeUnit: "string",
        }],
        triggerConditionCount: 0,
        name: "string",
        recoveryPolicy: 0,
        alarmActionRuleName: "string",
        description: "string",
        sendNotifications: false,
        sendRecoveryNotifications: false,
        ltsKeywordsAlarmRuleV2Id: "string",
        notificationRule: {
            topics: [{
                name: "string",
                topicUrn: "string",
                displayName: "string",
                pushPolicy: 0,
            }],
            userName: "string",
            language: "string",
            templateName: "string",
            timezone: "string",
        },
        triggerConditionFrequency: 0,
    });
    
    type: opentelekomcloud:LtsKeywordsAlarmRuleV2
    properties:
        alarmActionRuleName: string
        description: string
        frequency:
            cronExpression: string
            dayOfWeek: 0
            fixedRate: 0
            fixedRateUnit: string
            hourOfDay: 0
            type: string
        keywordsRequests:
            - condition: string
              keyword: string
              logGroupId: string
              logStreamId: string
              number: 0
              searchTimeRange: 0
              searchTimeRangeUnit: string
        ltsKeywordsAlarmRuleV2Id: string
        name: string
        notificationFrequency: 0
        notificationRule:
            language: string
            templateName: string
            timezone: string
            topics:
                - displayName: string
                  name: string
                  pushPolicy: 0
                  topicUrn: string
            userName: string
        recoveryPolicy: 0
        sendNotifications: false
        sendRecoveryNotifications: false
        severity: string
        triggerConditionCount: 0
        triggerConditionFrequency: 0
    

    LtsKeywordsAlarmRuleV2 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LtsKeywordsAlarmRuleV2 resource accepts the following input properties:

    Frequency LtsKeywordsAlarmRuleV2Frequency
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    KeywordsRequests List<LtsKeywordsAlarmRuleV2KeywordsRequest>
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    NotificationFrequency double
    Specifies notification frequency, in minutes.
    Severity string
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    AlarmActionRuleName string
    Description string
    Specifies the description of the keywords alarm rule.
    LtsKeywordsAlarmRuleV2Id string
    The resource ID.
    Name string
    Specifies the topic name. Changing this parameter will create a new resource.
    NotificationRule LtsKeywordsAlarmRuleV2NotificationRule
    Specifies the notification rule. The NotificationRule structure is documented below.
    RecoveryPolicy double
    SendNotifications bool
    Specifies whether to send notifications.
    SendRecoveryNotifications bool
    Specifies whether to send recovery notifications.
    TriggerConditionCount double
    Specifies the count to trigger the alarm. Defaults to 1.
    TriggerConditionFrequency double
    Specifies the frequency to trigger the alarm. Defaults to 1.
    Frequency LtsKeywordsAlarmRuleV2FrequencyArgs
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    KeywordsRequests []LtsKeywordsAlarmRuleV2KeywordsRequestArgs
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    NotificationFrequency float64
    Specifies notification frequency, in minutes.
    Severity string
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    AlarmActionRuleName string
    Description string
    Specifies the description of the keywords alarm rule.
    LtsKeywordsAlarmRuleV2Id string
    The resource ID.
    Name string
    Specifies the topic name. Changing this parameter will create a new resource.
    NotificationRule LtsKeywordsAlarmRuleV2NotificationRuleArgs
    Specifies the notification rule. The NotificationRule structure is documented below.
    RecoveryPolicy float64
    SendNotifications bool
    Specifies whether to send notifications.
    SendRecoveryNotifications bool
    Specifies whether to send recovery notifications.
    TriggerConditionCount float64
    Specifies the count to trigger the alarm. Defaults to 1.
    TriggerConditionFrequency float64
    Specifies the frequency to trigger the alarm. Defaults to 1.
    frequency LtsKeywordsAlarmRuleV2Frequency
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    keywordsRequests List<LtsKeywordsAlarmRuleV2KeywordsRequest>
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    notificationFrequency Double
    Specifies notification frequency, in minutes.
    severity String
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    alarmActionRuleName String
    description String
    Specifies the description of the keywords alarm rule.
    ltsKeywordsAlarmRuleV2Id String
    The resource ID.
    name String
    Specifies the topic name. Changing this parameter will create a new resource.
    notificationRule LtsKeywordsAlarmRuleV2NotificationRule
    Specifies the notification rule. The NotificationRule structure is documented below.
    recoveryPolicy Double
    sendNotifications Boolean
    Specifies whether to send notifications.
    sendRecoveryNotifications Boolean
    Specifies whether to send recovery notifications.
    triggerConditionCount Double
    Specifies the count to trigger the alarm. Defaults to 1.
    triggerConditionFrequency Double
    Specifies the frequency to trigger the alarm. Defaults to 1.
    frequency LtsKeywordsAlarmRuleV2Frequency
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    keywordsRequests LtsKeywordsAlarmRuleV2KeywordsRequest[]
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    notificationFrequency number
    Specifies notification frequency, in minutes.
    severity string
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    alarmActionRuleName string
    description string
    Specifies the description of the keywords alarm rule.
    ltsKeywordsAlarmRuleV2Id string
    The resource ID.
    name string
    Specifies the topic name. Changing this parameter will create a new resource.
    notificationRule LtsKeywordsAlarmRuleV2NotificationRule
    Specifies the notification rule. The NotificationRule structure is documented below.
    recoveryPolicy number
    sendNotifications boolean
    Specifies whether to send notifications.
    sendRecoveryNotifications boolean
    Specifies whether to send recovery notifications.
    triggerConditionCount number
    Specifies the count to trigger the alarm. Defaults to 1.
    triggerConditionFrequency number
    Specifies the frequency to trigger the alarm. Defaults to 1.
    frequency LtsKeywordsAlarmRuleV2FrequencyArgs
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    keywords_requests Sequence[LtsKeywordsAlarmRuleV2KeywordsRequestArgs]
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    notification_frequency float
    Specifies notification frequency, in minutes.
    severity str
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    alarm_action_rule_name str
    description str
    Specifies the description of the keywords alarm rule.
    lts_keywords_alarm_rule_v2_id str
    The resource ID.
    name str
    Specifies the topic name. Changing this parameter will create a new resource.
    notification_rule LtsKeywordsAlarmRuleV2NotificationRuleArgs
    Specifies the notification rule. The NotificationRule structure is documented below.
    recovery_policy float
    send_notifications bool
    Specifies whether to send notifications.
    send_recovery_notifications bool
    Specifies whether to send recovery notifications.
    trigger_condition_count float
    Specifies the count to trigger the alarm. Defaults to 1.
    trigger_condition_frequency float
    Specifies the frequency to trigger the alarm. Defaults to 1.
    frequency Property Map
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    keywordsRequests List<Property Map>
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    notificationFrequency Number
    Specifies notification frequency, in minutes.
    severity String
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    alarmActionRuleName String
    description String
    Specifies the description of the keywords alarm rule.
    ltsKeywordsAlarmRuleV2Id String
    The resource ID.
    name String
    Specifies the topic name. Changing this parameter will create a new resource.
    notificationRule Property Map
    Specifies the notification rule. The NotificationRule structure is documented below.
    recoveryPolicy Number
    sendNotifications Boolean
    Specifies whether to send notifications.
    sendRecoveryNotifications Boolean
    Specifies whether to send recovery notifications.
    triggerConditionCount Number
    Specifies the count to trigger the alarm. Defaults to 1.
    triggerConditionFrequency Number
    Specifies the frequency to trigger the alarm. Defaults to 1.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LtsKeywordsAlarmRuleV2 resource produces the following output properties:

    CreatedAt string
    The creation time of the alarm rule.
    DomainId string
    The domain ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Shows the region in the rule resource created.
    Status string
    Status of the rule.
    UpdatedAt string
    The last update time of the alarm rule.
    CreatedAt string
    The creation time of the alarm rule.
    DomainId string
    The domain ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    Shows the region in the rule resource created.
    Status string
    Status of the rule.
    UpdatedAt string
    The last update time of the alarm rule.
    createdAt String
    The creation time of the alarm rule.
    domainId String
    The domain ID.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Shows the region in the rule resource created.
    status String
    Status of the rule.
    updatedAt String
    The last update time of the alarm rule.
    createdAt string
    The creation time of the alarm rule.
    domainId string
    The domain ID.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    Shows the region in the rule resource created.
    status string
    Status of the rule.
    updatedAt string
    The last update time of the alarm rule.
    created_at str
    The creation time of the alarm rule.
    domain_id str
    The domain ID.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    Shows the region in the rule resource created.
    status str
    Status of the rule.
    updated_at str
    The last update time of the alarm rule.
    createdAt String
    The creation time of the alarm rule.
    domainId String
    The domain ID.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    Shows the region in the rule resource created.
    status String
    Status of the rule.
    updatedAt String
    The last update time of the alarm rule.

    Look up Existing LtsKeywordsAlarmRuleV2 Resource

    Get an existing LtsKeywordsAlarmRuleV2 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?: LtsKeywordsAlarmRuleV2State, opts?: CustomResourceOptions): LtsKeywordsAlarmRuleV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_action_rule_name: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            domain_id: Optional[str] = None,
            frequency: Optional[LtsKeywordsAlarmRuleV2FrequencyArgs] = None,
            keywords_requests: Optional[Sequence[LtsKeywordsAlarmRuleV2KeywordsRequestArgs]] = None,
            lts_keywords_alarm_rule_v2_id: Optional[str] = None,
            name: Optional[str] = None,
            notification_frequency: Optional[float] = None,
            notification_rule: Optional[LtsKeywordsAlarmRuleV2NotificationRuleArgs] = None,
            recovery_policy: Optional[float] = None,
            region: Optional[str] = None,
            send_notifications: Optional[bool] = None,
            send_recovery_notifications: Optional[bool] = None,
            severity: Optional[str] = None,
            status: Optional[str] = None,
            trigger_condition_count: Optional[float] = None,
            trigger_condition_frequency: Optional[float] = None,
            updated_at: Optional[str] = None) -> LtsKeywordsAlarmRuleV2
    func GetLtsKeywordsAlarmRuleV2(ctx *Context, name string, id IDInput, state *LtsKeywordsAlarmRuleV2State, opts ...ResourceOption) (*LtsKeywordsAlarmRuleV2, error)
    public static LtsKeywordsAlarmRuleV2 Get(string name, Input<string> id, LtsKeywordsAlarmRuleV2State? state, CustomResourceOptions? opts = null)
    public static LtsKeywordsAlarmRuleV2 get(String name, Output<String> id, LtsKeywordsAlarmRuleV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LtsKeywordsAlarmRuleV2    get:      id: ${id}
    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.
    The following state arguments are supported:
    AlarmActionRuleName string
    CreatedAt string
    The creation time of the alarm rule.
    Description string
    Specifies the description of the keywords alarm rule.
    DomainId string
    The domain ID.
    Frequency LtsKeywordsAlarmRuleV2Frequency
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    KeywordsRequests List<LtsKeywordsAlarmRuleV2KeywordsRequest>
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    LtsKeywordsAlarmRuleV2Id string
    The resource ID.
    Name string
    Specifies the topic name. Changing this parameter will create a new resource.
    NotificationFrequency double
    Specifies notification frequency, in minutes.
    NotificationRule LtsKeywordsAlarmRuleV2NotificationRule
    Specifies the notification rule. The NotificationRule structure is documented below.
    RecoveryPolicy double
    Region string
    Shows the region in the rule resource created.
    SendNotifications bool
    Specifies whether to send notifications.
    SendRecoveryNotifications bool
    Specifies whether to send recovery notifications.
    Severity string
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    Status string
    Status of the rule.
    TriggerConditionCount double
    Specifies the count to trigger the alarm. Defaults to 1.
    TriggerConditionFrequency double
    Specifies the frequency to trigger the alarm. Defaults to 1.
    UpdatedAt string
    The last update time of the alarm rule.
    AlarmActionRuleName string
    CreatedAt string
    The creation time of the alarm rule.
    Description string
    Specifies the description of the keywords alarm rule.
    DomainId string
    The domain ID.
    Frequency LtsKeywordsAlarmRuleV2FrequencyArgs
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    KeywordsRequests []LtsKeywordsAlarmRuleV2KeywordsRequestArgs
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    LtsKeywordsAlarmRuleV2Id string
    The resource ID.
    Name string
    Specifies the topic name. Changing this parameter will create a new resource.
    NotificationFrequency float64
    Specifies notification frequency, in minutes.
    NotificationRule LtsKeywordsAlarmRuleV2NotificationRuleArgs
    Specifies the notification rule. The NotificationRule structure is documented below.
    RecoveryPolicy float64
    Region string
    Shows the region in the rule resource created.
    SendNotifications bool
    Specifies whether to send notifications.
    SendRecoveryNotifications bool
    Specifies whether to send recovery notifications.
    Severity string
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    Status string
    Status of the rule.
    TriggerConditionCount float64
    Specifies the count to trigger the alarm. Defaults to 1.
    TriggerConditionFrequency float64
    Specifies the frequency to trigger the alarm. Defaults to 1.
    UpdatedAt string
    The last update time of the alarm rule.
    alarmActionRuleName String
    createdAt String
    The creation time of the alarm rule.
    description String
    Specifies the description of the keywords alarm rule.
    domainId String
    The domain ID.
    frequency LtsKeywordsAlarmRuleV2Frequency
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    keywordsRequests List<LtsKeywordsAlarmRuleV2KeywordsRequest>
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    ltsKeywordsAlarmRuleV2Id String
    The resource ID.
    name String
    Specifies the topic name. Changing this parameter will create a new resource.
    notificationFrequency Double
    Specifies notification frequency, in minutes.
    notificationRule LtsKeywordsAlarmRuleV2NotificationRule
    Specifies the notification rule. The NotificationRule structure is documented below.
    recoveryPolicy Double
    region String
    Shows the region in the rule resource created.
    sendNotifications Boolean
    Specifies whether to send notifications.
    sendRecoveryNotifications Boolean
    Specifies whether to send recovery notifications.
    severity String
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    status String
    Status of the rule.
    triggerConditionCount Double
    Specifies the count to trigger the alarm. Defaults to 1.
    triggerConditionFrequency Double
    Specifies the frequency to trigger the alarm. Defaults to 1.
    updatedAt String
    The last update time of the alarm rule.
    alarmActionRuleName string
    createdAt string
    The creation time of the alarm rule.
    description string
    Specifies the description of the keywords alarm rule.
    domainId string
    The domain ID.
    frequency LtsKeywordsAlarmRuleV2Frequency
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    keywordsRequests LtsKeywordsAlarmRuleV2KeywordsRequest[]
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    ltsKeywordsAlarmRuleV2Id string
    The resource ID.
    name string
    Specifies the topic name. Changing this parameter will create a new resource.
    notificationFrequency number
    Specifies notification frequency, in minutes.
    notificationRule LtsKeywordsAlarmRuleV2NotificationRule
    Specifies the notification rule. The NotificationRule structure is documented below.
    recoveryPolicy number
    region string
    Shows the region in the rule resource created.
    sendNotifications boolean
    Specifies whether to send notifications.
    sendRecoveryNotifications boolean
    Specifies whether to send recovery notifications.
    severity string
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    status string
    Status of the rule.
    triggerConditionCount number
    Specifies the count to trigger the alarm. Defaults to 1.
    triggerConditionFrequency number
    Specifies the frequency to trigger the alarm. Defaults to 1.
    updatedAt string
    The last update time of the alarm rule.
    alarm_action_rule_name str
    created_at str
    The creation time of the alarm rule.
    description str
    Specifies the description of the keywords alarm rule.
    domain_id str
    The domain ID.
    frequency LtsKeywordsAlarmRuleV2FrequencyArgs
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    keywords_requests Sequence[LtsKeywordsAlarmRuleV2KeywordsRequestArgs]
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    lts_keywords_alarm_rule_v2_id str
    The resource ID.
    name str
    Specifies the topic name. Changing this parameter will create a new resource.
    notification_frequency float
    Specifies notification frequency, in minutes.
    notification_rule LtsKeywordsAlarmRuleV2NotificationRuleArgs
    Specifies the notification rule. The NotificationRule structure is documented below.
    recovery_policy float
    region str
    Shows the region in the rule resource created.
    send_notifications bool
    Specifies whether to send notifications.
    send_recovery_notifications bool
    Specifies whether to send recovery notifications.
    severity str
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    status str
    Status of the rule.
    trigger_condition_count float
    Specifies the count to trigger the alarm. Defaults to 1.
    trigger_condition_frequency float
    Specifies the frequency to trigger the alarm. Defaults to 1.
    updated_at str
    The last update time of the alarm rule.
    alarmActionRuleName String
    createdAt String
    The creation time of the alarm rule.
    description String
    Specifies the description of the keywords alarm rule.
    domainId String
    The domain ID.
    frequency Property Map
    Specifies the alarm frequency configurations. The Frequency structure is documented below.
    keywordsRequests List<Property Map>
    Specifies the keywords requests. The KeywordsRequests structure is documented below.
    ltsKeywordsAlarmRuleV2Id String
    The resource ID.
    name String
    Specifies the topic name. Changing this parameter will create a new resource.
    notificationFrequency Number
    Specifies notification frequency, in minutes.
    notificationRule Property Map
    Specifies the notification rule. The NotificationRule structure is documented below.
    recoveryPolicy Number
    region String
    Shows the region in the rule resource created.
    sendNotifications Boolean
    Specifies whether to send notifications.
    sendRecoveryNotifications Boolean
    Specifies whether to send recovery notifications.
    severity String
    Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
    status String
    Status of the rule.
    triggerConditionCount Number
    Specifies the count to trigger the alarm. Defaults to 1.
    triggerConditionFrequency Number
    Specifies the frequency to trigger the alarm. Defaults to 1.
    updatedAt String
    The last update time of the alarm rule.

    Supporting Types

    LtsKeywordsAlarmRuleV2Frequency, LtsKeywordsAlarmRuleV2FrequencyArgs

    Type string
    Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
    CronExpression string
    Specifies the cron expression. This parameter is used when type is set to CRON.
    DayOfWeek double
    Specifies the day of week. This parameter is used when type is set to WEEKLY. The value ranges from 1 to 7. 1 means Sunday.
    FixedRate double

    Specifies the unit fixed rate. This parameter is used when type is set to FIXED_RATE.

    • When the fixed_rate_unit is minute, the value ranges from 1 to 60.
    • When the fixed_rate_unit is hour, the value ranges from 1 to 24

    The NotificationRule block supports:

    FixedRateUnit string
    Specifies the unit of fixed rate. The value can be: minute and hour.
    HourOfDay double
    Specifies the hour of day. This parameter is used when type is set to DAILY or WEEKLY. The value ranges from 0 to 23.
    Type string
    Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
    CronExpression string
    Specifies the cron expression. This parameter is used when type is set to CRON.
    DayOfWeek float64
    Specifies the day of week. This parameter is used when type is set to WEEKLY. The value ranges from 1 to 7. 1 means Sunday.
    FixedRate float64

    Specifies the unit fixed rate. This parameter is used when type is set to FIXED_RATE.

    • When the fixed_rate_unit is minute, the value ranges from 1 to 60.
    • When the fixed_rate_unit is hour, the value ranges from 1 to 24

    The NotificationRule block supports:

    FixedRateUnit string
    Specifies the unit of fixed rate. The value can be: minute and hour.
    HourOfDay float64
    Specifies the hour of day. This parameter is used when type is set to DAILY or WEEKLY. The value ranges from 0 to 23.
    type String
    Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
    cronExpression String
    Specifies the cron expression. This parameter is used when type is set to CRON.
    dayOfWeek Double
    Specifies the day of week. This parameter is used when type is set to WEEKLY. The value ranges from 1 to 7. 1 means Sunday.
    fixedRate Double

    Specifies the unit fixed rate. This parameter is used when type is set to FIXED_RATE.

    • When the fixed_rate_unit is minute, the value ranges from 1 to 60.
    • When the fixed_rate_unit is hour, the value ranges from 1 to 24

    The NotificationRule block supports:

    fixedRateUnit String
    Specifies the unit of fixed rate. The value can be: minute and hour.
    hourOfDay Double
    Specifies the hour of day. This parameter is used when type is set to DAILY or WEEKLY. The value ranges from 0 to 23.
    type string
    Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
    cronExpression string
    Specifies the cron expression. This parameter is used when type is set to CRON.
    dayOfWeek number
    Specifies the day of week. This parameter is used when type is set to WEEKLY. The value ranges from 1 to 7. 1 means Sunday.
    fixedRate number

    Specifies the unit fixed rate. This parameter is used when type is set to FIXED_RATE.

    • When the fixed_rate_unit is minute, the value ranges from 1 to 60.
    • When the fixed_rate_unit is hour, the value ranges from 1 to 24

    The NotificationRule block supports:

    fixedRateUnit string
    Specifies the unit of fixed rate. The value can be: minute and hour.
    hourOfDay number
    Specifies the hour of day. This parameter is used when type is set to DAILY or WEEKLY. The value ranges from 0 to 23.
    type str
    Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
    cron_expression str
    Specifies the cron expression. This parameter is used when type is set to CRON.
    day_of_week float
    Specifies the day of week. This parameter is used when type is set to WEEKLY. The value ranges from 1 to 7. 1 means Sunday.
    fixed_rate float

    Specifies the unit fixed rate. This parameter is used when type is set to FIXED_RATE.

    • When the fixed_rate_unit is minute, the value ranges from 1 to 60.
    • When the fixed_rate_unit is hour, the value ranges from 1 to 24

    The NotificationRule block supports:

    fixed_rate_unit str
    Specifies the unit of fixed rate. The value can be: minute and hour.
    hour_of_day float
    Specifies the hour of day. This parameter is used when type is set to DAILY or WEEKLY. The value ranges from 0 to 23.
    type String
    Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
    cronExpression String
    Specifies the cron expression. This parameter is used when type is set to CRON.
    dayOfWeek Number
    Specifies the day of week. This parameter is used when type is set to WEEKLY. The value ranges from 1 to 7. 1 means Sunday.
    fixedRate Number

    Specifies the unit fixed rate. This parameter is used when type is set to FIXED_RATE.

    • When the fixed_rate_unit is minute, the value ranges from 1 to 60.
    • When the fixed_rate_unit is hour, the value ranges from 1 to 24

    The NotificationRule block supports:

    fixedRateUnit String
    Specifies the unit of fixed rate. The value can be: minute and hour.
    hourOfDay Number
    Specifies the hour of day. This parameter is used when type is set to DAILY or WEEKLY. The value ranges from 0 to 23.

    LtsKeywordsAlarmRuleV2KeywordsRequest, LtsKeywordsAlarmRuleV2KeywordsRequestArgs

    Condition string
    Specifies the keywords request condition. The value can be: >=, <=, < and >.
    Keyword string
    Specifies the keywords.
    LogGroupId string
    Specifies the log group id.
    LogStreamId string
    Specifies the log stream id.
    Number double
    Specifies the line number.
    SearchTimeRange double

    Specifies the search time range.

    • When the search_time_range_unit is minute, the value ranges from 1 to 60.
    • When the search_time_range_unit is hour, the value ranges from 1 to 24.

    The Frequency block supports:

    SearchTimeRangeUnit string
    Specifies the unit of search time range. The value can be: minute and hour.
    Condition string
    Specifies the keywords request condition. The value can be: >=, <=, < and >.
    Keyword string
    Specifies the keywords.
    LogGroupId string
    Specifies the log group id.
    LogStreamId string
    Specifies the log stream id.
    Number float64
    Specifies the line number.
    SearchTimeRange float64

    Specifies the search time range.

    • When the search_time_range_unit is minute, the value ranges from 1 to 60.
    • When the search_time_range_unit is hour, the value ranges from 1 to 24.

    The Frequency block supports:

    SearchTimeRangeUnit string
    Specifies the unit of search time range. The value can be: minute and hour.
    condition String
    Specifies the keywords request condition. The value can be: >=, <=, < and >.
    keyword String
    Specifies the keywords.
    logGroupId String
    Specifies the log group id.
    logStreamId String
    Specifies the log stream id.
    number Double
    Specifies the line number.
    searchTimeRange Double

    Specifies the search time range.

    • When the search_time_range_unit is minute, the value ranges from 1 to 60.
    • When the search_time_range_unit is hour, the value ranges from 1 to 24.

    The Frequency block supports:

    searchTimeRangeUnit String
    Specifies the unit of search time range. The value can be: minute and hour.
    condition string
    Specifies the keywords request condition. The value can be: >=, <=, < and >.
    keyword string
    Specifies the keywords.
    logGroupId string
    Specifies the log group id.
    logStreamId string
    Specifies the log stream id.
    number number
    Specifies the line number.
    searchTimeRange number

    Specifies the search time range.

    • When the search_time_range_unit is minute, the value ranges from 1 to 60.
    • When the search_time_range_unit is hour, the value ranges from 1 to 24.

    The Frequency block supports:

    searchTimeRangeUnit string
    Specifies the unit of search time range. The value can be: minute and hour.
    condition str
    Specifies the keywords request condition. The value can be: >=, <=, < and >.
    keyword str
    Specifies the keywords.
    log_group_id str
    Specifies the log group id.
    log_stream_id str
    Specifies the log stream id.
    number float
    Specifies the line number.
    search_time_range float

    Specifies the search time range.

    • When the search_time_range_unit is minute, the value ranges from 1 to 60.
    • When the search_time_range_unit is hour, the value ranges from 1 to 24.

    The Frequency block supports:

    search_time_range_unit str
    Specifies the unit of search time range. The value can be: minute and hour.
    condition String
    Specifies the keywords request condition. The value can be: >=, <=, < and >.
    keyword String
    Specifies the keywords.
    logGroupId String
    Specifies the log group id.
    logStreamId String
    Specifies the log stream id.
    number Number
    Specifies the line number.
    searchTimeRange Number

    Specifies the search time range.

    • When the search_time_range_unit is minute, the value ranges from 1 to 60.
    • When the search_time_range_unit is hour, the value ranges from 1 to 24.

    The Frequency block supports:

    searchTimeRangeUnit String
    Specifies the unit of search time range. The value can be: minute and hour.

    LtsKeywordsAlarmRuleV2NotificationRule, LtsKeywordsAlarmRuleV2NotificationRuleArgs

    Topics List<LtsKeywordsAlarmRuleV2NotificationRuleTopic>
    Specifies the SMN topics. The Topic structure is documented below.
    UserName string
    Specifies the username.
    Language string

    Specifies the notification language. The value can be en-us.

    The NotificationRuleTopic block supports:

    TemplateName string
    Specifies the notification template name.
    Timezone string
    Specifies the timezone.
    Topics []LtsKeywordsAlarmRuleV2NotificationRuleTopic
    Specifies the SMN topics. The Topic structure is documented below.
    UserName string
    Specifies the username.
    Language string

    Specifies the notification language. The value can be en-us.

    The NotificationRuleTopic block supports:

    TemplateName string
    Specifies the notification template name.
    Timezone string
    Specifies the timezone.
    topics List<LtsKeywordsAlarmRuleV2NotificationRuleTopic>
    Specifies the SMN topics. The Topic structure is documented below.
    userName String
    Specifies the username.
    language String

    Specifies the notification language. The value can be en-us.

    The NotificationRuleTopic block supports:

    templateName String
    Specifies the notification template name.
    timezone String
    Specifies the timezone.
    topics LtsKeywordsAlarmRuleV2NotificationRuleTopic[]
    Specifies the SMN topics. The Topic structure is documented below.
    userName string
    Specifies the username.
    language string

    Specifies the notification language. The value can be en-us.

    The NotificationRuleTopic block supports:

    templateName string
    Specifies the notification template name.
    timezone string
    Specifies the timezone.
    topics Sequence[LtsKeywordsAlarmRuleV2NotificationRuleTopic]
    Specifies the SMN topics. The Topic structure is documented below.
    user_name str
    Specifies the username.
    language str

    Specifies the notification language. The value can be en-us.

    The NotificationRuleTopic block supports:

    template_name str
    Specifies the notification template name.
    timezone str
    Specifies the timezone.
    topics List<Property Map>
    Specifies the SMN topics. The Topic structure is documented below.
    userName String
    Specifies the username.
    language String

    Specifies the notification language. The value can be en-us.

    The NotificationRuleTopic block supports:

    templateName String
    Specifies the notification template name.
    timezone String
    Specifies the timezone.

    LtsKeywordsAlarmRuleV2NotificationRuleTopic, LtsKeywordsAlarmRuleV2NotificationRuleTopicArgs

    Name string
    Specifies the topic name. Changing this parameter will create a new resource.
    TopicUrn string
    Specifies the topic URN. Changing this parameter will create a new resource.
    DisplayName string
    Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
    PushPolicy double
    Specifies the push policy. Changing this parameter will create a new resource.
    Name string
    Specifies the topic name. Changing this parameter will create a new resource.
    TopicUrn string
    Specifies the topic URN. Changing this parameter will create a new resource.
    DisplayName string
    Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
    PushPolicy float64
    Specifies the push policy. Changing this parameter will create a new resource.
    name String
    Specifies the topic name. Changing this parameter will create a new resource.
    topicUrn String
    Specifies the topic URN. Changing this parameter will create a new resource.
    displayName String
    Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
    pushPolicy Double
    Specifies the push policy. Changing this parameter will create a new resource.
    name string
    Specifies the topic name. Changing this parameter will create a new resource.
    topicUrn string
    Specifies the topic URN. Changing this parameter will create a new resource.
    displayName string
    Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
    pushPolicy number
    Specifies the push policy. Changing this parameter will create a new resource.
    name str
    Specifies the topic name. Changing this parameter will create a new resource.
    topic_urn str
    Specifies the topic URN. Changing this parameter will create a new resource.
    display_name str
    Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
    push_policy float
    Specifies the push policy. Changing this parameter will create a new resource.
    name String
    Specifies the topic name. Changing this parameter will create a new resource.
    topicUrn String
    Specifies the topic URN. Changing this parameter will create a new resource.
    displayName String
    Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
    pushPolicy Number
    Specifies the push policy. Changing this parameter will create a new resource.

    Import

    The keywords alarm rule can be imported using the id, e.g.

    bash

    $ pulumi import opentelekomcloud:index/ltsKeywordsAlarmRuleV2:LtsKeywordsAlarmRuleV2 test <id>
    

    Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

    API response. The missing attributes include: notification_rule.

    hcl

    resource “opentelekomcloud_lts_keywords_alarm_rule_v2” “test” {

    lifecycle {

    ignore_changes = [
    
      notification_rule,
    
    ]
    

    }

    }

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud