- Implement pushHistory mutation to support pushing telemetry data to Zabbix trapper items. - Add VERBOSITY and MCP_LOG_* environment variables for controllable request/response logging in both API and MCP server. - Enhance ZabbixRESTDataSource with better session handling and error logging. - Update ZabbixHistory datasource to support history push operations. - Expand documentation with new cookbook recipes and MCP integration guides. - Add integration tests for history pushing (src/test/history_push*). - Reorganize documentation, moving technical product info PDF to docs/use-cases/. - Update GraphQL generated types and VCR templates.
87 lines
2.3 KiB
GraphQL
87 lines
2.3 KiB
GraphQL
"""
|
|
DistanceTracker represents a device which can detect other devices around itself and estimate
|
|
the distances, e.g. by using Bluetooth scanning technology and estimating the distance.
|
|
"""
|
|
type DistanceTrackerDevice implements Host & Device {
|
|
"""Internal Zabbix ID of the device."""
|
|
hostid: ID!
|
|
"""
|
|
Per convention a uuid is used as hostname to identify devices if they do not have a unique hostname.
|
|
"""
|
|
host: String!
|
|
"""Classification of the device."""
|
|
deviceType: String
|
|
"""List of host groups this device belongs to."""
|
|
hostgroups: [HostGroup!]
|
|
"""Visible name of the device."""
|
|
name: String
|
|
"""Device configuration tags."""
|
|
tags: DeviceConfig
|
|
"""Host inventory data."""
|
|
inventory: Inventory
|
|
"""List of monitored items for this host."""
|
|
items: [ZabbixItem!]
|
|
"""State of the distance tracker device."""
|
|
state: DistanceTrackerState
|
|
}
|
|
|
|
"""
|
|
TrackedDevice represents a device used for simulation or tracking purposes,
|
|
pushing its state (e.g. geojson) via Zabbix Trap.
|
|
"""
|
|
type TrackedDevice implements Host & Device {
|
|
hostid: ID!
|
|
host: String!
|
|
deviceType: String
|
|
hostgroups: [HostGroup!]
|
|
name: String
|
|
tags: DeviceConfig
|
|
inventory: Inventory
|
|
items: [ZabbixItem!]
|
|
state: TrackedState
|
|
}
|
|
|
|
type TrackedState implements DeviceState {
|
|
operational: OperationalDeviceData
|
|
current: TrackedValues
|
|
}
|
|
|
|
type TrackedValues {
|
|
"""
|
|
GeoJSON representation of the tracked device's location or path.
|
|
"""
|
|
geojson: JSONObject
|
|
}
|
|
|
|
"""
|
|
Represents the state of a distance tracker device.
|
|
"""
|
|
type DistanceTrackerState implements DeviceState {
|
|
"""Operational data (telemetry)."""
|
|
operational: OperationalDeviceData
|
|
"""Current business values (detected devices and distances)."""
|
|
current: DistanceTrackerValues
|
|
}
|
|
|
|
"""
|
|
Aggregated information of devices detected around the tracker.
|
|
"""
|
|
type DistanceTrackerValues {
|
|
"""
|
|
Start of time interval for the delivered device counting value.
|
|
"""
|
|
timeFrom: String
|
|
"""
|
|
End of time interval for the delivered device counting value.
|
|
"""
|
|
timeUntil: String
|
|
|
|
"""
|
|
Number of unique device keys detected between timeFrom and timeUntil.
|
|
"""
|
|
count: Int
|
|
"""
|
|
Detailed information about devices detected nearby.
|
|
"""
|
|
distances: [SensorDistanceValue!]
|
|
}
|