1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudmonitor
  5. ServiceGroupMonitoringAgentProcess
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

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",
        }],
    }],
});
Copy
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",
        }],
    }])
Copy
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
		}
		_default, 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
	})
}
Copy
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",
                    },
                },
            },
        },
    });

});
Copy
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());

    }
}
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ServiceGroupMonitoringAgentProcessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ServiceGroupMonitoringAgentProcessArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ServiceGroupMonitoringAgentProcessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
        },
    },
});
Copy
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"),
		},
	},
})
Copy
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());
Copy
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",
    }])
Copy
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",
    }],
});
Copy
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
Copy

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:

AlertConfigs This property is required. List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfig>
The alert rule configurations. See alert_config below.
GroupId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the application group.
ProcessName
This property is required.
Changes to this property will trigger replacement.
string
The name of the process.
MatchExpressFilterRelation Changes to this property will trigger replacement. string
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
MatchExpresses Changes to this property will trigger replacement. List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessMatchExpress>
The expressions used to match instances. See match_express below.
AlertConfigs This property is required. []ServiceGroupMonitoringAgentProcessAlertConfigArgs
The alert rule configurations. See alert_config below.
GroupId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the application group.
ProcessName
This property is required.
Changes to this property will trigger replacement.
string
The name of the process.
MatchExpressFilterRelation Changes to this property will trigger replacement. string
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
MatchExpresses Changes to this property will trigger replacement. []ServiceGroupMonitoringAgentProcessMatchExpressArgs
The expressions used to match instances. See match_express below.
alertConfigs This property is required. List<ServiceGroupMonitoringAgentProcessAlertConfig>
The alert rule configurations. See alert_config below.
groupId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the application group.
processName
This property is required.
Changes to this property will trigger replacement.
String
The name of the process.
matchExpressFilterRelation Changes to this property will trigger replacement. String
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
matchExpresses Changes to this property will trigger replacement. List<ServiceGroupMonitoringAgentProcessMatchExpress>
The expressions used to match instances. See match_express below.
alertConfigs This property is required. ServiceGroupMonitoringAgentProcessAlertConfig[]
The alert rule configurations. See alert_config below.
groupId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the application group.
processName
This property is required.
Changes to this property will trigger replacement.
string
The name of the process.
matchExpressFilterRelation Changes to this property will trigger replacement. string
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
matchExpresses Changes to this property will trigger replacement. ServiceGroupMonitoringAgentProcessMatchExpress[]
The expressions used to match instances. See match_express below.
alert_configs This property is required. Sequence[ServiceGroupMonitoringAgentProcessAlertConfigArgs]
The alert rule configurations. See alert_config below.
group_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the application group.
process_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the process.
match_express_filter_relation Changes to this property will trigger replacement. str
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
match_expresses Changes to this property will trigger replacement. Sequence[ServiceGroupMonitoringAgentProcessMatchExpressArgs]
The expressions used to match instances. See match_express below.
alertConfigs This property is required. List<Property Map>
The alert rule configurations. See alert_config below.
groupId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the application group.
processName
This property is required.
Changes to this property will trigger replacement.
String
The name of the process.
matchExpressFilterRelation Changes to this property will trigger replacement. String
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
matchExpresses Changes to this property will trigger replacement. 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:

