Skip to content

Commit

Permalink
return overall fragment usage stats too
Browse files Browse the repository at this point in the history
  • Loading branch information
ehhong committed Dec 31, 2024
1 parent ad62b3f commit c75f4af
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions proto/viam/app/v1/app.proto
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ message Fragment {
FragmentVisibility visibility = 12;
// latest timestamp when fragment was updated
google.protobuf.Timestamp last_updated = 13 [(tagger.v1.tags) = "bson:\"last_updated_at\""];
repeated FragmentTag tags = 14;
}

message FragmentHistoryEntry {
Expand Down Expand Up @@ -855,12 +856,16 @@ enum FragmentErrorType {
FRAGMENT_ERROR_TYPE_CYCLE_DETECTED = 4;
}

message FragmentUsageStats {
int32 organizations = 1;
int32 machines = 2;
int32 machines_in_current_org = 3;
}

message FragmentUsage {

Check failure on line 865 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "4" with name "machines_in_current_org" on message "FragmentUsage" was deleted.
string fragment_id = 1;
int32 organizations = 2;
int32 machines = 3;
int32 machines_in_current_org = 4;
string version = 5;
FragmentUsageStats overall_usage = 2;

Check failure on line 867 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "2" with name "overall_usage" on message "FragmentUsage" changed cardinality from "optional with implicit presence" to "optional with explicit presence".

Check failure on line 867 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "2" with name "overall_usage" on message "FragmentUsage" changed option "json_name" from "organizations" to "overallUsage".

Check failure on line 867 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "2" with name "overall_usage" on message "FragmentUsage" changed type from "int32" to "message".

Check failure on line 867 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "2" on message "FragmentUsage" changed name from "organizations" to "overall_usage".
map<string, FragmentUsageStats> usage_by_version = 3;

Check failure on line 868 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "3" with name "usage_by_version" on message "FragmentUsage" changed cardinality from "optional with implicit presence" to "map".

Check failure on line 868 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "3" with name "usage_by_version" on message "FragmentUsage" changed option "json_name" from "machines" to "usageByVersion".

Check failure on line 868 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "3" with name "usage_by_version" on message "FragmentUsage" changed type from "int32" to "message".

Check failure on line 868 in proto/viam/app/v1/app.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Field "3" on message "FragmentUsage" changed name from "machines" to "usage_by_version".
}

message ResolvedFragment {
Expand Down Expand Up @@ -888,9 +893,8 @@ message GetFragmentRequest {

message GetFragmentResponse {
Fragment fragment = 1;
repeated FragmentUsage usages = 2;
FragmentUsage fragment_usage = 2;
repeated FragmentVersion versions = 3;
repeated FragmentTag tags = 4;
}

message CreateFragmentRequest {
Expand Down

0 comments on commit c75f4af

Please sign in to comment.