DATASOURCE::ARMS::SyntheticTasks

更新时间:
复制 MD 格式

DATASOURCE::ARMS::SyntheticTasks类型用于获取定时拨测任务列表。

语法

{
  "Type": "DATASOURCE::ARMS::SyntheticTasks",
  "Properties": {
    "ResourceGroupId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ResourceGroupId

String

否

是

资源组ID。

无

RefreshOptions

String

否

是

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • TaskIds:任务ID列表。

  • SyntheticTasks:任务详情列表。

属性名称

类型

描述

约束

TaskIds

List

任务ID列表。

无

SyntheticTasks

List

任务详情列表。

无

MonitorCategory

String

监测点类型。

无

Tags

Map

任务绑定标签。

无

SyntheticTaskName

String

任务名称。

无

ResourceGroupId

String

资源组ID。

无

Frequency

String

拨测频率。

无

TaskId

String

任务ID。

无

TaskType

String

任务类型。

无

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ResourceGroupId:
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
    Type: String
    Description:
      en: The ID of the resource group.
    Required: false
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::ARMS::SyntheticTasks
    Properties:
      ResourceGroupId:
        Ref: ResourceGroupId
Outputs:
  TaskIds:
    Description: The list of task IDs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - TaskIds
  SyntheticTasks:
    Description: The list of synthetic tasks.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SyntheticTasks
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ResourceGroupId": {
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
      "Type": "String",
      "Description": {
        "en": "The ID of the resource group."
      },
      "Required": false
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ARMS::SyntheticTasks",
      "Properties": {
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        }
      }
    }
  },
  "Outputs": {
    "TaskIds": {
      "Description": "The list of task IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "TaskIds"
        ]
      }
    },
    "SyntheticTasks": {
      "Description": "The list of synthetic tasks.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SyntheticTasks"
        ]
      }
    }
  }
}