Commit 4b6794f8 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Romain Courteaud

slapos_cloud: wip Software Instance add access status and processing timestamp

parent e8c0138f
......@@ -346,6 +346,8 @@ class SoftwareInstance(Item, JSONType):
"compute_node_id": parameter_dict.get("slap_computer_id"),
"compute_partition_id": parameter_dict.get("slap_computer_partition_id"),
"sla_parameters": self.getSlaXmlAsDict(),
"access_status_message": self.getTextAccessStatus(),
"processing_timestamp": parameter_dict.get("timestamp"),
}
result.update(parameter_dict)
return json.dumps(result, indent=2)
......
......@@ -175,6 +175,16 @@
"type": "string",\n
"description": "Id Of the Requesting Compute Partition, used by Slap Client when an instance is requesting an instance"\n
},\n
"processing_timestamp": {\n
"title": "Processing Timestamp",\n
"type": "number",\n
"description": "Timestamp set by the master node to mark when it was last processed in the master node. If it has been processed on master, it needs reprocessiing on the compute node."\n
},\n
"access_status_message": {\n
"title": "Access Status",\n
"type": "string",\n
"description": "Get latest software instance Access message state"\n
},\n
"portal_type": {\n
"title": "Portal Type",\n
"const": "Software Instance",\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment