1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_monitor
  5. EventRules
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.cloud_monitor.EventRules

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

Use this data source to query detailed information of cloud monitor event rules

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";

const foo = volcengine.cloud_monitor.EventRules({
    ruleName: "tftest",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.cloud_monitor.event_rules(rule_name="tftest")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_monitor"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloud_monitor.EventRules(ctx, &cloud_monitor.EventRulesArgs{
			RuleName: pulumi.StringRef("tftest"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = Volcengine.Cloud_monitor.EventRules.Invoke(new()
    {
        RuleName = "tftest",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cloud_monitor.Cloud_monitorFunctions;
import com.pulumi.volcengine.cloud_monitor.inputs.EventRulesArgs;
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 foo = Cloud_monitorFunctions.EventRules(EventRulesArgs.builder()
            .ruleName("tftest")
            .build());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      Function: volcengine:cloud_monitor:EventRules
      Arguments:
        ruleName: tftest
Copy

Using EventRules

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function eventRules(args: EventRulesArgs, opts?: InvokeOptions): Promise<EventRulesResult>
function eventRulesOutput(args: EventRulesOutputArgs, opts?: InvokeOptions): Output<EventRulesResult>
Copy
def event_rules(output_file: Optional[str] = None,
                rule_name: Optional[str] = None,
                source: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> EventRulesResult
def event_rules_output(output_file: Optional[pulumi.Input[str]] = None,
                rule_name: Optional[pulumi.Input[str]] = None,
                source: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[EventRulesResult]
Copy
func EventRules(ctx *Context, args *EventRulesArgs, opts ...InvokeOption) (*EventRulesResult, error)
func EventRulesOutput(ctx *Context, args *EventRulesOutputArgs, opts ...InvokeOption) EventRulesResultOutput
Copy
public static class EventRules 
{
    public static Task<EventRulesResult> InvokeAsync(EventRulesArgs args, InvokeOptions? opts = null)
    public static Output<EventRulesResult> Invoke(EventRulesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<EventRulesResult> eventRules(EventRulesArgs args, InvokeOptions options)
public static Output<EventRulesResult> eventRules(EventRulesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:cloud_monitor:EventRules
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OutputFile string
File name where to save data source results.
RuleName string
Rule name, search rules by name using fuzzy search.
Source string
Event source.
OutputFile string
File name where to save data source results.
RuleName string
Rule name, search rules by name using fuzzy search.
Source string
Event source.
outputFile String
File name where to save data source results.
ruleName String
Rule name, search rules by name using fuzzy search.
source String
Event source.
outputFile string
File name where to save data source results.
ruleName string
Rule name, search rules by name using fuzzy search.
source string
Event source.
output_file str
File name where to save data source results.
rule_name str
Rule name, search rules by name using fuzzy search.
source str
Event source.
outputFile String
File name where to save data source results.
ruleName String
Rule name, search rules by name using fuzzy search.
source String
Event source.

EventRules Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Rules List<EventRulesRule>
The collection of query.
TotalCount int
The total count of query.
OutputFile string
RuleName string
The name of the rule.
Source string
Event source corresponding to pattern matching.
Id string
The provider-assigned unique ID for this managed resource.
Rules []EventRulesRule
The collection of query.
TotalCount int
The total count of query.
OutputFile string
RuleName string
The name of the rule.
Source string
Event source corresponding to pattern matching.
id String
The provider-assigned unique ID for this managed resource.
rules List<EventRulesRule>
The collection of query.
totalCount Integer
The total count of query.
outputFile String
ruleName String
The name of the rule.
source String
Event source corresponding to pattern matching.
id string
The provider-assigned unique ID for this managed resource.
rules EventRulesRule[]
The collection of query.
totalCount number
The total count of query.
outputFile string
ruleName string
The name of the rule.
source string
Event source corresponding to pattern matching.
id str
The provider-assigned unique ID for this managed resource.
rules Sequence[EventRulesRule]
The collection of query.
total_count int
The total count of query.
output_file str
rule_name str
The name of the rule.
source str
Event source corresponding to pattern matching.
id String
The provider-assigned unique ID for this managed resource.
rules List<Property Map>
The collection of query.
totalCount Number
The total count of query.
outputFile String
ruleName String
The name of the rule.
source String
Event source corresponding to pattern matching.

Supporting Types

EventRulesRule

AccountId This property is required. string
The id of the account.
ContactGroupIds This property is required. List<string>
When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
ContactMethods This property is required. List<string>
List of contact methods.
CreatedAt This property is required. int
The create time.
Description This property is required. string
The description of the rule.
EffectEndAt This property is required. string
The end time of the rule.
EffectStartAt This property is required. string
The start time of the rule.
Endpoint This property is required. string
When the alarm notification method is alarm callback, it triggers the callback address.
EventBusName This property is required. string
The name of the event bus.
EventSource This property is required. string
The source of the event.
EventTypes This property is required. List<string>
The event type.
FilterPatterns This property is required. List<EventRulesRuleFilterPattern>
Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
Id This property is required. string
The id of the rule.
Level This property is required. string
The level of the rule.
MessageQueues This property is required. List<EventRulesRuleMessageQueue>
The triggered message queue when the alarm notification method is Kafka message queue.
Region This property is required. string
The name of the region.
RuleId This property is required. string
The id of the rule.
RuleName This property is required. string
Rule name, search rules by name using fuzzy search.
Status This property is required. string
Enable the state of the rule.
TlsTargets This property is required. List<EventRulesRuleTlsTarget>
The alarm method for log service triggers the configuration of the log service.
UpdatedAt This property is required. int
The updated time.
AccountId This property is required. string
The id of the account.
ContactGroupIds This property is required. []string
When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
ContactMethods This property is required. []string
List of contact methods.
CreatedAt This property is required. int
The create time.
Description This property is required. string
The description of the rule.
EffectEndAt This property is required. string
The end time of the rule.
EffectStartAt This property is required. string
The start time of the rule.
Endpoint This property is required. string
When the alarm notification method is alarm callback, it triggers the callback address.
EventBusName This property is required. string
The name of the event bus.
EventSource This property is required. string
The source of the event.
EventTypes This property is required. []string
The event type.
FilterPatterns This property is required. []EventRulesRuleFilterPattern
Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
Id This property is required. string
The id of the rule.
Level This property is required. string
The level of the rule.
MessageQueues This property is required. []EventRulesRuleMessageQueue
The triggered message queue when the alarm notification method is Kafka message queue.
Region This property is required. string
The name of the region.
RuleId This property is required. string
The id of the rule.
RuleName This property is required. string
Rule name, search rules by name using fuzzy search.
Status This property is required. string
Enable the state of the rule.
TlsTargets This property is required. []EventRulesRuleTlsTarget
The alarm method for log service triggers the configuration of the log service.
UpdatedAt This property is required. int
The updated time.
accountId This property is required. String
The id of the account.
contactGroupIds This property is required. List<String>
When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
contactMethods This property is required. List<String>
List of contact methods.
createdAt This property is required. Integer
The create time.
description This property is required. String
The description of the rule.
effectEndAt This property is required. String
The end time of the rule.
effectStartAt This property is required. String
The start time of the rule.
endpoint This property is required. String
When the alarm notification method is alarm callback, it triggers the callback address.
eventBusName This property is required. String
The name of the event bus.
eventSource This property is required. String
The source of the event.
eventTypes This property is required. List<String>
The event type.
filterPatterns This property is required. List<EventRulesRuleFilterPattern>
Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
id This property is required. String
The id of the rule.
level This property is required. String
The level of the rule.
messageQueues This property is required. List<EventRulesRuleMessageQueue>
The triggered message queue when the alarm notification method is Kafka message queue.
region This property is required. String
The name of the region.
ruleId This property is required. String
The id of the rule.
ruleName This property is required. String
Rule name, search rules by name using fuzzy search.
status This property is required. String
Enable the state of the rule.
tlsTargets This property is required. List<EventRulesRuleTlsTarget>
The alarm method for log service triggers the configuration of the log service.
updatedAt This property is required. Integer
The updated time.
accountId This property is required. string
The id of the account.
contactGroupIds This property is required. string[]
When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
contactMethods This property is required. string[]
List of contact methods.
createdAt This property is required. number
The create time.
description This property is required. string
The description of the rule.
effectEndAt This property is required. string
The end time of the rule.
effectStartAt This property is required. string
The start time of the rule.
endpoint This property is required. string
When the alarm notification method is alarm callback, it triggers the callback address.
eventBusName This property is required. string
The name of the event bus.
eventSource This property is required. string
The source of the event.
eventTypes This property is required. string[]
The event type.
filterPatterns This property is required. EventRulesRuleFilterPattern[]
Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
id This property is required. string
The id of the rule.
level This property is required. string
The level of the rule.
messageQueues This property is required. EventRulesRuleMessageQueue[]
The triggered message queue when the alarm notification method is Kafka message queue.
region This property is required. string
The name of the region.
ruleId This property is required. string
The id of the rule.
ruleName This property is required. string
Rule name, search rules by name using fuzzy search.
status This property is required. string
Enable the state of the rule.
tlsTargets This property is required. EventRulesRuleTlsTarget[]
The alarm method for log service triggers the configuration of the log service.
updatedAt This property is required. number
The updated time.
account_id This property is required. str
The id of the account.
contact_group_ids This property is required. Sequence[str]
When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
contact_methods This property is required. Sequence[str]
List of contact methods.
created_at This property is required. int
The create time.
description This property is required. str
The description of the rule.
effect_end_at This property is required. str
The end time of the rule.
effect_start_at This property is required. str
The start time of the rule.
endpoint This property is required. str
When the alarm notification method is alarm callback, it triggers the callback address.
event_bus_name This property is required. str
The name of the event bus.
event_source This property is required. str
The source of the event.
event_types This property is required. Sequence[str]
The event type.
filter_patterns This property is required. Sequence[EventRulesRuleFilterPattern]
Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
id This property is required. str
The id of the rule.
level This property is required. str
The level of the rule.
message_queues This property is required. Sequence[EventRulesRuleMessageQueue]
The triggered message queue when the alarm notification method is Kafka message queue.
region This property is required. str
The name of the region.
rule_id This property is required. str
The id of the rule.
rule_name This property is required. str
Rule name, search rules by name using fuzzy search.
status This property is required. str
Enable the state of the rule.
tls_targets This property is required. Sequence[EventRulesRuleTlsTarget]
The alarm method for log service triggers the configuration of the log service.
updated_at This property is required. int
The updated time.
accountId This property is required. String
The id of the account.
contactGroupIds This property is required. List<String>
When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
contactMethods This property is required. List<String>
List of contact methods.
createdAt This property is required. Number
The create time.
description This property is required. String
The description of the rule.
effectEndAt This property is required. String
The end time of the rule.
effectStartAt This property is required. String
The start time of the rule.
endpoint This property is required. String
When the alarm notification method is alarm callback, it triggers the callback address.
eventBusName This property is required. String
The name of the event bus.
eventSource This property is required. String
The source of the event.
eventTypes This property is required. List<String>
The event type.
filterPatterns This property is required. List<Property Map>
Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
id This property is required. String
The id of the rule.
level This property is required. String
The level of the rule.
messageQueues This property is required. List<Property Map>
The triggered message queue when the alarm notification method is Kafka message queue.
region This property is required. String
The name of the region.
ruleId This property is required. String
The id of the rule.
ruleName This property is required. String
Rule name, search rules by name using fuzzy search.
status This property is required. String
Enable the state of the rule.
tlsTargets This property is required. List<Property Map>
The alarm method for log service triggers the configuration of the log service.
updatedAt This property is required. Number
The updated time.

EventRulesRuleFilterPattern

Source This property is required. string
Event source.
Types This property is required. List<string>
The message queue type, only support kafka now.
Source This property is required. string
Event source.
Types This property is required. []string
The message queue type, only support kafka now.
source This property is required. String
Event source.
types This property is required. List<String>
The message queue type, only support kafka now.
source This property is required. string
Event source.
types This property is required. string[]
The message queue type, only support kafka now.
source This property is required. str
Event source.
types This property is required. Sequence[str]
The message queue type, only support kafka now.
source This property is required. String
Event source.
types This property is required. List<String>
The message queue type, only support kafka now.

EventRulesRuleMessageQueue

InstanceId This property is required. string
The kafka instance id.
Region This property is required. string
The name of the region.
Topic This property is required. string
The topic name.
Type This property is required. string
The message queue type, only support kafka now.
VpcId This property is required. string
The vpc id.
InstanceId This property is required. string
The kafka instance id.
Region This property is required. string
The name of the region.
Topic This property is required. string
The topic name.
Type This property is required. string
The message queue type, only support kafka now.
VpcId This property is required. string
The vpc id.
instanceId This property is required. String
The kafka instance id.
region This property is required. String
The name of the region.
topic This property is required. String
The topic name.
type This property is required. String
The message queue type, only support kafka now.
vpcId This property is required. String
The vpc id.
instanceId This property is required. string
The kafka instance id.
region This property is required. string
The name of the region.
topic This property is required. string
The topic name.
type This property is required. string
The message queue type, only support kafka now.
vpcId This property is required. string
The vpc id.
instance_id This property is required. str
The kafka instance id.
region This property is required. str
The name of the region.
topic This property is required. str
The topic name.
type This property is required. str
The message queue type, only support kafka now.
vpc_id This property is required. str
The vpc id.
instanceId This property is required. String
The kafka instance id.
region This property is required. String
The name of the region.
topic This property is required. String
The topic name.
type This property is required. String
The message queue type, only support kafka now.
vpcId This property is required. String
The vpc id.

EventRulesRuleTlsTarget

ProjectId This property is required. string
The project id.
ProjectName This property is required. string
The project name.
RegionNameCn This property is required. string
The Chinese region name.
RegionNameEn This property is required. string
The English region name.
TopicId This property is required. string
The topic id.
TopicName This property is required. string
The topic name.
ProjectId This property is required. string
The project id.
ProjectName This property is required. string
The project name.
RegionNameCn This property is required. string
The Chinese region name.
RegionNameEn This property is required. string
The English region name.
TopicId This property is required. string
The topic id.
TopicName This property is required. string
The topic name.
projectId This property is required. String
The project id.
projectName This property is required. String
The project name.
regionNameCn This property is required. String
The Chinese region name.
regionNameEn This property is required. String
The English region name.
topicId This property is required. String
The topic id.
topicName This property is required. String
The topic name.
projectId This property is required. string
The project id.
projectName This property is required. string
The project name.
regionNameCn This property is required. string
The Chinese region name.
regionNameEn This property is required. string
The English region name.
topicId This property is required. string
The topic id.
topicName This property is required. string
The topic name.
project_id This property is required. str
The project id.
project_name This property is required. str
The project name.
region_name_cn This property is required. str
The Chinese region name.
region_name_en This property is required. str
The English region name.
topic_id This property is required. str
The topic id.
topic_name This property is required. str
The topic name.
projectId This property is required. String
The project id.
projectName This property is required. String
The project name.
regionNameCn This property is required. String
The Chinese region name.
regionNameEn This property is required. String
The English region name.
topicId This property is required. String
The topic id.
topicName This property is required. String
The topic name.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine