Volcengine v0.0.27 published on Tuesday, Dec 10, 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
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cloud_monitor.EventRules({
ruleName: "tftest",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cloud_monitor.event_rules(rule_name="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
})
}
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 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());
}
}
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) EventRulesResultOutput
public 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)
public static Output<EventRulesResult> eventRules(EventRulesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:cloud_monitor:EventRules
arguments:
# arguments dictionary
The 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 This property is required. string - The id of the account.
- Contact
Group Ids This property is required. List<string> - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- Contact
Methods This property is required. List<string> - List of contact methods.
- Created
At This property is required. int - The create time.
- Description
This property is required. string - The description of the rule.
- Effect
End At This property is required. string - The end time of the rule.
- Effect
Start At 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.
- Event
Bus Name This property is required. string - The name of the event bus.
- Event
Source This property is required. string - The source of the event.
- Event
Types This property is required. List<string> - The event type.
- Filter
Patterns This property is required. List<EventRules Rule Filter Pattern> - 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.
- Message
Queues This property is required. List<EventRules Rule Message Queue> - The triggered message queue when the alarm notification method is Kafka message queue.
- Region
This property is required. string - The name of the region.
- Rule
Id This property is required. string - The id of the rule.
- Rule
Name 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.
- Tls
Targets This property is required. List<EventRules Rule Tls Target> - The alarm method for log service triggers the configuration of the log service.
- Updated
At This property is required. int - The updated time.
- Account
Id This property is required. string - The id of the account.
- Contact
Group Ids This property is required. []string - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- Contact
Methods This property is required. []string - List of contact methods.
- Created
At This property is required. int - The create time.
- Description
This property is required. string - The description of the rule.
- Effect
End At This property is required. string - The end time of the rule.
- Effect
Start At 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.
- Event
Bus Name This property is required. string - The name of the event bus.
- Event
Source This property is required. string - The source of the event.
- Event
Types This property is required. []string - The event type.
- Filter
Patterns This property is required. []EventRules Rule Filter Pattern - 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.
- Message
Queues This property is required. []EventRules Rule Message Queue - The triggered message queue when the alarm notification method is Kafka message queue.
- Region
This property is required. string - The name of the region.
- Rule
Id This property is required. string - The id of the rule.
- Rule
Name 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.
- Tls
Targets This property is required. []EventRules Rule Tls Target - The alarm method for log service triggers the configuration of the log service.
- Updated
At This property is required. int - The updated time.
- account
Id This property is required. String - The id of the account.
- contact
Group Ids This property is required. List<String> - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- contact
Methods This property is required. List<String> - List of contact methods.
- created
At This property is required. Integer - The create time.
- description
This property is required. String - The description of the rule.
- effect
End At This property is required. String - The end time of the rule.
- effect
Start At 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.
- event
Bus Name This property is required. String - The name of the event bus.
- event
Source This property is required. String - The source of the event.
- event
Types This property is required. List<String> - The event type.
- filter
Patterns This property is required. List<EventRules Rule Filter Pattern> - 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.
- message
Queues This property is required. List<EventRules Rule Message Queue> - The triggered message queue when the alarm notification method is Kafka message queue.
- region
This property is required. String - The name of the region.
- rule
Id This property is required. String - The id of the rule.
- rule
Name 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.
- tls
Targets This property is required. List<EventRules Rule Tls Target> - The alarm method for log service triggers the configuration of the log service.
- updated
At This property is required. Integer - The updated time.
- account
Id This property is required. string - The id of the account.
- contact
Group Ids This property is required. string[] - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- contact
Methods This property is required. string[] - List of contact methods.
- created
At This property is required. number - The create time.
- description
This property is required. string - The description of the rule.
- effect
End At This property is required. string - The end time of the rule.
- effect
Start At 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.
- event
Bus Name This property is required. string - The name of the event bus.
- event
Source This property is required. string - The source of the event.
- event
Types This property is required. string[] - The event type.
- filter
Patterns This property is required. EventRules Rule Filter Pattern[] - 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.
- message
Queues This property is required. EventRules Rule Message Queue[] - The triggered message queue when the alarm notification method is Kafka message queue.
- region
This property is required. string - The name of the region.
- rule
Id This property is required. string - The id of the rule.
- rule
Name 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.
- tls
Targets This property is required. EventRules Rule Tls Target[] - The alarm method for log service triggers the configuration of the log service.
- updated
At 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[EventRules Rule Filter Pattern] - 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[EventRules Rule Message Queue] - 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[EventRules Rule Tls Target] - The alarm method for log service triggers the configuration of the log service.
- updated_
at This property is required. int - The updated time.
- account
Id This property is required. String - The id of the account.
- contact
Group Ids This property is required. List<String> - When the alarm notification method is phone, SMS, or email, the triggered alarm contact group ID.
- contact
Methods This property is required. List<String> - List of contact methods.
- created
At This property is required. Number - The create time.
- description
This property is required. String - The description of the rule.
- effect
End At This property is required. String - The end time of the rule.
- effect
Start At 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.
- event
Bus Name This property is required. String - The name of the event bus.
- event
Source This property is required. String - The source of the event.
- event
Types This property is required. List<String> - The event type.
- filter
Patterns 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.
- message
Queues 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.
- rule
Id This property is required. String - The id of the rule.
- rule
Name 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.
- tls
Targets This property is required. List<Property Map> - The alarm method for log service triggers the configuration of the log service.
- updated
At This property is required. Number - The updated time.
EventRulesRuleFilterPattern
EventRulesRuleMessageQueue
- Instance
Id 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.
- Vpc
Id This property is required. string - The vpc id.
- Instance
Id 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.
- Vpc
Id This property is required. string - The vpc id.
- instance
Id 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.
- vpc
Id This property is required. String - The vpc id.
- instance
Id 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.
- vpc
Id 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.
- instance
Id 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.
- vpc
Id This property is required. String - The vpc id.
EventRulesRuleTlsTarget
- Project
Id This property is required. string - The project id.
- Project
Name This property is required. string - The project name.
- Region
Name Cn This property is required. string - The Chinese region name.
- Region
Name En This property is required. string - The English region name.
- Topic
Id This property is required. string - The topic id.
- Topic
Name This property is required. string - The topic name.
- Project
Id This property is required. string - The project id.
- Project
Name This property is required. string - The project name.
- Region
Name Cn This property is required. string - The Chinese region name.
- Region
Name En This property is required. string - The English region name.
- Topic
Id This property is required. string - The topic id.
- Topic
Name This property is required. string - The topic name.
- project
Id This property is required. String - The project id.
- project
Name This property is required. String - The project name.
- region
Name Cn This property is required. String - The Chinese region name.
- region
Name En This property is required. String - The English region name.
- topic
Id This property is required. String - The topic id.
- topic
Name This property is required. String - The topic name.
- project
Id This property is required. string - The project id.
- project
Name This property is required. string - The project name.
- region
Name Cn This property is required. string - The Chinese region name.
- region
Name En This property is required. string - The English region name.
- topic
Id This property is required. string - The topic id.
- topic
Name 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.
- project
Id This property is required. String - The project id.
- project
Name This property is required. String - The project name.
- region
Name Cn This property is required. String - The Chinese region name.
- region
Name En This property is required. String - The English region name.
- topic
Id This property is required. String - The topic id.
- topic
Name 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.