Skip to content

Commit

Permalink
getFragmentUsage endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ehhong committed Jan 10, 2025
1 parent c31a86a commit 472d4e9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions proto/viam/app/v1/app.proto
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ service AppService {
// Gets a single fragment
rpc GetFragment(GetFragmentRequest) returns (GetFragmentResponse);

// Gets usage for a fragment across versions
rpc GetFragmentUsage(GetFragmentUsageRequest) returns (GetFragmentUsageResponse);

// Creates a fragment
rpc CreateFragment(CreateFragmentRequest) returns (CreateFragmentResponse);

Expand Down Expand Up @@ -893,6 +896,14 @@ message GetFragmentResponse {
repeated FragmentTag tags = 4;
}

message GetFragmentUsageRequest {
string fragment_id = 1;
}

message GetFragmentUsageResponse {
repeated FragmentUsage version_usages = 1;
}

message CreateFragmentRequest {
string name = 1;
google.protobuf.Struct config = 2;
Expand Down

0 comments on commit 472d4e9

Please sign in to comment.