This change introduces the Weather Sensor device type which retrieves data from public APIs, and enhances the core Host/Device interfaces to provide consistent access to inventory and items across all specialized device types. It also improves search logic and fixes several bugs identified during implementation. - Weather Sensor Extension: Added schema and recipe for a device retrieving weather data via Zabbix HTTP agent items. - Interface Enhancements: Added inventory and items fields to Host and Device interfaces to ensure all device specialized types have consistent access to monitoring and inventory data. - Search Logic Improvements: Enhanced ParsedArgs to support searchByAny and technical name (host) searches when a name pattern is provided. - Bug Fixes: - Fixed getLocations argument order in the Zabbix API datasource. - Implemented deduplication for groupids and templateids in HostImporter to prevent Zabbix duplicate value errors. - Added missing url field to CreateTemplateItem for HTTP Agent item support. - Testing: - Extended the regression test suite with 4 new automated checks covering the fixed bugs. - Updated Jest tests to accommodate the improved search parameters. - Documentation: Updated cookbook and test specifications to reflect new features and regression testing obligations.
59 lines
1.7 KiB
GraphQL
59 lines
1.7 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
|
|
}
|
|
|
|
"""
|
|
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: Time
|
|
"""
|
|
End of time interval for the delivered device counting value.
|
|
"""
|
|
timeUntil: Time
|
|
|
|
"""
|
|
Number of unique device keys detected between timeFrom and timeUntil.
|
|
"""
|
|
count: Int
|
|
"""
|
|
Detailed information about devices detected nearby.
|
|
"""
|
|
distances: [SensorDistanceValue!]
|
|
}
|