@daocloud-proto/kpanda 0.10.6-28 → 0.10.6-34

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.
@@ -0,0 +1,46 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum MetricResourceKind {
8
+ KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
9
+ Pod = "Pod",
10
+ Service = "Service",
11
+ }
12
+
13
+ export type ListCustomMetricSummaryRequest = {
14
+ cluster?: string
15
+ kind?: MetricResourceKind
16
+ }
17
+
18
+ export type ListCustomMetricSummaryResponse = {
19
+ items?: string[]
20
+ }
21
+
22
+ export type ListMetricValuesRequest = {
23
+ cluster?: string
24
+ namespace?: string
25
+ kind?: MetricResourceKind
26
+ kindName?: string
27
+ name?: string
28
+ }
29
+
30
+ export type ListMetricValuesResponse = {
31
+ items?: CustomMetricValue[]
32
+ }
33
+
34
+ export type CustomMetricValueDescribedObject = {
35
+ kind?: string
36
+ namespace?: string
37
+ name?: string
38
+ apiVersion?: string
39
+ }
40
+
41
+ export type CustomMetricValue = {
42
+ metricName?: string
43
+ value?: string
44
+ timestamp?: string
45
+ describedObject?: CustomMetricValueDescribedObject
46
+ }
@@ -17,6 +17,7 @@ import * as KpandaIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.
17
17
  import * as KpandaIoApiAppsV1alpha1Replicaset from "../apps/v1alpha1/replicaset.pb"
18
18
  import * as KpandaIoApiAppsV1alpha1Request from "../apps/v1alpha1/request.pb"
19
19
  import * as KpandaIoApiAppsV1alpha1Statefulset from "../apps/v1alpha1/statefulset.pb"
20
+ import * as KpandaIoApiAutoscalingV1alpha1Custommetric from "../autoscaling/v1alpha1/custommetric.pb"
20
21
  import * as KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler from "../autoscaling/v1alpha1/horizontalpodautoscaler.pb"
21
22
  import * as KpandaIoApiBatchV1alpha1Cronjob from "../batch/v1alpha1/cronjob.pb"
22
23
  import * as KpandaIoApiBatchV1alpha1Job from "../batch/v1alpha1/job.pb"
@@ -621,6 +622,12 @@ export class Autoscaling {
621
622
  static UpdateHorizontalPodAutoscaler(req: KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.UpdateHorizontalPodAutoscalerRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.UpdateHorizontalPodAutoscalerResponse> {
622
623
  return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.UpdateHorizontalPodAutoscalerRequest, KpandaIoApiAutoscalingV1alpha1Horizontalpodautoscaler.UpdateHorizontalPodAutoscalerResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/horizontalpodautoscalers/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
623
624
  }
625
+ static ListCustomMetricSummary(req: KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryResponse> {
626
+ return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryRequest, KpandaIoApiAutoscalingV1alpha1Custommetric.ListCustomMetricSummaryResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/custommetricsummary?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
627
+ }
628
+ static ListMetricValues(req: KpandaIoApiAutoscalingV1alpha1Custommetric.ListMetricValuesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAutoscalingV1alpha1Custommetric.ListMetricValuesResponse> {
629
+ return fm.fetchReq<KpandaIoApiAutoscalingV1alpha1Custommetric.ListMetricValuesRequest, KpandaIoApiAutoscalingV1alpha1Custommetric.ListMetricValuesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/metricvalues?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
630
+ }
624
631
  }
625
632
  export class Storage {
626
633
  static ListStorageClasses(req: KpandaIoApiStorageV1alpha1Storageclass.ListStorageClassesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiStorageV1alpha1Storageclass.ListStorageClassesResponse> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.10.6-28",
3
+ "version":"0.10.6-34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {