Resolve "SPINE Support"
3 unresolved threads
formats
alert.py +5 -5
platform_status.py +3 -5
tests/fixtures
schemas.py +9 -11
+ 5
- 5
+ 3
- 5
+ 9
- 11
\ No newline at end of file
added Status::In Review label
591 | 592 | "description": "Battery remaining % provided by respective C2", |
592 | 593 | "example": 80.2, |
593 | 594 | }, |
595 | # Battery power (kw / float) | |
596 | "battery_output": { # changed from battery_power | |
597 | "type": "number", | |
598 | "format": "float", | |
599 | "description": "Battery output in kW", | |
600 | "example": 80.2, | |
601 | }, | |
602 | # Bunkers remaining capacity (litres, float) | |
603 | # Bunkers percentage full (percentage, float) | |
604 | # battery_remaining_capacity is % full if we want both these fields | |
605 | # these names are going to cause confusion | |
Please register or sign in to reply |
648 | "type": "integer", | |
649 | "description": "Alert code", | |
650 | "example": 345, | |
651 | }, | |
652 | "platform_ID": { | |
653 | "type": "string", | |
654 | "description": "Unique identifier for this platform", | |
655 | "example": "usvdecibel", | |
656 | }, | |
657 | "platform_timestamp": { | |
658 | "type": "string", | |
659 | "format": "date-time", | |
660 | "description": "Timestamp for onboard platform status message", | |
661 | "example": "2022-12-21T00:00:00Z", | |
662 | }, | |
663 | "subsystem": { # changed from suggested "source" could be device / subsystem or something | |
|
602 | 634 | "longitude", |
603 | 635 | ], |
604 | 636 | } |
637 | ||
638 | alert_schema = { | |
639 | "type": "object", | |
640 | "properties": { | |
641 | "message_type": { | |
642 | "type": "string", | |
643 | "description": "Type of message", | |
644 | "example": "alert", | |
645 | "enum": ["alert"], | |
646 | }, | |
647 | "code": { # changed from alert_ID because reasons | |
|
MR looks good to me. Once comments that are removed, feel free to merge it!
approved this merge request
Files with large changes are collapsed by default.
Files with large changes are collapsed by default.
Files with large changes are collapsed by default.