|
20917 | 20917 | "description": "List of pod metrics."
|
20918 | 20918 | }
|
20919 | 20919 | }
|
| 20920 | + }, |
| 20921 | + "io.k8s.api.custom.metrics.v1beta1.MetricValue": { |
| 20922 | + "description": "a metric value for some object", |
| 20923 | + "properties": { |
| 20924 | + "apiVersion": { |
| 20925 | + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", |
| 20926 | + "type": "string" |
| 20927 | + }, |
| 20928 | + "kind": { |
| 20929 | + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", |
| 20930 | + "type": "string" |
| 20931 | + }, |
| 20932 | + "describedObject": { |
| 20933 | + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectReference", |
| 20934 | + "description": "a reference to the described object" |
| 20935 | + }, |
| 20936 | + "metricName": { |
| 20937 | + "description": "the name of the metric", |
| 20938 | + "type": "string" |
| 20939 | + }, |
| 20940 | + "timestamp": { |
| 20941 | + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", |
| 20942 | + "description": "indicates the time at which the metrics were produced" |
| 20943 | + }, |
| 20944 | + "windowSeconds": { |
| 20945 | + "description": "indicates the window ([Timestamp-Window, Timestamp]) from which these metrics were calculated, when returning rate metrics calculated from cumulative metrics (or zero for non-calculated instantaneous metrics).", |
| 20946 | + "format": "int64", |
| 20947 | + "type": "integer" |
| 20948 | + }, |
| 20949 | + "value": { |
| 20950 | + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", |
| 20951 | + "description": "the value of the metric for this" |
| 20952 | + } |
| 20953 | + } |
| 20954 | + }, |
| 20955 | + "io.k8s.api.custom.metrics.v1beta1.MetricValueList": { |
| 20956 | + "description": "a list of values for a given metric for some set of objects", |
| 20957 | + "properties": { |
| 20958 | + "apiVersion": { |
| 20959 | + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", |
| 20960 | + "type": "string" |
| 20961 | + }, |
| 20962 | + "kind": { |
| 20963 | + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", |
| 20964 | + "type": "string" |
| 20965 | + }, |
| 20966 | + "metadata": { |
| 20967 | + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", |
| 20968 | + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" |
| 20969 | + }, |
| 20970 | + "items": { |
| 20971 | + "items": { |
| 20972 | + "$ref": "#/definitions/io.k8s.api.custom.metrics.v1beta1.MetricValue" |
| 20973 | + }, |
| 20974 | + "type": "array", |
| 20975 | + "description": "the value of the metric across the described objects" |
| 20976 | + } |
| 20977 | + } |
20920 | 20978 | }
|
20921 | 20979 | },
|
20922 | 20980 | "info": {
|
@@ -117449,7 +117507,6 @@
|
117449 | 117507 | "type": "boolean",
|
117450 | 117508 | "uniqueItems": true
|
117451 | 117509 | }
|
117452 |
| - |
117453 | 117510 | ],
|
117454 | 117511 | "produces": [
|
117455 | 117512 | "application/json",
|
@@ -117632,6 +117689,172 @@
|
117632 | 117689 | "uniqueItems": true
|
117633 | 117690 | }
|
117634 | 117691 | ]
|
| 117692 | + }, |
| 117693 | + "/apis/custom.metrics.k8s.io/v1beta1/{compositemetricname}": { |
| 117694 | + "get": { |
| 117695 | + "consumes": [ |
| 117696 | + "*/*" |
| 117697 | + ], |
| 117698 | + "description": "Retrieve the given metric for the given non-namespaced object (e.g. Node, PersistentVolume). Composite metric name is of the form \"<objecttype>/<objectname>/<metricname>\" Passing '*' for objectname would retrieve the given metric for all non-namespaced objects of the given type.", |
| 117699 | + "operationId": "listCustomMetricsV1beta1MetricValue", |
| 117700 | + "parameters": [ |
| 117701 | + { |
| 117702 | + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", |
| 117703 | + "in": "query", |
| 117704 | + "name": "fieldSelector", |
| 117705 | + "type": "string", |
| 117706 | + "uniqueItems": true |
| 117707 | + }, |
| 117708 | + { |
| 117709 | + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", |
| 117710 | + "in": "query", |
| 117711 | + "name": "labelSelector", |
| 117712 | + "type": "string", |
| 117713 | + "uniqueItems": true |
| 117714 | + }, |
| 117715 | + { |
| 117716 | + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", |
| 117717 | + "in": "query", |
| 117718 | + "name": "limit", |
| 117719 | + "type": "integer", |
| 117720 | + "uniqueItems": true |
| 117721 | + } |
| 117722 | + ], |
| 117723 | + "produces": [ |
| 117724 | + "application/json", |
| 117725 | + "application/yaml", |
| 117726 | + "application/vnd.kubernetes.protobuf", |
| 117727 | + "application/json;stream=watch", |
| 117728 | + "application/vnd.kubernetes.protobuf;stream=watch" |
| 117729 | + ], |
| 117730 | + "responses": { |
| 117731 | + "200": { |
| 117732 | + "description": "OK", |
| 117733 | + "schema": { |
| 117734 | + "$ref": "#/definitions/io.k8s.api.custom.metrics.v1beta1.MetricValueList" |
| 117735 | + } |
| 117736 | + }, |
| 117737 | + "401": { |
| 117738 | + "description": "Unauthorized" |
| 117739 | + } |
| 117740 | + }, |
| 117741 | + "schemes": [ |
| 117742 | + "https" |
| 117743 | + ], |
| 117744 | + "tags": [ |
| 117745 | + "custom_metrics_v1beta1" |
| 117746 | + ], |
| 117747 | + "x-kubernetes-action": "list", |
| 117748 | + "x-kubernetes-group-version-kind": { |
| 117749 | + "group": "", |
| 117750 | + "kind": "MetricValueList", |
| 117751 | + "version": "v1beta1" |
| 117752 | + } |
| 117753 | + }, |
| 117754 | + "parameters": [ |
| 117755 | + { |
| 117756 | + "description": "composite metric name", |
| 117757 | + "in": "path", |
| 117758 | + "name": "compositemetricname", |
| 117759 | + "required": true, |
| 117760 | + "type": "string", |
| 117761 | + "uniqueItems": true |
| 117762 | + }, |
| 117763 | + { |
| 117764 | + "description": "If 'true', then the output is pretty printed.", |
| 117765 | + "in": "query", |
| 117766 | + "name": "pretty", |
| 117767 | + "type": "string", |
| 117768 | + "uniqueItems": true |
| 117769 | + } |
| 117770 | + ] |
| 117771 | + }, |
| 117772 | + "/apis/custom.metrics.k8s.io/v1beta1/namespaces/{namespace}/{compositemetricname}": { |
| 117773 | + "get": { |
| 117774 | + "consumes": [ |
| 117775 | + "*/*" |
| 117776 | + ], |
| 117777 | + "description": "retrieve the given metric (in composite form) which describes the given namespace. Composite form of metrics can be either \"metric/<metricname>\" to fetch metrics of all objects in the namespace, or \"<objecttype>/<objectname>/<metricname>\" to fetch metrics of the specified object type and name. Passing \"*\" for objectname would fetch metrics of all objects of the specified type in the namespace.", |
| 117778 | + "operationId": "listCustomMetricsV1beta1NamespacedMetricValue", |
| 117779 | + "parameters": [ |
| 117780 | + { |
| 117781 | + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", |
| 117782 | + "in": "query", |
| 117783 | + "name": "fieldSelector", |
| 117784 | + "type": "string", |
| 117785 | + "uniqueItems": true |
| 117786 | + }, |
| 117787 | + { |
| 117788 | + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", |
| 117789 | + "in": "query", |
| 117790 | + "name": "labelSelector", |
| 117791 | + "type": "string", |
| 117792 | + "uniqueItems": true |
| 117793 | + }, |
| 117794 | + { |
| 117795 | + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", |
| 117796 | + "in": "query", |
| 117797 | + "name": "limit", |
| 117798 | + "type": "integer", |
| 117799 | + "uniqueItems": true |
| 117800 | + } |
| 117801 | + ], |
| 117802 | + "produces": [ |
| 117803 | + "application/json", |
| 117804 | + "application/yaml", |
| 117805 | + "application/vnd.kubernetes.protobuf", |
| 117806 | + "application/json;stream=watch", |
| 117807 | + "application/vnd.kubernetes.protobuf;stream=watch" |
| 117808 | + ], |
| 117809 | + "responses": { |
| 117810 | + "200": { |
| 117811 | + "description": "OK", |
| 117812 | + "schema": { |
| 117813 | + "$ref": "#/definitions/io.k8s.api.custom.metrics.v1beta1.MetricValueList" |
| 117814 | + } |
| 117815 | + }, |
| 117816 | + "401": { |
| 117817 | + "description": "Unauthorized" |
| 117818 | + } |
| 117819 | + }, |
| 117820 | + "schemes": [ |
| 117821 | + "https" |
| 117822 | + ], |
| 117823 | + "tags": [ |
| 117824 | + "custom_metrics_v1beta1" |
| 117825 | + ], |
| 117826 | + "x-kubernetes-action": "list", |
| 117827 | + "x-kubernetes-group-version-kind": { |
| 117828 | + "group": "", |
| 117829 | + "kind": "MetricValueList", |
| 117830 | + "version": "v1beta1" |
| 117831 | + } |
| 117832 | + }, |
| 117833 | + "parameters": [ |
| 117834 | + { |
| 117835 | + "description": "composite metric name", |
| 117836 | + "in": "path", |
| 117837 | + "name": "compositemetricname", |
| 117838 | + "required": true, |
| 117839 | + "type": "string", |
| 117840 | + "uniqueItems": true |
| 117841 | + }, |
| 117842 | + { |
| 117843 | + "description": "name of the namespace", |
| 117844 | + "in": "path", |
| 117845 | + "name": "namespace", |
| 117846 | + "required": true, |
| 117847 | + "type": "string", |
| 117848 | + "uniqueItems": true |
| 117849 | + }, |
| 117850 | + { |
| 117851 | + "description": "If 'true', then the output is pretty printed.", |
| 117852 | + "in": "query", |
| 117853 | + "name": "pretty", |
| 117854 | + "type": "string", |
| 117855 | + "uniqueItems": true |
| 117856 | + } |
| 117857 | + ] |
117635 | 117858 | }
|
117636 | 117859 | },
|
117637 | 117860 | "security": [
|
|
0 commit comments