mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
39 lines
843 B
Protocol Buffer
39 lines
843 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package usage.v1;
|
|
|
|
option go_package = "github.com/gitpod-io/gitpod/usage-api/v1";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
service UsageService {
|
|
// GetBilledUsage retrieves all usage for the specified attributionId
|
|
rpc GetBilledUsage(GetBilledUsageRequest) returns (GetBilledUsageResponse) {}
|
|
}
|
|
|
|
message GetBilledUsageRequest {
|
|
string attribution_id = 1;
|
|
}
|
|
|
|
message GetBilledUsageResponse {
|
|
repeated BilledSession sessions = 1;
|
|
}
|
|
|
|
message BilledSession {
|
|
string attribution_id = 1;
|
|
|
|
string user_id = 2;
|
|
string team_id = 3;
|
|
|
|
string workspace_id = 4;
|
|
string workspace_type = 5;
|
|
string project_id = 6;
|
|
|
|
string instance_id = 7;
|
|
string workspace_class = 8;
|
|
google.protobuf.Timestamp start_time = 9;
|
|
google.protobuf.Timestamp end_time = 10;
|
|
|
|
int64 credits = 11;
|
|
}
|