All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ARMS::EnvServiceMonitor

Last Updated:Apr 09, 2026

The ALIYUN::ARMS::EnvServiceMonitor resource creates a ServiceMonitor for an environment.

Syntax

{
  "Type": "ALIYUN::ARMS::EnvServiceMonitor",
  "Properties": {
    "ConfigYaml": String,
    "EnvironmentId": String,
    "AliyunLang": String
  }
}

Properties

Parameter

Type

Required

Update allowed

Description

Constraints

ConfigYaml

String

Yes

Yes

The YAML configuration string for the ServiceMonitor.

None

EnvironmentId

String

Yes

No

The ID of the environment instance.

None

AliyunLang

String

No

No

The response language.

Valid values: zh and en. Default value: zh.

Return values

Fn::GetAtt

  • EnvServiceMonitorName: The name of the ServiceMonitor.

  • EnvironmentId: The ID of the environment instance.

  • ConfigYaml: The YAML configuration string for the ServiceMonitor.

  • Namespace: The namespace of the ServiceMonitor.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  EnvironmentId:
    Type: String
    Description: The ID of the environment instance.
    Required: true
  ConfigYaml:
    Type: String
    Description: The YAML configuration string for the ServiceMonitor.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ARMS::EnvServiceMonitor
    Properties:
      EnvironmentId:
        Ref: EnvironmentId
      ConfigYaml:
        Ref: ConfigYaml
Outputs:
  EnvServiceMonitorName:
    Description: The name of the ServiceMonitor.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EnvServiceMonitorName
  EnvironmentId:
    Description: The ID of the environment instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EnvironmentId
  ConfigYaml:
    Description: The YAML configuration string for the ServiceMonitor.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ConfigYaml
  Namespace:
    Description: The namespace of the ServiceMonitor.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Namespace
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "EnvironmentId": {
      "Type": "String",
      "Description": "The ID of the environment instance.",
      "Required": true
    },
    "ConfigYaml": {
      "Type": "String",
      "Description": "The YAML configuration string for the ServiceMonitor.",
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ARMS::EnvServiceMonitor",
      "Properties": {
        "EnvironmentId": {
          "Ref": "EnvironmentId"
        },
        "ConfigYaml": {
          "Ref": "ConfigYaml"
        }
      }
    }
  },
  "Outputs": {
    "EnvServiceMonitorName": {
      "Description": "The name of the ServiceMonitor.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EnvServiceMonitorName"
        ]
      }
    },
    "EnvironmentId": {
      "Description": "The ID of the environment instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EnvironmentId"
        ]
      }
    },
    "ConfigYaml": {
      "Description": "The YAML configuration string for the ServiceMonitor.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ConfigYaml"
        ]
      }
    },
    "Namespace": {
      "Description": "The namespace of the ServiceMonitor.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Namespace"
        ]
      }
    }
  }
}