acknowledgement.py 1.02 KB
Newer Older
1 2 3 4
"""
    schemas: Acknowledgement status sent by the surface platform to report
    receipt of message.
"""
5
acknowledgement_schema = {
6 7
    "allOf": [{"$ref": "#/components/schemas/Message"}],
    "type": "object",
8
    "properties": {
9
        "acknowledged_message_ID": {
10 11
            "type": "string",
            "description": "Identifier of message received and executed with "
12
            + "success for mission plans sent by the Autonomy Engine.",
13
            "example": "02125022255-7bc8-11ed-a1eb-0242ac999999",
14 15 16
        },
        "status": {
            "type": "string",
17
            "enum": ["c2_received", "operator_approved_and_sent", "executed"],
18
            "description": "Highest level of acknowledgement. I.e."
19 20 21
            + " `c2_received`: Received by C2, `operator_approved_and_sent`"
            + " : Approved by operator and sent from C2->Platform,"
            + " `executed`: Executed by platform",
22 23
            "example": "executed by platform",
        },
24
    },
25
    "required": ["acknowledged_message_ID", "status"],
26
}