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 <[email protected]>
  • Loading branch information
veds-g authored and ashwinidulams committed Feb 14, 2023
1 parent 57f43e5 commit 2844cfb
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 2844cfb

Please sign in to comment.