GroupMonitoringAgentProcessId string
The ID of the Group Monitoring Agent Process.
Id string
The provider-assigned unique ID for this managed resource.
GroupMonitoringAgentProcessId string
The ID of the Group Monitoring Agent Process.
Id string
The provider-assigned unique ID for this managed resource.
groupMonitoringAgentProcessId String
The ID of the Group Monitoring Agent Process.
id String
The provider-assigned unique ID for this managed resource.
groupMonitoringAgentProcessId string
The ID of the Group Monitoring Agent Process.
id string
The provider-assigned unique ID for this managed resource.
group_monitoring_agent_process_id str
The ID of the Group Monitoring Agent Process.
id str
The provider-assigned unique ID for this managed resource.
groupMonitoringAgentProcessId String
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)
resources:  _:    type: alicloud:cloudmonitor:ServiceGroupMonitoringAgentProcess    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AlertConfigs List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfig>
The alert rule configurations. See alert_config below.
GroupId Changes to this property will trigger replacement. string
The ID of the application group.
GroupMonitoringAgentProcessId string
The ID of the Group Monitoring Agent Process.
MatchExpressFilterRelation Changes to this property will trigger replacement. string
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
MatchExpresses Changes to this property will trigger replacement. List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessMatchExpress>
The expressions used to match instances. See match_express below.
ProcessName Changes to this property will trigger replacement. string
The name of the process.
AlertConfigs []ServiceGroupMonitoringAgentProcessAlertConfigArgs
The alert rule configurations. See alert_config below.
GroupId Changes to this property will trigger replacement. string
The ID of the application group.
GroupMonitoringAgentProcessId string
The ID of the Group Monitoring Agent Process.
MatchExpressFilterRelation Changes to this property will trigger replacement. string
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
MatchExpresses Changes to this property will trigger replacement. []ServiceGroupMonitoringAgentProcessMatchExpressArgs
The expressions used to match instances. See match_express below.
ProcessName Changes to this property will trigger replacement. string
The name of the process.
alertConfigs List<ServiceGroupMonitoringAgentProcessAlertConfig>
The alert rule configurations. See alert_config below.
groupId Changes to this property will trigger replacement. String
The ID of the application group.
groupMonitoringAgentProcessId String
The ID of the Group Monitoring Agent Process.
matchExpressFilterRelation Changes to this property will trigger replacement. String
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
matchExpresses Changes to this property will trigger replacement. List<ServiceGroupMonitoringAgentProcessMatchExpress>
The expressions used to match instances. See match_express below.
processName Changes to this property will trigger replacement. String
The name of the process.
alertConfigs ServiceGroupMonitoringAgentProcessAlertConfig[]
The alert rule configurations. See alert_config below.
groupId Changes to this property will trigger replacement. string
The ID of the application group.
groupMonitoringAgentProcessId string
The ID of the Group Monitoring Agent Process.
matchExpressFilterRelation Changes to this property will trigger replacement. string
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
matchExpresses Changes to this property will trigger replacement. ServiceGroupMonitoringAgentProcessMatchExpress[]
The expressions used to match instances. See match_express below.
processName Changes to this property will trigger replacement. string
The name of the process.
alert_configs Sequence[ServiceGroupMonitoringAgentProcessAlertConfigArgs]
The alert rule configurations. See alert_config below.
group_id Changes to this property will trigger replacement. str
The ID of the application group.
group_monitoring_agent_process_id str
The ID of the Group Monitoring Agent Process.
match_express_filter_relation Changes to this property will trigger replacement. str
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
match_expresses Changes to this property will trigger replacement. Sequence[ServiceGroupMonitoringAgentProcessMatchExpressArgs]
The expressions used to match instances. See match_express below.
process_name Changes to this property will trigger replacement. str
The name of the process.
alertConfigs List<Property Map>
The alert rule configurations. See alert_config below.
groupId Changes to this property will trigger replacement. String
The ID of the application group.
groupMonitoringAgentProcessId String
The ID of the Group Monitoring Agent Process.
matchExpressFilterRelation Changes to this property will trigger replacement. String
The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
matchExpresses Changes to this property will trigger replacement. List<Property Map>
The expressions used to match instances. See match_express below.
processName Changes to this property will trigger replacement. String
The name of the process.

Supporting Types

ServiceGroupMonitoringAgentProcessAlertConfig
, ServiceGroupMonitoringAgentProcessAlertConfigArgs

