@daocloud-proto/kairship 0.2.2-44 → 0.2.2-48
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.
|
@@ -287,9 +287,9 @@ export class Insight {
|
|
|
287
287
|
return fm.fetchReq<KairshipIoApiInsightV1alpha1Prometheus.PrometheusQueryRangeRequest, KairshipIoApiInsightV1alpha1Prometheus.PrometheusQueryRangeResult>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/range-metric?${fm.renderURLSearchParams(req, ["instance"])}`, {...initReq, method: "GET"})
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
export class
|
|
290
|
+
export class Aggregation {
|
|
291
291
|
static CreateAggregationResource(req: KairshipIoApiAggregationV1alpha1Aggregation.CreateAggregationResourceRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAggregationV1alpha1Aggregation.AggregationResource> {
|
|
292
|
-
return fm.fetchReq<KairshipIoApiAggregationV1alpha1Aggregation.CreateAggregationResourceRequest, KairshipIoApiAggregationV1alpha1Aggregation.AggregationResource>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/aggregationresource`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
292
|
+
return fm.fetchReq<KairshipIoApiAggregationV1alpha1Aggregation.CreateAggregationResourceRequest, KairshipIoApiAggregationV1alpha1Aggregation.AggregationResource>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/aggregationresource`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
export class Workspace {
|