すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::SLS::Dashboard

最終更新日:Jan 16, 2025

ALIYUN::SLS::Dashboard は、ダッシュボードを作成するために使用されます。

構文

{
  "Type": "ALIYUN::SLS::Dashboard",
  "Properties": {
    "DashboardName": String,
    "Description": String,
    "ProjectName": String,
    "DisplayName": String,
    "Charts": List
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
DashboardNameStringはいいいえダッシュボードの ID です。ダッシュボード ID はプロジェクト内で一意である必要があります。
DescriptionStringいいえはいダッシュボードの説明です。なし。
ProjectNameStringはいいいえプロジェクトの名前です。なし。
DisplayNameStringいいえはいダッシュボードの名前です。なし。
ChartsListはいはいチャートのリストです。なし。

戻り値

Fn::GetAtt

  • DashboardName: ダッシュボードの ID です。
  • DisplayName: ダッシュボードの名前です。

  • JSON 形式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DashboardName": {
          "Type": "String",
          // Dashboard name.
          "Description": "ダッシュボード名。"
        },
        "ProjectName": {
          "Type": "String",
          // Project name:
          // 1. Only supports lowercase letters, numbers, hyphens (-) and underscores (_).
          // 2. Must start and end with lowercase letters and numbers.
          // 3. The name length is 3-63 characters.
          "Description": "プロジェクト名:\n1. 小文字、数字、ハイフン (-)、アンダースコア (_) のみがサポートされています。\n2. 小文字と数字で開始および終了する必要があります。\n3. 名前の長さは 3 ~ 63 文字です。",
          "AllowedPattern": "^[a-zA-Z0-9_-]+$",
          "MinLength": 3,
          "MaxLength": 63
        }
      },
      "Resources": {
        "Dashboard": {
          "Type": "ALIYUN::SLS::Dashboard",
          "Properties": {
            "DashboardName": {
              "Ref": "DashboardName"
            },
            "ProjectName": {
              "Ref": "ProjectName"
            },
            "Charts": [
              {
                "action": {},
                "title": "new_title",
                "type": "map",
                "search": {
                  "logstore": "function-compute",
                  "topic": "new_topic",
                  "query": "* | SELECT type, COUNT(content) as ct_content GROUP BY type",
                  "start": "-86400s",
                  "end": "now"
                },
                "display": {
                  "xAxis": [
                    "type"
                  ],
                  "yAxis": [
                    "ct_content"
                  ],
                  "xPos": 0,
                  "yPos": 0,
                  "width": 10,
                  "height": 12,
                  "displayName": "test"
                }
              }
            ]
          }
        }
      },
      "Outputs": {
        "DashboardName": {
          // Dashboard name.
          "Description": "ダッシュボード名。",
          "Value": {
            "Fn::GetAtt": [
              "Dashboard",
              "DashboardName"
            ]
          }
        }
      }
    }
  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DashboardName:
        Type: String
        # Dashboard name.
        Description: ダッシュボード名。
      ProjectName:
        Type: String
        # Project name:
        # 1. Only supports lowercase letters, numbers, hyphens (-) and underscores (_).
        # 2. Must start and end with lowercase letters and numbers.
        # 3. The name length is 3-63 characters.
        Description: |-
          プロジェクト名:
          1. 小文字、数字、ハイフン (-)、アンダースコア (_) のみがサポートされています。
          2. 小文字と数字で開始および終了する必要があります。
          3. 名前の長さは 3 ~ 63 文字です。
        AllowedPattern: ^[a-zA-Z0-9_-]+$
        MinLength: 3
        MaxLength: 63
    Resources:
      Dashboard:
        Type: ALIYUN::SLS::Dashboard
        Properties:
          DashboardName:
            Ref: DashboardName
          ProjectName:
            Ref: ProjectName
          Charts:
            - action: {}
              title: new_title
              type: map
              search:
                logstore: function-compute
                topic: new_topic
                query: '* | SELECT type, COUNT(content) as ct_content GROUP BY type'
                start: '-86400s'
                end: now
              display:
                xAxis:
                  - type
                yAxis:
                  - ct_content
                xPos: 0
                yPos: 0
                width: 10
                height: 12
                displayName: test
    Outputs:
      DashboardName:
        # Dashboard name.
        Description: ダッシュボード名。
        Value:
          Fn::GetAtt:
            - Dashboard
            - DashboardName