Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.cloud_monitor.EventRules
Explore with Pulumi AI
Use this data source to query detailed information of cloud monitor event rules
Example Usage
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",
    });
});
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
	})
}
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());
    }
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cloud_monitor.event_rules(rule_name="tftest")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cloud_monitor.EventRules({
    ruleName: "tftest",
});
variables:
  foo:
    fn::invoke:
      Function: volcengine:cloud_monitor:EventRules
      Arguments:
        ruleName: tftest
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>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]func EventRules(ctx *Context, args *EventRulesArgs, opts ...InvokeOption) (*EventRulesResult, error)
func EventRulesOutput(ctx *Context, args *EventRulesOutputArgs, opts ...InvokeOption) EventRulesResultOutputpublic static class EventRules 
{
    public static Task<EventRulesResult> InvokeAsync(EventRulesArgs args, InvokeOptions? opts = null)
    public static Output<EventRulesResult> Invoke(EventRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<EventRulesResult> eventRules(EventRulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: volcengine:cloud_monitor:EventRules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Output
File string - File name where to save data source results.
 - Rule
Name string - Rule name, search rules by name using fuzzy search.
 - Source string
 - Event source.
 
- Output
File string - File name where to save data source results.
 - Rule
Name string - Rule name, search rules by name using fuzzy search.
 - Source string
 - Event source.
 
- output
File String - File name where to save data source results.
 - rule
Name String - Rule name, search rules by name using fuzzy search.
 - source String
 - Event source.
 
- output
File string - File name where to save data source results.
 - rule
Name 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.
 
- output
File String - File name where to save data source results.
 - rule
Name 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<Event
Rules Rule>  - The collection of query.
 - Total
Count int - The total count of query.
 - Output
File string - Rule
Name 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
[]Event
Rules Rule  - The collection of query.
 - Total
Count int - The total count of query.
 - Output
File string - Rule
Name 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<Event
Rules Rule>  - The collection of query.
 - total
Count Integer - The total count of query.
 - output
File String - rule
Name 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
Event
Rules Rule[]  - The collection of query.
 - total
Count number - The total count of query.
 - output
File string - rule
Name 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[Event
Rules Rule]  - 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.
 - total
Count Number - The total count of query.
 - output
File String - rule
Name String - The name of the rule.
 - source String
 - Event source corresponding to pattern matching.
 
Supporting Types
EventRulesRule  
- Account
Id string - The id of the account.
 - Contact
Group List<string>Ids  - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
 - Contact
Methods List<string> - List of contact methods.
 - Created
At int - The create time.
 - Description string
 - The description of the rule.
 - Effect
End stringAt  - The end time of the rule.
 - Effect
Start stringAt  - The start time of the rule.
 - Endpoint string
 - When the alarm notification method is alarm callback, it triggers the callback address.
 - Event
Bus stringName  - The name of the event bus.
 - Event
Source string - The source of the event.
 - Event
Types List<string> - The event type.
 - Filter
Patterns List<EventRules Rule Filter Pattern>  - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
 - Id string
 - The id of the rule.
 - Level string
 - The level of the rule.
 - Message
Queues List<EventRules Rule Message Queue>  - The triggered message queue when the alarm notification method is Kafka message queue.
 - Region string
 - The name of the region.
 - Rule
Id string - The id of the rule.
 - Rule
Name string - Rule name, search rules by name using fuzzy search.
 - Status string
 - Enable the state of the rule.
 - Tls
Targets List<EventRules Rule Tls Target>  - The alarm method for log service triggers the configuration of the log service.
 - Updated
At int - The updated time.
 
- Account
Id string - The id of the account.
 - Contact
Group []stringIds  - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
 - Contact
Methods []string - List of contact methods.
 - Created
At int - The create time.
 - Description string
 - The description of the rule.
 - Effect
End stringAt  - The end time of the rule.
 - Effect
Start stringAt  - The start time of the rule.
 - Endpoint string
 - When the alarm notification method is alarm callback, it triggers the callback address.
 - Event
Bus stringName  - The name of the event bus.
 - Event
Source string - The source of the event.
 - Event
Types []string - The event type.
 - Filter
Patterns []EventRules Rule Filter Pattern  - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
 - Id string
 - The id of the rule.
 - Level string
 - The level of the rule.
 - Message
Queues []EventRules Rule Message Queue  - The triggered message queue when the alarm notification method is Kafka message queue.
 - Region string
 - The name of the region.
 - Rule
Id string - The id of the rule.
 - Rule
Name string - Rule name, search rules by name using fuzzy search.
 - Status string
 - Enable the state of the rule.
 - Tls
Targets []EventRules Rule Tls Target  - The alarm method for log service triggers the configuration of the log service.
 - Updated
At int - The updated time.
 
- account
Id String - The id of the account.
 - contact
Group List<String>Ids  - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
 - contact
Methods List<String> - List of contact methods.
 - created
At Integer - The create time.
 - description String
 - The description of the rule.
 - effect
End StringAt  - The end time of the rule.
 - effect
Start StringAt  - The start time of the rule.
 - endpoint String
 - When the alarm notification method is alarm callback, it triggers the callback address.
 - event
Bus StringName  - The name of the event bus.
 - event
Source String - The source of the event.
 - event
Types List<String> - The event type.
 - filter
Patterns List<EventRules Rule Filter Pattern>  - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
 - id String
 - The id of the rule.
 - level String
 - The level of the rule.
 - message
Queues List<EventRules Rule Message Queue>  - The triggered message queue when the alarm notification method is Kafka message queue.
 - region String
 - The name of the region.
 - rule
Id String - The id of the rule.
 - rule
Name String - Rule name, search rules by name using fuzzy search.
 - status String
 - Enable the state of the rule.
 - tls
Targets List<EventRules Rule Tls Target>  - The alarm method for log service triggers the configuration of the log service.
 - updated
At Integer - The updated time.
 
- account
Id string - The id of the account.
 - contact
Group string[]Ids  - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
 - contact
Methods string[] - List of contact methods.
 - created
At number - The create time.
 - description string
 - The description of the rule.
 - effect
End stringAt  - The end time of the rule.
 - effect
Start stringAt  - The start time of the rule.
 - endpoint string
 - When the alarm notification method is alarm callback, it triggers the callback address.
 - event
Bus stringName  - The name of the event bus.
 - event
Source string - The source of the event.
 - event
Types string[] - The event type.
 - filter
Patterns EventRules Rule Filter Pattern[]  - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
 - id string
 - The id of the rule.
 - level string
 - The level of the rule.
 - message
Queues EventRules Rule Message Queue[]  - The triggered message queue when the alarm notification method is Kafka message queue.
 - region string
 - The name of the region.
 - rule
Id string - The id of the rule.
 - rule
Name string - Rule name, search rules by name using fuzzy search.
 - status string
 - Enable the state of the rule.
 - tls
Targets EventRules Rule Tls Target[]  - The alarm method for log service triggers the configuration of the log service.
 - updated
At number - The updated time.
 
- account_
id str - The id of the account.
 - contact_
group_ Sequence[str]ids  - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
 - contact_
methods Sequence[str] - List of contact methods.
 - created_
at int - The create time.
 - description str
 - The description of the rule.
 - effect_
end_ strat  - The end time of the rule.
 - effect_
start_ strat  - The start time of the rule.
 - endpoint str
 - When the alarm notification method is alarm callback, it triggers the callback address.
 - event_
bus_ strname  - The name of the event bus.
 - event_
source str - The source of the event.
 - event_
types Sequence[str] - The event type.
 - filter_
patterns Sequence[EventRules Rule Filter Pattern]  - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
 - id str
 - The id of the rule.
 - level str
 - The level of the rule.
 - message_
queues Sequence[EventRules Rule Message Queue]  - The triggered message queue when the alarm notification method is Kafka message queue.
 - region str
 - The name of the region.
 - rule_
id str - The id of the rule.
 - rule_
name str - Rule name, search rules by name using fuzzy search.
 - status str
 - Enable the state of the rule.
 - tls_
targets Sequence[EventRules Rule Tls Target]  - The alarm method for log service triggers the configuration of the log service.
 - updated_
at int - The updated time.
 
- account
Id String - The id of the account.
 - contact
Group List<String>Ids  - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
 - contact
Methods List<String> - List of contact methods.
 - created
At Number - The create time.
 - description String
 - The description of the rule.
 - effect
End StringAt  - The end time of the rule.
 - effect
Start StringAt  - The start time of the rule.
 - endpoint String
 - When the alarm notification method is alarm callback, it triggers the callback address.
 - event
Bus StringName  - The name of the event bus.
 - event
Source String - The source of the event.
 - event
Types List<String> - The event type.
 - filter
Patterns List<Property Map> - Filter mode, also known as event matching rules. Custom matching rules are not currently supported.
 - id String
 - The id of the rule.
 - level String
 - The level of the rule.
 - message
Queues List<Property Map> - The triggered message queue when the alarm notification method is Kafka message queue.
 - region String
 - The name of the region.
 - rule
Id String - The id of the rule.
 - rule
Name String - Rule name, search rules by name using fuzzy search.
 - status String
 - Enable the state of the rule.
 - tls
Targets List<Property Map> - The alarm method for log service triggers the configuration of the log service.
 - updated
At Number - The updated time.
 
EventRulesRuleFilterPattern    
EventRulesRuleMessageQueue    
- Instance
Id string - The kafka instance id.
 - Region string
 - The name of the region.
 - Topic string
 - The topic name.
 - Type string
 - The message queue type, only support kafka now.
 - Vpc
Id string - The vpc id.
 
- Instance
Id string - The kafka instance id.
 - Region string
 - The name of the region.
 - Topic string
 - The topic name.
 - Type string
 - The message queue type, only support kafka now.
 - Vpc
Id string - The vpc id.
 
- instance
Id String - The kafka instance id.
 - region String
 - The name of the region.
 - topic String
 - The topic name.
 - type String
 - The message queue type, only support kafka now.
 - vpc
Id String - The vpc id.
 
- instance
Id string - The kafka instance id.
 - region string
 - The name of the region.
 - topic string
 - The topic name.
 - type string
 - The message queue type, only support kafka now.
 - vpc
Id string - The vpc id.
 
- instance_
id str - The kafka instance id.
 - region str
 - The name of the region.
 - topic str
 - The topic name.
 - type str
 - The message queue type, only support kafka now.
 - vpc_
id str - The vpc id.
 
- instance
Id String - The kafka instance id.
 - region String
 - The name of the region.
 - topic String
 - The topic name.
 - type String
 - The message queue type, only support kafka now.
 - vpc
Id String - The vpc id.
 
EventRulesRuleTlsTarget    
- Project
Id string - The project id.
 - Project
Name string - The project name.
 - Region
Name stringCn  - The Chinese region name.
 - Region
Name stringEn  - The English region name.
 - Topic
Id string - The topic id.
 - Topic
Name string - The topic name.
 
- Project
Id string - The project id.
 - Project
Name string - The project name.
 - Region
Name stringCn  - The Chinese region name.
 - Region
Name stringEn  - The English region name.
 - Topic
Id string - The topic id.
 - Topic
Name string - The topic name.
 
- project
Id String - The project id.
 - project
Name String - The project name.
 - region
Name StringCn  - The Chinese region name.
 - region
Name StringEn  - The English region name.
 - topic
Id String - The topic id.
 - topic
Name String - The topic name.
 
- project
Id string - The project id.
 - project
Name string - The project name.
 - region
Name stringCn  - The Chinese region name.
 - region
Name stringEn  - The English region name.
 - topic
Id string - The topic id.
 - topic
Name string - The topic name.
 
- project_
id str - The project id.
 - project_
name str - The project name.
 - region_
name_ strcn  - The Chinese region name.
 - region_
name_ stren  - The English region name.
 - topic_
id str - The topic id.
 - topic_
name str - The topic name.
 
- project
Id String - The project id.
 - project
Name String - The project name.
 - region
Name StringCn  - The Chinese region name.
 - region
Name StringEn  - The English region name.
 - topic
Id String - The topic id.
 - topic
Name String - The topic name.
 
Package Details
- Repository
 - volcengine volcengine/pulumi-volcengine
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
volcengineTerraform Provider.