From f6ab6a84604993a3d23a0106c89fb556ad6a90f6 Mon Sep 17 00:00:00 2001 From: Nathan ter Bogt Date: Mon, 23 Feb 2026 20:10:29 +1300 Subject: [PATCH] Removing all the old endpoints for metrics --- internal/server/mock/metrics/server.go | 385 ---- metrics.proto | 253 --- pb/metrics.pb.go | 2547 ++---------------------- pb/metrics_grpc.pb.go | 380 ---- 4 files changed, 135 insertions(+), 3430 deletions(-) diff --git a/internal/server/mock/metrics/server.go b/internal/server/mock/metrics/server.go index 5870695..4f8dd0e 100644 --- a/internal/server/mock/metrics/server.go +++ b/internal/server/mock/metrics/server.go @@ -105,388 +105,3 @@ func (s *Server) AbsoluteRange(ctx context.Context, req *pb.AbsoluteRangeRequest Metrics: output, }, nil } - -func (s *Server) ClusterRequests(ctx context.Context, req *pb.ClusterRequestsRequest) (*pb.ClusterRequestsResponse, error) { - return &pb.ClusterRequestsResponse{ - Metrics: []*pb.MetricClusterRequests{ - {Date: "2024-04-01 00:00", Requests: 1583870}, - {Date: "2024-04-01 00:02", Requests: 2563450}, - {Date: "2024-04-01 00:03", Requests: 1473176}, - {Date: "2024-04-01 00:04", Requests: 3200394}, - {Date: "2024-04-01 00:05", Requests: 4317112}, - {Date: "2024-04-01 00:06", Requests: 1949708}, - {Date: "2024-04-01 00:07", Requests: 2225637}, - {Date: "2024-04-01 00:08", Requests: 4044486}, - {Date: "2024-04-01 00:09", Requests: 1378839}, - {Date: "2024-04-01 00:10", Requests: 3708293}, - {Date: "2024-04-01 00:11", Requests: 1353318}, - {Date: "2024-04-01 00:12", Requests: 2809815}, - {Date: "2024-04-01 00:13", Requests: 2128851}, - {Date: "2024-04-01 00:14", Requests: 4526252}, - {Date: "2024-04-01 00:15", Requests: 4145685}, - {Date: "2024-04-01 00:16", Requests: 3494504}, - {Date: "2024-04-01 00:17", Requests: 4935480}, - {Date: "2024-04-01 00:18", Requests: 2863479}, - {Date: "2024-04-01 00:19", Requests: 4802475}, - {Date: "2024-04-01 00:20", Requests: 1027111}, - {Date: "2024-04-01 00:21", Requests: 4880666}, - {Date: "2024-04-01 00:22", Requests: 3752164}, - {Date: "2024-04-01 00:23", Requests: 2670388}, - {Date: "2024-04-01 00:24", Requests: 1073939}, - {Date: "2024-04-01 00:25", Requests: 2191549}, - {Date: "2024-04-01 00:26", Requests: 1485730}, - {Date: "2024-04-01 00:27", Requests: 2413299}, - {Date: "2024-04-01 00:28", Requests: 2185148}, - {Date: "2024-04-01 00:29", Requests: 1183772}, - {Date: "2024-04-01 00:30", Requests: 3227069}, - }, - }, nil -} - -// ClusterResponseCodes mocked function call. -func (s *Server) ClusterResponseCodes(ctx context.Context, req *pb.ClusterResponseCodesRequest) (*pb.ClusterResponseCodesResponse, error) { - return &pb.ClusterResponseCodesResponse{ - Metrics: []*pb.MetricClusterResponseCodes{ - {Date: "2024-04-01 00:00", Server: 1, Client: 15, Redirection: 17, Successful: 120}, - {Date: "2024-04-01 00:02", Server: 2, Client: 14, Redirection: 16, Successful: 124}, - {Date: "2024-04-01 00:03", Server: 3, Client: 13, Redirection: 15, Successful: 125}, - {Date: "2024-04-01 00:04", Server: 1, Client: 12, Redirection: 14, Successful: 120}, - {Date: "2024-04-01 00:05", Server: 2, Client: 15, Redirection: 17, Successful: 135}, - {Date: "2024-04-01 00:06", Server: 4, Client: 13, Redirection: 15, Successful: 250}, - {Date: "2024-04-01 00:07", Server: 9, Client: 12, Redirection: 14, Successful: 240}, - {Date: "2024-04-01 00:08", Server: 1, Client: 14, Redirection: 17, Successful: 230}, - {Date: "2024-04-01 00:09", Server: 0, Client: 11, Redirection: 12, Successful: 150}, - {Date: "2024-04-01 00:10", Server: 0, Client: 10, Redirection: 12, Successful: 300}, - {Date: "2024-04-01 00:11", Server: 2, Client: 12, Redirection: 11, Successful: 280}, - {Date: "2024-04-01 00:12", Server: 3, Client: 11, Redirection: 10, Successful: 287}, - {Date: "2024-04-01 00:13", Server: 1, Client: 14, Redirection: 13, Successful: 250}, - {Date: "2024-04-01 00:14", Server: 3, Client: 13, Redirection: 12, Successful: 155}, - {Date: "2024-04-01 00:15", Server: 2, Client: 12, Redirection: 11, Successful: 145}, - {Date: "2024-04-01 00:16", Server: 1, Client: 22, Redirection: 22, Successful: 120}, - {Date: "2024-04-01 00:17", Server: 5, Client: 21, Redirection: 18, Successful: 110}, - {Date: "2024-04-01 00:18", Server: 1, Client: 34, Redirection: 40, Successful: 130}, - {Date: "2024-04-01 00:19", Server: 6, Client: 51, Redirection: 12, Successful: 122}, - {Date: "2024-04-01 00:20", Server: 6, Client: 45, Redirection: 14, Successful: 144}, - {Date: "2024-04-01 00:21", Server: 1, Client: 12, Redirection: 13, Successful: 133}, - {Date: "2024-04-01 00:22", Server: 2, Client: 34, Redirection: 22, Successful: 98}, - {Date: "2024-04-01 00:23", Server: 0, Client: 41, Redirection: 12, Successful: 95}, - {Date: "2024-04-01 00:24", Server: 1, Client: 55, Redirection: 34, Successful: 97}, - {Date: "2024-04-01 00:25", Server: 9, Client: 11, Redirection: 15, Successful: 98}, - {Date: "2024-04-01 00:26", Server: 8, Client: 13, Redirection: 64, Successful: 99}, - {Date: "2024-04-01 00:27", Server: 5, Client: 10, Redirection: 55, Successful: 101}, - {Date: "2024-04-01 00:28", Server: 3, Client: 12, Redirection: 45, Successful: 100}, - {Date: "2024-04-01 00:29", Server: 2, Client: 13, Redirection: 35, Successful: 120}, - {Date: "2024-04-01 00:30", Server: 2, Client: 14, Redirection: 11, Successful: 115}, - }, - }, nil -} - -// Requests mocked function call. -func (s *Server) Requests(ctx context.Context, req *pb.RequestsRequest) (*pb.RequestsResponse, error) { - return &pb.RequestsResponse{ - Metrics: []*pb.MetricRequests{ - {Date: "2024-04-01 00:00", Requests: 1583870}, - {Date: "2024-04-01 00:02", Requests: 2563450}, - {Date: "2024-04-01 00:03", Requests: 1473176}, - {Date: "2024-04-01 00:04", Requests: 3200394}, - {Date: "2024-04-01 00:05", Requests: 4317112}, - {Date: "2024-04-01 00:06", Requests: 1949708}, - {Date: "2024-04-01 00:07", Requests: 2225637}, - {Date: "2024-04-01 00:08", Requests: 4044486}, - {Date: "2024-04-01 00:09", Requests: 1378839}, - {Date: "2024-04-01 00:10", Requests: 3708293}, - {Date: "2024-04-01 00:11", Requests: 1353318}, - {Date: "2024-04-01 00:12", Requests: 2809815}, - {Date: "2024-04-01 00:13", Requests: 2128851}, - {Date: "2024-04-01 00:14", Requests: 4526252}, - {Date: "2024-04-01 00:15", Requests: 4145685}, - {Date: "2024-04-01 00:16", Requests: 3494504}, - {Date: "2024-04-01 00:17", Requests: 4935480}, - {Date: "2024-04-01 00:18", Requests: 2863479}, - {Date: "2024-04-01 00:19", Requests: 4802475}, - {Date: "2024-04-01 00:20", Requests: 1027111}, - {Date: "2024-04-01 00:21", Requests: 4880666}, - {Date: "2024-04-01 00:22", Requests: 3752164}, - {Date: "2024-04-01 00:23", Requests: 2670388}, - {Date: "2024-04-01 00:24", Requests: 1073939}, - {Date: "2024-04-01 00:25", Requests: 2191549}, - {Date: "2024-04-01 00:26", Requests: 1485730}, - {Date: "2024-04-01 00:27", Requests: 2413299}, - {Date: "2024-04-01 00:28", Requests: 2185148}, - {Date: "2024-04-01 00:29", Requests: 1183772}, - {Date: "2024-04-01 00:30", Requests: 3227069}, - }, - }, nil -} - -// ResponseCodes mocked function call. -func (s *Server) ResponseCodes(ctx context.Context, req *pb.ResponseCodesRequest) (*pb.ResponseCodesResponse, error) { - return &pb.ResponseCodesResponse{ - Metrics: []*pb.MetricResponseCodes{ - {Date: "2024-04-01 00:00", Server: 1, Client: 15, Redirection: 17, Successful: 120}, - {Date: "2024-04-01 00:02", Server: 2, Client: 14, Redirection: 16, Successful: 124}, - {Date: "2024-04-01 00:03", Server: 3, Client: 13, Redirection: 15, Successful: 125}, - {Date: "2024-04-01 00:04", Server: 1, Client: 12, Redirection: 14, Successful: 120}, - {Date: "2024-04-01 00:05", Server: 2, Client: 15, Redirection: 17, Successful: 135}, - {Date: "2024-04-01 00:06", Server: 4, Client: 13, Redirection: 15, Successful: 250}, - {Date: "2024-04-01 00:07", Server: 9, Client: 12, Redirection: 14, Successful: 240}, - {Date: "2024-04-01 00:08", Server: 1, Client: 14, Redirection: 17, Successful: 230}, - {Date: "2024-04-01 00:09", Server: 0, Client: 11, Redirection: 12, Successful: 150}, - {Date: "2024-04-01 00:10", Server: 0, Client: 10, Redirection: 12, Successful: 300}, - {Date: "2024-04-01 00:11", Server: 2, Client: 12, Redirection: 11, Successful: 280}, - {Date: "2024-04-01 00:12", Server: 3, Client: 11, Redirection: 10, Successful: 287}, - {Date: "2024-04-01 00:13", Server: 1, Client: 14, Redirection: 13, Successful: 250}, - {Date: "2024-04-01 00:14", Server: 3, Client: 13, Redirection: 12, Successful: 155}, - {Date: "2024-04-01 00:15", Server: 2, Client: 12, Redirection: 11, Successful: 145}, - {Date: "2024-04-01 00:16", Server: 1, Client: 22, Redirection: 22, Successful: 120}, - {Date: "2024-04-01 00:17", Server: 5, Client: 21, Redirection: 18, Successful: 110}, - {Date: "2024-04-01 00:18", Server: 1, Client: 34, Redirection: 40, Successful: 130}, - {Date: "2024-04-01 00:19", Server: 6, Client: 51, Redirection: 12, Successful: 122}, - {Date: "2024-04-01 00:20", Server: 6, Client: 45, Redirection: 14, Successful: 144}, - {Date: "2024-04-01 00:21", Server: 1, Client: 12, Redirection: 13, Successful: 133}, - {Date: "2024-04-01 00:22", Server: 2, Client: 34, Redirection: 22, Successful: 98}, - {Date: "2024-04-01 00:23", Server: 0, Client: 41, Redirection: 12, Successful: 95}, - {Date: "2024-04-01 00:24", Server: 1, Client: 55, Redirection: 34, Successful: 97}, - {Date: "2024-04-01 00:25", Server: 9, Client: 11, Redirection: 15, Successful: 98}, - {Date: "2024-04-01 00:26", Server: 8, Client: 13, Redirection: 64, Successful: 99}, - {Date: "2024-04-01 00:27", Server: 5, Client: 10, Redirection: 55, Successful: 101}, - {Date: "2024-04-01 00:28", Server: 3, Client: 12, Redirection: 45, Successful: 100}, - {Date: "2024-04-01 00:29", Server: 2, Client: 13, Redirection: 35, Successful: 120}, - {Date: "2024-04-01 00:30", Server: 2, Client: 14, Redirection: 11, Successful: 115}, - }, - }, nil -} - -// ResponseTimes mocked function call. -func (s *Server) ResponseTimes(ctx context.Context, req *pb.ResponseTimesRequest) (*pb.ResponseTimesResponse, error) { - return &pb.ResponseTimesResponse{ - Metrics: []*pb.MetricResponseTimes{ - {Date: "2024-04-01 00:00", Average: 190, P95: 480, P99: 1600}, - {Date: "2024-04-01 00:02", Average: 205, P95: 500, P99: 2250}, - {Date: "2024-04-01 00:03", Average: 198, P95: 520, P99: 1350}, - {Date: "2024-04-01 00:04", Average: 210, P95: 560, P99: 3000}, - {Date: "2024-04-01 00:05", Average: 195, P95: 530, P99: 2000}, - {Date: "2024-04-01 00:06", Average: 200, P95: 550, P99: 3750}, - {Date: "2024-04-01 00:07", Average: 185, P95: 490, P99: 1150}, - {Date: "2024-04-01 00:08", Average: 215, P95: 580, P99: 4600}, - {Date: "2024-04-01 00:09", Average: 192, P95: 470, P99: 1550}, - {Date: "2024-04-01 00:10", Average: 205, P95: 510, P99: 2650}, - {Date: "2024-04-01 00:11", Average: 208, P95: 540, P99: 3550}, - {Date: "2024-04-01 00:12", Average: 195, P95: 520, P99: 2250}, - {Date: "2024-04-01 00:13", Average: 212, P95: 560, P99: 4100}, - {Date: "2024-04-01 00:14", Average: 187, P95: 490, P99: 1350}, - {Date: "2024-04-01 00:15", Average: 200, P95: 500, P99: 1650}, - {Date: "2024-04-01 00:16", Average: 193, P95: 510, P99: 1450}, - {Date: "2024-04-01 00:17", Average: 218, P95: 600, P99: 4900}, - {Date: "2024-04-01 00:18", Average: 210, P95: 570, P99: 4250}, - {Date: "2024-04-01 00:19", Average: 190, P95: 500, P99: 1700}, - {Date: "2024-04-01 00:20", Average: 185, P95: 470, P99: 1300}, - {Date: "2024-04-01 00:21", Average: 198, P95: 500, P99: 2100}, - {Date: "2024-04-01 00:22", Average: 192, P95: 480, P99: 1850}, - {Date: "2024-04-01 00:23", Average: 205, P95: 530, P99: 2300}, - {Date: "2024-04-01 00:24", Average: 215, P95: 590, P99: 4550}, - {Date: "2024-04-01 00:25", Average: 200, P95: 520, P99: 2500}, - {Date: "2024-04-01 00:26", Average: 195, P95: 480, P99: 1600}, - {Date: "2024-04-01 00:27", Average: 220, P95: 610, P99: 4800}, - {Date: "2024-04-01 00:28", Average: 190, P95: 490, P99: 1700}, - {Date: "2024-04-01 00:29", Average: 208, P95: 550, P99: 3550}, - {Date: "2024-04-01 00:30", Average: 215, P95: 580, P99: 4350}, - }, - }, nil -} - -// CacheRatio mocked function call. -func (s *Server) CacheRatio(ctx context.Context, req *pb.CacheRatioRequest) (*pb.CacheRatioResponse, error) { - return &pb.CacheRatioResponse{ - Metrics: []*pb.MetricCacheRatio{ - {Date: "2024-04-01 00:00", Hit: 65, Miss: 35}, - {Date: "2024-04-01 00:02", Hit: 84, Miss: 16}, - {Date: "2024-04-01 00:03", Hit: 82, Miss: 18}, - {Date: "2024-04-01 00:04", Hit: 82, Miss: 18}, - {Date: "2024-04-01 00:05", Hit: 77, Miss: 23}, - {Date: "2024-04-01 00:06", Hit: 72, Miss: 28}, - {Date: "2024-04-01 00:07", Hit: 63, Miss: 37}, - {Date: "2024-04-01 00:08", Hit: 68, Miss: 32}, - {Date: "2024-04-01 00:09", Hit: 86, Miss: 14}, - {Date: "2024-04-01 00:10", Hit: 69, Miss: 31}, - {Date: "2024-04-01 00:11", Hit: 94, Miss: 6}, - {Date: "2024-04-01 00:12", Hit: 95, Miss: 5}, - {Date: "2024-04-01 00:13", Hit: 75, Miss: 25}, - {Date: "2024-04-01 00:14", Hit: 69, Miss: 31}, - {Date: "2024-04-01 00:15", Hit: 92, Miss: 8}, - {Date: "2024-04-01 00:16", Hit: 80, Miss: 20}, - {Date: "2024-04-01 00:17", Hit: 90, Miss: 10}, - {Date: "2024-04-01 00:18", Hit: 98, Miss: 2}, - {Date: "2024-04-01 00:19", Hit: 81, Miss: 19}, - {Date: "2024-04-01 00:20", Hit: 78, Miss: 22}, - {Date: "2024-04-01 00:21", Hit: 94, Miss: 6}, - {Date: "2024-04-01 00:22", Hit: 72, Miss: 28}, - {Date: "2024-04-01 00:23", Hit: 98, Miss: 2}, - {Date: "2024-04-01 00:24", Hit: 80, Miss: 20}, - {Date: "2024-04-01 00:25", Hit: 89, Miss: 11}, - {Date: "2024-04-01 00:26", Hit: 64, Miss: 36}, - {Date: "2024-04-01 00:27", Hit: 97, Miss: 3}, - {Date: "2024-04-01 00:28", Hit: 99, Miss: 1}, - {Date: "2024-04-01 00:29", Hit: 65, Miss: 35}, - {Date: "2024-04-01 00:30", Hit: 92, Miss: 8}, - }, - }, nil -} - -// OriginErrors mocked function call. -func (s *Server) OriginErrors(ctx context.Context, req *pb.OriginErrorsRequest) (*pb.OriginErrorsResponse, error) { - return &pb.OriginErrorsResponse{ - Metrics: []*pb.MetricOriginErrors{ - {Date: "2024-04-01 00:00", Errors: 15}, - {Date: "2024-04-01 00:02", Errors: 0}, - {Date: "2024-04-01 00:03", Errors: 19}, - {Date: "2024-04-01 00:04", Errors: 7}, - {Date: "2024-04-01 00:05", Errors: 19}, - {Date: "2024-04-01 00:06", Errors: 0}, - {Date: "2024-04-01 00:07", Errors: 0}, - {Date: "2024-04-01 00:08", Errors: 8}, - {Date: "2024-04-01 00:09", Errors: 20}, - {Date: "2024-04-01 00:10", Errors: 3}, - {Date: "2024-04-01 00:11", Errors: 18}, - {Date: "2024-04-01 00:12", Errors: 4}, - {Date: "2024-04-01 00:13", Errors: 2}, - {Date: "2024-04-01 00:14", Errors: 10}, - {Date: "2024-04-01 00:15", Errors: 18}, - {Date: "2024-04-01 00:16", Errors: 19}, - {Date: "2024-04-01 00:17", Errors: 12}, - {Date: "2024-04-01 00:18", Errors: 10}, - {Date: "2024-04-01 00:19", Errors: 15}, - {Date: "2024-04-01 00:20", Errors: 5}, - {Date: "2024-04-01 00:21", Errors: 1}, - {Date: "2024-04-01 00:22", Errors: 8}, - {Date: "2024-04-01 00:23", Errors: 6}, - {Date: "2024-04-01 00:24", Errors: 6}, - {Date: "2024-04-01 00:25", Errors: 7}, - {Date: "2024-04-01 00:26", Errors: 11}, - {Date: "2024-04-01 00:27", Errors: 18}, - {Date: "2024-04-01 00:28", Errors: 18}, - {Date: "2024-04-01 00:29", Errors: 11}, - {Date: "2024-04-01 00:30", Errors: 3}, - }, - }, nil -} - -// InvalidationRequests mocked function call. -func (s *Server) InvalidationRequests(ctx context.Context, req *pb.InvalidationRequestsRequest) (*pb.InvalidationRequestsResponse, error) { - return &pb.InvalidationRequestsResponse{ - Metrics: []*pb.MetricInvalidationRequests{ - {Date: "2024-04-01 00:00", Requests: 15}, - {Date: "2024-04-01 00:02", Requests: 0}, - {Date: "2024-04-01 00:03", Requests: 19}, - {Date: "2024-04-01 00:04", Requests: 7}, - {Date: "2024-04-01 00:05", Requests: 19}, - {Date: "2024-04-01 00:06", Requests: 0}, - {Date: "2024-04-01 00:07", Requests: 0}, - {Date: "2024-04-01 00:08", Requests: 8}, - {Date: "2024-04-01 00:09", Requests: 20}, - {Date: "2024-04-01 00:10", Requests: 3}, - {Date: "2024-04-01 00:11", Requests: 18}, - {Date: "2024-04-01 00:12", Requests: 4}, - {Date: "2024-04-01 00:13", Requests: 2}, - {Date: "2024-04-01 00:14", Requests: 10}, - {Date: "2024-04-01 00:15", Requests: 18}, - {Date: "2024-04-01 00:16", Requests: 19}, - {Date: "2024-04-01 00:17", Requests: 12}, - {Date: "2024-04-01 00:18", Requests: 10}, - {Date: "2024-04-01 00:19", Requests: 15}, - {Date: "2024-04-01 00:20", Requests: 5}, - {Date: "2024-04-01 00:21", Requests: 1}, - {Date: "2024-04-01 00:22", Requests: 8}, - {Date: "2024-04-01 00:23", Requests: 6}, - {Date: "2024-04-01 00:24", Requests: 6}, - {Date: "2024-04-01 00:25", Requests: 7}, - {Date: "2024-04-01 00:26", Requests: 11}, - {Date: "2024-04-01 00:27", Requests: 18}, - {Date: "2024-04-01 00:28", Requests: 18}, - {Date: "2024-04-01 00:29", Requests: 11}, - {Date: "2024-04-01 00:30", Requests: 3}, - }, - }, nil -} - -// InvalidationPaths mocked function call. -func (s *Server) InvalidationPaths(ctx context.Context, req *pb.InvalidationPathsRequest) (*pb.InvalidationPathsResponse, error) { - return &pb.InvalidationPathsResponse{ - Metrics: []*pb.MetricInvalidationPaths{ - {Date: "2024-04-01 00:00", Paths: 15}, - {Date: "2024-04-01 00:02", Paths: 0}, - {Date: "2024-04-01 00:03", Paths: 19}, - {Date: "2024-04-01 00:04", Paths: 7}, - {Date: "2024-04-01 00:05", Paths: 19}, - {Date: "2024-04-01 00:06", Paths: 0}, - {Date: "2024-04-01 00:07", Paths: 0}, - {Date: "2024-04-01 00:08", Paths: 8}, - {Date: "2024-04-01 00:09", Paths: 20}, - {Date: "2024-04-01 00:10", Paths: 3}, - {Date: "2024-04-01 00:11", Paths: 18}, - {Date: "2024-04-01 00:12", Paths: 4}, - {Date: "2024-04-01 00:13", Paths: 2}, - {Date: "2024-04-01 00:14", Paths: 10}, - {Date: "2024-04-01 00:15", Paths: 18}, - {Date: "2024-04-01 00:16", Paths: 19}, - {Date: "2024-04-01 00:17", Paths: 12}, - {Date: "2024-04-01 00:18", Paths: 10}, - {Date: "2024-04-01 00:19", Paths: 15}, - {Date: "2024-04-01 00:20", Paths: 5}, - {Date: "2024-04-01 00:21", Paths: 1}, - {Date: "2024-04-01 00:22", Paths: 8}, - {Date: "2024-04-01 00:23", Paths: 6}, - {Date: "2024-04-01 00:24", Paths: 6}, - {Date: "2024-04-01 00:25", Paths: 7}, - {Date: "2024-04-01 00:26", Paths: 11}, - {Date: "2024-04-01 00:27", Paths: 18}, - {Date: "2024-04-01 00:28", Paths: 18}, - {Date: "2024-04-01 00:29", Paths: 11}, - {Date: "2024-04-01 00:30", Paths: 3}, - }, - }, nil -} - -// ResourceUsage mocked function call. -func (s *Server) ResourceUsage(ctx context.Context, req *pb.ResourceUsageRequest) (*pb.ResourceUsageResponse, error) { - return &pb.ResourceUsageResponse{ - Metrics: []*pb.MetricResourceUsage{ - {Date: "2024-04-01 00:00", CPU: 500, Memory: 1024, Replicas: 3, ActiveProcesses: 10, IdleProcesses: 2, ListenQueue: 0}, - {Date: "2024-04-01 00:05", CPU: 550, Memory: 1034, Replicas: 4, ActiveProcesses: 11, IdleProcesses: 3, ListenQueue: 1}, - {Date: "2024-04-01 00:10", CPU: 600, Memory: 1044, Replicas: 5, ActiveProcesses: 12, IdleProcesses: 4, ListenQueue: 2}, - {Date: "2024-04-01 00:15", CPU: 650, Memory: 1054, Replicas: 3, ActiveProcesses: 13, IdleProcesses: 2, ListenQueue: 3}, - {Date: "2024-04-01 00:20", CPU: 700, Memory: 1064, Replicas: 4, ActiveProcesses: 14, IdleProcesses: 3, ListenQueue: 0}, - {Date: "2024-04-01 00:25", CPU: 750, Memory: 1074, Replicas: 5, ActiveProcesses: 10, IdleProcesses: 4, ListenQueue: 1}, - {Date: "2024-04-01 00:30", CPU: 800, Memory: 1084, Replicas: 3, ActiveProcesses: 11, IdleProcesses: 2, ListenQueue: 2}, - {Date: "2024-04-01 00:35", CPU: 850, Memory: 1094, Replicas: 4, ActiveProcesses: 12, IdleProcesses: 3, ListenQueue: 3}, - {Date: "2024-04-01 00:40", CPU: 900, Memory: 1104, Replicas: 5, ActiveProcesses: 13, IdleProcesses: 4, ListenQueue: 0}, - {Date: "2024-04-01 00:45", CPU: 950, Memory: 1114, Replicas: 3, ActiveProcesses: 14, IdleProcesses: 2, ListenQueue: 1}, - {Date: "2024-04-01 00:50", CPU: 500, Memory: 1124, Replicas: 4, ActiveProcesses: 10, IdleProcesses: 3, ListenQueue: 2}, - {Date: "2024-04-01 00:55", CPU: 550, Memory: 1134, Replicas: 5, ActiveProcesses: 11, IdleProcesses: 4, ListenQueue: 3}, - {Date: "2024-04-01 01:00", CPU: 600, Memory: 1144, Replicas: 3, ActiveProcesses: 12, IdleProcesses: 2, ListenQueue: 0}, - {Date: "2024-04-01 01:05", CPU: 650, Memory: 1154, Replicas: 4, ActiveProcesses: 13, IdleProcesses: 3, ListenQueue: 1}, - {Date: "2024-04-01 01:10", CPU: 700, Memory: 1164, Replicas: 5, ActiveProcesses: 14, IdleProcesses: 4, ListenQueue: 2}, - {Date: "2024-04-01 01:15", CPU: 750, Memory: 1174, Replicas: 3, ActiveProcesses: 10, IdleProcesses: 2, ListenQueue: 3}, - {Date: "2024-04-01 01:20", CPU: 800, Memory: 1184, Replicas: 4, ActiveProcesses: 11, IdleProcesses: 3, ListenQueue: 0}, - {Date: "2024-04-01 01:25", CPU: 850, Memory: 1194, Replicas: 5, ActiveProcesses: 12, IdleProcesses: 4, ListenQueue: 1}, - {Date: "2024-04-01 01:30", CPU: 900, Memory: 1204, Replicas: 3, ActiveProcesses: 13, IdleProcesses: 2, ListenQueue: 2}, - {Date: "2024-04-01 01:35", CPU: 950, Memory: 1214, Replicas: 4, ActiveProcesses: 14, IdleProcesses: 3, ListenQueue: 3}, - {Date: "2024-04-01 01:40", CPU: 500, Memory: 1224, Replicas: 5, ActiveProcesses: 10, IdleProcesses: 4, ListenQueue: 0}, - {Date: "2024-04-01 01:45", CPU: 550, Memory: 1234, Replicas: 3, ActiveProcesses: 11, IdleProcesses: 2, ListenQueue: 1}, - {Date: "2024-04-01 01:50", CPU: 600, Memory: 1244, Replicas: 4, ActiveProcesses: 12, IdleProcesses: 3, ListenQueue: 2}, - {Date: "2024-04-01 01:55", CPU: 650, Memory: 1254, Replicas: 5, ActiveProcesses: 13, IdleProcesses: 4, ListenQueue: 3}, - {Date: "2024-04-01 02:00", CPU: 700, Memory: 1264, Replicas: 3, ActiveProcesses: 14, IdleProcesses: 2, ListenQueue: 0}, - {Date: "2024-04-01 02:05", CPU: 750, Memory: 1274, Replicas: 4, ActiveProcesses: 10, IdleProcesses: 3, ListenQueue: 1}, - {Date: "2024-04-01 02:10", CPU: 800, Memory: 1284, Replicas: 5, ActiveProcesses: 11, IdleProcesses: 4, ListenQueue: 2}, - {Date: "2024-04-01 02:15", CPU: 850, Memory: 1294, Replicas: 3, ActiveProcesses: 12, IdleProcesses: 2, ListenQueue: 3}, - {Date: "2024-04-01 02:20", CPU: 900, Memory: 1304, Replicas: 4, ActiveProcesses: 13, IdleProcesses: 3, ListenQueue: 0}, - {Date: "2024-04-01 02:25", CPU: 950, Memory: 1314, Replicas: 5, ActiveProcesses: 14, IdleProcesses: 4, ListenQueue: 1}, - {Date: "2024-04-01 02:30", CPU: 500, Memory: 1324, Replicas: 3, ActiveProcesses: 10, IdleProcesses: 2, ListenQueue: 2}, - {Date: "2024-04-01 02:35", CPU: 550, Memory: 1334, Replicas: 4, ActiveProcesses: 11, IdleProcesses: 3, ListenQueue: 3}, - {Date: "2024-04-01 02:40", CPU: 600, Memory: 1344, Replicas: 5, ActiveProcesses: 12, IdleProcesses: 4, ListenQueue: 0}, - {Date: "2024-04-01 02:45", CPU: 650, Memory: 1354, Replicas: 3, ActiveProcesses: 13, IdleProcesses: 2, ListenQueue: 1}, - {Date: "2024-04-01 02:50", CPU: 700, Memory: 1364, Replicas: 4, ActiveProcesses: 14, IdleProcesses: 3, ListenQueue: 2}, - {Date: "2024-04-01 02:55", CPU: 750, Memory: 1374, Replicas: 5, ActiveProcesses: 10, IdleProcesses: 4, ListenQueue: 3}, - }, - }, nil -} diff --git a/metrics.proto b/metrics.proto index 91d7353..1176026 100644 --- a/metrics.proto +++ b/metrics.proto @@ -4,31 +4,10 @@ syntax = "proto3"; package workflow; import "google/protobuf/timestamp.proto"; -import "google/protobuf/duration.proto"; option go_package = "./pb"; service metrics { - // The total number of HTTP and HTTPS requests for all HTTP methods across all environments. - rpc ClusterRequests (ClusterRequestsRequest) returns (ClusterRequestsResponse) {} - // The number of HTTP codes that originate from all load balancers. - rpc ClusterResponseCodes (ClusterResponseCodesRequest) returns (ClusterResponseCodesResponse) {} - // The total number of HTTP and HTTPS requests for all HTTP methods for an environment. - rpc Requests (RequestsRequest) returns (RequestsResponse) {} - // The number of HTTP codes that originate from an environments load balancer. - rpc ResponseCodes (ResponseCodesRequest) returns (ResponseCodesResponse) {} - // The time elapsed after the request leaves the load balancer until a response from the target is received. - rpc ResponseTimes (ResponseTimesRequest) returns (ResponseTimesResponse) {} - // The percentage of all cacheable requests for which CDN served the content from its cache. - rpc CacheRatio (CacheRatioRequest) returns (CacheRatioResponse) {} - // This error indicates a communication problem between CDN and the origin. - rpc OriginErrors (OriginErrorsRequest) returns (OriginErrorsResponse) {} - // The number of requests which were sent to invalidate the CDN. - rpc InvalidationRequests (InvalidationRequestsRequest) returns (InvalidationRequestsResponse) {} - // The number of paths which were invalidated by requests. - rpc InvalidationPaths (InvalidationPathsRequest) returns (InvalidationPathsResponse) {} - // The amount of resources used by an environment. - rpc ResourceUsage (ResourceUsageRequest) returns (ResourceUsageResponse) {} // A list of all available metrics. rpc AvailableMetrics (AvailableMetricsRequest) returns (AvailableMetricsResponse) {} // Metric values for a given absolute range. @@ -91,235 +70,3 @@ message MetricValue { google.protobuf.Timestamp timestamp = 1; // The timestamp of the metric.. int64 value = 2; // The value of the metric at the given timestamp. } - -/** - * Input for ClusterRequests. - */ -message ClusterRequestsRequest {} - -/** - * Output for ClusterRequests. - */ -message ClusterRequestsResponse { - repeated MetricClusterRequests Metrics = 1; // List of metrics. -} - -/** - * Metric which contains total request for a single date for all cluster environments. - */ -message MetricClusterRequests { - string Date = 1; // Date which the metric dat a is grouped by. - int64 Requests = 2; // Requests across all environments. -} - -/** - * Input for ClusterResponseCodes. - */ -message ClusterResponseCodesRequest {} - -/** - * Output for ClusterResponseCodes. - */ -message ClusterResponseCodesResponse { - repeated MetricClusterResponseCodes Metrics = 1; // List of metrics. -} - -/** - * Metric which contains total response codes for a single date. - */ -message MetricClusterResponseCodes { - string Date = 1; // Date which the metric dat a is grouped by. - // https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status - int64 Server = 2; // Error codes were returned from the server. - int64 Client = 3; // Client related codes. - int64 Redirection = 4; // Codes which related to redirects. - int64 Successful = 5; // Codes which relate to successful responses. -} - -/** - * Input for Requests. - */ -message RequestsRequest { - string Environment = 1; // Name of the environment. -} - -/** - * Output for Requests. - */ -message RequestsResponse { - repeated MetricRequests Metrics = 1; // List of returned metrics. -} - -/** - * Metric which contains total request for a single date on a single environment. - */ -message MetricRequests { - string Date = 1; // Date which the metric dat a is grouped by. - int64 Requests = 2; -} - -/** - * Input for ResponseCodes. - */ -message ResponseCodesRequest { - string Environment = 1; // Name of the environment. -} - -/** - * Output for ResponseCodes. - */ -message ResponseCodesResponse { - repeated MetricResponseCodes Metrics = 1; // List of returned metrics. -} - -/** - * Metric which contains total response codes for a single date on a single environment. - */ -message MetricResponseCodes { - string Date = 1; // Date which the metric dat a is grouped by. - // https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status - int64 Server = 2; // Error codes were returned from the server. - int64 Client = 3; // Client related codes. - int64 Redirection = 4; // Codes which related to redirects. - int64 Successful = 5; // Codes which relate to successful responses. -} - -/** - * Input for ResponseTimes. - */ -message ResponseTimesRequest { - string Environment = 1; // Name of the environment. -} - -/** - * Output for ResponseTimes. - */ -message ResponseTimesResponse { - repeated MetricResponseTimes Metrics = 1; // List of returned metrics. -} - -/** - * Metric which contains total response times for a single date on a single environment. - */ -message MetricResponseTimes { - string Date = 1; // Date which the metric dat a is grouped by. - int64 Average = 2; // Average response time. - int64 P95 = 3; // 95th percentile. - int64 P99 = 4; // 99th percentile -} - -/** - * Input for CacheRatio. - */ -message CacheRatioRequest { - string Environment = 1; // Name of the environment. -} - -/** - * Output for CacheRatio. - */ -message CacheRatioResponse { - repeated MetricCacheRatio Metrics = 1; // List of returned metrics. -} - -/** - * Metric which contains cache ratio for a single date on a single environment. - */ -message MetricCacheRatio { - string Date = 1; // Date which the metric dat a is grouped by. - int64 Hit = 2; // Percentage of cached responses. - int64 Miss = 3; // Percentage of non cached responses. -} - -/** - * Input for OriginErrors. - */ -message OriginErrorsRequest { - string Environment = 1; // Name of the environment. -} - -/** - * Output for OriginErrors. - */ -message OriginErrorsResponse { - repeated MetricOriginErrors Metrics = 1; // List of returned metrics. -} - -/** - * Metric which contains origin errors for a single date on a single environment. - */ -message MetricOriginErrors { - string Date = 1; // Date which the metric dat a is grouped by. - int64 Errors = 2; // Number of origin errors. -} - -/** - * Input for InvalidationRequests. - */ -message InvalidationRequestsRequest { - string Environment = 1; // Name of the environment. -} - -/** - * Output for InvalidationRequests. - */ -message InvalidationRequestsResponse { - repeated MetricInvalidationRequests Metrics = 1; // List of returned metrics. -} - -/** - * Metric which contains invalidation requests for a single date on a single environment. - */ -message MetricInvalidationRequests { - string Date = 1; // Date which the metric dat a is grouped by. - int64 Requests = 2; // Number of invalidation requests. -} - -/** - * Input for InvalidationPaths. - */ -message InvalidationPathsRequest { - string Environment = 1; // Name of the environment. -} - -/** - * Output for InvalidationPaths. - */ -message InvalidationPathsResponse { - repeated MetricInvalidationPaths Metrics = 1; // List of returned metrics. -} - -/** - * Metric which contains invalidation paths for a single date on a single environment. - */ -message MetricInvalidationPaths { - string Date = 1; // Date which the metric dat a is grouped by. - int64 Paths = 2; // Number of paths that were invalidated. -} - -/** - * Input for ResourceUsage. - */ -message ResourceUsageRequest { - string Environment = 1; // Name of the environment. -} - -/** - * Output for ResourceUsage. - */ -message ResourceUsageResponse { - repeated MetricResourceUsage Metrics = 1; // List of returned metrics. -} - -/** - * Metric which contains resource usage for a single date on a single environment. - */ -message MetricResourceUsage { - string Date = 1; // Date which the metric dat a is grouped by. - int64 CPU = 2; // Amount of CPU being utilised. - int64 Memory = 3; // Amount of memory being utilised. - int64 Replicas = 4; // Number of replicas. - int64 ActiveProcesses = 5; // Number of active processes. - int64 IdleProcesses = 6; // Number of idle processes. - int64 ListenQueue = 7; // Number of requests that are queued and cannot be processed. -} diff --git a/pb/metrics.pb.go b/pb/metrics.pb.go index 624a366..71c3cd3 100644 --- a/pb/metrics.pb.go +++ b/pb/metrics.pb.go @@ -11,7 +11,6 @@ package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" @@ -427,2406 +426,130 @@ func (x *MetricValue) GetValue() int64 { return 0 } -// * -// Input for ClusterRequests. -type ClusterRequestsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClusterRequestsRequest) Reset() { - *x = ClusterRequestsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClusterRequestsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClusterRequestsRequest) ProtoMessage() {} - -func (x *ClusterRequestsRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClusterRequestsRequest.ProtoReflect.Descriptor instead. -func (*ClusterRequestsRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{6} -} - -// * -// Output for ClusterRequests. -type ClusterRequestsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricClusterRequests `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of metrics. -} - -func (x *ClusterRequestsResponse) Reset() { - *x = ClusterRequestsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClusterRequestsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClusterRequestsResponse) ProtoMessage() {} - -func (x *ClusterRequestsResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClusterRequestsResponse.ProtoReflect.Descriptor instead. -func (*ClusterRequestsResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{7} -} - -func (x *ClusterRequestsResponse) GetMetrics() []*MetricClusterRequests { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains total request for a single date for all cluster environments. -type MetricClusterRequests struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - Requests int64 `protobuf:"varint,2,opt,name=Requests,proto3" json:"Requests,omitempty"` // Requests across all environments. -} - -func (x *MetricClusterRequests) Reset() { - *x = MetricClusterRequests{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricClusterRequests) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricClusterRequests) ProtoMessage() {} - -func (x *MetricClusterRequests) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricClusterRequests.ProtoReflect.Descriptor instead. -func (*MetricClusterRequests) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{8} -} - -func (x *MetricClusterRequests) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricClusterRequests) GetRequests() int64 { - if x != nil { - return x.Requests - } - return 0 -} - -// * -// Input for ClusterResponseCodes. -type ClusterResponseCodesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClusterResponseCodesRequest) Reset() { - *x = ClusterResponseCodesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClusterResponseCodesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClusterResponseCodesRequest) ProtoMessage() {} - -func (x *ClusterResponseCodesRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClusterResponseCodesRequest.ProtoReflect.Descriptor instead. -func (*ClusterResponseCodesRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{9} -} - -// * -// Output for ClusterResponseCodes. -type ClusterResponseCodesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricClusterResponseCodes `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of metrics. -} - -func (x *ClusterResponseCodesResponse) Reset() { - *x = ClusterResponseCodesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClusterResponseCodesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClusterResponseCodesResponse) ProtoMessage() {} - -func (x *ClusterResponseCodesResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClusterResponseCodesResponse.ProtoReflect.Descriptor instead. -func (*ClusterResponseCodesResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{10} -} - -func (x *ClusterResponseCodesResponse) GetMetrics() []*MetricClusterResponseCodes { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains total response codes for a single date. -type MetricClusterResponseCodes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - // https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status - Server int64 `protobuf:"varint,2,opt,name=Server,proto3" json:"Server,omitempty"` // Error codes were returned from the server. - Client int64 `protobuf:"varint,3,opt,name=Client,proto3" json:"Client,omitempty"` // Client related codes. - Redirection int64 `protobuf:"varint,4,opt,name=Redirection,proto3" json:"Redirection,omitempty"` // Codes which related to redirects. - Successful int64 `protobuf:"varint,5,opt,name=Successful,proto3" json:"Successful,omitempty"` // Codes which relate to successful responses. -} - -func (x *MetricClusterResponseCodes) Reset() { - *x = MetricClusterResponseCodes{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricClusterResponseCodes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricClusterResponseCodes) ProtoMessage() {} - -func (x *MetricClusterResponseCodes) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricClusterResponseCodes.ProtoReflect.Descriptor instead. -func (*MetricClusterResponseCodes) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{11} -} - -func (x *MetricClusterResponseCodes) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricClusterResponseCodes) GetServer() int64 { - if x != nil { - return x.Server - } - return 0 -} - -func (x *MetricClusterResponseCodes) GetClient() int64 { - if x != nil { - return x.Client - } - return 0 -} - -func (x *MetricClusterResponseCodes) GetRedirection() int64 { - if x != nil { - return x.Redirection - } - return 0 -} - -func (x *MetricClusterResponseCodes) GetSuccessful() int64 { - if x != nil { - return x.Successful - } - return 0 -} - -// * -// Input for Requests. -type RequestsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment. -} - -func (x *RequestsRequest) Reset() { - *x = RequestsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestsRequest) ProtoMessage() {} - -func (x *RequestsRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestsRequest.ProtoReflect.Descriptor instead. -func (*RequestsRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{12} -} - -func (x *RequestsRequest) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -// * -// Output for Requests. -type RequestsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricRequests `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of returned metrics. -} - -func (x *RequestsResponse) Reset() { - *x = RequestsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestsResponse) ProtoMessage() {} - -func (x *RequestsResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RequestsResponse.ProtoReflect.Descriptor instead. -func (*RequestsResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{13} -} - -func (x *RequestsResponse) GetMetrics() []*MetricRequests { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains total request for a single date on a single environment. -type MetricRequests struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - Requests int64 `protobuf:"varint,2,opt,name=Requests,proto3" json:"Requests,omitempty"` -} - -func (x *MetricRequests) Reset() { - *x = MetricRequests{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricRequests) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricRequests) ProtoMessage() {} - -func (x *MetricRequests) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricRequests.ProtoReflect.Descriptor instead. -func (*MetricRequests) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{14} -} - -func (x *MetricRequests) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricRequests) GetRequests() int64 { - if x != nil { - return x.Requests - } - return 0 -} - -// * -// Input for ResponseCodes. -type ResponseCodesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment. -} - -func (x *ResponseCodesRequest) Reset() { - *x = ResponseCodesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResponseCodesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResponseCodesRequest) ProtoMessage() {} - -func (x *ResponseCodesRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResponseCodesRequest.ProtoReflect.Descriptor instead. -func (*ResponseCodesRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{15} -} - -func (x *ResponseCodesRequest) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -// * -// Output for ResponseCodes. -type ResponseCodesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricResponseCodes `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of returned metrics. -} - -func (x *ResponseCodesResponse) Reset() { - *x = ResponseCodesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResponseCodesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResponseCodesResponse) ProtoMessage() {} - -func (x *ResponseCodesResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResponseCodesResponse.ProtoReflect.Descriptor instead. -func (*ResponseCodesResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{16} -} - -func (x *ResponseCodesResponse) GetMetrics() []*MetricResponseCodes { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains total response codes for a single date on a single environment. -type MetricResponseCodes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - // https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status - Server int64 `protobuf:"varint,2,opt,name=Server,proto3" json:"Server,omitempty"` // Error codes were returned from the server. - Client int64 `protobuf:"varint,3,opt,name=Client,proto3" json:"Client,omitempty"` // Client related codes. - Redirection int64 `protobuf:"varint,4,opt,name=Redirection,proto3" json:"Redirection,omitempty"` // Codes which related to redirects. - Successful int64 `protobuf:"varint,5,opt,name=Successful,proto3" json:"Successful,omitempty"` // Codes which relate to successful responses. -} - -func (x *MetricResponseCodes) Reset() { - *x = MetricResponseCodes{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricResponseCodes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricResponseCodes) ProtoMessage() {} - -func (x *MetricResponseCodes) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricResponseCodes.ProtoReflect.Descriptor instead. -func (*MetricResponseCodes) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{17} -} - -func (x *MetricResponseCodes) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricResponseCodes) GetServer() int64 { - if x != nil { - return x.Server - } - return 0 -} - -func (x *MetricResponseCodes) GetClient() int64 { - if x != nil { - return x.Client - } - return 0 -} - -func (x *MetricResponseCodes) GetRedirection() int64 { - if x != nil { - return x.Redirection - } - return 0 -} - -func (x *MetricResponseCodes) GetSuccessful() int64 { - if x != nil { - return x.Successful - } - return 0 -} - -// * -// Input for ResponseTimes. -type ResponseTimesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment. -} - -func (x *ResponseTimesRequest) Reset() { - *x = ResponseTimesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResponseTimesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResponseTimesRequest) ProtoMessage() {} - -func (x *ResponseTimesRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResponseTimesRequest.ProtoReflect.Descriptor instead. -func (*ResponseTimesRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{18} -} - -func (x *ResponseTimesRequest) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -// * -// Output for ResponseTimes. -type ResponseTimesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricResponseTimes `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of returned metrics. -} - -func (x *ResponseTimesResponse) Reset() { - *x = ResponseTimesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResponseTimesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResponseTimesResponse) ProtoMessage() {} - -func (x *ResponseTimesResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResponseTimesResponse.ProtoReflect.Descriptor instead. -func (*ResponseTimesResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{19} -} - -func (x *ResponseTimesResponse) GetMetrics() []*MetricResponseTimes { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains total response times for a single date on a single environment. -type MetricResponseTimes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - Average int64 `protobuf:"varint,2,opt,name=Average,proto3" json:"Average,omitempty"` // Average response time. - P95 int64 `protobuf:"varint,3,opt,name=P95,proto3" json:"P95,omitempty"` // 95th percentile. - P99 int64 `protobuf:"varint,4,opt,name=P99,proto3" json:"P99,omitempty"` // 99th percentile -} - -func (x *MetricResponseTimes) Reset() { - *x = MetricResponseTimes{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricResponseTimes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricResponseTimes) ProtoMessage() {} - -func (x *MetricResponseTimes) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricResponseTimes.ProtoReflect.Descriptor instead. -func (*MetricResponseTimes) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{20} -} - -func (x *MetricResponseTimes) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricResponseTimes) GetAverage() int64 { - if x != nil { - return x.Average - } - return 0 -} - -func (x *MetricResponseTimes) GetP95() int64 { - if x != nil { - return x.P95 - } - return 0 -} - -func (x *MetricResponseTimes) GetP99() int64 { - if x != nil { - return x.P99 - } - return 0 -} - -// * -// Input for CacheRatio. -type CacheRatioRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment. -} - -func (x *CacheRatioRequest) Reset() { - *x = CacheRatioRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CacheRatioRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CacheRatioRequest) ProtoMessage() {} - -func (x *CacheRatioRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CacheRatioRequest.ProtoReflect.Descriptor instead. -func (*CacheRatioRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{21} -} - -func (x *CacheRatioRequest) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -// * -// Output for CacheRatio. -type CacheRatioResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricCacheRatio `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of returned metrics. -} - -func (x *CacheRatioResponse) Reset() { - *x = CacheRatioResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CacheRatioResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CacheRatioResponse) ProtoMessage() {} - -func (x *CacheRatioResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CacheRatioResponse.ProtoReflect.Descriptor instead. -func (*CacheRatioResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{22} -} - -func (x *CacheRatioResponse) GetMetrics() []*MetricCacheRatio { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains cache ratio for a single date on a single environment. -type MetricCacheRatio struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - Hit int64 `protobuf:"varint,2,opt,name=Hit,proto3" json:"Hit,omitempty"` // Percentage of cached responses. - Miss int64 `protobuf:"varint,3,opt,name=Miss,proto3" json:"Miss,omitempty"` // Percentage of non cached responses. -} - -func (x *MetricCacheRatio) Reset() { - *x = MetricCacheRatio{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricCacheRatio) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricCacheRatio) ProtoMessage() {} - -func (x *MetricCacheRatio) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricCacheRatio.ProtoReflect.Descriptor instead. -func (*MetricCacheRatio) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{23} -} - -func (x *MetricCacheRatio) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricCacheRatio) GetHit() int64 { - if x != nil { - return x.Hit - } - return 0 -} - -func (x *MetricCacheRatio) GetMiss() int64 { - if x != nil { - return x.Miss - } - return 0 -} - -// * -// Input for OriginErrors. -type OriginErrorsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment. -} - -func (x *OriginErrorsRequest) Reset() { - *x = OriginErrorsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OriginErrorsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OriginErrorsRequest) ProtoMessage() {} - -func (x *OriginErrorsRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OriginErrorsRequest.ProtoReflect.Descriptor instead. -func (*OriginErrorsRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{24} -} - -func (x *OriginErrorsRequest) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -// * -// Output for OriginErrors. -type OriginErrorsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricOriginErrors `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of returned metrics. -} - -func (x *OriginErrorsResponse) Reset() { - *x = OriginErrorsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OriginErrorsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OriginErrorsResponse) ProtoMessage() {} - -func (x *OriginErrorsResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OriginErrorsResponse.ProtoReflect.Descriptor instead. -func (*OriginErrorsResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{25} -} - -func (x *OriginErrorsResponse) GetMetrics() []*MetricOriginErrors { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains origin errors for a single date on a single environment. -type MetricOriginErrors struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - Errors int64 `protobuf:"varint,2,opt,name=Errors,proto3" json:"Errors,omitempty"` // Number of origin errors. -} - -func (x *MetricOriginErrors) Reset() { - *x = MetricOriginErrors{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricOriginErrors) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricOriginErrors) ProtoMessage() {} - -func (x *MetricOriginErrors) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricOriginErrors.ProtoReflect.Descriptor instead. -func (*MetricOriginErrors) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{26} -} - -func (x *MetricOriginErrors) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricOriginErrors) GetErrors() int64 { - if x != nil { - return x.Errors - } - return 0 -} - -// * -// Input for InvalidationRequests. -type InvalidationRequestsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment. -} - -func (x *InvalidationRequestsRequest) Reset() { - *x = InvalidationRequestsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidationRequestsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidationRequestsRequest) ProtoMessage() {} - -func (x *InvalidationRequestsRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InvalidationRequestsRequest.ProtoReflect.Descriptor instead. -func (*InvalidationRequestsRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{27} -} - -func (x *InvalidationRequestsRequest) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -// * -// Output for InvalidationRequests. -type InvalidationRequestsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricInvalidationRequests `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of returned metrics. -} - -func (x *InvalidationRequestsResponse) Reset() { - *x = InvalidationRequestsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidationRequestsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidationRequestsResponse) ProtoMessage() {} - -func (x *InvalidationRequestsResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InvalidationRequestsResponse.ProtoReflect.Descriptor instead. -func (*InvalidationRequestsResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{28} -} - -func (x *InvalidationRequestsResponse) GetMetrics() []*MetricInvalidationRequests { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains invalidation requests for a single date on a single environment. -type MetricInvalidationRequests struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - Requests int64 `protobuf:"varint,2,opt,name=Requests,proto3" json:"Requests,omitempty"` // Number of invalidation requests. -} - -func (x *MetricInvalidationRequests) Reset() { - *x = MetricInvalidationRequests{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricInvalidationRequests) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricInvalidationRequests) ProtoMessage() {} - -func (x *MetricInvalidationRequests) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricInvalidationRequests.ProtoReflect.Descriptor instead. -func (*MetricInvalidationRequests) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{29} -} - -func (x *MetricInvalidationRequests) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricInvalidationRequests) GetRequests() int64 { - if x != nil { - return x.Requests - } - return 0 -} - -// * -// Input for InvalidationPaths. -type InvalidationPathsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment. -} - -func (x *InvalidationPathsRequest) Reset() { - *x = InvalidationPathsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidationPathsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidationPathsRequest) ProtoMessage() {} - -func (x *InvalidationPathsRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InvalidationPathsRequest.ProtoReflect.Descriptor instead. -func (*InvalidationPathsRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{30} -} - -func (x *InvalidationPathsRequest) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -// * -// Output for InvalidationPaths. -type InvalidationPathsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricInvalidationPaths `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of returned metrics. -} - -func (x *InvalidationPathsResponse) Reset() { - *x = InvalidationPathsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidationPathsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidationPathsResponse) ProtoMessage() {} - -func (x *InvalidationPathsResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InvalidationPathsResponse.ProtoReflect.Descriptor instead. -func (*InvalidationPathsResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{31} -} - -func (x *InvalidationPathsResponse) GetMetrics() []*MetricInvalidationPaths { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains invalidation paths for a single date on a single environment. -type MetricInvalidationPaths struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - Paths int64 `protobuf:"varint,2,opt,name=Paths,proto3" json:"Paths,omitempty"` // Number of paths that were invalidated. -} - -func (x *MetricInvalidationPaths) Reset() { - *x = MetricInvalidationPaths{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricInvalidationPaths) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricInvalidationPaths) ProtoMessage() {} - -func (x *MetricInvalidationPaths) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricInvalidationPaths.ProtoReflect.Descriptor instead. -func (*MetricInvalidationPaths) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{32} -} - -func (x *MetricInvalidationPaths) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricInvalidationPaths) GetPaths() int64 { - if x != nil { - return x.Paths - } - return 0 -} - -// * -// Input for ResourceUsage. -type ResourceUsageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Environment string `protobuf:"bytes,1,opt,name=Environment,proto3" json:"Environment,omitempty"` // Name of the environment. -} - -func (x *ResourceUsageRequest) Reset() { - *x = ResourceUsageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceUsageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceUsageRequest) ProtoMessage() {} - -func (x *ResourceUsageRequest) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResourceUsageRequest.ProtoReflect.Descriptor instead. -func (*ResourceUsageRequest) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{33} -} - -func (x *ResourceUsageRequest) GetEnvironment() string { - if x != nil { - return x.Environment - } - return "" -} - -// * -// Output for ResourceUsage. -type ResourceUsageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metrics []*MetricResourceUsage `protobuf:"bytes,1,rep,name=Metrics,proto3" json:"Metrics,omitempty"` // List of returned metrics. -} - -func (x *ResourceUsageResponse) Reset() { - *x = ResourceUsageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceUsageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceUsageResponse) ProtoMessage() {} - -func (x *ResourceUsageResponse) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResourceUsageResponse.ProtoReflect.Descriptor instead. -func (*ResourceUsageResponse) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{34} -} - -func (x *ResourceUsageResponse) GetMetrics() []*MetricResourceUsage { - if x != nil { - return x.Metrics - } - return nil -} - -// * -// Metric which contains resource usage for a single date on a single environment. -type MetricResourceUsage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Date string `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` // Date which the metric dat a is grouped by. - CPU int64 `protobuf:"varint,2,opt,name=CPU,proto3" json:"CPU,omitempty"` // Amount of CPU being utilised. - Memory int64 `protobuf:"varint,3,opt,name=Memory,proto3" json:"Memory,omitempty"` // Amount of memory being utilised. - Replicas int64 `protobuf:"varint,4,opt,name=Replicas,proto3" json:"Replicas,omitempty"` // Number of replicas. - ActiveProcesses int64 `protobuf:"varint,5,opt,name=ActiveProcesses,proto3" json:"ActiveProcesses,omitempty"` // Number of active processes. - IdleProcesses int64 `protobuf:"varint,6,opt,name=IdleProcesses,proto3" json:"IdleProcesses,omitempty"` // Number of idle processes. - ListenQueue int64 `protobuf:"varint,7,opt,name=ListenQueue,proto3" json:"ListenQueue,omitempty"` // Number of requests that are queued and cannot be processed. -} - -func (x *MetricResourceUsage) Reset() { - *x = MetricResourceUsage{} - if protoimpl.UnsafeEnabled { - mi := &file_metrics_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MetricResourceUsage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MetricResourceUsage) ProtoMessage() {} - -func (x *MetricResourceUsage) ProtoReflect() protoreflect.Message { - mi := &file_metrics_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MetricResourceUsage.ProtoReflect.Descriptor instead. -func (*MetricResourceUsage) Descriptor() ([]byte, []int) { - return file_metrics_proto_rawDescGZIP(), []int{35} -} - -func (x *MetricResourceUsage) GetDate() string { - if x != nil { - return x.Date - } - return "" -} - -func (x *MetricResourceUsage) GetCPU() int64 { - if x != nil { - return x.CPU - } - return 0 -} - -func (x *MetricResourceUsage) GetMemory() int64 { - if x != nil { - return x.Memory - } - return 0 -} - -func (x *MetricResourceUsage) GetReplicas() int64 { - if x != nil { - return x.Replicas - } - return 0 -} - -func (x *MetricResourceUsage) GetActiveProcesses() int64 { - if x != nil { - return x.ActiveProcesses - } - return 0 -} - -func (x *MetricResourceUsage) GetIdleProcesses() int64 { - if x != nil { - return x.IdleProcesses - } - return 0 -} - -func (x *MetricResourceUsage) GetListenQueue() int64 { - if x != nil { - return x.ListenQueue - } - return 0 -} - -var File_metrics_proto protoreflect.FileDescriptor - -var file_metrics_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7a, 0x0a, 0x17, 0x41, 0x76, - 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x25, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x6e, 0x76, 0x69, 0x72, - 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x50, 0x0a, 0x18, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, - 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x50, 0x0a, 0x10, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, - 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x81, 0x02, 0x0a, 0x14, 0x41, - 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x14, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, - 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x88, 0x01, 0x01, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x39, 0x0a, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x0e, - 0x0a, 0x0c, 0x5f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x48, - 0x0a, 0x15, 0x41, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x5d, 0x0a, 0x0b, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x54, 0x0a, 0x17, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x07, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x47, 0x0a, 0x15, 0x4d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x22, 0x1d, 0x0a, 0x1b, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x5e, 0x0a, 0x1c, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3e, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, - 0xa2, 0x01, 0x0a, 0x1a, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, - 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x43, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, - 0x75, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x66, 0x75, 0x6c, 0x22, 0x33, 0x0a, 0x0f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, - 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x10, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, - 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x73, 0x22, 0x40, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x22, 0x38, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, - 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, - 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x50, 0x0a, - 0x15, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, - 0x9b, 0x01, 0x0a, 0x13, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x52, - 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0b, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, - 0x0a, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0a, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x22, 0x38, 0x0a, - 0x14, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, 0x76, 0x69, - 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x50, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x37, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x52, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x67, 0x0a, 0x13, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x44, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x41, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x50, 0x39, 0x35, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x50, 0x39, 0x35, - 0x12, 0x10, 0x0a, 0x03, 0x50, 0x39, 0x39, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x50, - 0x39, 0x39, 0x22, 0x35, 0x0a, 0x11, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, - 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x4a, 0x0a, 0x12, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x34, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x52, 0x07, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x4c, 0x0a, 0x10, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x43, - 0x61, 0x63, 0x68, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x48, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x48, 0x69, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x4d, 0x69, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x4d, - 0x69, 0x73, 0x73, 0x22, 0x37, 0x0a, 0x13, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x4e, 0x0a, 0x14, - 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x73, 0x52, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x40, 0x0a, 0x12, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0x3f, - 0x0a, 0x1b, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, - 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, - 0x5e, 0x0a, 0x1c, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3e, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, - 0x4c, 0x0a, 0x1a, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x12, 0x0a, - 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x08, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x3c, 0x0a, - 0x18, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, - 0x68, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x6e, 0x76, - 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x58, 0x0a, 0x19, 0x49, - 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x73, 0x52, 0x07, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x43, 0x0a, 0x17, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x49, - 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x44, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x61, 0x74, 0x68, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x05, 0x50, 0x61, 0x74, 0x68, 0x73, 0x22, 0x38, 0x0a, 0x14, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x50, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, - 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x07, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0xe1, 0x01, 0x0a, 0x13, 0x4d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, - 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x50, 0x55, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x03, 0x43, 0x50, 0x55, 0x12, 0x16, 0x0a, 0x06, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, - 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x49, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x49, 0x64, 0x6c, 0x65, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x4c, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x2a, 0x54, 0x0a, 0x0a, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x45, 0x54, 0x52, - 0x49, 0x43, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, - 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x12, - 0x0f, 0x0a, 0x0b, 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, - 0x32, 0xa3, 0x08, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x58, 0x0a, 0x0f, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, - 0x20, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x25, - 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x43, 0x0a, 0x08, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x19, 0x2e, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0a, - 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x1b, 0x2e, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x1d, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x14, 0x49, 0x6e, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x12, 0x25, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x49, 0x6e, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x5e, 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x22, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, - 0x74, 0x68, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x10, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, - 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x21, 0x2e, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x77, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, - 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x41, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, - 0x6e, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, - 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, - 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_metrics_proto_rawDescOnce sync.Once - file_metrics_proto_rawDescData = file_metrics_proto_rawDesc -) - -func file_metrics_proto_rawDescGZIP() []byte { - file_metrics_proto_rawDescOnce.Do(func() { - file_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_metrics_proto_rawDescData) - }) - return file_metrics_proto_rawDescData -} - -var file_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 36) -var file_metrics_proto_goTypes = []interface{}{ - (MetricType)(0), // 0: workflow.MetricType - (*AvailableMetricsRequest)(nil), // 1: workflow.AvailableMetricsRequest - (*AvailableMetricsResponse)(nil), // 2: workflow.AvailableMetricsResponse - (*MetricDefinition)(nil), // 3: workflow.MetricDefinition - (*AbsoluteRangeRequest)(nil), // 4: workflow.AbsoluteRangeRequest - (*AbsoluteRangeResponse)(nil), // 5: workflow.AbsoluteRangeResponse - (*MetricValue)(nil), // 6: workflow.MetricValue - (*ClusterRequestsRequest)(nil), // 7: workflow.ClusterRequestsRequest - (*ClusterRequestsResponse)(nil), // 8: workflow.ClusterRequestsResponse - (*MetricClusterRequests)(nil), // 9: workflow.MetricClusterRequests - (*ClusterResponseCodesRequest)(nil), // 10: workflow.ClusterResponseCodesRequest - (*ClusterResponseCodesResponse)(nil), // 11: workflow.ClusterResponseCodesResponse - (*MetricClusterResponseCodes)(nil), // 12: workflow.MetricClusterResponseCodes - (*RequestsRequest)(nil), // 13: workflow.RequestsRequest - (*RequestsResponse)(nil), // 14: workflow.RequestsResponse - (*MetricRequests)(nil), // 15: workflow.MetricRequests - (*ResponseCodesRequest)(nil), // 16: workflow.ResponseCodesRequest - (*ResponseCodesResponse)(nil), // 17: workflow.ResponseCodesResponse - (*MetricResponseCodes)(nil), // 18: workflow.MetricResponseCodes - (*ResponseTimesRequest)(nil), // 19: workflow.ResponseTimesRequest - (*ResponseTimesResponse)(nil), // 20: workflow.ResponseTimesResponse - (*MetricResponseTimes)(nil), // 21: workflow.MetricResponseTimes - (*CacheRatioRequest)(nil), // 22: workflow.CacheRatioRequest - (*CacheRatioResponse)(nil), // 23: workflow.CacheRatioResponse - (*MetricCacheRatio)(nil), // 24: workflow.MetricCacheRatio - (*OriginErrorsRequest)(nil), // 25: workflow.OriginErrorsRequest - (*OriginErrorsResponse)(nil), // 26: workflow.OriginErrorsResponse - (*MetricOriginErrors)(nil), // 27: workflow.MetricOriginErrors - (*InvalidationRequestsRequest)(nil), // 28: workflow.InvalidationRequestsRequest - (*InvalidationRequestsResponse)(nil), // 29: workflow.InvalidationRequestsResponse - (*MetricInvalidationRequests)(nil), // 30: workflow.MetricInvalidationRequests - (*InvalidationPathsRequest)(nil), // 31: workflow.InvalidationPathsRequest - (*InvalidationPathsResponse)(nil), // 32: workflow.InvalidationPathsResponse - (*MetricInvalidationPaths)(nil), // 33: workflow.MetricInvalidationPaths - (*ResourceUsageRequest)(nil), // 34: workflow.ResourceUsageRequest - (*ResourceUsageResponse)(nil), // 35: workflow.ResourceUsageResponse - (*MetricResourceUsage)(nil), // 36: workflow.MetricResourceUsage - (*timestamppb.Timestamp)(nil), // 37: google.protobuf.Timestamp -} -var file_metrics_proto_depIdxs = []int32{ - 0, // 0: workflow.AvailableMetricsRequest.type:type_name -> workflow.MetricType - 3, // 1: workflow.AvailableMetricsResponse.metrics:type_name -> workflow.MetricDefinition - 0, // 2: workflow.MetricDefinition.type:type_name -> workflow.MetricType - 0, // 3: workflow.AbsoluteRangeRequest.type:type_name -> workflow.MetricType - 37, // 4: workflow.AbsoluteRangeRequest.start_time:type_name -> google.protobuf.Timestamp - 37, // 5: workflow.AbsoluteRangeRequest.end_time:type_name -> google.protobuf.Timestamp - 6, // 6: workflow.AbsoluteRangeResponse.metrics:type_name -> workflow.MetricValue - 37, // 7: workflow.MetricValue.timestamp:type_name -> google.protobuf.Timestamp - 9, // 8: workflow.ClusterRequestsResponse.Metrics:type_name -> workflow.MetricClusterRequests - 12, // 9: workflow.ClusterResponseCodesResponse.Metrics:type_name -> workflow.MetricClusterResponseCodes - 15, // 10: workflow.RequestsResponse.Metrics:type_name -> workflow.MetricRequests - 18, // 11: workflow.ResponseCodesResponse.Metrics:type_name -> workflow.MetricResponseCodes - 21, // 12: workflow.ResponseTimesResponse.Metrics:type_name -> workflow.MetricResponseTimes - 24, // 13: workflow.CacheRatioResponse.Metrics:type_name -> workflow.MetricCacheRatio - 27, // 14: workflow.OriginErrorsResponse.Metrics:type_name -> workflow.MetricOriginErrors - 30, // 15: workflow.InvalidationRequestsResponse.Metrics:type_name -> workflow.MetricInvalidationRequests - 33, // 16: workflow.InvalidationPathsResponse.Metrics:type_name -> workflow.MetricInvalidationPaths - 36, // 17: workflow.ResourceUsageResponse.Metrics:type_name -> workflow.MetricResourceUsage - 7, // 18: workflow.metrics.ClusterRequests:input_type -> workflow.ClusterRequestsRequest - 10, // 19: workflow.metrics.ClusterResponseCodes:input_type -> workflow.ClusterResponseCodesRequest - 13, // 20: workflow.metrics.Requests:input_type -> workflow.RequestsRequest - 16, // 21: workflow.metrics.ResponseCodes:input_type -> workflow.ResponseCodesRequest - 19, // 22: workflow.metrics.ResponseTimes:input_type -> workflow.ResponseTimesRequest - 22, // 23: workflow.metrics.CacheRatio:input_type -> workflow.CacheRatioRequest - 25, // 24: workflow.metrics.OriginErrors:input_type -> workflow.OriginErrorsRequest - 28, // 25: workflow.metrics.InvalidationRequests:input_type -> workflow.InvalidationRequestsRequest - 31, // 26: workflow.metrics.InvalidationPaths:input_type -> workflow.InvalidationPathsRequest - 34, // 27: workflow.metrics.ResourceUsage:input_type -> workflow.ResourceUsageRequest - 1, // 28: workflow.metrics.AvailableMetrics:input_type -> workflow.AvailableMetricsRequest - 4, // 29: workflow.metrics.AbsoluteRange:input_type -> workflow.AbsoluteRangeRequest - 8, // 30: workflow.metrics.ClusterRequests:output_type -> workflow.ClusterRequestsResponse - 11, // 31: workflow.metrics.ClusterResponseCodes:output_type -> workflow.ClusterResponseCodesResponse - 14, // 32: workflow.metrics.Requests:output_type -> workflow.RequestsResponse - 17, // 33: workflow.metrics.ResponseCodes:output_type -> workflow.ResponseCodesResponse - 20, // 34: workflow.metrics.ResponseTimes:output_type -> workflow.ResponseTimesResponse - 23, // 35: workflow.metrics.CacheRatio:output_type -> workflow.CacheRatioResponse - 26, // 36: workflow.metrics.OriginErrors:output_type -> workflow.OriginErrorsResponse - 29, // 37: workflow.metrics.InvalidationRequests:output_type -> workflow.InvalidationRequestsResponse - 32, // 38: workflow.metrics.InvalidationPaths:output_type -> workflow.InvalidationPathsResponse - 35, // 39: workflow.metrics.ResourceUsage:output_type -> workflow.ResourceUsageResponse - 2, // 40: workflow.metrics.AvailableMetrics:output_type -> workflow.AvailableMetricsResponse - 5, // 41: workflow.metrics.AbsoluteRange:output_type -> workflow.AbsoluteRangeResponse - 30, // [30:42] is the sub-list for method output_type - 18, // [18:30] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_metrics_proto_init() } -func file_metrics_proto_init() { - if File_metrics_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AvailableMetricsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AvailableMetricsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricDefinition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AbsoluteRangeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AbsoluteRangeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterRequestsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterRequestsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricClusterRequests); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterResponseCodesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterResponseCodesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricClusterResponseCodes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricRequests); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResponseCodesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResponseCodesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricResponseCodes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResponseTimesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResponseTimesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricResponseTimes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CacheRatioRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CacheRatioResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricCacheRatio); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OriginErrorsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OriginErrorsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricOriginErrors); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidationRequestsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidationRequestsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricInvalidationRequests); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_metrics_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidationPathsRequest); i { +var File_metrics_proto protoreflect.FileDescriptor + +var file_metrics_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7a, 0x0a, 0x17, 0x41, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x25, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x6e, 0x76, 0x69, 0x72, + 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x50, 0x0a, 0x18, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x34, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x50, 0x0a, 0x10, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, + 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x81, 0x02, 0x0a, 0x14, 0x41, + 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x14, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, + 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x88, 0x01, 0x01, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x39, 0x0a, 0x0a, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x0e, + 0x0a, 0x0c, 0x5f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x48, + 0x0a, 0x15, 0x41, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x22, 0x5d, 0x0a, 0x0b, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x54, 0x0a, 0x0a, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x45, 0x54, 0x52, 0x49, 0x43, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, + 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, + 0x45, 0x4e, 0x56, 0x49, 0x52, 0x4f, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x32, 0xba, 0x01, + 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x5b, 0x0a, 0x10, 0x41, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x21, 0x2e, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0d, 0x41, 0x62, 0x73, 0x6f, 0x6c, 0x75, + 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x2e, 0x41, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x2e, 0x41, 0x62, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_metrics_proto_rawDescOnce sync.Once + file_metrics_proto_rawDescData = file_metrics_proto_rawDesc +) + +func file_metrics_proto_rawDescGZIP() []byte { + file_metrics_proto_rawDescOnce.Do(func() { + file_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_metrics_proto_rawDescData) + }) + return file_metrics_proto_rawDescData +} + +var file_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_metrics_proto_goTypes = []interface{}{ + (MetricType)(0), // 0: workflow.MetricType + (*AvailableMetricsRequest)(nil), // 1: workflow.AvailableMetricsRequest + (*AvailableMetricsResponse)(nil), // 2: workflow.AvailableMetricsResponse + (*MetricDefinition)(nil), // 3: workflow.MetricDefinition + (*AbsoluteRangeRequest)(nil), // 4: workflow.AbsoluteRangeRequest + (*AbsoluteRangeResponse)(nil), // 5: workflow.AbsoluteRangeResponse + (*MetricValue)(nil), // 6: workflow.MetricValue + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp +} +var file_metrics_proto_depIdxs = []int32{ + 0, // 0: workflow.AvailableMetricsRequest.type:type_name -> workflow.MetricType + 3, // 1: workflow.AvailableMetricsResponse.metrics:type_name -> workflow.MetricDefinition + 0, // 2: workflow.MetricDefinition.type:type_name -> workflow.MetricType + 0, // 3: workflow.AbsoluteRangeRequest.type:type_name -> workflow.MetricType + 7, // 4: workflow.AbsoluteRangeRequest.start_time:type_name -> google.protobuf.Timestamp + 7, // 5: workflow.AbsoluteRangeRequest.end_time:type_name -> google.protobuf.Timestamp + 6, // 6: workflow.AbsoluteRangeResponse.metrics:type_name -> workflow.MetricValue + 7, // 7: workflow.MetricValue.timestamp:type_name -> google.protobuf.Timestamp + 1, // 8: workflow.metrics.AvailableMetrics:input_type -> workflow.AvailableMetricsRequest + 4, // 9: workflow.metrics.AbsoluteRange:input_type -> workflow.AbsoluteRangeRequest + 2, // 10: workflow.metrics.AvailableMetrics:output_type -> workflow.AvailableMetricsResponse + 5, // 11: workflow.metrics.AbsoluteRange:output_type -> workflow.AbsoluteRangeResponse + 10, // [10:12] is the sub-list for method output_type + 8, // [8:10] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_metrics_proto_init() } +func file_metrics_proto_init() { + if File_metrics_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AvailableMetricsRequest); i { case 0: return &v.state case 1: @@ -2837,8 +560,8 @@ func file_metrics_proto_init() { return nil } } - file_metrics_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidationPathsResponse); i { + file_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AvailableMetricsResponse); i { case 0: return &v.state case 1: @@ -2849,8 +572,8 @@ func file_metrics_proto_init() { return nil } } - file_metrics_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricInvalidationPaths); i { + file_metrics_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetricDefinition); i { case 0: return &v.state case 1: @@ -2861,8 +584,8 @@ func file_metrics_proto_init() { return nil } } - file_metrics_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceUsageRequest); i { + file_metrics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AbsoluteRangeRequest); i { case 0: return &v.state case 1: @@ -2873,8 +596,8 @@ func file_metrics_proto_init() { return nil } } - file_metrics_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceUsageResponse); i { + file_metrics_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AbsoluteRangeResponse); i { case 0: return &v.state case 1: @@ -2885,8 +608,8 @@ func file_metrics_proto_init() { return nil } } - file_metrics_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MetricResourceUsage); i { + file_metrics_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetricValue); i { case 0: return &v.state case 1: @@ -2906,7 +629,7 @@ func file_metrics_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_metrics_proto_rawDesc, NumEnums: 1, - NumMessages: 36, + NumMessages: 6, NumExtensions: 0, NumServices: 1, }, diff --git a/pb/metrics_grpc.pb.go b/pb/metrics_grpc.pb.go index aa969ea..06804f3 100644 --- a/pb/metrics_grpc.pb.go +++ b/pb/metrics_grpc.pb.go @@ -22,26 +22,6 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MetricsClient interface { - // The total number of HTTP and HTTPS requests for all HTTP methods across all environments. - ClusterRequests(ctx context.Context, in *ClusterRequestsRequest, opts ...grpc.CallOption) (*ClusterRequestsResponse, error) - // The number of HTTP codes that originate from all load balancers. - ClusterResponseCodes(ctx context.Context, in *ClusterResponseCodesRequest, opts ...grpc.CallOption) (*ClusterResponseCodesResponse, error) - // The total number of HTTP and HTTPS requests for all HTTP methods for an environment. - Requests(ctx context.Context, in *RequestsRequest, opts ...grpc.CallOption) (*RequestsResponse, error) - // The number of HTTP codes that originate from an environments load balancer. - ResponseCodes(ctx context.Context, in *ResponseCodesRequest, opts ...grpc.CallOption) (*ResponseCodesResponse, error) - // The time elapsed after the request leaves the load balancer until a response from the target is received. - ResponseTimes(ctx context.Context, in *ResponseTimesRequest, opts ...grpc.CallOption) (*ResponseTimesResponse, error) - // The percentage of all cacheable requests for which CDN served the content from its cache. - CacheRatio(ctx context.Context, in *CacheRatioRequest, opts ...grpc.CallOption) (*CacheRatioResponse, error) - // This error indicates a communication problem between CDN and the origin. - OriginErrors(ctx context.Context, in *OriginErrorsRequest, opts ...grpc.CallOption) (*OriginErrorsResponse, error) - // The number of requests which were sent to invalidate the CDN. - InvalidationRequests(ctx context.Context, in *InvalidationRequestsRequest, opts ...grpc.CallOption) (*InvalidationRequestsResponse, error) - // The number of paths which were invalidated by requests. - InvalidationPaths(ctx context.Context, in *InvalidationPathsRequest, opts ...grpc.CallOption) (*InvalidationPathsResponse, error) - // The amount of resources used by an environment. - ResourceUsage(ctx context.Context, in *ResourceUsageRequest, opts ...grpc.CallOption) (*ResourceUsageResponse, error) // A list of all available metrics. AvailableMetrics(ctx context.Context, in *AvailableMetricsRequest, opts ...grpc.CallOption) (*AvailableMetricsResponse, error) // Metric values for a given absolute range. @@ -56,96 +36,6 @@ func NewMetricsClient(cc grpc.ClientConnInterface) MetricsClient { return &metricsClient{cc} } -func (c *metricsClient) ClusterRequests(ctx context.Context, in *ClusterRequestsRequest, opts ...grpc.CallOption) (*ClusterRequestsResponse, error) { - out := new(ClusterRequestsResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/ClusterRequests", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) ClusterResponseCodes(ctx context.Context, in *ClusterResponseCodesRequest, opts ...grpc.CallOption) (*ClusterResponseCodesResponse, error) { - out := new(ClusterResponseCodesResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/ClusterResponseCodes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) Requests(ctx context.Context, in *RequestsRequest, opts ...grpc.CallOption) (*RequestsResponse, error) { - out := new(RequestsResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/Requests", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) ResponseCodes(ctx context.Context, in *ResponseCodesRequest, opts ...grpc.CallOption) (*ResponseCodesResponse, error) { - out := new(ResponseCodesResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/ResponseCodes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) ResponseTimes(ctx context.Context, in *ResponseTimesRequest, opts ...grpc.CallOption) (*ResponseTimesResponse, error) { - out := new(ResponseTimesResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/ResponseTimes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) CacheRatio(ctx context.Context, in *CacheRatioRequest, opts ...grpc.CallOption) (*CacheRatioResponse, error) { - out := new(CacheRatioResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/CacheRatio", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) OriginErrors(ctx context.Context, in *OriginErrorsRequest, opts ...grpc.CallOption) (*OriginErrorsResponse, error) { - out := new(OriginErrorsResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/OriginErrors", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) InvalidationRequests(ctx context.Context, in *InvalidationRequestsRequest, opts ...grpc.CallOption) (*InvalidationRequestsResponse, error) { - out := new(InvalidationRequestsResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/InvalidationRequests", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) InvalidationPaths(ctx context.Context, in *InvalidationPathsRequest, opts ...grpc.CallOption) (*InvalidationPathsResponse, error) { - out := new(InvalidationPathsResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/InvalidationPaths", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *metricsClient) ResourceUsage(ctx context.Context, in *ResourceUsageRequest, opts ...grpc.CallOption) (*ResourceUsageResponse, error) { - out := new(ResourceUsageResponse) - err := c.cc.Invoke(ctx, "/workflow.metrics/ResourceUsage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *metricsClient) AvailableMetrics(ctx context.Context, in *AvailableMetricsRequest, opts ...grpc.CallOption) (*AvailableMetricsResponse, error) { out := new(AvailableMetricsResponse) err := c.cc.Invoke(ctx, "/workflow.metrics/AvailableMetrics", in, out, opts...) @@ -168,26 +58,6 @@ func (c *metricsClient) AbsoluteRange(ctx context.Context, in *AbsoluteRangeRequ // All implementations must embed UnimplementedMetricsServer // for forward compatibility type MetricsServer interface { - // The total number of HTTP and HTTPS requests for all HTTP methods across all environments. - ClusterRequests(context.Context, *ClusterRequestsRequest) (*ClusterRequestsResponse, error) - // The number of HTTP codes that originate from all load balancers. - ClusterResponseCodes(context.Context, *ClusterResponseCodesRequest) (*ClusterResponseCodesResponse, error) - // The total number of HTTP and HTTPS requests for all HTTP methods for an environment. - Requests(context.Context, *RequestsRequest) (*RequestsResponse, error) - // The number of HTTP codes that originate from an environments load balancer. - ResponseCodes(context.Context, *ResponseCodesRequest) (*ResponseCodesResponse, error) - // The time elapsed after the request leaves the load balancer until a response from the target is received. - ResponseTimes(context.Context, *ResponseTimesRequest) (*ResponseTimesResponse, error) - // The percentage of all cacheable requests for which CDN served the content from its cache. - CacheRatio(context.Context, *CacheRatioRequest) (*CacheRatioResponse, error) - // This error indicates a communication problem between CDN and the origin. - OriginErrors(context.Context, *OriginErrorsRequest) (*OriginErrorsResponse, error) - // The number of requests which were sent to invalidate the CDN. - InvalidationRequests(context.Context, *InvalidationRequestsRequest) (*InvalidationRequestsResponse, error) - // The number of paths which were invalidated by requests. - InvalidationPaths(context.Context, *InvalidationPathsRequest) (*InvalidationPathsResponse, error) - // The amount of resources used by an environment. - ResourceUsage(context.Context, *ResourceUsageRequest) (*ResourceUsageResponse, error) // A list of all available metrics. AvailableMetrics(context.Context, *AvailableMetricsRequest) (*AvailableMetricsResponse, error) // Metric values for a given absolute range. @@ -199,36 +69,6 @@ type MetricsServer interface { type UnimplementedMetricsServer struct { } -func (UnimplementedMetricsServer) ClusterRequests(context.Context, *ClusterRequestsRequest) (*ClusterRequestsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClusterRequests not implemented") -} -func (UnimplementedMetricsServer) ClusterResponseCodes(context.Context, *ClusterResponseCodesRequest) (*ClusterResponseCodesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClusterResponseCodes not implemented") -} -func (UnimplementedMetricsServer) Requests(context.Context, *RequestsRequest) (*RequestsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Requests not implemented") -} -func (UnimplementedMetricsServer) ResponseCodes(context.Context, *ResponseCodesRequest) (*ResponseCodesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResponseCodes not implemented") -} -func (UnimplementedMetricsServer) ResponseTimes(context.Context, *ResponseTimesRequest) (*ResponseTimesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResponseTimes not implemented") -} -func (UnimplementedMetricsServer) CacheRatio(context.Context, *CacheRatioRequest) (*CacheRatioResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CacheRatio not implemented") -} -func (UnimplementedMetricsServer) OriginErrors(context.Context, *OriginErrorsRequest) (*OriginErrorsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OriginErrors not implemented") -} -func (UnimplementedMetricsServer) InvalidationRequests(context.Context, *InvalidationRequestsRequest) (*InvalidationRequestsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidationRequests not implemented") -} -func (UnimplementedMetricsServer) InvalidationPaths(context.Context, *InvalidationPathsRequest) (*InvalidationPathsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidationPaths not implemented") -} -func (UnimplementedMetricsServer) ResourceUsage(context.Context, *ResourceUsageRequest) (*ResourceUsageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResourceUsage not implemented") -} func (UnimplementedMetricsServer) AvailableMetrics(context.Context, *AvailableMetricsRequest) (*AvailableMetricsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AvailableMetrics not implemented") } @@ -248,186 +88,6 @@ func RegisterMetricsServer(s grpc.ServiceRegistrar, srv MetricsServer) { s.RegisterService(&Metrics_ServiceDesc, srv) } -func _Metrics_ClusterRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClusterRequestsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).ClusterRequests(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/ClusterRequests", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).ClusterRequests(ctx, req.(*ClusterRequestsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_ClusterResponseCodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClusterResponseCodesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).ClusterResponseCodes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/ClusterResponseCodes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).ClusterResponseCodes(ctx, req.(*ClusterResponseCodesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_Requests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RequestsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).Requests(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/Requests", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).Requests(ctx, req.(*RequestsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_ResponseCodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResponseCodesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).ResponseCodes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/ResponseCodes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).ResponseCodes(ctx, req.(*ResponseCodesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_ResponseTimes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResponseTimesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).ResponseTimes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/ResponseTimes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).ResponseTimes(ctx, req.(*ResponseTimesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_CacheRatio_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CacheRatioRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).CacheRatio(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/CacheRatio", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).CacheRatio(ctx, req.(*CacheRatioRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_OriginErrors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OriginErrorsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).OriginErrors(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/OriginErrors", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).OriginErrors(ctx, req.(*OriginErrorsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_InvalidationRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidationRequestsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).InvalidationRequests(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/InvalidationRequests", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).InvalidationRequests(ctx, req.(*InvalidationRequestsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_InvalidationPaths_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidationPathsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).InvalidationPaths(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/InvalidationPaths", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).InvalidationPaths(ctx, req.(*InvalidationPathsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Metrics_ResourceUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResourceUsageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MetricsServer).ResourceUsage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/workflow.metrics/ResourceUsage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MetricsServer).ResourceUsage(ctx, req.(*ResourceUsageRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Metrics_AvailableMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AvailableMetricsRequest) if err := dec(in); err != nil { @@ -471,46 +131,6 @@ var Metrics_ServiceDesc = grpc.ServiceDesc{ ServiceName: "workflow.metrics", HandlerType: (*MetricsServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "ClusterRequests", - Handler: _Metrics_ClusterRequests_Handler, - }, - { - MethodName: "ClusterResponseCodes", - Handler: _Metrics_ClusterResponseCodes_Handler, - }, - { - MethodName: "Requests", - Handler: _Metrics_Requests_Handler, - }, - { - MethodName: "ResponseCodes", - Handler: _Metrics_ResponseCodes_Handler, - }, - { - MethodName: "ResponseTimes", - Handler: _Metrics_ResponseTimes_Handler, - }, - { - MethodName: "CacheRatio", - Handler: _Metrics_CacheRatio_Handler, - }, - { - MethodName: "OriginErrors", - Handler: _Metrics_OriginErrors_Handler, - }, - { - MethodName: "InvalidationRequests", - Handler: _Metrics_InvalidationRequests_Handler, - }, - { - MethodName: "InvalidationPaths", - Handler: _Metrics_InvalidationPaths_Handler, - }, - { - MethodName: "ResourceUsage", - Handler: _Metrics_ResourceUsage_Handler, - }, { MethodName: "AvailableMetrics", Handler: _Metrics_AvailableMetrics_Handler,