Texecom Event Schemas

JSON Schema Documentation

Battery Load Test Initiated Payload

Payload emitted when the observer lambda intercepts PUT /api/commands/power_monitoring/battery/load_test. The correlationId on this event must match the corresponding load_test.completed event.

$idhttps://schemas.texecom-prod.com/v2/events/payload/cloud/internal/power_monitoring/battery/load_test/initiated/v1.0.0.json
$schemahttp://json-schema.org/draft-07/schema

Properties

NameType
serialString
hardwareIdString
durationSecondsInteger
triggeredByString

serial

Description Panel serial number extracted from the MQTT topic path (device/{serial}/...).
TypeString
Required Yes

hardwareId

Description Panel primary key in the device service DB, resolved via serial lookup (device.hardware.hardware_id).
TypeString
Required Yes
Format uuid

durationSeconds

Description Configured test duration in seconds. Maps to duration_s in the firmware command payload.
TypeInteger
Required Yes

triggeredBy

Description How the load test was initiated.
TypeString
Required Yes
Enum
  • manual
  • scheduled

Schema

{
    "$id": "https://schemas.texecom-prod.com/v2/events/payload/cloud/internal/power_monitoring/battery/load_test/initiated/v1.0.0.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "title": "Battery Load Test Initiated Payload",
    "description": "Payload emitted when the observer lambda intercepts PUT /api/commands/power_monitoring/battery/load_test. The correlationId on this event must match the corresponding load_test.completed event.",
    "type": "object",
    "properties": {
        "serial": {
            "description": "Panel serial number extracted from the MQTT topic path (device/{serial}/...).",
            "type": "string"
        },
        "hardwareId": {
            "description": "Panel primary key in the device service DB, resolved via serial lookup (device.hardware.hardware_id).",
            "type": "string",
            "format": "uuid"
        },
        "durationSeconds": {
            "description": "Configured test duration in seconds. Maps to duration_s in the firmware command payload.",
            "type": "integer"
        },
        "triggeredBy": {
            "description": "How the load test was initiated.",
            "type": "string",
            "enum": [
                "manual",
                "scheduled"
            ]
        }
    },
    "required": [
        "serial",
        "hardwareId",
        "durationSeconds",
        "triggeredBy"
    ],
    "additionalProperties": false
}