ALIYUN::ARMS::EnvPodMonitor

更新时间:
复制 MD 格式

Use the ALIYUN::ARMS::EnvPodMonitor resource to create a PodMonitor for an environment.

Syntax

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

Properties

Parameter

Type

Required

Updatable

Description

Constraints

ConfigYaml

String

Yes

Yes

The YAML configuration string of the PodMonitor.

None

EnvironmentId

String

Yes

No

The ID of the environment instance.

None

AliyunLang

String

No

No

The language of the response.

Valid values: zh and en. Default: zh.

Return values

Fn::GetAtt

  • EnvironmentId: The ID of the environment instance.

  • EnvPodMonitorName: The name of the PodMonitor.

  • ConfigYaml: The YAML configuration string of the PodMonitor.

  • Namespace: The namespace of the PodMonitor.

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 of the PodMonitor.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ARMS::EnvPodMonitor
    Properties:
      EnvironmentId:
        Ref: EnvironmentId
      ConfigYaml:
        Ref: ConfigYaml
Outputs:
  EnvironmentId:
    Description: The ID of the environment instance.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EnvironmentId
  EnvPodMonitorName:
    Description: The name of the PodMonitor.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EnvPodMonitorName
  ConfigYaml:
    Description: The YAML configuration string of the PodMonitor.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ConfigYaml
  Namespace:
    Description: The namespace of the PodMonitor.
    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 of the PodMonitor.",
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ARMS::EnvPodMonitor",
      "Properties": {
        "EnvironmentId": {
          "Ref": "EnvironmentId"
        },
        "ConfigYaml": {
          "Ref": "ConfigYaml"
        }
      }
    }
  },
  "Outputs": {
    "EnvironmentId": {
      "Description": "The ID of the environment instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EnvironmentId"
        ]
      }
    },
    "EnvPodMonitorName": {
      "Description": "The name of the PodMonitor.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EnvPodMonitorName"
        ]
      }
    },
    "ConfigYaml": {
      "Description": "The YAML configuration string of the PodMonitor.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ConfigYaml"
        ]
      }
    },
    "Namespace": {
      "Description": "The namespace of the PodMonitor.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Namespace"
        ]
      }
    }
  }
}