blob: ab85de1ef28211d90d8c8feeae3a6913774957b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
syntax = "proto3";
package yandex.cloud.quota;
option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/quota;quota";
option java_package = "yandex.cloud.api.quota";
message QuotaMetric {
reserved 2;
string name = 1; // formatted as <domain>.<metric>.<unit>, e.g. mdb.hdd.size
int64 limit = 3;
double usage = 4;
}
message MetricLimit {
string name = 1;
int64 limit = 2;
}
message QuotaFailure {
message Violation {
QuotaMetric metric = 1;
int64 required = 2; // new value for the MetricLimit.limit, so it is: old limit + delta
}
repeated Violation violations = 2;
}
|