ALIYUN::CMS::MonitoringAgentProcess is used to create a process monitoring.

Syntax

{
  "Type": "ALIYUN::CMS::MonitoringAgentProcess",
  "Properties": {
    "ProcessName": String,
    "InstanceId": String,
    "ProcessUser": String
  }
}

Properties

Parameter Type Required Editable Description Constraint
ProcessName String No No Process name N/A
InstanceId String Yes No Instance ID N/A
ProcessUser String No No The user who executes the process. N/A

Error code

Fn::GetAtt

Id: The process ID.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ProcessName": {
      "Type": "String",
      "Description": "The name of the process."
    },
    "InstanceId": {
      "Type": "String",
      "Description": "The ID of the instance."
    },
    "ProcessUser": {
      "Type": "String",
      "Description": "The user who launched the process."
    }
  },
  "Resources": {
    "MonitoringAgentProcess": {
      "Type": "ALIYUN::CMS::MonitoringAgentProcess",
      "Properties": {
        "ProcessName": {
          "Ref": "ProcessName"
        },
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "ProcessUser": {
          "Ref": "ProcessUser"
        }
      }
    }
  },
  "Outputs": {
    "Id": {
      "Description": "The process ID.",
      "Value": {
        "Fn::GetAtt": [
          "MonitoringAgentProcess",
          "Id"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ProcessName:
    Type: String
    Description: The name of the process.
  InstanceId:
    Type: String
    Description: The ID of the instance.
  ProcessUser:
    Type: String
    Description: The user who launched the process.
Resources:
  MonitoringAgentProcess:
    Type: 'ALIYUN::CMS::MonitoringAgentProcess'
    Properties:
      ProcessName:
        Ref: ProcessName
      InstanceId:
        Ref: InstanceId
      ProcessUser:
        Ref: ProcessUser
Outputs:
  Id:
    Description: The process ID.
    Value:
      'Fn::GetAtt':
        -MonitoringAgentProcess
        -Id