Anında iletme bildirimleri için bir uyarı ilkesi oluşturur.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:CreateAlertStrategy |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/alertPusher/alert/createStrategy HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
İstek gövdesi. |
|
| enabled |
boolean |
Yes |
Uyarı ilkesinin etkinleştirilip etkinleştirilmeyeceğini belirtir. |
false |
| k8sLabel |
boolean |
No |
Kubernetes etiketi. |
|
| name |
string |
Yes |
Uyarı ilkesinin adı. |
strategy1 |
| strategy |
object |
Yes |
Uyarı ilkesinin ayrıntıları. |
|
| clusters |
array |
No |
Uyarıları alan kümelerin koleksiyonu. |
|
|
string |
No |
Küme adı. |
cluster1 |
|
| destinations |
array |
No |
Uyarı kişileri. |
|
|
integer |
No |
Uyarı kişileri. |
||
| items |
array |
No |
Uyarıları alan istisna öğelerinin koleksiyonu. |
|
|
string |
No |
İstisna öğesi. |
Node CPU utilization detection |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt şeması. |
||
| code |
string |
Durum kodu.
|
Success |
| data |
any |
Döndürülen veriler. |
{ "uid": "uid-1", "name": "test-name", "strategy": { "clusters": ["test-cluster-1","test-cluster-2"], "items": ["test-item1","test-item2"] }, "enabled": True, } |
| message |
string |
Hata mesajı.
|
Failed to create the policy |
| requestId |
string |
İstek kimliği. |
2D693121-C925-5154-8DF6-C09A8B369822 |
Examples
Success response
JSON format
{
"code": "Success",
"data": "{\n \"uid\": \"uid-1\",\n \"name\": \"test-name\",\n \"strategy\": {\n \"clusters\": [\"test-cluster-1\",\"test-cluster-2\"],\n \"items\": [\"test-item1\",\"test-item2\"]\n },\n \"enabled\": True,\n \n }",
"message": "Failed to create the policy",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.