Files
homepage/src/widgets/zabbix/widget.js
Mitchell 44f8e9d4da
Some checks failed
Docker / Linting Checks (push) Waiting to run
Docker / Docker Build & Push (push) Blocked by required conditions
Docs / Linting Checks (push) Has been cancelled
Docs / Test Build (push) Has been cancelled
Docs / Build & Deploy (push) Has been cancelled
Feature: Zabbix service widget (#3905)
Co-Authored-By: shamoon <4887959+shamoon@users.noreply.github.com>
2024-08-29 12:53:10 -07:00

24 lines
468 B
JavaScript

import jsonrpcProxyHandler from "utils/proxy/handlers/jsonrpc";
const widget = {
api: "{url}/api_jsonrpc.php",
proxyHandler: jsonrpcProxyHandler,
mappings: {
trigger: {
endpoint: "trigger.get",
params: {
output: ["triggerid", "description", "priority"],
filter: {
value: 1,
},
sortfield: "priority",
sortorder: "DESC",
monitored: "true",
},
},
},
};
export default widget;