@@ -16,6 +16,9 @@ syntax = "proto3";
16
16
17
17
package istio.mixer.v1.config.descriptor ;
18
18
19
+ import "google/protobuf/duration.proto" ;
20
+ import "mixer/v1/config/descriptor/label_descriptor.proto" ;
21
+
19
22
// Configuration state for a particular quota.
20
23
//
21
24
// Quotas are similar to metrics, except that they are mutated through method
@@ -26,34 +29,25 @@ package istio.mixer.v1.config.descriptor;
26
29
// A given quota is described by a set of attributes. These attributes represent
27
30
// the different dimensions to associate with the quota. A given quota holds a
28
31
// unique value for potentially any combination of these attributes.
29
- //
30
- // The quota kind controls the general behavior of the quota. An allocation
31
- // quota is only adjusted through explicit method calls. A rate limit quota's
32
- // values are reset to 0 automatically at a fixed interval.
33
32
message QuotaDescriptor {
34
33
// The name of this descriptor.
35
34
string name = 1 ;
36
35
37
- // A optional concise name for the quota, which can be displayed in user interfaces.
38
- // Use sentence case without an ending period, for example "Request count".
36
+ // An optional concise name for the quota which can be displayed in user interfaces.
39
37
string display_name = 2 ;
40
38
41
- // An optional description of the quota, which can be used in documentation.
39
+ // An optional description of the quota which can be used in documentation.
42
40
string description = 3 ;
43
41
44
- // The name of the attribute that supplies the amount for a given
45
- // quota allocation or release operation.
46
- string amount_attribute = 4 ;
47
-
48
- // The set of attributes that are necessary to describe a specific value cell
42
+ // The set of labels that are necessary to describe a specific value cell
49
43
// for a quota of this type.
50
- repeated string attributes = 5 ;
44
+ repeated LabelDescriptor labels = 4 ;
51
45
52
46
// The default imposed maximum amount for values of this quota.
53
- int64 max_amount = 6 ;
47
+ int64 max_amount = 5 ;
54
48
55
49
// The amount of time allocated quota remains valid before it is
56
50
// automatically released. If this is 0, then allocated quota is
57
51
// not automatically released.
58
- int32 expiration_seconds = 7 ;
52
+ google.protobuf.Duration expiration = 6 ;
59
53
}
0 commit comments