opentelekomcloud.LtsKeywordsAlarmRuleV2
Explore with Pulumi AI
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
Lts
Keywords Alarm Rule V2Frequency - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- Keywords
Requests List<LtsKeywords Alarm Rule V2Keywords Request> - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- Notification
Frequency double - Specifies notification frequency, in minutes.
- Severity string
- Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
- Alarm
Action stringRule Name - Description string
- Specifies the description of the keywords alarm rule.
- Lts
Keywords stringAlarm Rule V2Id - The resource ID.
- Name string
- Specifies the topic name. Changing this parameter will create a new resource.
- Notification
Rule LtsKeywords Alarm Rule V2Notification Rule - Specifies the notification rule. The NotificationRule structure is documented below.
- Recovery
Policy double - Send
Notifications bool - Specifies whether to send notifications.
- Send
Recovery boolNotifications - Specifies whether to send recovery notifications.
- Trigger
Condition doubleCount - Specifies the count to trigger the alarm.
Defaults to
1
. - Trigger
Condition doubleFrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
.
- Frequency
Lts
Keywords Alarm Rule V2Frequency Args - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- Keywords
Requests []LtsKeywords Alarm Rule V2Keywords Request Args - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- Notification
Frequency float64 - Specifies notification frequency, in minutes.
- Severity string
- Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
- Alarm
Action stringRule Name - Description string
- Specifies the description of the keywords alarm rule.
- Lts
Keywords stringAlarm Rule V2Id - The resource ID.
- Name string
- Specifies the topic name. Changing this parameter will create a new resource.
- Notification
Rule LtsKeywords Alarm Rule V2Notification Rule Args - Specifies the notification rule. The NotificationRule structure is documented below.
- Recovery
Policy float64 - Send
Notifications bool - Specifies whether to send notifications.
- Send
Recovery boolNotifications - Specifies whether to send recovery notifications.
- Trigger
Condition float64Count - Specifies the count to trigger the alarm.
Defaults to
1
. - Trigger
Condition float64Frequency - Specifies the frequency to trigger the alarm.
Defaults to
1
.
- frequency
Lts
Keywords Alarm Rule V2Frequency - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- keywords
Requests List<LtsKeywords Alarm Rule V2Keywords Request> - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- notification
Frequency Double - Specifies notification frequency, in minutes.
- severity String
- Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
- alarm
Action StringRule Name - description String
- Specifies the description of the keywords alarm rule.
- lts
Keywords StringAlarm Rule V2Id - The resource ID.
- name String
- Specifies the topic name. Changing this parameter will create a new resource.
- notification
Rule LtsKeywords Alarm Rule V2Notification Rule - Specifies the notification rule. The NotificationRule structure is documented below.
- recovery
Policy Double - send
Notifications Boolean - Specifies whether to send notifications.
- send
Recovery BooleanNotifications - Specifies whether to send recovery notifications.
- trigger
Condition DoubleCount - Specifies the count to trigger the alarm.
Defaults to
1
. - trigger
Condition DoubleFrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
.
- frequency
Lts
Keywords Alarm Rule V2Frequency - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- keywords
Requests LtsKeywords Alarm Rule V2Keywords Request[] - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- notification
Frequency number - Specifies notification frequency, in minutes.
- severity string
- Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
- alarm
Action stringRule Name - description string
- Specifies the description of the keywords alarm rule.
- lts
Keywords stringAlarm Rule V2Id - The resource ID.
- name string
- Specifies the topic name. Changing this parameter will create a new resource.
- notification
Rule LtsKeywords Alarm Rule V2Notification Rule - Specifies the notification rule. The NotificationRule structure is documented below.
- recovery
Policy number - send
Notifications boolean - Specifies whether to send notifications.
- send
Recovery booleanNotifications - Specifies whether to send recovery notifications.
- trigger
Condition numberCount - Specifies the count to trigger the alarm.
Defaults to
1
. - trigger
Condition numberFrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
.
- frequency
Lts
Keywords Alarm Rule V2Frequency Args - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- keywords_
requests Sequence[LtsKeywords Alarm Rule V2Keywords Request Args] - 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_ strrule_ name - description str
- Specifies the description of the keywords alarm rule.
- lts_
keywords_ stralarm_ rule_ v2_ id - The resource ID.
- name str
- Specifies the topic name. Changing this parameter will create a new resource.
- notification_
rule LtsKeywords Alarm Rule V2Notification Rule Args - Specifies the notification rule. The NotificationRule structure is documented below.
- recovery_
policy float - send_
notifications bool - Specifies whether to send notifications.
- send_
recovery_ boolnotifications - Specifies whether to send recovery notifications.
- trigger_
condition_ floatcount - Specifies the count to trigger the alarm.
Defaults to
1
. - trigger_
condition_ floatfrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
.
- frequency Property Map
- Specifies the alarm frequency configurations. The Frequency structure is documented below.
- keywords
Requests List<Property Map> - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- notification
Frequency Number - Specifies notification frequency, in minutes.
- severity String
- Specifies the alarm level. The value can be: INFO, MINOR, MAJOR and CRITICAL.
- alarm
Action StringRule Name - description String
- Specifies the description of the keywords alarm rule.
- lts
Keywords StringAlarm Rule V2Id - The resource ID.
- name String
- Specifies the topic name. Changing this parameter will create a new resource.
- notification
Rule Property Map - Specifies the notification rule. The NotificationRule structure is documented below.
- recovery
Policy Number - send
Notifications Boolean - Specifies whether to send notifications.
- send
Recovery BooleanNotifications - Specifies whether to send recovery notifications.
- trigger
Condition NumberCount - Specifies the count to trigger the alarm.
Defaults to
1
. - trigger
Condition NumberFrequency - 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:
- 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.
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.
- Alarm
Action stringRule Name - Created
At string - The creation time of the alarm rule.
- Description string
- Specifies the description of the keywords alarm rule.
- Domain
Id string - The domain ID.
- Frequency
Lts
Keywords Alarm Rule V2Frequency - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- Keywords
Requests List<LtsKeywords Alarm Rule V2Keywords Request> - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- Lts
Keywords stringAlarm Rule V2Id - The resource ID.
- Name string
- Specifies the topic name. Changing this parameter will create a new resource.
- Notification
Frequency double - Specifies notification frequency, in minutes.
- Notification
Rule LtsKeywords Alarm Rule V2Notification Rule - Specifies the notification rule. The NotificationRule structure is documented below.
- Recovery
Policy double - Region string
- Shows the region in the rule resource created.
- Send
Notifications bool - Specifies whether to send notifications.
- Send
Recovery boolNotifications - 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.
- Trigger
Condition doubleCount - Specifies the count to trigger the alarm.
Defaults to
1
. - Trigger
Condition doubleFrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
. - Updated
At string - The last update time of the alarm rule.
- Alarm
Action stringRule Name - Created
At string - The creation time of the alarm rule.
- Description string
- Specifies the description of the keywords alarm rule.
- Domain
Id string - The domain ID.
- Frequency
Lts
Keywords Alarm Rule V2Frequency Args - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- Keywords
Requests []LtsKeywords Alarm Rule V2Keywords Request Args - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- Lts
Keywords stringAlarm Rule V2Id - The resource ID.
- Name string
- Specifies the topic name. Changing this parameter will create a new resource.
- Notification
Frequency float64 - Specifies notification frequency, in minutes.
- Notification
Rule LtsKeywords Alarm Rule V2Notification Rule Args - Specifies the notification rule. The NotificationRule structure is documented below.
- Recovery
Policy float64 - Region string
- Shows the region in the rule resource created.
- Send
Notifications bool - Specifies whether to send notifications.
- Send
Recovery boolNotifications - 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.
- Trigger
Condition float64Count - Specifies the count to trigger the alarm.
Defaults to
1
. - Trigger
Condition float64Frequency - Specifies the frequency to trigger the alarm.
Defaults to
1
. - Updated
At string - The last update time of the alarm rule.
- alarm
Action StringRule Name - created
At String - The creation time of the alarm rule.
- description String
- Specifies the description of the keywords alarm rule.
- domain
Id String - The domain ID.
- frequency
Lts
Keywords Alarm Rule V2Frequency - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- keywords
Requests List<LtsKeywords Alarm Rule V2Keywords Request> - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- lts
Keywords StringAlarm Rule V2Id - The resource ID.
- name String
- Specifies the topic name. Changing this parameter will create a new resource.
- notification
Frequency Double - Specifies notification frequency, in minutes.
- notification
Rule LtsKeywords Alarm Rule V2Notification Rule - Specifies the notification rule. The NotificationRule structure is documented below.
- recovery
Policy Double - region String
- Shows the region in the rule resource created.
- send
Notifications Boolean - Specifies whether to send notifications.
- send
Recovery BooleanNotifications - 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.
- trigger
Condition DoubleCount - Specifies the count to trigger the alarm.
Defaults to
1
. - trigger
Condition DoubleFrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
. - updated
At String - The last update time of the alarm rule.
- alarm
Action stringRule Name - created
At string - The creation time of the alarm rule.
- description string
- Specifies the description of the keywords alarm rule.
- domain
Id string - The domain ID.
- frequency
Lts
Keywords Alarm Rule V2Frequency - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- keywords
Requests LtsKeywords Alarm Rule V2Keywords Request[] - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- lts
Keywords stringAlarm Rule V2Id - The resource ID.
- name string
- Specifies the topic name. Changing this parameter will create a new resource.
- notification
Frequency number - Specifies notification frequency, in minutes.
- notification
Rule LtsKeywords Alarm Rule V2Notification Rule - Specifies the notification rule. The NotificationRule structure is documented below.
- recovery
Policy number - region string
- Shows the region in the rule resource created.
- send
Notifications boolean - Specifies whether to send notifications.
- send
Recovery booleanNotifications - 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.
- trigger
Condition numberCount - Specifies the count to trigger the alarm.
Defaults to
1
. - trigger
Condition numberFrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
. - updated
At string - The last update time of the alarm rule.
- alarm_
action_ strrule_ name - 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
Lts
Keywords Alarm Rule V2Frequency Args - Specifies the alarm frequency configurations. The Frequency structure is documented below.
- keywords_
requests Sequence[LtsKeywords Alarm Rule V2Keywords Request Args] - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- lts_
keywords_ stralarm_ rule_ v2_ id - 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 LtsKeywords Alarm Rule V2Notification Rule Args - 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_ boolnotifications - 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_ floatcount - Specifies the count to trigger the alarm.
Defaults to
1
. - trigger_
condition_ floatfrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
. - updated_
at str - The last update time of the alarm rule.
- alarm
Action StringRule Name - created
At String - The creation time of the alarm rule.
- description String
- Specifies the description of the keywords alarm rule.
- domain
Id String - The domain ID.
- frequency Property Map
- Specifies the alarm frequency configurations. The Frequency structure is documented below.
- keywords
Requests List<Property Map> - Specifies the keywords requests. The KeywordsRequests structure is documented below.
- lts
Keywords StringAlarm Rule V2Id - The resource ID.
- name String
- Specifies the topic name. Changing this parameter will create a new resource.
- notification
Frequency Number - Specifies notification frequency, in minutes.
- notification
Rule Property Map - Specifies the notification rule. The NotificationRule structure is documented below.
- recovery
Policy Number - region String
- Shows the region in the rule resource created.
- send
Notifications Boolean - Specifies whether to send notifications.
- send
Recovery BooleanNotifications - 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.
- trigger
Condition NumberCount - Specifies the count to trigger the alarm.
Defaults to
1
. - trigger
Condition NumberFrequency - Specifies the frequency to trigger the alarm.
Defaults to
1
. - updated
At 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.
- Cron
Expression string - Specifies the cron expression.
This parameter is used when
type
is set to CRON. - Day
Of doubleWeek - Specifies the day of week.
This parameter is used when
type
is set to WEEKLY. The value ranges from1
to7
.1
means Sunday. - Fixed
Rate 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 from1
to60
. - When the
fixed_rate_unit
is hour, the value ranges from1
to24
The
NotificationRule
block supports:- When the
- Fixed
Rate stringUnit - Specifies the unit of fixed rate. The value can be: minute and hour.
- Hour
Of doubleDay - Specifies the hour of day.
This parameter is used when
type
is set to DAILY or WEEKLY. The value ranges from0
to23
.
- Type string
- Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
- Cron
Expression string - Specifies the cron expression.
This parameter is used when
type
is set to CRON. - Day
Of float64Week - Specifies the day of week.
This parameter is used when
type
is set to WEEKLY. The value ranges from1
to7
.1
means Sunday. - Fixed
Rate 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 from1
to60
. - When the
fixed_rate_unit
is hour, the value ranges from1
to24
The
NotificationRule
block supports:- When the
- Fixed
Rate stringUnit - Specifies the unit of fixed rate. The value can be: minute and hour.
- Hour
Of float64Day - Specifies the hour of day.
This parameter is used when
type
is set to DAILY or WEEKLY. The value ranges from0
to23
.
- type String
- Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
- cron
Expression String - Specifies the cron expression.
This parameter is used when
type
is set to CRON. - day
Of DoubleWeek - Specifies the day of week.
This parameter is used when
type
is set to WEEKLY. The value ranges from1
to7
.1
means Sunday. - fixed
Rate 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 from1
to60
. - When the
fixed_rate_unit
is hour, the value ranges from1
to24
The
NotificationRule
block supports:- When the
- fixed
Rate StringUnit - Specifies the unit of fixed rate. The value can be: minute and hour.
- hour
Of DoubleDay - Specifies the hour of day.
This parameter is used when
type
is set to DAILY or WEEKLY. The value ranges from0
to23
.
- type string
- Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
- cron
Expression string - Specifies the cron expression.
This parameter is used when
type
is set to CRON. - day
Of numberWeek - Specifies the day of week.
This parameter is used when
type
is set to WEEKLY. The value ranges from1
to7
.1
means Sunday. - fixed
Rate 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 from1
to60
. - When the
fixed_rate_unit
is hour, the value ranges from1
to24
The
NotificationRule
block supports:- When the
- fixed
Rate stringUnit - Specifies the unit of fixed rate. The value can be: minute and hour.
- hour
Of numberDay - Specifies the hour of day.
This parameter is used when
type
is set to DAILY or WEEKLY. The value ranges from0
to23
.
- 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_ floatweek - Specifies the day of week.
This parameter is used when
type
is set to WEEKLY. The value ranges from1
to7
.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 from1
to60
. - When the
fixed_rate_unit
is hour, the value ranges from1
to24
The
NotificationRule
block supports:- When the
- fixed_
rate_ strunit - Specifies the unit of fixed rate. The value can be: minute and hour.
- hour_
of_ floatday - Specifies the hour of day.
This parameter is used when
type
is set to DAILY or WEEKLY. The value ranges from0
to23
.
- type String
- Specifies the frequency type. The value can be: CRON, HOURLY, DAILY, WEEKLY and FIXED_RATE.
- cron
Expression String - Specifies the cron expression.
This parameter is used when
type
is set to CRON. - day
Of NumberWeek - Specifies the day of week.
This parameter is used when
type
is set to WEEKLY. The value ranges from1
to7
.1
means Sunday. - fixed
Rate 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 from1
to60
. - When the
fixed_rate_unit
is hour, the value ranges from1
to24
The
NotificationRule
block supports:- When the
- fixed
Rate StringUnit - Specifies the unit of fixed rate. The value can be: minute and hour.
- hour
Of NumberDay - Specifies the hour of day.
This parameter is used when
type
is set to DAILY or WEEKLY. The value ranges from0
to23
.
LtsKeywordsAlarmRuleV2KeywordsRequest, LtsKeywordsAlarmRuleV2KeywordsRequestArgs
- Condition string
- Specifies the keywords request condition. The value can be: >=, <=, < and >.
- Keyword string
- Specifies the keywords.
- Log
Group stringId - Specifies the log group id.
- Log
Stream stringId - Specifies the log stream id.
- Number double
- Specifies the line number.
- Search
Time doubleRange Specifies the search time range.
- When the
search_time_range_unit
is minute, the value ranges from1
to60
. - When the
search_time_range_unit
is hour, the value ranges from1
to24
.
The
Frequency
block supports:- When the
- Search
Time stringRange Unit - 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.
- Log
Group stringId - Specifies the log group id.
- Log
Stream stringId - Specifies the log stream id.
- Number float64
- Specifies the line number.
- Search
Time float64Range Specifies the search time range.
- When the
search_time_range_unit
is minute, the value ranges from1
to60
. - When the
search_time_range_unit
is hour, the value ranges from1
to24
.
The
Frequency
block supports:- When the
- Search
Time stringRange Unit - 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.
- log
Group StringId - Specifies the log group id.
- log
Stream StringId - Specifies the log stream id.
- number Double
- Specifies the line number.
- search
Time DoubleRange Specifies the search time range.
- When the
search_time_range_unit
is minute, the value ranges from1
to60
. - When the
search_time_range_unit
is hour, the value ranges from1
to24
.
The
Frequency
block supports:- When the
- search
Time StringRange Unit - 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.
- log
Group stringId - Specifies the log group id.
- log
Stream stringId - Specifies the log stream id.
- number number
- Specifies the line number.
- search
Time numberRange Specifies the search time range.
- When the
search_time_range_unit
is minute, the value ranges from1
to60
. - When the
search_time_range_unit
is hour, the value ranges from1
to24
.
The
Frequency
block supports:- When the
- search
Time stringRange Unit - 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_ strid - Specifies the log group id.
- log_
stream_ strid - Specifies the log stream id.
- number float
- Specifies the line number.
- search_
time_ floatrange Specifies the search time range.
- When the
search_time_range_unit
is minute, the value ranges from1
to60
. - When the
search_time_range_unit
is hour, the value ranges from1
to24
.
The
Frequency
block supports:- When the
- search_
time_ strrange_ unit - 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.
- log
Group StringId - Specifies the log group id.
- log
Stream StringId - Specifies the log stream id.
- number Number
- Specifies the line number.
- search
Time NumberRange Specifies the search time range.
- When the
search_time_range_unit
is minute, the value ranges from1
to60
. - When the
search_time_range_unit
is hour, the value ranges from1
to24
.
The
Frequency
block supports:- When the
- search
Time StringRange Unit - Specifies the unit of search time range. The value can be: minute and hour.
LtsKeywordsAlarmRuleV2NotificationRule, LtsKeywordsAlarmRuleV2NotificationRuleArgs
- Topics
List<Lts
Keywords Alarm Rule V2Notification Rule Topic> - Specifies the SMN topics. The Topic structure is documented below.
- User
Name string - Specifies the username.
- Language string
Specifies the notification language. The value can be en-us.
The
NotificationRuleTopic
block supports:- Template
Name string - Specifies the notification template name.
- Timezone string
- Specifies the timezone.
- Topics
[]Lts
Keywords Alarm Rule V2Notification Rule Topic - Specifies the SMN topics. The Topic structure is documented below.
- User
Name string - Specifies the username.
- Language string
Specifies the notification language. The value can be en-us.
The
NotificationRuleTopic
block supports:- Template
Name string - Specifies the notification template name.
- Timezone string
- Specifies the timezone.
- topics
List<Lts
Keywords Alarm Rule V2Notification Rule Topic> - Specifies the SMN topics. The Topic structure is documented below.
- user
Name String - Specifies the username.
- language String
Specifies the notification language. The value can be en-us.
The
NotificationRuleTopic
block supports:- template
Name String - Specifies the notification template name.
- timezone String
- Specifies the timezone.
- topics
Lts
Keywords Alarm Rule V2Notification Rule Topic[] - Specifies the SMN topics. The Topic structure is documented below.
- user
Name string - Specifies the username.
- language string
Specifies the notification language. The value can be en-us.
The
NotificationRuleTopic
block supports:- template
Name string - Specifies the notification template name.
- timezone string
- Specifies the timezone.
- topics
Sequence[Lts
Keywords Alarm Rule V2Notification Rule Topic] - 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.
- user
Name String - Specifies the username.
- language String
Specifies the notification language. The value can be en-us.
The
NotificationRuleTopic
block supports:- template
Name 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.
- Topic
Urn string - Specifies the topic URN. Changing this parameter will create a new resource.
- Display
Name string - Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
- Push
Policy 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.
- Topic
Urn string - Specifies the topic URN. Changing this parameter will create a new resource.
- Display
Name string - Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
- Push
Policy 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.
- topic
Urn String - Specifies the topic URN. Changing this parameter will create a new resource.
- display
Name String - Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
- push
Policy 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.
- topic
Urn string - Specifies the topic URN. Changing this parameter will create a new resource.
- display
Name string - Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
- push
Policy 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.
- topic
Urn String - Specifies the topic URN. Changing this parameter will create a new resource.
- display
Name String - Specifies the display name. This will be shown as the sender of the message. Changing this parameter will create a new resource.
- push
Policy 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.