From 8dd646cf5a3334f7c9b25368b4f9f3eaa1e9d6cf Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Wed, 28 Feb 2018 18:14:46 -0800 Subject: [PATCH] Add AvailableReplicas field to requests.Function Signed-off-by: Ivan Mikushin --- gateway/requests/requests.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gateway/requests/requests.go b/gateway/requests/requests.go index 979651be..0d1b2050 100644 --- a/gateway/requests/requests.go +++ b/gateway/requests/requests.go @@ -57,6 +57,9 @@ type Function struct { Replicas uint64 `json:"replicas"` EnvProcess string `json:"envProcess"` + // AvailableReplicas is the count of replicas ready to receive invocations as reported by the back-end + AvailableReplicas uint64 `json:"availableReplicas"` + // 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"`