Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.cloud_monitor.Rules
Explore with Pulumi AI
Use this data source to query detailed information of cloud monitor 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.Rules.Invoke(new()
{
Ids = new[]
{
"174402785374661****",
},
});
});
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.Rules(ctx, &cloud_monitor.RulesArgs{
Ids: []string{
"174402785374661****",
},
}, 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.RulesArgs;
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.Rules(RulesArgs.builder()
.ids("174402785374661****")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cloud_monitor.rules(ids=["174402785374661****"])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cloud_monitor.Rules({
ids: ["174402785374661****"],
});
variables:
foo:
fn::invoke:
Function: volcengine:cloud_monitor:Rules
Arguments:
ids:
- 174402785374661****
Using Rules
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 rules(args: RulesArgs, opts?: InvokeOptions): Promise<RulesResult>
function rulesOutput(args: RulesOutputArgs, opts?: InvokeOptions): Output<RulesResult>
def rules(alert_states: Optional[Sequence[str]] = None,
enable_states: Optional[Sequence[str]] = None,
ids: Optional[Sequence[str]] = None,
levels: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
namespaces: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
rule_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> RulesResult
def rules_output(alert_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
enable_states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
rule_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[RulesResult]
func Rules(ctx *Context, args *RulesArgs, opts ...InvokeOption) (*RulesResult, error)
func RulesOutput(ctx *Context, args *RulesOutputArgs, opts ...InvokeOption) RulesResultOutput
public static class Rules
{
public static Task<RulesResult> InvokeAsync(RulesArgs args, InvokeOptions? opts = null)
public static Output<RulesResult> Invoke(RulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<RulesResult> rules(RulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:cloud_monitor:Rules
arguments:
# arguments dictionary
The following arguments are supported:
- Alert
States List<string> - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - Enable
States List<string> - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - Ids List<string>
- A list of cloud monitor ids.
- Levels List<string>
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - Name
Regex string - A Name Regex of Resource.
- Namespaces List<string>
- The namespace of the cloud monitor rule.
- Output
File string - File name where to save data source results.
- Rule
Name string - The name of the cloud monitor rule. This field support fuzzy query.
- Alert
States []string - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - Enable
States []string - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - Ids []string
- A list of cloud monitor ids.
- Levels []string
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - Name
Regex string - A Name Regex of Resource.
- Namespaces []string
- The namespace of the cloud monitor rule.
- Output
File string - File name where to save data source results.
- Rule
Name string - The name of the cloud monitor rule. This field support fuzzy query.
- alert
States List<String> - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - enable
States List<String> - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - ids List<String>
- A list of cloud monitor ids.
- levels List<String>
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - name
Regex String - A Name Regex of Resource.
- namespaces List<String>
- The namespace of the cloud monitor rule.
- output
File String - File name where to save data source results.
- rule
Name String - The name of the cloud monitor rule. This field support fuzzy query.
- alert
States string[] - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - enable
States string[] - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - ids string[]
- A list of cloud monitor ids.
- levels string[]
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - name
Regex string - A Name Regex of Resource.
- namespaces string[]
- The namespace of the cloud monitor rule.
- output
File string - File name where to save data source results.
- rule
Name string - The name of the cloud monitor rule. This field support fuzzy query.
- alert_
states Sequence[str] - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - enable_
states Sequence[str] - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - ids Sequence[str]
- A list of cloud monitor ids.
- levels Sequence[str]
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - name_
regex str - A Name Regex of Resource.
- namespaces Sequence[str]
- The namespace of the cloud monitor rule.
- output_
file str - File name where to save data source results.
- rule_
name str - The name of the cloud monitor rule. This field support fuzzy query.
- alert
States List<String> - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - enable
States List<String> - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - ids List<String>
- A list of cloud monitor ids.
- levels List<String>
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - name
Regex String - A Name Regex of Resource.
- namespaces List<String>
- The namespace of the cloud monitor rule.
- output
File String - File name where to save data source results.
- rule
Name String - The name of the cloud monitor rule. This field support fuzzy query.
Rules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
List<Rules
Rule> - The collection of query.
- Total
Count int - The total count of query.
- Alert
States List<string> - The alert state of the cloud monitor rule.
- Enable
States List<string> - The enable state of the cloud monitor rule.
- Ids List<string>
- Levels List<string>
- The level of the cloud monitor rule.
- Name
Regex string - Namespaces List<string>
- The namespace of the cloud monitor rule.
- Output
File string - Rule
Name string - The name of the cloud monitor rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
[]Rules
Rule - The collection of query.
- Total
Count int - The total count of query.
- Alert
States []string - The alert state of the cloud monitor rule.
- Enable
States []string - The enable state of the cloud monitor rule.
- Ids []string
- Levels []string
- The level of the cloud monitor rule.
- Name
Regex string - Namespaces []string
- The namespace of the cloud monitor rule.
- Output
File string - Rule
Name string - The name of the cloud monitor rule.
- id String
- The provider-assigned unique ID for this managed resource.
- rules
List<Rules
Rule> - The collection of query.
- total
Count Integer - The total count of query.
- alert
States List<String> - The alert state of the cloud monitor rule.
- enable
States List<String> - The enable state of the cloud monitor rule.
- ids List<String>
- levels List<String>
- The level of the cloud monitor rule.
- name
Regex String - namespaces List<String>
- The namespace of the cloud monitor rule.
- output
File String - rule
Name String - The name of the cloud monitor rule.
- id string
- The provider-assigned unique ID for this managed resource.
- rules
Rules
Rule[] - The collection of query.
- total
Count number - The total count of query.
- alert
States string[] - The alert state of the cloud monitor rule.
- enable
States string[] - The enable state of the cloud monitor rule.
- ids string[]
- levels string[]
- The level of the cloud monitor rule.
- name
Regex string - namespaces string[]
- The namespace of the cloud monitor rule.
- output
File string - rule
Name string - The name of the cloud monitor rule.
- id str
- The provider-assigned unique ID for this managed resource.
- rules
Sequence[Rules
Rule] - The collection of query.
- total_
count int - The total count of query.
- alert_
states Sequence[str] - The alert state of the cloud monitor rule.
- enable_
states Sequence[str] - The enable state of the cloud monitor rule.
- ids Sequence[str]
- levels Sequence[str]
- The level of the cloud monitor rule.
- name_
regex str - namespaces Sequence[str]
- The namespace of the cloud monitor rule.
- output_
file str - rule_
name str - The name of the cloud monitor rule.
- 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.
- alert
States List<String> - The alert state of the cloud monitor rule.
- enable
States List<String> - The enable state of the cloud monitor rule.
- ids List<String>
- levels List<String>
- The level of the cloud monitor rule.
- name
Regex String - namespaces List<String>
- The namespace of the cloud monitor rule.
- output
File String - rule
Name String - The name of the cloud monitor rule.
Supporting Types
RulesRule
- Alert
Methods List<string> - The alert methods of the cloud monitor rule.
- Alert
State string - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - Condition
Operator string - The condition operator of the cloud monitor rule. Valid values:
&&
,||
. - Conditions
List<Rules
Rule Condition> - The conditions of the cloud monitor rule.
- Contact
Group List<string>Ids - The contact group ids of the cloud monitor rule.
- Created
At string - The created time of the cloud monitor rule.
- Description string
- The description of the cloud monitor rule.
- Effect
End stringAt - The effect end time of the cloud monitor rule.
- Effect
Start stringAt - The effect start time of the cloud monitor rule.
- Enable
State string - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - Evaluation
Count int - The evaluation count of the cloud monitor rule.
- Id string
- The id of the cloud monitor rule.
- Level string
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - Multiple
Conditions bool - Whether to enable the multiple conditions function of the cloud monitor rule.
- Namespace string
- The namespace of the cloud monitor rule.
- Original
Dimensions List<RulesRule Original Dimension> - The original dimensions of the cloud monitor rule.
- Regions List<string>
- The region id of the cloud monitor rule.
- Rule
Name string - The name of the cloud monitor rule. This field support fuzzy query.
- Silence
Time int - The silence time of the cloud monitor rule. Unit in minutes.
- Sub
Namespace string - The sub namespace of the cloud monitor rule.
- Updated
At string - The updated time of the cloud monitor rule.
- Web
Hook string - The web hook of the cloud monitor rule.
- Alert
Methods []string - The alert methods of the cloud monitor rule.
- Alert
State string - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - Condition
Operator string - The condition operator of the cloud monitor rule. Valid values:
&&
,||
. - Conditions
[]Rules
Rule Condition - The conditions of the cloud monitor rule.
- Contact
Group []stringIds - The contact group ids of the cloud monitor rule.
- Created
At string - The created time of the cloud monitor rule.
- Description string
- The description of the cloud monitor rule.
- Effect
End stringAt - The effect end time of the cloud monitor rule.
- Effect
Start stringAt - The effect start time of the cloud monitor rule.
- Enable
State string - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - Evaluation
Count int - The evaluation count of the cloud monitor rule.
- Id string
- The id of the cloud monitor rule.
- Level string
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - Multiple
Conditions bool - Whether to enable the multiple conditions function of the cloud monitor rule.
- Namespace string
- The namespace of the cloud monitor rule.
- Original
Dimensions []RulesRule Original Dimension - The original dimensions of the cloud monitor rule.
- Regions []string
- The region id of the cloud monitor rule.
- Rule
Name string - The name of the cloud monitor rule. This field support fuzzy query.
- Silence
Time int - The silence time of the cloud monitor rule. Unit in minutes.
- Sub
Namespace string - The sub namespace of the cloud monitor rule.
- Updated
At string - The updated time of the cloud monitor rule.
- Web
Hook string - The web hook of the cloud monitor rule.
- alert
Methods List<String> - The alert methods of the cloud monitor rule.
- alert
State String - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - condition
Operator String - The condition operator of the cloud monitor rule. Valid values:
&&
,||
. - conditions
List<Rules
Rule Condition> - The conditions of the cloud monitor rule.
- contact
Group List<String>Ids - The contact group ids of the cloud monitor rule.
- created
At String - The created time of the cloud monitor rule.
- description String
- The description of the cloud monitor rule.
- effect
End StringAt - The effect end time of the cloud monitor rule.
- effect
Start StringAt - The effect start time of the cloud monitor rule.
- enable
State String - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - evaluation
Count Integer - The evaluation count of the cloud monitor rule.
- id String
- The id of the cloud monitor rule.
- level String
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - multiple
Conditions Boolean - Whether to enable the multiple conditions function of the cloud monitor rule.
- namespace String
- The namespace of the cloud monitor rule.
- original
Dimensions List<RulesRule Original Dimension> - The original dimensions of the cloud monitor rule.
- regions List<String>
- The region id of the cloud monitor rule.
- rule
Name String - The name of the cloud monitor rule. This field support fuzzy query.
- silence
Time Integer - The silence time of the cloud monitor rule. Unit in minutes.
- sub
Namespace String - The sub namespace of the cloud monitor rule.
- updated
At String - The updated time of the cloud monitor rule.
- web
Hook String - The web hook of the cloud monitor rule.
- alert
Methods string[] - The alert methods of the cloud monitor rule.
- alert
State string - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - condition
Operator string - The condition operator of the cloud monitor rule. Valid values:
&&
,||
. - conditions
Rules
Rule Condition[] - The conditions of the cloud monitor rule.
- contact
Group string[]Ids - The contact group ids of the cloud monitor rule.
- created
At string - The created time of the cloud monitor rule.
- description string
- The description of the cloud monitor rule.
- effect
End stringAt - The effect end time of the cloud monitor rule.
- effect
Start stringAt - The effect start time of the cloud monitor rule.
- enable
State string - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - evaluation
Count number - The evaluation count of the cloud monitor rule.
- id string
- The id of the cloud monitor rule.
- level string
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - multiple
Conditions boolean - Whether to enable the multiple conditions function of the cloud monitor rule.
- namespace string
- The namespace of the cloud monitor rule.
- original
Dimensions RulesRule Original Dimension[] - The original dimensions of the cloud monitor rule.
- regions string[]
- The region id of the cloud monitor rule.
- rule
Name string - The name of the cloud monitor rule. This field support fuzzy query.
- silence
Time number - The silence time of the cloud monitor rule. Unit in minutes.
- sub
Namespace string - The sub namespace of the cloud monitor rule.
- updated
At string - The updated time of the cloud monitor rule.
- web
Hook string - The web hook of the cloud monitor rule.
- alert_
methods Sequence[str] - The alert methods of the cloud monitor rule.
- alert_
state str - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - condition_
operator str - The condition operator of the cloud monitor rule. Valid values:
&&
,||
. - conditions
Sequence[Rules
Rule Condition] - The conditions of the cloud monitor rule.
- contact_
group_ Sequence[str]ids - The contact group ids of the cloud monitor rule.
- created_
at str - The created time of the cloud monitor rule.
- description str
- The description of the cloud monitor rule.
- effect_
end_ strat - The effect end time of the cloud monitor rule.
- effect_
start_ strat - The effect start time of the cloud monitor rule.
- enable_
state str - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - evaluation_
count int - The evaluation count of the cloud monitor rule.
- id str
- The id of the cloud monitor rule.
- level str
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - multiple_
conditions bool - Whether to enable the multiple conditions function of the cloud monitor rule.
- namespace str
- The namespace of the cloud monitor rule.
- original_
dimensions Sequence[RulesRule Original Dimension] - The original dimensions of the cloud monitor rule.
- regions Sequence[str]
- The region id of the cloud monitor rule.
- rule_
name str - The name of the cloud monitor rule. This field support fuzzy query.
- silence_
time int - The silence time of the cloud monitor rule. Unit in minutes.
- sub_
namespace str - The sub namespace of the cloud monitor rule.
- updated_
at str - The updated time of the cloud monitor rule.
- web_
hook str - The web hook of the cloud monitor rule.
- alert
Methods List<String> - The alert methods of the cloud monitor rule.
- alert
State String - The alert state of the cloud monitor rule. Valid values:
altering
,normal
. - condition
Operator String - The condition operator of the cloud monitor rule. Valid values:
&&
,||
. - conditions List<Property Map>
- The conditions of the cloud monitor rule.
- contact
Group List<String>Ids - The contact group ids of the cloud monitor rule.
- created
At String - The created time of the cloud monitor rule.
- description String
- The description of the cloud monitor rule.
- effect
End StringAt - The effect end time of the cloud monitor rule.
- effect
Start StringAt - The effect start time of the cloud monitor rule.
- enable
State String - The enable state of the cloud monitor rule. Valid values:
enable
,disable
. - evaluation
Count Number - The evaluation count of the cloud monitor rule.
- id String
- The id of the cloud monitor rule.
- level String
- The level of the cloud monitor rule. Valid values:
critical
,warning
,notice
. - multiple
Conditions Boolean - Whether to enable the multiple conditions function of the cloud monitor rule.
- namespace String
- The namespace of the cloud monitor rule.
- original
Dimensions List<Property Map> - The original dimensions of the cloud monitor rule.
- regions List<String>
- The region id of the cloud monitor rule.
- rule
Name String - The name of the cloud monitor rule. This field support fuzzy query.
- silence
Time Number - The silence time of the cloud monitor rule. Unit in minutes.
- sub
Namespace String - The sub namespace of the cloud monitor rule.
- updated
At String - The updated time of the cloud monitor rule.
- web
Hook String - The web hook of the cloud monitor rule.
RulesRuleCondition
- Comparison
Operator string - The comparison operation of the cloud monitor rule.
- Metric
Name string - The metric name of the cloud monitor rule.
- Metric
Unit string - The metric unit of the cloud monitor rule.
- Period string
- The period of the cloud monitor rule.
- Statistics string
- The statistics of the cloud monitor rule.
- Threshold string
- The threshold of the cloud monitor rule.
- Comparison
Operator string - The comparison operation of the cloud monitor rule.
- Metric
Name string - The metric name of the cloud monitor rule.
- Metric
Unit string - The metric unit of the cloud monitor rule.
- Period string
- The period of the cloud monitor rule.
- Statistics string
- The statistics of the cloud monitor rule.
- Threshold string
- The threshold of the cloud monitor rule.
- comparison
Operator String - The comparison operation of the cloud monitor rule.
- metric
Name String - The metric name of the cloud monitor rule.
- metric
Unit String - The metric unit of the cloud monitor rule.
- period String
- The period of the cloud monitor rule.
- statistics String
- The statistics of the cloud monitor rule.
- threshold String
- The threshold of the cloud monitor rule.
- comparison
Operator string - The comparison operation of the cloud monitor rule.
- metric
Name string - The metric name of the cloud monitor rule.
- metric
Unit string - The metric unit of the cloud monitor rule.
- period string
- The period of the cloud monitor rule.
- statistics string
- The statistics of the cloud monitor rule.
- threshold string
- The threshold of the cloud monitor rule.
- comparison_
operator str - The comparison operation of the cloud monitor rule.
- metric_
name str - The metric name of the cloud monitor rule.
- metric_
unit str - The metric unit of the cloud monitor rule.
- period str
- The period of the cloud monitor rule.
- statistics str
- The statistics of the cloud monitor rule.
- threshold str
- The threshold of the cloud monitor rule.
- comparison
Operator String - The comparison operation of the cloud monitor rule.
- metric
Name String - The metric name of the cloud monitor rule.
- metric
Unit String - The metric unit of the cloud monitor rule.
- period String
- The period of the cloud monitor rule.
- statistics String
- The statistics of the cloud monitor rule.
- threshold String
- The threshold of the cloud monitor rule.
RulesRuleOriginalDimension
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.