curl -X POST 'https://example.com/incident/action?a=a' \
-H 'Content-Type: application/json' \
-H 'X-Customize-Header-A: a' \
-d '{
"event_time": 1700208013988,
"event_type": "i_custom",
"incident": {
"event_id":"fac0599a2a25529ba2362c0c184b6cfb",
"account_id": 74058170041504,
"account_name": "头铁科技",
"ack_time": 0,
"alert_cnt": 1,
"alerts": [
{
"account_id": 74058170041504,
"alert_id": "6551f37f8713372ad1054d54",
"alert_key": "asdflasdfl2xzasd112621",
"alert_severity": "Critical",
"alert_status": "Critical",
"close_time": 0,
"created_at": 1699869567,
"data_source_id": 2398086111504,
"description": "cpu.idle < 20%",
"end_time": 0,
"event_cnt": 0,
"labels": {
"a": "a",
"check": "自定义字段测试",
"cluster": "nj",
"metric": "node_cpu_seconds_total",
"resource": "es.nj.01",
"service": "engine",
"v": "v"
},
"last_time": 1699869562,
"progress": "Triggered",
"responder_email": "",
"responder_id": 0,
"responder_name": "",
"start_time": 1699869562,
"title": "nj / es.nj.01 - 自定义字段测试",
"title_rule": "$cluster::$resource::$check",
"updated_at": 1699869576
}
],
"assigned_to": {
"assigned_at": 1699869576,
"escalate_rule_id": "6509344bc1d50d723ca04986",
"escalate_rule_name": "策略5",
"id": "VobpBqvTuXgQ7BZzJ2Qu94",
"layer_idx": 0,
"type": "assign"
},
"channel_id": 1973372625504,
"channel_name": "lim_test",
"close_time": 0,
"created_at": 1699869576,
"data_source_id": 2398086111504,
"dedup_key": "asdflasdfl2xzasd112621",
"description": "cpu.idle < 20%",
"detail_url": "http://10.206.0.17:8567/incident/detail/6551f3888713372ad1054d57",
"end_time": 0,
"equals_md5": "",
"fields": {
"impacted_services": [
"passport",
"order"
],
"priority": "P3"
},
"group_method": "p",
"impact": "",
"incident_id": "6551f3888713372ad1054d57",
"incident_severity": "Critical",
"incident_status": "Critical",
"labels": {
"a": "a",
"check": "自定义字段测试",
"cluster": "nj",
"metric": "node_cpu_seconds_total",
"resource": "es.nj.01",
"service": "engine",
"v": "v"
},
"creator":{
"email":"[email protected]",
"person_id":1552048792504,
"person_name":"头铁"
},
"last_time": 1699869562,
"num": "054D57",
"progress": "Triggered",
"resolution": "",
"responders": [
{
"acknowledged_at": 0,
"assigned_at": 1699869576,
"email": "[email protected]",
"person_id": 1234648032504,
"person_name": "zhangsan"
}
],
"root_cause": "",
"snoozed_before": 0,
"start_time": 1699869562,
"title": "nj / es.nj.01 - 自定义字段测试",
"updated_at": 1699929113
},
"person": {
"email": "[email protected]",
"person_id": 1999632289504,
"person_name": "zhangsan"
}
}' -v