@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.
@@ -11,5 +11,6 @@ export type AggregationResource = {
11
11
 
12
12
  export type CreateAggregationResourceRequest = {
13
13
  instance?: string
14
+ namespace?: string
14
15
  data?: AggregationResource
15
16
  }
@@ -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 aggregation {
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kairship",
3
- "version":"0.2.2-44",
3
+ "version":"0.2.2-48",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {