Skip to content

Commit 82305d6

Browse files
author
Andrew Farries
committed
Add Usage proto file
Define an upload RPC to allow usage reports to be uploaded to the content service.
1 parent 51eae90 commit 82305d6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2+
// Licensed under the GNU Affero General Public License (AGPL).
3+
// See License-AGPL.txt in the project root for license information.
4+
5+
syntax = "proto3";
6+
7+
package contentservice;
8+
9+
option go_package = "github.com/gitpod-io/gitpod/content-service/api";
10+
11+
service UsageReportService {
12+
// UploadURL provides a URL to which clients can upload the content via HTTP PUT.
13+
rpc UploadURL(UsageReportUploadURLRequest) returns (UsageReportUploadURLResponse) {}
14+
}
15+
16+
message UsageReportUploadURLRequest {
17+
string bucket = 1;
18+
string name = 2;
19+
}
20+
21+
message UsageReportUploadURLResponse {
22+
string url = 1;
23+
}

0 commit comments

Comments
 (0)