ComparisonOperator This property is required. 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.
EscalationsLevel This property is required. string
The alert level. Valid values: critical, warn, info.
Statistics This property is required. string
The statistical method for alerts. Valid values: Average.
Threshold This property is required. string
The alert threshold.
Times This property is required. string
The number of times for which the threshold can be consecutively exceeded.
EffectiveInterval string
The time period during which the alert rule is effective.
SilenceTime int
The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
TargetLists List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfigTargetList>
The alert triggers. See target_list below.
Webhook string
The callback URL.
ComparisonOperator This property is required. 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.
EscalationsLevel This property is required. string
The alert level. Valid values: critical, warn, info.
Statistics This property is required. string
The statistical method for alerts. Valid values: Average.
Threshold This property is required. string
The alert threshold.
Times This property is required. string
The number of times for which the threshold can be consecutively exceeded.
EffectiveInterval string
The time period during which the alert rule is effective.
SilenceTime int
The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
TargetLists []ServiceGroupMonitoringAgentProcessAlertConfigTargetList
The alert triggers. See target_list below.
Webhook string
The callback URL.
comparisonOperator This property is required. 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.
escalationsLevel This property is required. String
The alert level. Valid values: critical, warn, info.
statistics This property is required. String
The statistical method for alerts. Valid values: Average.
threshold This property is required. String
The alert threshold.
times This property is required. String
The number of times for which the threshold can be consecutively exceeded.
effectiveInterval String
The time period during which the alert rule is effective.
silenceTime Integer
The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
targetLists List<ServiceGroupMonitoringAgentProcessAlertConfigTargetList>
The alert triggers. See target_list below.
webhook String
The callback URL.
comparisonOperator This property is required. 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.
escalationsLevel This property is required. string
The alert level. Valid values: critical, warn, info.
statistics This property is required. string
The statistical method for alerts. Valid values: Average.
threshold This property is required. string
The alert threshold.
times This property is required. string
The number of times for which the threshold can be consecutively exceeded.
effectiveInterval string
The time period during which the alert rule is effective.
silenceTime number
The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
targetLists ServiceGroupMonitoringAgentProcessAlertConfigTargetList[]
The alert triggers. See target_list below.
webhook string
The callback URL.
comparison_operator This property is required. 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 This property is required. str
The alert level. Valid values: critical, warn, info.
statistics This property is required. str
The statistical method for alerts. Valid values: Average.
threshold This property is required. str
The alert threshold.
times This property is required. 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[ServiceGroupMonitoringAgentProcessAlertConfigTargetList]
The alert triggers. See target_list below.
webhook str
The callback URL.
comparisonOperator This property is required. 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.
escalationsLevel This property is required. String
The alert level. Valid values: critical, warn, info.
statistics This property is required. String
The statistical method for alerts. Valid values: Average.
threshold This property is required. String
The alert threshold.
times This property is required. String
The number of times for which the threshold can be consecutively exceeded.
effectiveInterval String
The time period during which the alert rule is effective.
silenceTime Number
The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds.
targetLists 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.
JsonParams string
The parameters of the alert callback. Specify the parameters in the JSON format.
Level string
The alert level. Valid values: CRITICAL, WARN, INFO.
TargetListId string
The ID of the resource for which alerts are triggered.
Arn string
The Alibaba Cloud Resource Name (ARN) of the resource.
JsonParams string
The parameters of the alert callback. Specify the parameters in the JSON format.
Level string
The alert level. Valid values: CRITICAL, WARN, INFO.
TargetListId string
The ID of the resource for which alerts are triggered.
arn String
The Alibaba Cloud Resource Name (ARN) of the resource.
jsonParams String
The parameters of the alert callback. Specify the parameters in the JSON format.
level String
The alert level. Valid values: CRITICAL, WARN, INFO.
targetListId String
The ID of the resource for which alerts are triggered.
arn string
The Alibaba Cloud Resource Name (ARN) of the resource.
jsonParams string
The parameters of the alert callback. Specify the parameters in the JSON format.
level string
The alert level. Valid values: CRITICAL, WARN, INFO.
targetListId string
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_id str
The ID of the resource for which alerts are triggered.
arn String
The Alibaba Cloud Resource Name (ARN) of the resource.
jsonParams String
The parameters of the alert callback. Specify the parameters in the JSON format.
level String
The alert level. Valid values: CRITICAL, WARN, INFO.
targetListId String
The ID of the resource for which alerts are triggered.

ServiceGroupMonitoringAgentProcessMatchExpress
, ServiceGroupMonitoringAgentProcessMatchExpressArgs

Function Changes to this property will trigger replacement. string
The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
Name Changes to this property will trigger replacement. string
The criteria based on which the instances are matched.
Value Changes to this property will trigger replacement. string
The keyword used to match the instance name.
Function Changes to this property will trigger replacement. string
The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
Name Changes to this property will trigger replacement. string
The criteria based on which the instances are matched.
Value Changes to this property will trigger replacement. string
The keyword used to match the instance name.
function Changes to this property will trigger replacement. String
The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
name Changes to this property will trigger replacement. String
The criteria based on which the instances are matched.
value Changes to this property will trigger replacement. String
The keyword used to match the instance name.
function Changes to this property will trigger replacement. string
The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
name Changes to this property will trigger replacement. string
The criteria based on which the instances are matched.
value Changes to this property will trigger replacement. string
The keyword used to match the instance name.
function Changes to this property will trigger replacement. str
The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
name Changes to this property will trigger replacement. str
The criteria based on which the instances are matched.
value Changes to this property will trigger replacement. str
The keyword used to match the instance name.
function Changes to this property will trigger replacement. String
The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
name Changes to this property will trigger replacement. String
The criteria based on which the instances are matched.
value Changes to this property will trigger replacement. String
The keyword used to match the instance name.

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>
Copy

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.