alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcess
Explore with Pulumi AI
Provides a Cloud Monitor Service Group Monitoring Agent Process resource.
For information about Cloud Monitor Service Group Monitoring Agent Process and how to use it, see What is Group Monitoring Agent Process.
NOTE: Available since v1.212.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.cms.AlarmContactGroup("default", {
alarmContactGroupName: name,
contacts: [
"user",
"user1",
"user2",
],
});
const defaultMonitorGroup = new alicloud.cms.MonitorGroup("default", {
monitorGroupName: name,
contactGroups: [_default.id],
});
const defaultServiceGroupMonitoringAgentProcess = new alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcess("default", {
groupId: defaultMonitorGroup.id,
processName: name,
matchExpressFilterRelation: "or",
matchExpresses: [{
name: name,
value: "*",
"function": "all",
}],
alertConfigs: [{
escalationsLevel: "critical",
comparisonOperator: "GreaterThanOrEqualToThreshold",
statistics: "Average",
threshold: "20",
times: "100",
effectiveInterval: "00:00-22:59",
silenceTime: 85800,
webhook: "https://www.aliyun.com",
targetLists: [{
targetListId: "1",
jsonParams: "{}",
level: "WARN",
arn: "acs:mns:cn-hangzhou:120886317861****:/queues/test123/message",
}],
}],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.cms.AlarmContactGroup("default",
alarm_contact_group_name=name,
contacts=[
"user",
"user1",
"user2",
])
default_monitor_group = alicloud.cms.MonitorGroup("default",
monitor_group_name=name,
contact_groups=[default.id])
default_service_group_monitoring_agent_process = alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcess("default",
group_id=default_monitor_group.id,
process_name=name,
match_express_filter_relation="or",
match_expresses=[{
"name": name,
"value": "*",
"function": "all",
}],
alert_configs=[{
"escalations_level": "critical",
"comparison_operator": "GreaterThanOrEqualToThreshold",
"statistics": "Average",
"threshold": "20",
"times": "100",
"effective_interval": "00:00-22:59",
"silence_time": 85800,
"webhook": "https://www.aliyun.com",
"target_lists": [{
"target_list_id": "1",
"json_params": "{}",
"level": "WARN",
"arn": "acs:mns:cn-hangzhou:120886317861****:/queues/test123/message",
}],
}])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudmonitor"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
"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, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := cms.NewAlarmContactGroup(ctx, "default", &cms.AlarmContactGroupArgs{
AlarmContactGroupName: pulumi.String(name),
Contacts: pulumi.StringArray{
pulumi.String("user"),
pulumi.String("user1"),
pulumi.String("user2"),
},
})
if err != nil {
return err
}
defaultMonitorGroup, err := cms.NewMonitorGroup(ctx, "default", &cms.MonitorGroupArgs{
MonitorGroupName: pulumi.String(name),
ContactGroups: pulumi.StringArray{
_default.ID(),
},
})
if err != nil {
return err
}
_, err = cloudmonitor.NewServiceGroupMonitoringAgentProcess(ctx, "default", &cloudmonitor.ServiceGroupMonitoringAgentProcessArgs{
GroupId: defaultMonitorGroup.ID(),
ProcessName: pulumi.String(name),
MatchExpressFilterRelation: pulumi.String("or"),
MatchExpresses: cloudmonitor.ServiceGroupMonitoringAgentProcessMatchExpressArray{
&cloudmonitor.ServiceGroupMonitoringAgentProcessMatchExpressArgs{
Name: pulumi.String(name),
Value: pulumi.String("*"),
Function: pulumi.String("all"),
},
},
AlertConfigs: cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigArray{
&cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigArgs{
EscalationsLevel: pulumi.String("critical"),
ComparisonOperator: pulumi.String("GreaterThanOrEqualToThreshold"),
Statistics: pulumi.String("Average"),
Threshold: pulumi.String("20"),
Times: pulumi.String("100"),
EffectiveInterval: pulumi.String("00:00-22:59"),
SilenceTime: pulumi.Int(85800),
Webhook: pulumi.String("https://www.aliyun.com"),
TargetLists: cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigTargetListArray{
&cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs{
TargetListId: pulumi.String("1"),
JsonParams: pulumi.String("{}"),
Level: pulumi.String("WARN"),
Arn: pulumi.String("acs:mns:cn-hangzhou:120886317861****:/queues/test123/message"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Cms.AlarmContactGroup("default", new()
{
AlarmContactGroupName = name,
Contacts = new[]
{
"user",
"user1",
"user2",
},
});
var defaultMonitorGroup = new AliCloud.Cms.MonitorGroup("default", new()
{
MonitorGroupName = name,
ContactGroups = new[]
{
@default.Id,
},
});
var defaultServiceGroupMonitoringAgentProcess = new AliCloud.CloudMonitor.ServiceGroupMonitoringAgentProcess("default", new()
{
GroupId = defaultMonitorGroup.Id,
ProcessName = name,
MatchExpressFilterRelation = "or",
MatchExpresses = new[]
{
new AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessMatchExpressArgs
{
Name = name,
Value = "*",
Function = "all",
},
},
AlertConfigs = new[]
{
new AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfigArgs
{
EscalationsLevel = "critical",
ComparisonOperator = "GreaterThanOrEqualToThreshold",
Statistics = "Average",
Threshold = "20",
Times = "100",
EffectiveInterval = "00:00-22:59",
SilenceTime = 85800,
Webhook = "https://www.aliyun.com",
TargetLists = new[]
{
new AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs
{
TargetListId = "1",
JsonParams = "{}",
Level = "WARN",
Arn = "acs:mns:cn-hangzhou:120886317861****:/queues/test123/message",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cms.AlarmContactGroup;
import com.pulumi.alicloud.cms.AlarmContactGroupArgs;
import com.pulumi.alicloud.cms.MonitorGroup;
import com.pulumi.alicloud.cms.MonitorGroupArgs;
import com.pulumi.alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcess;
import com.pulumi.alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcessArgs;
import com.pulumi.alicloud.cloudmonitor.inputs.ServiceGroupMonitoringAgentProcessMatchExpressArgs;
import com.pulumi.alicloud.cloudmonitor.inputs.ServiceGroupMonitoringAgentProcessAlertConfigArgs;
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 name = config.get("name").orElse("terraform-example");
var default_ = new AlarmContactGroup("default", AlarmContactGroupArgs.builder()
.alarmContactGroupName(name)
.contacts(
"user",
"user1",
"user2")
.build());
var defaultMonitorGroup = new MonitorGroup("defaultMonitorGroup", MonitorGroupArgs.builder()
.monitorGroupName(name)
.contactGroups(default_.id())
.build());
var defaultServiceGroupMonitoringAgentProcess = new ServiceGroupMonitoringAgentProcess("defaultServiceGroupMonitoringAgentProcess", ServiceGroupMonitoringAgentProcessArgs.builder()
.groupId(defaultMonitorGroup.id())
.processName(name)
.matchExpressFilterRelation("or")
.matchExpresses(ServiceGroupMonitoringAgentProcessMatchExpressArgs.builder()
.name(name)
.value("*")
.function("all")
.build())
.alertConfigs(ServiceGroupMonitoringAgentProcessAlertConfigArgs.builder()
.escalationsLevel("critical")
.comparisonOperator("GreaterThanOrEqualToThreshold")
.statistics("Average")
.threshold("20")
.times("100")
.effectiveInterval("00:00-22:59")
.silenceTime("85800")
.webhook("https://www.aliyun.com")
.targetLists(ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs.builder()
.targetListId("1")
.jsonParams("{}")
.level("WARN")
.arn("acs:mns:cn-hangzhou:120886317861****:/queues/test123/message")
.build())
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:cms:AlarmContactGroup
properties:
alarmContactGroupName: ${name}
contacts:
- user
- user1
- user2
defaultMonitorGroup:
type: alicloud:cms:MonitorGroup
name: default
properties:
monitorGroupName: ${name}
contactGroups:
- ${default.id}
defaultServiceGroupMonitoringAgentProcess:
type: alicloud:cloudmonitor:ServiceGroupMonitoringAgentProcess
name: default
properties:
groupId: ${defaultMonitorGroup.id}
processName: ${name}
matchExpressFilterRelation: or
matchExpresses:
- name: ${name}
value: '*'
function: all
alertConfigs:
- escalationsLevel: critical
comparisonOperator: GreaterThanOrEqualToThreshold
statistics: Average
threshold: '20'
times: '100'
effectiveInterval: 00:00-22:59
silenceTime: '85800'
webhook: https://www.aliyun.com
targetLists:
- targetListId: '1'
jsonParams: '{}'
level: WARN
arn: acs:mns:cn-hangzhou:120886317861****:/queues/test123/message
Create ServiceGroupMonitoringAgentProcess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceGroupMonitoringAgentProcess(name: string, args: ServiceGroupMonitoringAgentProcessArgs, opts?: CustomResourceOptions);
@overload
def ServiceGroupMonitoringAgentProcess(resource_name: str,
args: ServiceGroupMonitoringAgentProcessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceGroupMonitoringAgentProcess(resource_name: str,
opts: Optional[ResourceOptions] = None,
alert_configs: Optional[Sequence[ServiceGroupMonitoringAgentProcessAlertConfigArgs]] = None,
group_id: Optional[str] = None,
process_name: Optional[str] = None,
match_express_filter_relation: Optional[str] = None,
match_expresses: Optional[Sequence[ServiceGroupMonitoringAgentProcessMatchExpressArgs]] = None)
func NewServiceGroupMonitoringAgentProcess(ctx *Context, name string, args ServiceGroupMonitoringAgentProcessArgs, opts ...ResourceOption) (*ServiceGroupMonitoringAgentProcess, error)
public ServiceGroupMonitoringAgentProcess(string name, ServiceGroupMonitoringAgentProcessArgs args, CustomResourceOptions? opts = null)
public ServiceGroupMonitoringAgentProcess(String name, ServiceGroupMonitoringAgentProcessArgs args)
public ServiceGroupMonitoringAgentProcess(String name, ServiceGroupMonitoringAgentProcessArgs args, CustomResourceOptions options)
type: alicloud:cloudmonitor:ServiceGroupMonitoringAgentProcess
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 ServiceGroupMonitoringAgentProcessArgs
- 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 ServiceGroupMonitoringAgentProcessArgs
- 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 ServiceGroupMonitoringAgentProcessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceGroupMonitoringAgentProcessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceGroupMonitoringAgentProcessArgs
- 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 serviceGroupMonitoringAgentProcessResource = new AliCloud.CloudMonitor.ServiceGroupMonitoringAgentProcess("serviceGroupMonitoringAgentProcessResource", new()
{
AlertConfigs = new[]
{
new AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfigArgs
{
ComparisonOperator = "string",
EscalationsLevel = "string",
Statistics = "string",
Threshold = "string",
Times = "string",
EffectiveInterval = "string",
SilenceTime = 0,
TargetLists = new[]
{
new AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs
{
Arn = "string",
JsonParams = "string",
Level = "string",
TargetListId = "string",
},
},
Webhook = "string",
},
},
GroupId = "string",
ProcessName = "string",
MatchExpressFilterRelation = "string",
MatchExpresses = new[]
{
new AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessMatchExpressArgs
{
Function = "string",
Name = "string",
Value = "string",
},
},
});
example, err := cloudmonitor.NewServiceGroupMonitoringAgentProcess(ctx, "serviceGroupMonitoringAgentProcessResource", &cloudmonitor.ServiceGroupMonitoringAgentProcessArgs{
AlertConfigs: cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigArray{
&cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigArgs{
ComparisonOperator: pulumi.String("string"),
EscalationsLevel: pulumi.String("string"),
Statistics: pulumi.String("string"),
Threshold: pulumi.String("string"),
Times: pulumi.String("string"),
EffectiveInterval: pulumi.String("string"),
SilenceTime: pulumi.Int(0),
TargetLists: cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigTargetListArray{
&cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs{
Arn: pulumi.String("string"),
JsonParams: pulumi.String("string"),
Level: pulumi.String("string"),
TargetListId: pulumi.String("string"),
},
},
Webhook: pulumi.String("string"),
},
},
GroupId: pulumi.String("string"),
ProcessName: pulumi.String("string"),
MatchExpressFilterRelation: pulumi.String("string"),
MatchExpresses: cloudmonitor.ServiceGroupMonitoringAgentProcessMatchExpressArray{
&cloudmonitor.ServiceGroupMonitoringAgentProcessMatchExpressArgs{
Function: pulumi.String("string"),
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var serviceGroupMonitoringAgentProcessResource = new ServiceGroupMonitoringAgentProcess("serviceGroupMonitoringAgentProcessResource", ServiceGroupMonitoringAgentProcessArgs.builder()
.alertConfigs(ServiceGroupMonitoringAgentProcessAlertConfigArgs.builder()
.comparisonOperator("string")
.escalationsLevel("string")
.statistics("string")
.threshold("string")
.times("string")
.effectiveInterval("string")
.silenceTime(0)
.targetLists(ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs.builder()
.arn("string")
.jsonParams("string")
.level("string")
.targetListId("string")
.build())
.webhook("string")
.build())
.groupId("string")
.processName("string")
.matchExpressFilterRelation("string")
.matchExpresses(ServiceGroupMonitoringAgentProcessMatchExpressArgs.builder()
.function("string")
.name("string")
.value("string")
.build())
.build());
service_group_monitoring_agent_process_resource = alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcess("serviceGroupMonitoringAgentProcessResource",
alert_configs=[{
"comparison_operator": "string",
"escalations_level": "string",
"statistics": "string",
"threshold": "string",
"times": "string",
"effective_interval": "string",
"silence_time": 0,
"target_lists": [{
"arn": "string",
"json_params": "string",
"level": "string",
"target_list_id": "string",
}],
"webhook": "string",
}],
group_id="string",
process_name="string",
match_express_filter_relation="string",
match_expresses=[{
"function": "string",
"name": "string",
"value": "string",
}])
const serviceGroupMonitoringAgentProcessResource = new alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcess("serviceGroupMonitoringAgentProcessResource", {
alertConfigs: [{
comparisonOperator: "string",
escalationsLevel: "string",
statistics: "string",
threshold: "string",
times: "string",
effectiveInterval: "string",
silenceTime: 0,
targetLists: [{
arn: "string",
jsonParams: "string",
level: "string",
targetListId: "string",
}],
webhook: "string",
}],
groupId: "string",
processName: "string",
matchExpressFilterRelation: "string",
matchExpresses: [{
"function": "string",
name: "string",
value: "string",
}],
});
type: alicloud:cloudmonitor:ServiceGroupMonitoringAgentProcess
properties:
alertConfigs:
- comparisonOperator: string
effectiveInterval: string
escalationsLevel: string
silenceTime: 0
statistics: string
targetLists:
- arn: string
jsonParams: string
level: string
targetListId: string
threshold: string
times: string
webhook: string
groupId: string
matchExpressFilterRelation: string
matchExpresses:
- function: string
name: string
value: string
processName: string
ServiceGroupMonitoringAgentProcess 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 ServiceGroupMonitoringAgentProcess resource accepts the following input properties:
- Alert
Configs List<Pulumi.Ali Cloud. Cloud Monitor. Inputs. Service Group Monitoring Agent Process Alert Config> - The alert rule configurations. See
alert_config
below. - Group
Id string - The ID of the application group.
- Process
Name string - The name of the process.
- Match
Express stringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - Match
Expresses List<Pulumi.Ali Cloud. Cloud Monitor. Inputs. Service Group Monitoring Agent Process Match Express> - The expressions used to match instances. See
match_express
below.
- Alert
Configs []ServiceGroup Monitoring Agent Process Alert Config Args - The alert rule configurations. See
alert_config
below. - Group
Id string - The ID of the application group.
- Process
Name string - The name of the process.
- Match
Express stringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - Match
Expresses []ServiceGroup Monitoring Agent Process Match Express Args - The expressions used to match instances. See
match_express
below.
- alert
Configs List<ServiceGroup Monitoring Agent Process Alert Config> - The alert rule configurations. See
alert_config
below. - group
Id String - The ID of the application group.
- process
Name String - The name of the process.
- match
Express StringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - match
Expresses List<ServiceGroup Monitoring Agent Process Match Express> - The expressions used to match instances. See
match_express
below.
- alert
Configs ServiceGroup Monitoring Agent Process Alert Config[] - The alert rule configurations. See
alert_config
below. - group
Id string - The ID of the application group.
- process
Name string - The name of the process.
- match
Express stringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - match
Expresses ServiceGroup Monitoring Agent Process Match Express[] - The expressions used to match instances. See
match_express
below.
- alert_
configs Sequence[ServiceGroup Monitoring Agent Process Alert Config Args] - The alert rule configurations. See
alert_config
below. - group_
id str - The ID of the application group.
- process_
name str - The name of the process.
- match_
express_ strfilter_ relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - match_
expresses Sequence[ServiceGroup Monitoring Agent Process Match Express Args] - The expressions used to match instances. See
match_express
below.
- alert
Configs List<Property Map> - The alert rule configurations. See
alert_config
below. - group
Id String - The ID of the application group.
- process
Name String - The name of the process.
- match
Express StringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - match
Expresses List<Property Map> - The expressions used to match instances. See
match_express
below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceGroupMonitoringAgentProcess resource produces the following output properties:
- Group
Monitoring stringAgent Process Id - The ID of the Group Monitoring Agent Process.
- Id string
- The provider-assigned unique ID for this managed resource.
- Group
Monitoring stringAgent Process Id - The ID of the Group Monitoring Agent Process.
- Id string
- The provider-assigned unique ID for this managed resource.
- group
Monitoring StringAgent Process Id - The ID of the Group Monitoring Agent Process.
- id String
- The provider-assigned unique ID for this managed resource.
- group
Monitoring stringAgent Process Id - The ID of the Group Monitoring Agent Process.
- id string
- The provider-assigned unique ID for this managed resource.
- group_
monitoring_ stragent_ process_ id - The ID of the Group Monitoring Agent Process.
- id str
- The provider-assigned unique ID for this managed resource.
- group
Monitoring StringAgent Process Id - The ID of the Group Monitoring Agent Process.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ServiceGroupMonitoringAgentProcess Resource
Get an existing ServiceGroupMonitoringAgentProcess 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?: ServiceGroupMonitoringAgentProcessState, opts?: CustomResourceOptions): ServiceGroupMonitoringAgentProcess
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_configs: Optional[Sequence[ServiceGroupMonitoringAgentProcessAlertConfigArgs]] = None,
group_id: Optional[str] = None,
group_monitoring_agent_process_id: Optional[str] = None,
match_express_filter_relation: Optional[str] = None,
match_expresses: Optional[Sequence[ServiceGroupMonitoringAgentProcessMatchExpressArgs]] = None,
process_name: Optional[str] = None) -> ServiceGroupMonitoringAgentProcess
func GetServiceGroupMonitoringAgentProcess(ctx *Context, name string, id IDInput, state *ServiceGroupMonitoringAgentProcessState, opts ...ResourceOption) (*ServiceGroupMonitoringAgentProcess, error)
public static ServiceGroupMonitoringAgentProcess Get(string name, Input<string> id, ServiceGroupMonitoringAgentProcessState? state, CustomResourceOptions? opts = null)
public static ServiceGroupMonitoringAgentProcess get(String name, Output<String> id, ServiceGroupMonitoringAgentProcessState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Alert
Configs List<Pulumi.Ali Cloud. Cloud Monitor. Inputs. Service Group Monitoring Agent Process Alert Config> - The alert rule configurations. See
alert_config
below. - Group
Id string - The ID of the application group.
- Group
Monitoring stringAgent Process Id - The ID of the Group Monitoring Agent Process.
- Match
Express stringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - Match
Expresses List<Pulumi.Ali Cloud. Cloud Monitor. Inputs. Service Group Monitoring Agent Process Match Express> - The expressions used to match instances. See
match_express
below. - Process
Name string - The name of the process.
- Alert
Configs []ServiceGroup Monitoring Agent Process Alert Config Args - The alert rule configurations. See
alert_config
below. - Group
Id string - The ID of the application group.
- Group
Monitoring stringAgent Process Id - The ID of the Group Monitoring Agent Process.
- Match
Express stringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - Match
Expresses []ServiceGroup Monitoring Agent Process Match Express Args - The expressions used to match instances. See
match_express
below. - Process
Name string - The name of the process.
- alert
Configs List<ServiceGroup Monitoring Agent Process Alert Config> - The alert rule configurations. See
alert_config
below. - group
Id String - The ID of the application group.
- group
Monitoring StringAgent Process Id - The ID of the Group Monitoring Agent Process.
- match
Express StringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - match
Expresses List<ServiceGroup Monitoring Agent Process Match Express> - The expressions used to match instances. See
match_express
below. - process
Name String - The name of the process.
- alert
Configs ServiceGroup Monitoring Agent Process Alert Config[] - The alert rule configurations. See
alert_config
below. - group
Id string - The ID of the application group.
- group
Monitoring stringAgent Process Id - The ID of the Group Monitoring Agent Process.
- match
Express stringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - match
Expresses ServiceGroup Monitoring Agent Process Match Express[] - The expressions used to match instances. See
match_express
below. - process
Name string - The name of the process.
- alert_
configs Sequence[ServiceGroup Monitoring Agent Process Alert Config Args] - The alert rule configurations. See
alert_config
below. - group_
id str - The ID of the application group.
- group_
monitoring_ stragent_ process_ id - The ID of the Group Monitoring Agent Process.
- match_
express_ strfilter_ relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - match_
expresses Sequence[ServiceGroup Monitoring Agent Process Match Express Args] - The expressions used to match instances. See
match_express
below. - process_
name str - The name of the process.
- alert
Configs List<Property Map> - The alert rule configurations. See
alert_config
below. - group
Id String - The ID of the application group.
- group
Monitoring StringAgent Process Id - The ID of the Group Monitoring Agent Process.
- match
Express StringFilter Relation - The logical operator used between conditional expressions that are used to match instances. Valid values:
all
,and
,or
. - match
Expresses List<Property Map> - The expressions used to match instances. See
match_express
below. - process
Name String - The name of the process.
Supporting Types
ServiceGroupMonitoringAgentProcessAlertConfig, ServiceGroupMonitoringAgentProcessAlertConfigArgs
- Comparison
Operator string - The operator that is used to compare the metric value with the threshold. Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
. - Escalations
Level string - The alert level. Valid values:
critical
,warn
,info
. - Statistics string
- The statistical method for alerts. Valid values:
Average
. - Threshold string
- The alert threshold.
- Times string
- The number of times for which the threshold can be consecutively exceeded.
- Effective
Interval string - The time period during which the alert rule is effective.
- Silence
Time int - The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
- Target
Lists List<Pulumi.Ali Cloud. Cloud Monitor. Inputs. Service Group Monitoring Agent Process Alert Config Target List> - The alert triggers. See
target_list
below. - Webhook string
- The callback URL.
- Comparison
Operator string - The operator that is used to compare the metric value with the threshold. Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
. - Escalations
Level string - The alert level. Valid values:
critical
,warn
,info
. - Statistics string
- The statistical method for alerts. Valid values:
Average
. - Threshold string
- The alert threshold.
- Times string
- The number of times for which the threshold can be consecutively exceeded.
- Effective
Interval string - The time period during which the alert rule is effective.
- Silence
Time int - The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
- Target
Lists []ServiceGroup Monitoring Agent Process Alert Config Target List - The alert triggers. See
target_list
below. - Webhook string
- The callback URL.
- comparison
Operator String - The operator that is used to compare the metric value with the threshold. Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
. - escalations
Level String - The alert level. Valid values:
critical
,warn
,info
. - statistics String
- The statistical method for alerts. Valid values:
Average
. - threshold String
- The alert threshold.
- times String
- The number of times for which the threshold can be consecutively exceeded.
- effective
Interval String - The time period during which the alert rule is effective.
- silence
Time Integer - The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
- target
Lists List<ServiceGroup Monitoring Agent Process Alert Config Target List> - The alert triggers. See
target_list
below. - webhook String
- The callback URL.
- comparison
Operator string - The operator that is used to compare the metric value with the threshold. Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
. - escalations
Level string - The alert level. Valid values:
critical
,warn
,info
. - statistics string
- The statistical method for alerts. Valid values:
Average
. - threshold string
- The alert threshold.
- times string
- The number of times for which the threshold can be consecutively exceeded.
- effective
Interval string - The time period during which the alert rule is effective.
- silence
Time number - The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
- target
Lists ServiceGroup Monitoring Agent Process Alert Config Target List[] - The alert triggers. See
target_list
below. - webhook string
- The callback URL.
- comparison_
operator str - The operator that is used to compare the metric value with the threshold. Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
. - escalations_
level str - The alert level. Valid values:
critical
,warn
,info
. - statistics str
- The statistical method for alerts. Valid values:
Average
. - threshold str
- The alert threshold.
- times str
- The number of times for which the threshold can be consecutively exceeded.
- effective_
interval str - The time period during which the alert rule is effective.
- silence_
time int - The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
- target_
lists Sequence[ServiceGroup Monitoring Agent Process Alert Config Target List] - The alert triggers. See
target_list
below. - webhook str
- The callback URL.
- comparison
Operator String - The operator that is used to compare the metric value with the threshold. Valid values:
GreaterThanOrEqualToThreshold
,GreaterThanThreshold
,LessThanOrEqualToThreshold
,LessThanThreshold
,NotEqualToThreshold
,GreaterThanYesterday
,LessThanYesterday
,GreaterThanLastWeek
,LessThanLastWeek
,GreaterThanLastPeriod
,LessThanLastPeriod
. - escalations
Level String - The alert level. Valid values:
critical
,warn
,info
. - statistics String
- The statistical method for alerts. Valid values:
Average
. - threshold String
- The alert threshold.
- times String
- The number of times for which the threshold can be consecutively exceeded.
- effective
Interval String - The time period during which the alert rule is effective.
- silence
Time Number - The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
- target
Lists List<Property Map> - The alert triggers. See
target_list
below. - webhook String
- The callback URL.
ServiceGroupMonitoringAgentProcessAlertConfigTargetList, ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the resource.
- Json
Params string - The parameters of the alert callback. Specify the parameters in the JSON format.
- Level string
- The alert level. Valid values:
CRITICAL
,WARN
,INFO
. - Target
List stringId - The ID of the resource for which alerts are triggered.
- Arn string
- The Alibaba Cloud Resource Name (ARN) of the resource.
- Json
Params string - The parameters of the alert callback. Specify the parameters in the JSON format.
- Level string
- The alert level. Valid values:
CRITICAL
,WARN
,INFO
. - Target
List stringId - The ID of the resource for which alerts are triggered.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the resource.
- json
Params String - The parameters of the alert callback. Specify the parameters in the JSON format.
- level String
- The alert level. Valid values:
CRITICAL
,WARN
,INFO
. - target
List StringId - The ID of the resource for which alerts are triggered.
- arn string
- The Alibaba Cloud Resource Name (ARN) of the resource.
- json
Params string - The parameters of the alert callback. Specify the parameters in the JSON format.
- level string
- The alert level. Valid values:
CRITICAL
,WARN
,INFO
. - target
List stringId - The ID of the resource for which alerts are triggered.
- arn str
- The Alibaba Cloud Resource Name (ARN) of the resource.
- json_
params str - The parameters of the alert callback. Specify the parameters in the JSON format.
- level str
- The alert level. Valid values:
CRITICAL
,WARN
,INFO
. - target_
list_ strid - The ID of the resource for which alerts are triggered.
- arn String
- The Alibaba Cloud Resource Name (ARN) of the resource.
- json
Params String - The parameters of the alert callback. Specify the parameters in the JSON format.
- level String
- The alert level. Valid values:
CRITICAL
,WARN
,INFO
. - target
List StringId - The ID of the resource for which alerts are triggered.
ServiceGroupMonitoringAgentProcessMatchExpress, ServiceGroupMonitoringAgentProcessMatchExpressArgs
Import
Cloud Monitor Service Group Monitoring Agent Process can be imported using the id, e.g.
$ pulumi import alicloud:cloudmonitor/serviceGroupMonitoringAgentProcess:ServiceGroupMonitoringAgentProcess example <group_id>:<group_monitoring_agent_process_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.