Simple Log Service (SLS) のダッシュボードを作成します。
構文
{
"Type": "ALIYUN::SLS::Dashboard",
"Properties": {
"DashboardName": String,
"Description": String,
"ProjectName": String,
"DisplayName": String,
"Charts": List
}
}
プロパティ
| プロパティ | タイプ | 必須 | 更新許可 | 説明 | 制約 |
| DashboardName | 文字列 | はい | いいえ | ダッシュボード名です。 | ダッシュボード名は、同じプロジェクト内で一意である必要があります。 |
| Description | 文字列 | いいえ | はい | ダッシュボードの説明です。 | なし |
| ProjectName | 文字列 | はい | いいえ | プロジェクト名です。 | なし |
| DisplayName | 文字列 | いいえ | はい | ダッシュボードの表示名です。 | なし |
| Charts | リスト | はい | はい | ダッシュボードのチャートです。 | なし |
戻り値
Fn::GetAtt
- DashboardName:ダッシュボード名です。
- DisplayName:ダッシュボードの表示名です。
例
-
JSON形式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "DashboardName": { "Type": "String", "Description": "ダッシュボード名です。" }, "ProjectName": { "Type": "String", "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": { "Description": "ダッシュボード名です。", "Value": { "Fn::GetAtt": [ "Dashboard", "DashboardName" ] } } } }