Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,056 changes: 1,056 additions & 0 deletions extensions/audit/event_query.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"perfScore": 88}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"serial": "Q234-ABCD-5678", "rfProfileId": "1234", "twoFourGhzSettings": {"channel": 6, "targetPower": 20}, "fiveGhzSettings": {"channel": 149, "channelWidth": 20, "targetPower": 15}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"serial": "Q234-ABCD-5678", "rfProfileId": "1234", "twoFourGhzSettings": {"channel": 6, "targetPower": 20}, "fiveGhzSettings": {"channel": 149, "channelWidth": 20, "targetPower": 15}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"wan1": {"enabled": true, "vlanTagging": {"enabled": false, "vlanId": 0}, "pppoe": {"enabled": false}}, "wan2": {"enabled": false, "vlanTagging": {"enabled": false, "vlanId": 0}, "pppoe": {"enabled": false}}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"wan1": {"enabled": true, "vlanTagging": {"enabled": false, "vlanId": 0}, "pppoe": {"enabled": false}}, "wan2": {"enabled": false, "vlanTagging": {"enabled": false, "vlanId": 0}, "pppoe": {"enabled": false}}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"token": "abc123xyz", "expiresAt": "2026-08-18T12:00:00Z"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"ts": "2026-08-18T10:00:00Z", "zones": {"0": {"person": 2}, "1": {"person": 0}}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q2FV-DJ6J-4QHD"}, "meraki_response": {"url": "https://example.com/clip.mp4", "expiry": "2026-08-18T12:00:00Z"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"enabled": true, "artifactId": "artifact-001", "parameters": [{"name": "threshold", "value": 0.5}]}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"enabled": true, "artifactId": "artifact-001", "parameters": [{"name": "threshold", "value": 0.5}]}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"url": "https://example.com/snapshot.jpg", "expiry": "2026-08-18T10:05:00Z"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"profileId": "1234", "quality": "Enhanced", "resolution": "1280x720", "motionBasedRetentionEnabled": true, "audioRecordingEnabled": false, "restrictedBandwidthModeEnabled": false, "motionDetectorVersion": 2}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"profileId": "1234", "quality": "Enhanced", "resolution": "1280x720", "motionBasedRetentionEnabled": true, "audioRecordingEnabled": false, "restrictedBandwidthModeEnabled": false, "motionDetectorVersion": 2}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"senseEnabled": true, "mqttBrokerId": "broker-001", "mqttTopics": ["/merakimv/Q234/raw_detections"], "audioDetection": {"enabled": true}, "detectionModelId": "model-001"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"senseEnabled": true, "mqttBrokerId": "broker-001", "mqttTopics": ["/merakimv/Q234/raw_detections"], "audioDetection": {"enabled": true}, "detectionModelId": "model-001"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"url": "https://n123.meraki.com/cameras/#uuid=abc123", "visionUrl": "https://vision.meraki.com/abc123"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"externalRtspEnabled": true, "rtspUrl": "rtsp://10.0.0.1:9000/live"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"externalRtspEnabled": true, "rtspUrl": "rtsp://10.0.0.1:9000/live"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"primary": "profile-001", "secondary": "profile-002", "backup": "profile-003"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"primary": "profile-001", "secondary": "profile-002", "backup": "profile-003"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"deviceName": "My MG", "deviceLanIp": "192.168.0.1", "deviceSubnet": "192.168.0.0/24", "fixedIpAssignments": [{"name": "My Device", "ip": "192.168.0.10", "mac": "00:11:22:33:44:55"}], "reservedIpRanges": [{"start": "192.168.0.100", "end": "192.168.0.200", "comment": "Reserved"}]}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"deviceName": "My MG", "deviceLanIp": "192.168.0.1", "deviceSubnet": "192.168.0.0/24", "fixedIpAssignments": [{"name": "My Device", "ip": "192.168.0.10", "mac": "00:11:22:33:44:55"}], "reservedIpRanges": [{"start": "192.168.0.100", "end": "192.168.0.200", "comment": "Reserved"}]}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": [{"name": "Rule 1", "lanIp": "192.168.128.1", "publicPort": "8080", "localPort": "80", "allowedIps": ["any"], "protocol": "tcp", "access": "any"}, {"name": "Rule 2", "lanIp": "192.168.128.2", "publicPort": "8443", "localPort": "443", "allowedIps": ["any"], "protocol": "tcp", "access": "any"}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": [{"name": "Rule 1", "lanIp": "192.168.128.1", "publicPort": "8080", "localPort": "80", "allowedIps": ["any"], "protocol": "tcp", "access": "any"}, {"name": "Rule 2", "lanIp": "192.168.128.2", "publicPort": "8443", "localPort": "443", "allowedIps": ["any"], "protocol": "tcp", "access": "any"}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"invocation": {"serial": "Q234-ABCD-5678"},
"meraki_response": {"enabled": true}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"sims": [{"slot": "sim1", "iccid": "1234567890", "isPrimary": true, "status": "ready"}, {"slot": "sim2", "iccid": "0987654321", "isPrimary": false, "status": "not connected"}], "simOrdering": ["sim1", "sim2"], "simFailover": {"enabled": true, "timeout": 60}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"invocation": {"serial": "Q234-ABCD-5678"}, "meraki_response": {"sims": [{"slot": "sim1", "iccid": "1234567890", "isPrimary": true, "status": "ready"}, {"slot": "sim2", "iccid": "0987654321", "isPrimary": false, "status": "not connected"}], "simOrdering": ["sim1", "sim2"], "simFailover": {"enabled": true, "timeout": 60}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"invocation": {"serial": "Q234-ABCD-5678"},
"meraki_response": {
"bySlot": [
{
"slot": "sim1",
"bySignalType": [
{"type": "lte", "masked": ["B2", "B4"], "enabled": ["B1", "B3"], "supported": ["B1", "B2", "B3", "B4"]},
{"type": "5gnr", "masked": [], "enabled": ["n77"], "supported": ["n77"]}
]
},
{
"slot": "sim2",
"bySignalType": [
{"type": "lte", "masked": [], "enabled": ["B1", "B2"], "supported": ["B1", "B2"]}
]
}
]
}
}
12 changes: 12 additions & 0 deletions tests/unit/api_fixtures/cisco.meraki.devices_sensor_commands.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"invocation": {"serial": "Q234-ABCD-5678"},
"meraki_response": {
"commandId": "cmd-001",
"createdAt": "2026-08-18T10:00:00Z",
"completedAt": "2026-08-18T10:00:05Z",
"createdBy": {"adminId": "admin-1", "name": "Alice", "email": "alice@example.com"},
"operation": "refreshData",
"status": "completed",
"errors": []
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"invocation": {"serial": "Q234-ABCD-5678"},
"meraki_response": [
{
"commandId": "cmd-001",
"createdAt": "2026-08-18T10:00:00Z",
"completedAt": "2026-08-18T10:00:05Z",
"createdBy": {"adminId": "admin-1", "name": "Alice", "email": "alice@example.com"},
"operation": "refreshData",
"status": "completed",
"errors": []
},
{
"commandId": "cmd-002",
"createdAt": "2026-08-18T09:00:00Z",
"completedAt": null,
"createdBy": {"adminId": "admin-1", "name": "Alice", "email": "alice@example.com"},
"operation": "resetFactory",
"status": "pending",
"errors": []
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"invocation": {"serial": "Q234-ABCD-5678"},
"meraki_response": {
"relatedDevices": [
{"serial": "Q2GV-ABCD-1111", "productType": "camera"},
{"serial": "Q2GV-ABCD-2222", "productType": "camera"}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"invocation": {"serial": "Q234-ABCD-5678"},
"meraki_response": {
"relatedDevices": [
{"serial": "Q2GV-ABCD-1111", "productType": "camera"}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"invocation": {"serial": "Q2FV-DJ6J-4QHD"},
"meraki_response": {
"addresses": [
{
"protocol": "ipv6", "assignmentMode": "static",
"address": "2001:db8:3c4d:15::1", "gateway": "fe80:db8:c15:c0:d0c::10ca:1d02",
"prefix": "2001:db8:3c4d:15::/64",
"nameservers": {"addresses": ["2001:db8:3c4d:15::1", "2001:db8:3c4d:15::1"]}
},
{
"protocol": "ipv6", "assignmentMode": "static",
"address": "2001:db8:3c4d:15::2", "gateway": "fe80:db8:c15:c0:d0c::10ca:1d02",
"prefix": "2001:db8:3c4d:15::/64",
"nameservers": {"addresses": ["2001:db8:3c4d:15::2", "2001:db8:3c4d:15::2"]}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"invocation": {"serial": "Q2FV-DJ6J-4QHD"},
"meraki_response": {
"uuid": "00000000-0000-0000-0000-000000000000",
"major": 13,
"minor": 125
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"invocation": {"serial": "Q2FV-DJ6J-4QHD"},
"meraki_response": {
"uuid": "00000000-0000-0000-0000-000000000000",
"major": 13,
"minor": 125
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"serial": "Q234-ABCD-5678",
"connectionStats": {"assoc": 0, "auth": 1, "dhcp": 0, "dns": 0, "success": 43}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"apEslId": 16777216,
"serial": "Q234-ABCD-5678",
"channel": "1",
"enabled": true,
"networkId": "N_24329156",
"hostname": "localhost:700",
"provider": "imagotag"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"apEslId": 16777216,
"serial": "Q234-ABCD-5678",
"channel": "1",
"enabled": true,
"networkId": "N_24329156",
"hostname": "localhost:700",
"provider": "imagotag"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"serial": "Q2JC-2MJM-FHRD",
"latencyStats": {
"backgroundTraffic": {"avg": 606.52},
"bestEffortTraffic": {"avg": 606.52},
"videoTraffic": {"avg": 606.52},
"voiceTraffic": {"avg": 606.52}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"serial": "Q234-ABCD-5678",
"rfProfileId": "1234",
"twoFourGhzSettings": {"channel": 11, "targetPower": 21},
"fiveGhzSettings": {"channel": 149, "channelWidth": 20, "targetPower": 15}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"serial": "Q234-ABCD-5678",
"rfProfileId": "1234",
"twoFourGhzSettings": {"channel": 11, "targetPower": 21},
"fiveGhzSettings": {"channel": 149, "channelWidth": 20, "targetPower": 15}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"invocation": {"serial": "Q234-ABCD-5678"},
"meraki_response": {
"basicServiceSets": [
{
"ssidName": "My SSID", "ssidNumber": 0, "enabled": true, "band": "2.4 GHz",
"bssid": "8A:15:04:00:00:00", "channel": 11, "channelWidth": "20 MHz",
"power": "18 dBm", "visible": true, "broadcasting": true
},
{
"ssidName": "My SSID", "ssidNumber": 0, "enabled": true, "band": "5 GHz",
"bssid": "8A:15:04:00:00:01", "channel": 149, "channelWidth": "80 MHz",
"power": "20 dBm", "visible": true, "broadcasting": true
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"enrollmentId": "1234",
"url": "/devices/Q234-ABCD-5678/wireless/zigbee/enrollments/1234",
"request": {"serial": "Q234-ABCD-5678"},
"status": "complete"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"enrollmentId": "1234",
"url": "/devices/Q234-ABCD-5678/wireless/zigbee/enrollments/1234",
"request": {"serial": "Q234-ABCD-5678"},
"status": "complete",
"enrollmentStartedAt": "2023-08-14T19:57:00Z",
"doorLocks": [
{
"doorLockId": "1", "name": "Door Lock 123", "shortId": "ABE123",
"lqi": "1", "rssi": "1", "status": "online", "eui64": "DL403",
"enrolledAt": "2023-08-14T19:57:06Z", "lastSeenAt": "2023-08-14T19:59:01Z",
"network": {"id": "N_24329156", "name": "Main Office"},
"gateway": {"name": "My AP", "serial": "Q234-ABCD-5678"}
},
{
"doorLockId": "2", "name": "Door Lock 456", "shortId": "ABE456",
"lqi": "2", "rssi": "2", "status": "online", "eui64": "DL404",
"enrolledAt": "2023-08-15T10:00:00Z", "lastSeenAt": "2023-08-15T10:05:00Z",
"network": {"id": "N_24329156", "name": "Main Office"},
"gateway": {"name": "My AP", "serial": "Q234-ABCD-5678"}
}
]
}
Loading