Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::GA::ApplicationMonitor

Última atualização: Jun 27, 2026

Cria uma tarefa de sondagem de origem.

Sintaxe

{
  "Type": "ALIYUN::GA::ApplicationMonitor",
  "Properties": {
    "Address": String,
    "AcceleratorId": String,
    "ListenerId": String,
    "TaskName": String,
    "DetectThreshold": Integer,
    "DetectEnable": Boolean,
    "DetectTimes": Integer,
    "OptionsJson": Map,
    "SilenceTime": Integer
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Address

String

Sim

Não

URL ou endereço IP a ser sondado.

Nenhuma.

AcceleratorId

String

Sim

Não

ID da instância do Global Accelerator (GA) associada à tarefa de sondagem de origem.

Nenhuma.

ListenerId

String

Sim

Não

ID do listener associado à tarefa de sondagem de origem.

Nenhuma.

TaskName

String

Sim

Não

Nome da tarefa de sondagem de origem.

O nome deve ter de 1 a 128 caracteres e pode conter dígitos, pontos (.), sublinhados (_) e hifens (-). Deve começar com uma letra.

DetectThreshold

Integer

Não

Não

Limiar para acionar o diagnóstico automático.

Unidade: porcentagem.

Valores válidos: 0 a 100.

Valor padrão: 0. Esse valor indica que o diagnóstico automático não é acionado.

DetectEnable

Boolean

Não

Não

Indica se o diagnóstico automático está ative.

Valores válidos:

  • true

  • false (padrão)

DetectTimes

Integer

Não

Não

Número de vezes consecutivas em que o limiar deve ser atingido antes de acionar o diagnóstico automático.

Valores válidos: 1 a 20. Valor padrão: 1.

OptionsJson

Map

Não

Não

Opções estendidas do protocolo do listener para a tarefa de sondagem de origem. As opções variam conforme o protocolo do listener.

Nenhuma.

SilenceTime

Integer

Não

Não

Período de silêncio do diagnóstico automático.

Intervalo entre tarefas de diagnóstico automático. Se a taxa de disponibilidade não retornar ao normal após o acionamento de uma tarefa de diagnóstico, o sistema aguarda o fim do período de silêncio antes de iniciar outra tarefa.

Se a taxa de disponibilidade ficar abaixo do limiar por um número consecutivo de vezes igual ao valor de DetectTimes, o diagnóstico automático será acionado. O diagnóstico não será acionado novamente durante o período de silêncio, mesmo que a taxa de disponibilidade permaneça abaixo do limiar. Caso a taxa de disponibilidade não normalize após o término do período de silêncio, o diagnóstico automático será acionado novamente.

Unidade: segundos. Valores válidos: 300 a 86400. Valor padrão: 300.

Valores de retorno

Fn::GetAtt

TaskId: ID da tarefa de sondagem de origem.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Address:
    Type: String
    Description:
      en: The URL or IP address that you want to probe.
    Required: true
  TaskName:
    Type: String
    Description:
      en: The name of the origin probing task. The name must be 1 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
    Required: true
    MinLength: 1
    MaxLength: 128
  AcceleratorId:
    Type: String
    Description:
      en: The ID of the GA instance on which you want to perform the origin probing task.
    Required: true
  ListenerId:
    Type: String
    Description:
      en: The ID of the listener on which you want to perform the origin probing task.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::GA::ApplicationMonitor
    Properties:
      Address:
        Ref: Address
      TaskName:
        Ref: TaskName
      AcceleratorId:
        Ref: AcceleratorId
      ListenerId:
        Ref: ListenerId
Outputs:
  TaskId:
    Description: The ID of the origin probing task.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TaskId

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Address": {
      "Type": "String",
      "Description": {
        "en": "The URL or IP address that you want to probe."
      },
      "Required": true
    },
    "TaskName": {
      "Type": "String",
      "Description": {
        "en": "The name of the origin probing task. The name must be 1 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 128
    },
    "AcceleratorId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the GA instance on which you want to perform the origin probing task."
      },
      "Required": true
    },
    "ListenerId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the listener on which you want to perform the origin probing task."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::GA::ApplicationMonitor",
      "Properties": {
        "Address": {
          "Ref": "Address"
        },
        "TaskName": {
          "Ref": "TaskName"
        },
        "AcceleratorId": {
          "Ref": "AcceleratorId"
        },
        "ListenerId": {
          "Ref": "ListenerId"
        }
      }
    }
  },
  "Outputs": {
    "TaskId": {
      "Description": "The ID of the origin probing task.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TaskId"
        ]
      }
    }
  }
}