1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cloudmonitor
  5. ServiceGroupMonitoringAgentProcess
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcess

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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=[alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcessMatchExpressArgs(
            name=name,
            value="*",
            function="all",
        )],
        alert_configs=[alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigArgs(
            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=[alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs(
                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=[alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigArgs(
            comparison_operator="string",
            escalations_level="string",
            statistics="string",
            threshold="string",
            times="string",
            effective_interval="string",
            silence_time=0,
            target_lists=[alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcessAlertConfigTargetListArgs(
                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=[alicloud.cloudmonitor.ServiceGroupMonitoringAgentProcessMatchExpressArgs(
            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

    The ServiceGroupMonitoringAgentProcess resource accepts the following input properties:

    AlertConfigs List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfig>
    The alert rule configurations. See alert_config below.
    GroupId string
    The ID of the application group.
    ProcessName string
    The name of the process.
    MatchExpressFilterRelation string
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    MatchExpresses List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessMatchExpress>
    The expressions used to match instances. See match_express below.
    AlertConfigs []ServiceGroupMonitoringAgentProcessAlertConfigArgs
    The alert rule configurations. See alert_config below.
    GroupId string
    The ID of the application group.
    ProcessName string
    The name of the process.
    MatchExpressFilterRelation string
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    MatchExpresses []ServiceGroupMonitoringAgentProcessMatchExpressArgs
    The expressions used to match instances. See match_express below.
    alertConfigs List<ServiceGroupMonitoringAgentProcessAlertConfig>
    The alert rule configurations. See alert_config below.
    groupId String
    The ID of the application group.
    processName String
    The name of the process.
    matchExpressFilterRelation String
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    matchExpresses List<ServiceGroupMonitoringAgentProcessMatchExpress>
    The expressions used to match instances. See match_express below.
    alertConfigs ServiceGroupMonitoringAgentProcessAlertConfig[]
    The alert rule configurations. See alert_config below.
    groupId string
    The ID of the application group.
    processName string
    The name of the process.
    matchExpressFilterRelation string
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    matchExpresses ServiceGroupMonitoringAgentProcessMatchExpress[]
    The expressions used to match instances. See match_express below.
    alert_configs Sequence[ServiceGroupMonitoringAgentProcessAlertConfigArgs]
    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_filter_relation str
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    match_expresses Sequence[ServiceGroupMonitoringAgentProcessMatchExpressArgs]
    The expressions used to match instances. See match_express below.
    alertConfigs List<Property Map>
    The alert rule configurations. See alert_config below.
    groupId String
    The ID of the application group.
    processName String
    The name of the process.
    matchExpressFilterRelation String
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    matchExpresses 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)
    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.
    The following state arguments are supported:
    AlertConfigs List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessAlertConfig>
    The alert rule configurations. See alert_config below.
    GroupId string
    The ID of the application group.
    GroupMonitoringAgentProcessId string
    The ID of the Group Monitoring Agent Process.
    MatchExpressFilterRelation string
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    MatchExpresses List<Pulumi.AliCloud.CloudMonitor.Inputs.ServiceGroupMonitoringAgentProcessMatchExpress>
    The expressions used to match instances. See match_express below.
    ProcessName string
    The name of the process.
    AlertConfigs []ServiceGroupMonitoringAgentProcessAlertConfigArgs
    The alert rule configurations. See alert_config below.
    GroupId string
    The ID of the application group.
    GroupMonitoringAgentProcessId string
    The ID of the Group Monitoring Agent Process.
    MatchExpressFilterRelation string
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    MatchExpresses []ServiceGroupMonitoringAgentProcessMatchExpressArgs
    The expressions used to match instances. See match_express below.
    ProcessName string
    The name of the process.
    alertConfigs List<ServiceGroupMonitoringAgentProcessAlertConfig>
    The alert rule configurations. See alert_config below.
    groupId String
    The ID of the application group.
    groupMonitoringAgentProcessId String
    The ID of the Group Monitoring Agent Process.
    matchExpressFilterRelation String
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    matchExpresses List<ServiceGroupMonitoringAgentProcessMatchExpress>
    The expressions used to match instances. See match_express below.
    processName String
    The name of the process.
    alertConfigs ServiceGroupMonitoringAgentProcessAlertConfig[]
    The alert rule configurations. See alert_config below.
    groupId string
    The ID of the application group.
    groupMonitoringAgentProcessId string
    The ID of the Group Monitoring Agent Process.
    matchExpressFilterRelation string
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    matchExpresses ServiceGroupMonitoringAgentProcessMatchExpress[]
    The expressions used to match instances. See match_express below.
    processName string
    The name of the process.
    alert_configs Sequence[ServiceGroupMonitoringAgentProcessAlertConfigArgs]
    The alert rule configurations. See alert_config below.
    group_id 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 str
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    match_expresses Sequence[ServiceGroupMonitoringAgentProcessMatchExpressArgs]
    The expressions used to match instances. See match_express below.
    process_name str
    The name of the process.
    alertConfigs List<Property Map>
    The alert rule configurations. See alert_config below.
    groupId String
    The ID of the application group.
    groupMonitoringAgentProcessId String
    The ID of the Group Monitoring Agent Process.
    matchExpressFilterRelation String
    The logical operator used between conditional expressions that are used to match instances. Valid values: all, and, or.
    matchExpresses List<Property Map>
    The expressions used to match instances. See match_express below.
    processName String
    The name of the process.

    Supporting Types

    ServiceGroupMonitoringAgentProcessAlertConfig, ServiceGroupMonitoringAgentProcessAlertConfigArgs

    ComparisonOperator 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 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.
    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 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 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.
    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 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 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.
    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 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 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.
    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 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[ServiceGroupMonitoringAgentProcessAlertConfigTargetList]
    The alert triggers. See target_list below.
    webhook str
    The callback URL.
    comparisonOperator 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 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.
    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
    JsonParams string
    Level string
    TargetListId string
    Arn string
    JsonParams string
    Level string
    TargetListId string
    arn String
    jsonParams String
    level String
    targetListId String
    arn string
    jsonParams string
    level string
    targetListId string
    arn String
    jsonParams String
    level String
    targetListId String

    ServiceGroupMonitoringAgentProcessMatchExpress, ServiceGroupMonitoringAgentProcessMatchExpressArgs

    Function string
    The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
    Name string
    The criteria based on which the instances are matched.
    Value string
    The keyword used to match the instance name.
    Function string
    The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
    Name string
    The criteria based on which the instances are matched.
    Value string
    The keyword used to match the instance name.
    function String
    The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
    name String
    The criteria based on which the instances are matched.
    value String
    The keyword used to match the instance name.
    function string
    The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
    name string
    The criteria based on which the instances are matched.
    value string
    The keyword used to match the instance name.
    function str
    The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
    name str
    The criteria based on which the instances are matched.
    value str
    The keyword used to match the instance name.
    function String
    The matching condition. Valid values: all, startWith, endWith, contains, notContains, equals.
    name String
    The criteria based on which the instances are matched.
    value 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>
    

    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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi