Return labels in functions list endpoint

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-11-01 20:05:51 +00:00
parent c1dfd9cfa2
commit b2c579370a
5 changed files with 43 additions and 21 deletions

View File

@ -67,6 +67,10 @@ type Function struct {
InvocationCount float64 `json:"invocationCount"` // TODO: shouldn't this be int64?
Replicas uint64 `json:"replicas"`
EnvProcess string `json:"envProcess"`
// Labels are metadata for functions which may be used by the
// back-end for making scheduling or routing decisions
Labels *map[string]string `json:"labels"`
}
// AsyncReport is the report from a function executed on a queue worker.