@@ -38,6 +38,7 @@ PHP 7, iTop 2.6 и выше (на более ранних версиях iTop р
3838 "ci_key" : " Server2 (Grenoble)" ,
3939 "state" : true ,
4040 "message" : " PROBLEM: host Server2 (Grenoble) unavailable" ,
41+ "description" : " Monitoring: Problem started at 10:35:00 on 2023.11.19<br>Problem name: HTTP service is down on Server2<br>Host: Server2 <br>Severity: Disaster<br>Operational data: Down (0)<br>Original problem ID: 178108686" ,
4142 "output_fields" : " ref,title,status,team_id_friendlyname,agent_id_friendlyname,functionalcis_list"
4243}
4344```
@@ -89,7 +90,7 @@ PHP 7, iTop 2.6 и выше (на более ранних версиях iTop р
8990 'org_id' => array('name' => '$ci->org_id->name$'),
9091 'caller_id' => 'SELECT Person WHERE org_id = $ci->org_id$ AND id = 2',
9192 'title' => 'Авария: $alarm->message$',
92- 'description' => 'Авария: $alarm->message$ на КЕ $ci->name $',
93+ 'description' => '$alarm->description $',
9394 'service_id' => 2,
9495 ),
9596 ),
@@ -165,7 +166,7 @@ OQL-запрос для поиска тикета. Найденный тикет
165166 'org_id' => array('name' => '$ci->org_id->name$'),
166167 'caller_id' => 'SELECT Person WHERE org_id = $ci->org_id$ AND id = 2',
167168 'title' => 'Авария: $alarm->message$',
168- 'description' => 'Авария: $alarm->message$ на КЕ $ci->name $',
169+ 'description' => '$alarm->description $',
169170 'service_id' => 2,
170171 ),
171172),
@@ -224,6 +225,7 @@ json_data={
224225 "ci_key": "Server4",
225226 "state": 1,
226227 "message": "Server4 is down",
228+ "description": "Server4 is down at 10:35:00 on 2023.11.19",
227229 "output_fields": "title,status,team_id_friendlyname,agent_id_friendlyname,solution"
228230}
229231```
@@ -239,6 +241,7 @@ curl -X POST --location "http://localhost:8000/webservices/rest.php?version=1.4"
239241 \"ci_key\": \"Server4\",
240242 \"state\": 1,
241243 \"message\": \"Server4 is down\",
244+ \"description\": \"Server4 is down at 10:35:00 on 2023.11.19\",
242245 \"output_fields\": \"title,status,team_id_friendlyname,agent_id_friendlyname,solution\"
243246}"
244247```
0 commit comments