Initial commit: Extract base Zabbix GraphQl - API functionality from VCR Project and add dynamic schema samples
This commit is contained in:
commit
92ffe71684
42 changed files with 4234 additions and 0 deletions
32
src/datasources/zabbix-templates.ts
Normal file
32
src/datasources/zabbix-templates.ts
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
import { ZabbixRequest } from "./zabbix-request.js";
|
||||
|
||||
|
||||
|
||||
export interface ZabbixQueryTemplateResponse {
|
||||
templateid: string,
|
||||
uuid: string,
|
||||
name: string,
|
||||
}
|
||||
|
||||
|
||||
export class ZabbixQueryTemplatesRequest extends ZabbixRequest<ZabbixQueryTemplateResponse[]> {
|
||||
constructor(authToken?: string | null, cookie?: string | null,) {
|
||||
super("template.get", authToken, cookie);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export interface ZabbixQueryTemplateGroupResponse {
|
||||
groupid: string,
|
||||
name: string,
|
||||
uuid: string
|
||||
}
|
||||
|
||||
export class ZabbixQueryTemplateGroupRequest extends ZabbixRequest<ZabbixQueryTemplateGroupResponse[]> {
|
||||
constructor(authToken?: string | null, cookie?: string | null) {
|
||||
super("templategroup.get", authToken, cookie);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue