Skip to content

Commit

Permalink
feat: Reduce UI Support (#500)
Browse files Browse the repository at this point in the history
Signed-off-by: veds-g <guptavedant2312@gmail.com>
  • Loading branch information
veds-g committed Feb 3, 2023
1 parent 8a63780 commit 1e34e31
Show file tree
Hide file tree
Showing 15 changed files with 327 additions and 205 deletions.
167 changes: 81 additions & 86 deletions pkg/apis/proto/daemon/daemon.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/apis/proto/daemon/daemon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ message GetBufferResponse {
message GetVertexMetricsRequest {
required string pipeline = 2;
required string vertex = 3;

}

message GetVertexMetricsResponse {
required VertexMetrics vertex = 1;
repeated VertexMetrics vertexMetrics = 1;
}

/* Watermark */
Expand Down
4 changes: 2 additions & 2 deletions pkg/daemon/client/daemon_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ func (dc *DaemonClient) GetPipelineBuffer(ctx context.Context, pipeline, buffer
}
}

func (dc *DaemonClient) GetVertexMetrics(ctx context.Context, pipeline, vertex string) (*daemon.VertexMetrics, error) {
func (dc *DaemonClient) GetVertexMetrics(ctx context.Context, pipeline, vertex string) ([]*daemon.VertexMetrics, error) {
if rspn, err := dc.client.GetVertexMetrics(ctx, &daemon.GetVertexMetricsRequest{
Pipeline: &pipeline,
Vertex: &vertex,
}); err != nil {
return nil, err
} else {
return rspn.Vertex, nil
return rspn.VertexMetrics, nil
}
}

Expand Down
Loading

0 comments on commit 1e34e31

Please sign in to comment.