Membuat repositori metrik di CloudMonitor (CMS).
Sintaks
{
"Type": "ALIYUN::CMS::Namespace",
"Properties": {
"Description": String,
"Specification": String,
"Namespace": String
}
}
Properti
Properti
|
Property Name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
Namespace |
String |
Yes |
No |
Nama repositori metrik. |
Nama dapat berisi huruf kecil, angka, dan tanda hubung (-). |
|
Description |
String |
No |
Yes |
Deskripsi repositori metrik. |
None |
|
Specification |
String |
No |
Yes |
Periode retensi data repositori metrik. |
Nilai yang valid:
|
Nilai kembalian
Fn::GetAtt
-
ModifyTime: Waktu modifikasi terakhir namespace.
-
Description: Deskripsi repositori metrik.
-
CreateTime: Waktu pembuatan namespace.
-
Specification: Periode retensi data repositori metrik.
-
Namespace: Nama repositori metrik.
Contoh
YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
Description: Deskripsi namespace.
Type: String
Namespace:
AllowedPattern: ^[-a-z0-9]+$
Description: 'Nama namespace.
Nama dapat berisi huruf kecil, angka, dan tanda hubung (-).'
Type: String
Specification:
AllowedValues:
- cms.s1.large
- cms.s1.xlarge
- cms.s1.2xlarge
- cms.s1.3xlarge
- cms.s1.6xlarge
- cms.s1.12xlarge
Description: 'Periode retensi data namespace. Nilai yang valid:
- cms.s1.large: Durasi penyimpanan data adalah 15 hari.
- cms.s1.xlarge: Durasi penyimpanan data adalah 32 hari.
- cms.s1.2xlarge: Durasi penyimpanan data 63 hari.
- cms.s1.3xlarge: Durasi penyimpanan data 93 hari.
- cms.s1.6xlarge: Durasi penyimpanan data 185 hari.
- cms.s1.12xlarge: Durasi penyimpanan data 376 hari.'
Type: String
Resources:
ExtensionResource:
Properties:
Description:
Ref: Description
Namespace:
Ref: Namespace
Specification:
Ref: Specification
Type: ALIYUN::CMS::Namespace
Outputs:
CreateTime:
Description: 'Timestamp yang dihasilkan saat namespace dibuat.
Satuan: milidetik.'
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Description:
Description: Deskripsi namespace.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
ModifyTime:
Description: Timestamp yang dihasilkan saat namespace terakhir dimodifikasi.
Value:
Fn::GetAtt:
- ExtensionResource
- ModifyTime
Namespace:
Description: Namespace untuk layanan Alibaba Cloud.
Value:
Fn::GetAtt:
- ExtensionResource
- Namespace
Specification:
Description: 'Periode retensi data namespace. Nilai yang valid:
- cms.s1.large: Durasi penyimpanan data adalah 15 hari.
- cms.s1.xlarge: Durasi penyimpanan data adalah 32 hari.
- cms.s1.2xlarge: Durasi penyimpanan data 63 hari.
- cms.s1.3xlarge: Durasi penyimpanan data 93 hari.
- cms.s1.6xlarge: Durasi penyimpanan data 185 hari.
- cms.s1.12xlarge: Durasi penyimpanan data 376 hari.'
Value:
Fn::GetAtt:
- ExtensionResource
- Specification
JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"Type": "String",
"Description": "Deskripsi namespace."
},
"Specification": {
"Type": "String",
"Description": "Periode retensi data namespace. Nilai yang valid:\n- cms.s1.large: Durasi penyimpanan data adalah 15 hari.\n- cms.s1.xlarge: Durasi penyimpanan data adalah 32 hari.\n- cms.s1.2xlarge: Durasi penyimpanan data 63 hari.\n- cms.s1.3xlarge: Durasi penyimpanan data 93 hari.\n- cms.s1.6xlarge: Durasi penyimpanan data 185 hari.\n- cms.s1.12xlarge: Durasi penyimpanan data 376 hari.",
"AllowedValues": [
"cms.s1.large",
"cms.s1.xlarge",
"cms.s1.2xlarge",
"cms.s1.3xlarge",
"cms.s1.6xlarge",
"cms.s1.12xlarge"
]
},
"Namespace": {
"Type": "String",
"Description": "Nama namespace.\nNama dapat berisi huruf kecil, angka, dan tanda hubung (-).",
"AllowedPattern": "^[-a-z0-9]+$"
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CMS::Namespace",
"Properties": {
"Description": {
"Ref": "Description"
},
"Specification": {
"Ref": "Specification"
},
"Namespace": {
"Ref": "Namespace"
}
}
}
},
"Outputs": {
"ModifyTime": {
"Description": "Timestamp yang dihasilkan saat namespace terakhir dimodifikasi.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ModifyTime"
]
}
},
"Description": {
"Description": "Deskripsi namespace.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"CreateTime": {
"Description": "Timestamp yang dihasilkan saat namespace dibuat.\nSatuan: milidetik.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"Specification": {
"Description": "Periode retensi data namespace. Nilai yang valid:\n- cms.s1.large: Durasi penyimpanan data adalah 15 hari.\n- cms.s1.xlarge: Durasi penyimpanan data adalah 32 hari.\n- cms.s1.2xlarge: Durasi penyimpanan data 63 hari.\n- cms.s1.3xlarge: Durasi penyimpanan data 93 hari.\n- cms.s1.6xlarge: Durasi penyimpanan data 185 hari.\n- cms.s1.12xlarge: Durasi penyimpanan data 376 hari.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Specification"
]
}
},
"Namespace": {
"Description": "Namespace untuk layanan Alibaba Cloud.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Namespace"
]
}
}
}
}