Add data transport to elasticsearch

libreNMS transport to elasticsearch. i set rule to transport is avg = 30 Defauat Data elasticseach to recived is (LibreNMS/Elasticsearch.php at e1118b628a294be1b61c1c9602c730b274dd3a8f - LibreNMS - Wolfhappens Gitea)

@timestamp’ => strftime(“%Y-%m-%dT%T”),
“host” => gethostname(),
“location” => $obj[‘location’],
“title” => $obj[‘name’],
“message” => $obj[‘string’],
“device_id” => $obj[‘device_id’],
“device_name” => $obj[‘hostname’],
“device_hardware” => $obj[‘hardware’],
“device_version” => $obj[‘version’],
“state” => $state,
“severity” => $severity,
“first_occurrence” => $obj[‘timestamp’],
“entity_type” => “device”,
“entity_tab” => “overview”,
“entity_id” => $obj[‘device_id’],
“entity_name” => $obj[‘hostname’],
“entity_descr” => $obj[‘sysDescr’],

I want to add value of “min”,“max”,“avg” form mysql (device_perf) in elasticsearch. i try edit data array in elasticsearch.php.

@timestamp’ => strftime(“%Y-%m-%dT%T”),
“host” => gethostname(),
“location” => $obj[‘location’],
“title” => $obj[‘name’],
“message” => $obj[‘string’],
“device_id” => $obj[‘device_id’],
“device_name” => $obj[‘hostname’],
“device_hardware” => $obj[‘hardware’],
“device_version” => $obj[‘version’],
“min”=> $obj[‘min’],
“max”=> $obj[‘max’],
“avg”=> $obj[‘avg’],
“state” => $state,
“severity” => $severity,
“first_occurrence” => $obj[‘timestamp’],
“entity_type” => “device”,
“entity_tab” => “overview”,
“entity_id” => $obj[‘device_id’],
“entity_name” => $obj[‘hostname’],
“entity_descr” => $obj[‘sysDescr’],

** BUT** i see kibana value is ‘-’

How i can insert “min”,“max”,“avg” ?
Thank you