Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::DNS::MonitorConfig

Última atualização: Jun 27, 2026

O recurso ALIYUN::DNS::MonitorConfig cria uma verificação de integridade.

Sintaxe

{
  "Type": "ALIYUN::DNS::MonitorConfig",
  "Properties": {
    "AddrPoolId": String,
    "EvaluationCount": Integer,
    "IspCityNode": List,
    "Interval": Integer,
    "MonitorExtendInfo": Map,
    "ProtocolType": String,
    "Timeout": Integer
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualizável

Descrição

Restrições

AddrPoolId

String

Sim

Não

ID do pool de endereços.

Nenhuma

EvaluationCount

Integer

Sim

Sim

Quantidade de avaliações da verificação de integridade.

Intervalo válido: 1 a 3.

Interval

Integer

Sim

Sim

Intervalo entre verificações de integridade, em segundos.

Intervalo válido: 1 a 60.

IspCityNode

List

Sim

Sim

Lista de nós de cidade e ISP.

Comprimento máximo: 50. Para mais informações, consulte Propriedades de IspCityNode.

MonitorExtendInfo

Map

Sim

Sim

Informações estendidas da verificação de integridade.

Nenhuma

ProtocolType

String

Sim

Sim

Protocolo da verificação de integridade.

Nenhuma

Timeout

Integer

Sim

Sim

Tempo limite da verificação de integridade, em milissegundos.

Intervalo válido: 1 a 10.000.

Sintaxe de IspCityNode

"IspCityNode": [
  {
    "CityCode": String,
    "IspCode": String
  }
]

Propriedades de IspCityNode

Parâmetro

Tipo

Obrigatório

Atualizável

Descrição

Restrições

CityCode

String

Não

Sim

Código da cidade.

Nenhuma

IspCode

String

Não

Sim

Código do ISP.

Nenhuma

Valores de retorno

Fn::GetAtt

MonitorConfigId: ID da configuração de verificação de integridade.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  IspCityNode:
    AssociationPropertyMetadata:
      Parameters:
        CityCode:
          Type: String
          Description: The city code.
          Required: false
        IspCode:
          Type: String
          Description: The ISP code.
          Required: false
    AssociationProperty: List[Parameters]
    Type: Json
    Description: A list of ISP city nodes.
    Required: true
    MaxLength: 50
  Timeout:
    Type: Number
    Description: The timeout for the health check, in milliseconds.
    Required: true
    MinValue: 1
    MaxValue: 10000
  ProtocolType:
    Type: String
    Description: The protocol for the health check.
    Required: true
  AddrPoolId:
    Type: String
    Description: The ID of the address pool.
    Required: true
  EvaluationCount:
    Type: Number
    Description: The evaluation count for the health check.
    Required: true
    MinValue: 1
    MaxValue: 3
  MonitorExtendInfo:
    Type: Json
    Description: The extended information for the health check.
    Required: true
  Interval:
    Type: Number
    Description: The interval between health checks, in seconds.
    Required: true
    MinValue: 1
    MaxValue: 60
Resources:
  MonitorConfig:
    Type: ALIYUN::DNS::MonitorConfig
    Properties:
      IspCityNode:
        Ref: IspCityNode
      Timeout:
        Ref: Timeout
      ProtocolType:
        Ref: ProtocolType
      AddrPoolId:
        Ref: AddrPoolId
      EvaluationCount:
        Ref: EvaluationCount
      MonitorExtendInfo:
        Ref: MonitorExtendInfo
      Interval:
        Ref: Interval
Outputs:
  MonitorConfigId:
    Description: The ID of the health check configuration.
    Value:
      Fn::GetAtt:
        - MonitorConfig
        - MonitorConfigId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "IspCityNode": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "CityCode": {
            "Type": "String",
            "Description": "The city code.",
            "Required": false
          },
          "IspCode": {
            "Type": "String",
            "Description": "The ISP code.",
            "Required": false
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": "A list of ISP city nodes.",
      "Required": true,
      "MaxLength": 50
    },
    "Timeout": {
      "Type": "Number",
      "Description": "The timeout for the health check, in milliseconds.",
      "Required": true,
      "MinValue": 1,
      "MaxValue": 10000
    },
    "ProtocolType": {
      "Type": "String",
      "Description": "The protocol for the health check.",
      "Required": true
    },
    "AddrPoolId": {
      "Type": "String",
      "Description": "The ID of the address pool.",
      "Required": true
    },
    "EvaluationCount": {
      "Type": "Number",
      "Description": "The evaluation count for the health check.",
      "Required": true,
      "MinValue": 1,
      "MaxValue": 3
    },
    "MonitorExtendInfo": {
      "Type": "Json",
      "Description": "The extended information for the health check.",
      "Required": true
    },
    "Interval": {
      "Type": "Number",
      "Description": "The interval between health checks, in seconds.",
      "Required": true,
      "MinValue": 1,
      "MaxValue": 60
    }
  },
  "Resources": {
    "MonitorConfig": {
      "Type": "ALIYUN::DNS::MonitorConfig",
      "Properties": {
        "IspCityNode": {
          "Ref": "IspCityNode"
        },
        "Timeout": {
          "Ref": "Timeout"
        },
        "ProtocolType": {
          "Ref": "ProtocolType"
        },
        "AddrPoolId": {
          "Ref": "AddrPoolId"
        },
        "EvaluationCount": {
          "Ref": "EvaluationCount"
        },
        "MonitorExtendInfo": {
          "Ref": "MonitorExtendInfo"
        },
        "Interval": {
          "Ref": "Interval"
        }
      }
    }
  },
  "Outputs": {
    "MonitorConfigId": {
      "Description": "The ID of the health check configuration.",
      "Value": {
        "Fn::GetAtt": [
          "MonitorConfig",
          "MonitorConfigId"
        ]
      }
    }
  }
}