@alicloud/apig20240327 11.3.0 → 11.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +8 -29
- package/dist/client.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.d.ts +16 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.js +4 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageRequest.js.map +1 -1
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.d.ts +74 -4
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js +18 -0
- package/dist/models/GetGatewayQuotaRuleSubjectUsageResponseBody.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -29
- package/src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts +20 -0
- package/src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts +92 -4
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The end time for querying consumption record details, in UNIX timestamp format (seconds). If only this parameter is specified, the system automatically calculates startTime based on the rule cycle.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* 1788425220
|
|
9
|
+
*/
|
|
10
|
+
endTime?: number;
|
|
3
11
|
/**
|
|
4
12
|
* @remarks
|
|
5
13
|
* Specifies whether to filter out zero values.
|
|
@@ -24,6 +32,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model
|
|
|
24
32
|
* 10
|
|
25
33
|
*/
|
|
26
34
|
pageSize?: number;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The start time for querying consumption record details, in UNIX timestamp format (seconds). If only this parameter is specified, the system automatically calculates endTime based on the rule cycle.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* 1788338820
|
|
41
|
+
*/
|
|
42
|
+
startTime?: number;
|
|
27
43
|
static names(): {
|
|
28
44
|
[key: string]: string;
|
|
29
45
|
};
|
|
@@ -39,16 +39,20 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
endTime: 'endTime',
|
|
42
43
|
filterFailedRequests: 'filterFailedRequests',
|
|
43
44
|
pageNumber: 'pageNumber',
|
|
44
45
|
pageSize: 'pageSize',
|
|
46
|
+
startTime: 'startTime',
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
static types() {
|
|
48
50
|
return {
|
|
51
|
+
endTime: 'number',
|
|
49
52
|
filterFailedRequests: 'boolean',
|
|
50
53
|
pageNumber: 'number',
|
|
51
54
|
pageSize: 'number',
|
|
55
|
+
startTime: 'number',
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
validate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetGatewayQuotaRuleSubjectUsageRequest.js","sourceRoot":"","sources":["../../src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"GetGatewayQuotaRuleSubjectUsageRequest.js","sourceRoot":"","sources":["../../src/models/GetGatewayQuotaRuleSubjectUsageRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAyCrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,oBAAoB,EAAE,sBAAsB;YAC5C,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,oBAAoB,EAAE,SAAS;YAC/B,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,QAAQ;SACpB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,wFAoEC"}
|
|
@@ -8,6 +8,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
|
|
|
8
8
|
* 10
|
|
9
9
|
*/
|
|
10
10
|
cachedAmount?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The exact value of cached consumption. Supports decimals in credit scenarios.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* 10.5
|
|
17
|
+
*/
|
|
18
|
+
cachedAmountDecimal?: number;
|
|
11
19
|
/**
|
|
12
20
|
* @remarks
|
|
13
21
|
* The consumer name.
|
|
@@ -24,6 +32,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
|
|
|
24
32
|
* 120
|
|
25
33
|
*/
|
|
26
34
|
inputAmount?: number;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* The exact value of input consumption. Supports decimals in credit scenarios.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* 120.5
|
|
41
|
+
*/
|
|
42
|
+
inputAmountDecimal?: number;
|
|
27
43
|
/**
|
|
28
44
|
* @remarks
|
|
29
45
|
* The model name.
|
|
@@ -40,6 +56,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
|
|
|
40
56
|
* 80
|
|
41
57
|
*/
|
|
42
58
|
outputAmount?: number;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The exact value of output consumption. Supports decimals in credit scenarios.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* 80.5
|
|
65
|
+
*/
|
|
66
|
+
outputAmountDecimal?: number;
|
|
43
67
|
/**
|
|
44
68
|
* @remarks
|
|
45
69
|
* The request ID.
|
|
@@ -64,6 +88,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems
|
|
|
64
88
|
* 210
|
|
65
89
|
*/
|
|
66
90
|
usedAmount?: number;
|
|
91
|
+
/**
|
|
92
|
+
* @remarks
|
|
93
|
+
* The exact value of total consumption. Supports decimals in credit scenarios.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* 210.5
|
|
97
|
+
*/
|
|
98
|
+
usedAmountDecimal?: number;
|
|
67
99
|
static names(): {
|
|
68
100
|
[key: string]: string;
|
|
69
101
|
};
|
|
@@ -102,7 +134,7 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails exte
|
|
|
102
134
|
pageSize?: number;
|
|
103
135
|
/**
|
|
104
136
|
* @remarks
|
|
105
|
-
* The total number of
|
|
137
|
+
* The total number of entries.
|
|
106
138
|
*
|
|
107
139
|
* @example
|
|
108
140
|
* 100
|
|
@@ -128,6 +160,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
128
160
|
* 20
|
|
129
161
|
*/
|
|
130
162
|
cachedAmount?: number;
|
|
163
|
+
/**
|
|
164
|
+
* @remarks
|
|
165
|
+
* The exact value of total cached consumption. Supports decimals in credit scenarios.
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* 20.5
|
|
169
|
+
*/
|
|
170
|
+
cachedAmountDecimal?: number;
|
|
131
171
|
/**
|
|
132
172
|
* @remarks
|
|
133
173
|
* The paginated consumption details.
|
|
@@ -144,6 +184,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
144
184
|
* 300
|
|
145
185
|
*/
|
|
146
186
|
inputAmount?: number;
|
|
187
|
+
/**
|
|
188
|
+
* @remarks
|
|
189
|
+
* The exact value of total input consumption. Supports decimals in credit scenarios.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* 300.5
|
|
193
|
+
*/
|
|
194
|
+
inputAmountDecimal?: number;
|
|
147
195
|
/**
|
|
148
196
|
* @remarks
|
|
149
197
|
* The total output token consumption.
|
|
@@ -152,6 +200,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
152
200
|
* 180
|
|
153
201
|
*/
|
|
154
202
|
outputAmount?: number;
|
|
203
|
+
/**
|
|
204
|
+
* @remarks
|
|
205
|
+
* The exact value of total output consumption. Supports decimals in credit scenarios.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* 180.5
|
|
209
|
+
*/
|
|
210
|
+
outputAmountDecimal?: number;
|
|
155
211
|
/**
|
|
156
212
|
* @remarks
|
|
157
213
|
* Indicates whether the quota limit is exceeded.
|
|
@@ -162,9 +218,15 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
162
218
|
overLimit?: boolean;
|
|
163
219
|
/**
|
|
164
220
|
* @remarks
|
|
165
|
-
* The
|
|
166
|
-
*
|
|
167
|
-
*
|
|
221
|
+
* The quota dimension. Valid values: token and credit.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* token
|
|
225
|
+
*/
|
|
226
|
+
quotaDimension?: string;
|
|
227
|
+
/**
|
|
228
|
+
* @remarks
|
|
229
|
+
* The subject type. Valid values: consumer and consumer_group.
|
|
168
230
|
*
|
|
169
231
|
* @example
|
|
170
232
|
* consumer_group
|
|
@@ -186,6 +248,14 @@ export declare class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $da
|
|
|
186
248
|
* 500
|
|
187
249
|
*/
|
|
188
250
|
usedAmount?: number;
|
|
251
|
+
/**
|
|
252
|
+
* @remarks
|
|
253
|
+
* The exact value of the total used amount of the subject. Supports decimals in credit scenarios.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* 500.5
|
|
257
|
+
*/
|
|
258
|
+
usedAmountDecimal?: number;
|
|
189
259
|
static names(): {
|
|
190
260
|
[key: string]: string;
|
|
191
261
|
};
|
|
@@ -40,25 +40,33 @@ class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends $dara.
|
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
42
|
cachedAmount: 'cachedAmount',
|
|
43
|
+
cachedAmountDecimal: 'cachedAmountDecimal',
|
|
43
44
|
consumer: 'consumer',
|
|
44
45
|
inputAmount: 'inputAmount',
|
|
46
|
+
inputAmountDecimal: 'inputAmountDecimal',
|
|
45
47
|
model: 'model',
|
|
46
48
|
outputAmount: 'outputAmount',
|
|
49
|
+
outputAmountDecimal: 'outputAmountDecimal',
|
|
47
50
|
requestId: 'requestId',
|
|
48
51
|
startTime: 'startTime',
|
|
49
52
|
usedAmount: 'usedAmount',
|
|
53
|
+
usedAmountDecimal: 'usedAmountDecimal',
|
|
50
54
|
};
|
|
51
55
|
}
|
|
52
56
|
static types() {
|
|
53
57
|
return {
|
|
54
58
|
cachedAmount: 'number',
|
|
59
|
+
cachedAmountDecimal: 'number',
|
|
55
60
|
consumer: 'string',
|
|
56
61
|
inputAmount: 'number',
|
|
62
|
+
inputAmountDecimal: 'number',
|
|
57
63
|
model: 'string',
|
|
58
64
|
outputAmount: 'number',
|
|
65
|
+
outputAmountDecimal: 'number',
|
|
59
66
|
requestId: 'string',
|
|
60
67
|
startTime: 'string',
|
|
61
68
|
usedAmount: 'number',
|
|
69
|
+
usedAmountDecimal: 'number',
|
|
62
70
|
};
|
|
63
71
|
}
|
|
64
72
|
validate() {
|
|
@@ -101,25 +109,35 @@ class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model {
|
|
|
101
109
|
static names() {
|
|
102
110
|
return {
|
|
103
111
|
cachedAmount: 'cachedAmount',
|
|
112
|
+
cachedAmountDecimal: 'cachedAmountDecimal',
|
|
104
113
|
details: 'details',
|
|
105
114
|
inputAmount: 'inputAmount',
|
|
115
|
+
inputAmountDecimal: 'inputAmountDecimal',
|
|
106
116
|
outputAmount: 'outputAmount',
|
|
117
|
+
outputAmountDecimal: 'outputAmountDecimal',
|
|
107
118
|
overLimit: 'overLimit',
|
|
119
|
+
quotaDimension: 'quotaDimension',
|
|
108
120
|
subjectType: 'subjectType',
|
|
109
121
|
totalQuota: 'totalQuota',
|
|
110
122
|
usedAmount: 'usedAmount',
|
|
123
|
+
usedAmountDecimal: 'usedAmountDecimal',
|
|
111
124
|
};
|
|
112
125
|
}
|
|
113
126
|
static types() {
|
|
114
127
|
return {
|
|
115
128
|
cachedAmount: 'number',
|
|
129
|
+
cachedAmountDecimal: 'number',
|
|
116
130
|
details: GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails,
|
|
117
131
|
inputAmount: 'number',
|
|
132
|
+
inputAmountDecimal: 'number',
|
|
118
133
|
outputAmount: 'number',
|
|
134
|
+
outputAmountDecimal: 'number',
|
|
119
135
|
overLimit: 'boolean',
|
|
136
|
+
quotaDimension: 'string',
|
|
120
137
|
subjectType: 'string',
|
|
121
138
|
totalQuota: 'number',
|
|
122
139
|
usedAmount: 'number',
|
|
140
|
+
usedAmountDecimal: 'number',
|
|
123
141
|
};
|
|
124
142
|
}
|
|
125
143
|
validate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetGatewayQuotaRuleSubjectUsageResponseBody.js","sourceRoot":"","sources":["../../src/models/GetGatewayQuotaRuleSubjectUsageResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DA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AAC;CACF;AA7DD,kGA6DC"}
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -12,33 +12,6 @@ export default class Client extends OpenApi {
|
|
|
12
12
|
constructor(config: $OpenApiUtil.Config) {
|
|
13
13
|
super(config);
|
|
14
14
|
this._endpointRule = "regional";
|
|
15
|
-
this._endpointMap = {
|
|
16
|
-
'ap-southeast-2': "apig.ap-southeast-2.aliyuncs.com",
|
|
17
|
-
'ap-southeast-6': "apig.ap-southeast-6.aliyuncs.com",
|
|
18
|
-
'ap-southeast-7': "apig.ap-southeast-7.aliyuncs.com",
|
|
19
|
-
'cn-guangzhou': "apig.cn-guangzhou.aliyuncs.com",
|
|
20
|
-
'cn-heyuan': "apig.cn-heyuan.aliyuncs.com",
|
|
21
|
-
'cn-shenzhen': "apig.cn-shenzhen.aliyuncs.com",
|
|
22
|
-
'cn-wulanchabu': "apig.cn-wulanchabu.aliyuncs.com",
|
|
23
|
-
'cn-beijing': "apig.cn-beijing.aliyuncs.com",
|
|
24
|
-
'ap-northeast-2': "apig.ap-northeast-2.aliyuncs.com",
|
|
25
|
-
'ap-northeast-1': "apig.ap-northeast-1.aliyuncs.com",
|
|
26
|
-
'cn-chengdu': "apig.cn-chengdu.aliyuncs.com",
|
|
27
|
-
'cn-qingdao': "apig.cn-qingdao.aliyuncs.com",
|
|
28
|
-
'cn-shanghai': "apig.cn-shanghai.aliyuncs.com",
|
|
29
|
-
'cn-hongkong': "apig.cn-hongkong.aliyuncs.com",
|
|
30
|
-
'ap-southeast-1': "apig.ap-southeast-1.aliyuncs.com",
|
|
31
|
-
'ap-southeast-3': "apig.ap-southeast-3.aliyuncs.com",
|
|
32
|
-
'ap-southeast-5': "apig.ap-southeast-5.aliyuncs.com",
|
|
33
|
-
'cn-zhangjiakou': "apig.cn-zhangjiakou.aliyuncs.com",
|
|
34
|
-
'cn-hangzhou': "apig.cn-hangzhou.aliyuncs.com",
|
|
35
|
-
'us-west-1': "apig.us-west-1.aliyuncs.com",
|
|
36
|
-
'us-east-1': "apig.us-east-1.aliyuncs.com",
|
|
37
|
-
'eu-central-1': "apig.eu-central-1.aliyuncs.com",
|
|
38
|
-
'eu-west-1': "apig.eu-west-1.aliyuncs.com",
|
|
39
|
-
'me-east-1': "apig.me-east-1.aliyuncs.com",
|
|
40
|
-
'me-central-1': "apig.me-central-1.aliyuncs.com",
|
|
41
|
-
};
|
|
42
15
|
this.checkConfig(config);
|
|
43
16
|
this._endpoint = this.getEndpoint("apig", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
44
17
|
}
|
|
@@ -4093,7 +4066,7 @@ export default class Client extends OpenApi {
|
|
|
4093
4066
|
* Queries the usage details of a subject under a gateway quota throttling rule, including used quota, total quota, whether the limit is exceeded, usage details, and consumption records.
|
|
4094
4067
|
*
|
|
4095
4068
|
* @remarks
|
|
4096
|
-
* Queries the usage details of a specific subject under a quota rule. This operation
|
|
4069
|
+
* Queries the usage details of a specific subject under a quota rule. This operation takes effect only for AI gateways with a version later than 2.1.19.
|
|
4097
4070
|
*
|
|
4098
4071
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
4099
4072
|
* @param headers - map
|
|
@@ -4103,6 +4076,10 @@ export default class Client extends OpenApi {
|
|
|
4103
4076
|
async getGatewayQuotaRuleSubjectUsageWithOptions(gatewayId: string, ruleId: string, subjectId: string, request: $_model.GetGatewayQuotaRuleSubjectUsageRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetGatewayQuotaRuleSubjectUsageResponse> {
|
|
4104
4077
|
request.validate();
|
|
4105
4078
|
let query : {[key: string ]: any} = { };
|
|
4079
|
+
if (!$dara.isNull(request.endTime)) {
|
|
4080
|
+
query["endTime"] = request.endTime;
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4106
4083
|
if (!$dara.isNull(request.filterFailedRequests)) {
|
|
4107
4084
|
query["filterFailedRequests"] = request.filterFailedRequests;
|
|
4108
4085
|
}
|
|
@@ -4115,6 +4092,10 @@ export default class Client extends OpenApi {
|
|
|
4115
4092
|
query["pageSize"] = request.pageSize;
|
|
4116
4093
|
}
|
|
4117
4094
|
|
|
4095
|
+
if (!$dara.isNull(request.startTime)) {
|
|
4096
|
+
query["startTime"] = request.startTime;
|
|
4097
|
+
}
|
|
4098
|
+
|
|
4118
4099
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4119
4100
|
headers: headers,
|
|
4120
4101
|
query: OpenApiUtil.query(query),
|
|
@@ -4137,7 +4118,7 @@ export default class Client extends OpenApi {
|
|
|
4137
4118
|
* Queries the usage details of a subject under a gateway quota throttling rule, including used quota, total quota, whether the limit is exceeded, usage details, and consumption records.
|
|
4138
4119
|
*
|
|
4139
4120
|
* @remarks
|
|
4140
|
-
* Queries the usage details of a specific subject under a quota rule. This operation
|
|
4121
|
+
* Queries the usage details of a specific subject under a quota rule. This operation takes effect only for AI gateways with a version later than 2.1.19.
|
|
4141
4122
|
*
|
|
4142
4123
|
* @param request - GetGatewayQuotaRuleSubjectUsageRequest
|
|
4143
4124
|
* @returns GetGatewayQuotaRuleSubjectUsageResponse
|
|
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The end time for querying consumption record details, in UNIX timestamp format (seconds). If only this parameter is specified, the system automatically calculates startTime based on the rule cycle.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 1788425220
|
|
12
|
+
*/
|
|
13
|
+
endTime?: number;
|
|
6
14
|
/**
|
|
7
15
|
* @remarks
|
|
8
16
|
* Specifies whether to filter out zero values.
|
|
@@ -27,19 +35,31 @@ export class GetGatewayQuotaRuleSubjectUsageRequest extends $dara.Model {
|
|
|
27
35
|
* 10
|
|
28
36
|
*/
|
|
29
37
|
pageSize?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The start time for querying consumption record details, in UNIX timestamp format (seconds). If only this parameter is specified, the system automatically calculates endTime based on the rule cycle.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 1788338820
|
|
44
|
+
*/
|
|
45
|
+
startTime?: number;
|
|
30
46
|
static names(): { [key: string]: string } {
|
|
31
47
|
return {
|
|
48
|
+
endTime: 'endTime',
|
|
32
49
|
filterFailedRequests: 'filterFailedRequests',
|
|
33
50
|
pageNumber: 'pageNumber',
|
|
34
51
|
pageSize: 'pageSize',
|
|
52
|
+
startTime: 'startTime',
|
|
35
53
|
};
|
|
36
54
|
}
|
|
37
55
|
|
|
38
56
|
static types(): { [key: string]: any } {
|
|
39
57
|
return {
|
|
58
|
+
endTime: 'number',
|
|
40
59
|
filterFailedRequests: 'boolean',
|
|
41
60
|
pageNumber: 'number',
|
|
42
61
|
pageSize: 'number',
|
|
62
|
+
startTime: 'number',
|
|
43
63
|
};
|
|
44
64
|
}
|
|
45
65
|
|
|
@@ -11,6 +11,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends
|
|
|
11
11
|
* 10
|
|
12
12
|
*/
|
|
13
13
|
cachedAmount?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The exact value of cached consumption. Supports decimals in credit scenarios.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 10.5
|
|
20
|
+
*/
|
|
21
|
+
cachedAmountDecimal?: number;
|
|
14
22
|
/**
|
|
15
23
|
* @remarks
|
|
16
24
|
* The consumer name.
|
|
@@ -27,6 +35,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends
|
|
|
27
35
|
* 120
|
|
28
36
|
*/
|
|
29
37
|
inputAmount?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The exact value of input consumption. Supports decimals in credit scenarios.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 120.5
|
|
44
|
+
*/
|
|
45
|
+
inputAmountDecimal?: number;
|
|
30
46
|
/**
|
|
31
47
|
* @remarks
|
|
32
48
|
* The model name.
|
|
@@ -43,6 +59,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends
|
|
|
43
59
|
* 80
|
|
44
60
|
*/
|
|
45
61
|
outputAmount?: number;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The exact value of output consumption. Supports decimals in credit scenarios.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 80.5
|
|
68
|
+
*/
|
|
69
|
+
outputAmountDecimal?: number;
|
|
46
70
|
/**
|
|
47
71
|
* @remarks
|
|
48
72
|
* The request ID.
|
|
@@ -67,29 +91,45 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems extends
|
|
|
67
91
|
* 210
|
|
68
92
|
*/
|
|
69
93
|
usedAmount?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The exact value of total consumption. Supports decimals in credit scenarios.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* 210.5
|
|
100
|
+
*/
|
|
101
|
+
usedAmountDecimal?: number;
|
|
70
102
|
static names(): { [key: string]: string } {
|
|
71
103
|
return {
|
|
72
104
|
cachedAmount: 'cachedAmount',
|
|
105
|
+
cachedAmountDecimal: 'cachedAmountDecimal',
|
|
73
106
|
consumer: 'consumer',
|
|
74
107
|
inputAmount: 'inputAmount',
|
|
108
|
+
inputAmountDecimal: 'inputAmountDecimal',
|
|
75
109
|
model: 'model',
|
|
76
110
|
outputAmount: 'outputAmount',
|
|
111
|
+
outputAmountDecimal: 'outputAmountDecimal',
|
|
77
112
|
requestId: 'requestId',
|
|
78
113
|
startTime: 'startTime',
|
|
79
114
|
usedAmount: 'usedAmount',
|
|
115
|
+
usedAmountDecimal: 'usedAmountDecimal',
|
|
80
116
|
};
|
|
81
117
|
}
|
|
82
118
|
|
|
83
119
|
static types(): { [key: string]: any } {
|
|
84
120
|
return {
|
|
85
121
|
cachedAmount: 'number',
|
|
122
|
+
cachedAmountDecimal: 'number',
|
|
86
123
|
consumer: 'string',
|
|
87
124
|
inputAmount: 'number',
|
|
125
|
+
inputAmountDecimal: 'number',
|
|
88
126
|
model: 'string',
|
|
89
127
|
outputAmount: 'number',
|
|
128
|
+
outputAmountDecimal: 'number',
|
|
90
129
|
requestId: 'string',
|
|
91
130
|
startTime: 'string',
|
|
92
131
|
usedAmount: 'number',
|
|
132
|
+
usedAmountDecimal: 'number',
|
|
93
133
|
};
|
|
94
134
|
}
|
|
95
135
|
|
|
@@ -129,7 +169,7 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails extends $dar
|
|
|
129
169
|
pageSize?: number;
|
|
130
170
|
/**
|
|
131
171
|
* @remarks
|
|
132
|
-
* The total number of
|
|
172
|
+
* The total number of entries.
|
|
133
173
|
*
|
|
134
174
|
* @example
|
|
135
175
|
* 100
|
|
@@ -174,6 +214,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
174
214
|
* 20
|
|
175
215
|
*/
|
|
176
216
|
cachedAmount?: number;
|
|
217
|
+
/**
|
|
218
|
+
* @remarks
|
|
219
|
+
* The exact value of total cached consumption. Supports decimals in credit scenarios.
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* 20.5
|
|
223
|
+
*/
|
|
224
|
+
cachedAmountDecimal?: number;
|
|
177
225
|
/**
|
|
178
226
|
* @remarks
|
|
179
227
|
* The paginated consumption details.
|
|
@@ -190,6 +238,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
190
238
|
* 300
|
|
191
239
|
*/
|
|
192
240
|
inputAmount?: number;
|
|
241
|
+
/**
|
|
242
|
+
* @remarks
|
|
243
|
+
* The exact value of total input consumption. Supports decimals in credit scenarios.
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* 300.5
|
|
247
|
+
*/
|
|
248
|
+
inputAmountDecimal?: number;
|
|
193
249
|
/**
|
|
194
250
|
* @remarks
|
|
195
251
|
* The total output token consumption.
|
|
@@ -198,6 +254,14 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
198
254
|
* 180
|
|
199
255
|
*/
|
|
200
256
|
outputAmount?: number;
|
|
257
|
+
/**
|
|
258
|
+
* @remarks
|
|
259
|
+
* The exact value of total output consumption. Supports decimals in credit scenarios.
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* 180.5
|
|
263
|
+
*/
|
|
264
|
+
outputAmountDecimal?: number;
|
|
201
265
|
/**
|
|
202
266
|
* @remarks
|
|
203
267
|
* Indicates whether the quota limit is exceeded.
|
|
@@ -208,9 +272,15 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
208
272
|
overLimit?: boolean;
|
|
209
273
|
/**
|
|
210
274
|
* @remarks
|
|
211
|
-
* The
|
|
212
|
-
*
|
|
213
|
-
*
|
|
275
|
+
* The quota dimension. Valid values: token and credit.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* token
|
|
279
|
+
*/
|
|
280
|
+
quotaDimension?: string;
|
|
281
|
+
/**
|
|
282
|
+
* @remarks
|
|
283
|
+
* The subject type. Valid values: consumer and consumer_group.
|
|
214
284
|
*
|
|
215
285
|
* @example
|
|
216
286
|
* consumer_group
|
|
@@ -232,29 +302,47 @@ export class GetGatewayQuotaRuleSubjectUsageResponseBodyData extends $dara.Model
|
|
|
232
302
|
* 500
|
|
233
303
|
*/
|
|
234
304
|
usedAmount?: number;
|
|
305
|
+
/**
|
|
306
|
+
* @remarks
|
|
307
|
+
* The exact value of the total used amount of the subject. Supports decimals in credit scenarios.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* 500.5
|
|
311
|
+
*/
|
|
312
|
+
usedAmountDecimal?: number;
|
|
235
313
|
static names(): { [key: string]: string } {
|
|
236
314
|
return {
|
|
237
315
|
cachedAmount: 'cachedAmount',
|
|
316
|
+
cachedAmountDecimal: 'cachedAmountDecimal',
|
|
238
317
|
details: 'details',
|
|
239
318
|
inputAmount: 'inputAmount',
|
|
319
|
+
inputAmountDecimal: 'inputAmountDecimal',
|
|
240
320
|
outputAmount: 'outputAmount',
|
|
321
|
+
outputAmountDecimal: 'outputAmountDecimal',
|
|
241
322
|
overLimit: 'overLimit',
|
|
323
|
+
quotaDimension: 'quotaDimension',
|
|
242
324
|
subjectType: 'subjectType',
|
|
243
325
|
totalQuota: 'totalQuota',
|
|
244
326
|
usedAmount: 'usedAmount',
|
|
327
|
+
usedAmountDecimal: 'usedAmountDecimal',
|
|
245
328
|
};
|
|
246
329
|
}
|
|
247
330
|
|
|
248
331
|
static types(): { [key: string]: any } {
|
|
249
332
|
return {
|
|
250
333
|
cachedAmount: 'number',
|
|
334
|
+
cachedAmountDecimal: 'number',
|
|
251
335
|
details: GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails,
|
|
252
336
|
inputAmount: 'number',
|
|
337
|
+
inputAmountDecimal: 'number',
|
|
253
338
|
outputAmount: 'number',
|
|
339
|
+
outputAmountDecimal: 'number',
|
|
254
340
|
overLimit: 'boolean',
|
|
341
|
+
quotaDimension: 'string',
|
|
255
342
|
subjectType: 'string',
|
|
256
343
|
totalQuota: 'number',
|
|
257
344
|
usedAmount: 'number',
|
|
345
|
+
usedAmountDecimal: 'number',
|
|
258
346
|
};
|
|
259
347
|
}
|
|
260
348
|
|