Commit f91589fa authored by Naman Dixit's avatar Naman Dixit

Changed timestamp format

parent d872ace4
...@@ -23,7 +23,7 @@ The Dispatch Manager (DM) sends a request to the Resource Manager (RM), detailin ...@@ -23,7 +23,7 @@ The Dispatch Manager (DM) sends a request to the Resource Manager (RM), detailin
```javascript ```javascript
{ {
"resource_id": "unique-transaction-id", "resource_id": "unique-transaction-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"memory": 1024, // in MiB "memory": 1024, // in MiB
... // Any other resources ... // Any other resources
} }
...@@ -34,7 +34,7 @@ Format: ...@@ -34,7 +34,7 @@ Format:
```javascript ```javascript
{ {
"resource_id": "unique-transaction-id", "resource_id": "unique-transaction-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"grunts": [ "grunts": [
{ node_id: some unique ID, port: port address}, ... { node_id: some unique ID, port: port address}, ...
] // List of machine IDs ] // List of machine IDs
...@@ -47,7 +47,7 @@ Once the runtime entity has been launched (or the launch has failed), the Execut ...@@ -47,7 +47,7 @@ Once the runtime entity has been launched (or the launch has failed), the Execut
"node_id" : "uique-machine-id", "node_id" : "uique-machine-id",
"resource_id": "logical-entity-id", "resource_id": "logical-entity-id",
"function_id": "unique-function-id", "function_id": "unique-function-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"reason": "deployment"/"termination" "reason": "deployment"/"termination"
"status": true/false // Only valid if reason==deployment "status": true/false // Only valid if reason==deployment
} }
...@@ -60,7 +60,7 @@ and whoever needs the data is allowed to read it. Each message is required to ha ...@@ -60,7 +60,7 @@ and whoever needs the data is allowed to read it. Each message is required to ha
"node_id" : "uique-machine-id", "node_id" : "uique-machine-id",
"resource_id": "logical-entity-id", "resource_id": "logical-entity-id",
"function_id": "unique-function-id", "function_id": "unique-function-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"cpu" : 343, // in MHz "cpu" : 343, // in MHz
"memory": 534, // in MiB "memory": 534, // in MiB
"network": 234 // in KBps "network": 234 // in KBps
...@@ -70,7 +70,7 @@ and whoever needs the data is allowed to read it. Each message is required to ha ...@@ -70,7 +70,7 @@ and whoever needs the data is allowed to read it. Each message is required to ha
"node_id" : "uique-machine-id", "node_id" : "uique-machine-id",
"resource_id": "logical-entity-id", "resource_id": "logical-entity-id",
"function_id": "unique-function-id", "function_id": "unique-function-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"average_fn_time" : 23 // in ms "average_fn_time" : 23 // in ms
} }
...@@ -78,7 +78,7 @@ and whoever needs the data is allowed to read it. Each message is required to ha ...@@ -78,7 +78,7 @@ and whoever needs the data is allowed to read it. Each message is required to ha
"node_id" : "uique-machine-id", "node_id" : "uique-machine-id",
"resource_id": "logical-entity-id", "resource_id": "logical-entity-id",
"function_id": "unique-function-id", "function_id": "unique-function-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"coldstart_time" "coldstart_time"
} }
``` ```
...@@ -223,7 +223,7 @@ resources being tracked by RDs on each machine. This data is cached by the RM. ...@@ -223,7 +223,7 @@ resources being tracked by RDs on each machine. This data is cached by the RM.
```javascript ```javascript
{ {
"node_id": "unique-machine-id", "node_id": "unique-machine-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"memory": 1024, // in MiB "memory": 1024, // in MiB
... // Any other resources ... // Any other resources
} }
...@@ -246,7 +246,7 @@ DM on topic `RESPONSE_RM_2_DM`. ...@@ -246,7 +246,7 @@ DM on topic `RESPONSE_RM_2_DM`.
```javascript ```javascript
{ {
"resource_id": "unique-transaction-id", "resource_id": "unique-transaction-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
// "port": 2343 --- NOT IMPLEMENTED YET // "port": 2343 --- NOT IMPLEMENTED YET
"nodes": ["a", "b", ...] // List of unique machine IDs "nodes": ["a", "b", ...] // List of unique machine IDs
} }
...@@ -258,7 +258,7 @@ Format: ...@@ -258,7 +258,7 @@ Format:
```javascript ```javascript
{ {
"resource_id": "unique-transaction-id", "resource_id": "unique-transaction-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"memory": 1024, // in MiB "memory": 1024, // in MiB
... // Any other resources ... // Any other resources
} }
...@@ -269,7 +269,7 @@ The RDs recieve this message and send back whether on not they satisfy the const ...@@ -269,7 +269,7 @@ The RDs recieve this message and send back whether on not they satisfy the const
{ {
"node_id": "unique-machine-id", "node_id": "unique-machine-id",
"resource_id": "unique-transaction-id", "resource_id": "unique-transaction-id",
"timestamp" : "iso-8601-timestamp", "timestamp" : "time(2) compatible timestamp",
"success" : 0/1 // 0 = fail, 1 = success "success" : 0/1 // 0 = fail, 1 = success
} }
``` ```
......
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