2.prepareinsert.mql 801 B

123456789101112131415161718
  1. insert into /test/malert_status_cache (
  2. identifier, severity, lastoccurrence, maintenance, msg,
  3. type, agent, firstoccurrence, omni_class, nodealias,
  4. alertgroup, node, manager, originalseverity, summary,
  5. tags)
  6. values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
  7. on conflict
  8. update firstoccurrence=firstoccurrence, servicenowstate=servicenowstate, emailstatus=emailstatus, tally=tally+1
  9. /**
  10. params(
  11. "222.129.134.178.1.3.6.1.4.1.2011.5.25.219.2.5.665.25.219.2.5.6.3.{%d,mqli}", 5, 1622249715000, nil, "设备:222.129.134.178电源整体功能恢复!",
  12. 3, "huawei mttrapd #3{%d,mqli}", 1622211715023, "300", "222.129.134.178",
  13. "huawei_power_func", "222.129.134.178", "MTTrapd Probe", 5, "设备:222.129.134.178电源整体功能恢复!",
  14. "tag")
  15. loop(10)
  16. **/
  17. ;