{ "swagger": "2.0", "info": { "description": "This is a kubeeye api server.", "title": "KubeEye API", "contact": {}, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "1.0" }, "host": "172.31.73.216:30882", "basePath": "/kapis/kubeeye.kubesphere.io/v1alpha2", "paths": { "/inspectplans": { "get": { "description": "ListInspectPlan", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectPlan" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "sortBy=createTime", "name": "sortBy", "in": "query" }, { "type": "string", "description": "ascending=true", "name": "ascending", "in": "query" }, { "type": "integer", "description": "limit=10", "name": "limit", "in": "query" }, { "type": "integer", "description": "page=1", "name": "page", "in": "query" }, { "type": "string", "description": "labelSelector=app=nginx", "name": "labelSelector", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } } } }, "put": { "description": "UpdateInspectRule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectPlan" ], "summary": "Show an Inspect", "parameters": [ { "description": "update InspectPlan", "name": "v1alpha2.InspectPlan", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } } }, "post": { "description": "CreateInspectPlan", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectPlan" ], "summary": "Show an Inspect", "parameters": [ { "description": "Add InspectPlan", "name": "InspectPlan", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } } } }, "/inspectplans/{name}": { "get": { "description": "GetInspectPlan", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectPlan" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } } }, "delete": { "description": "DeleteInspectRule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectPlan" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } } }, "patch": { "description": "PatchInspectPlan", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectPlan" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true }, { "description": "patch InspectPlan", "name": "v1alpha2.InspectPlan", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } } } }, "/inspectplans/{name}/status": { "patch": { "description": "PatchInspectPlanStatus", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectPlan" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true }, { "description": "{status:{lastTaskStatus:‘’}}", "name": "status", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1alpha2.InspectPlanStatus" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectPlan" } } } } }, "/inspectresults": { "get": { "description": "get ListInspectResult", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectResult" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "sortBy=createTime", "name": "sortBy", "in": "query" }, { "type": "string", "description": "ascending=true", "name": "ascending", "in": "query" }, { "type": "integer", "description": "limit=10", "name": "limit", "in": "query" }, { "type": "integer", "description": "page=1", "name": "page", "in": "query" }, { "type": "string", "description": "labelSelector=app=nginx", "name": "labelSelector", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.InspectResult" } } } } } }, "/inspectresults/{name}": { "get": { "description": "GetInspectResult", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectResult" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true }, { "type": "string", "description": "type", "name": "type", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectResult" } } } } }, "/inspectrules": { "get": { "description": "ListInspectRule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectRule" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "sortBy=createTime", "name": "sortBy", "in": "query" }, { "type": "string", "description": "ascending=true", "name": "ascending", "in": "query" }, { "type": "integer", "description": "limit=10", "name": "limit", "in": "query" }, { "type": "integer", "description": "page=1", "name": "page", "in": "query" }, { "type": "string", "description": "labelSelector=app=nginx", "name": "labelSelector", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.InspectRule" } } } } }, "put": { "description": "UpdateInspectRule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectRule" ], "summary": "Show an Inspect", "parameters": [ { "description": "Add InspectRule", "name": "v1alpha2.InspectRule", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1alpha2.InspectRule" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectRule" } } } }, "post": { "description": "CreateInspectRule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectRule" ], "summary": "Show an Inspect", "parameters": [ { "description": "Add InspectRule", "name": "InspectRule", "in": "body", "required": true, "schema": { "$ref": "#/definitions/v1alpha2.InspectRule" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectRule" } } } } }, "/inspectrules/{name}": { "get": { "description": "GetInspectRule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectRule" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectRule" } } } }, "delete": { "description": "DeleteInspectRule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectRule" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectRule" } } } } }, "/inspecttasks": { "get": { "description": "ListInspectTask", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectTask" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "sortBy=createTime", "name": "sortBy", "in": "query" }, { "type": "string", "description": "ascending=true", "name": "ascending", "in": "query" }, { "type": "integer", "description": "limit=10", "name": "limit", "in": "query" }, { "type": "integer", "description": "page=1", "name": "page", "in": "query" }, { "type": "string", "description": "labelSelector=app=nginx", "name": "labelSelector", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.InspectTask" } } } } } }, "/inspecttasks/{name}": { "get": { "description": "ListInspectTask", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectTask" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectTask" } } } }, "delete": { "description": "DeleteInspectTask", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "InspectTask" ], "summary": "Show an Inspect", "parameters": [ { "type": "string", "description": "name", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/v1alpha2.InspectTask" } } } } } }, "definitions": { "v1.FieldsV1": { "type": "object" }, "v1.ManagedFieldsEntry": { "type": "object", "properties": { "apiVersion": { "description": "APIVersion defines the version of this resource that this field set\napplies to. The format is \"group/version\" just like the top-level\nAPIVersion field. It is necessary to track the version of a field\nset because it cannot be automatically converted.", "type": "string" }, "fieldsType": { "description": "FieldsType is the discriminator for the different fields format and version.\nThere is currently only one possible value: \"FieldsV1\"", "type": "string" }, "fieldsV1": { "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.\n+optional", "allOf": [ { "$ref": "#/definitions/v1.FieldsV1" } ] }, "manager": { "description": "Manager is an identifier of the workflow managing these fields.", "type": "string" }, "operation": { "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created.\nThe only valid values for this field are 'Apply' and 'Update'.", "allOf": [ { "$ref": "#/definitions/v1.ManagedFieldsOperationType" } ] }, "subresource": { "description": "Subresource is the name of the subresource used to update that object, or\nempty string if the object was updated through the main resource. The\nvalue of this field is used to distinguish between managers, even if they\nshare the same name. For example, a status update will be distinct from a\nregular update using the same manager name.\nNote that the APIVersion field is not related to the Subresource field and\nit always corresponds to the version of the main resource.", "type": "string" }, "time": { "description": "Time is the timestamp of when the ManagedFields entry was added. The\ntimestamp will also be updated if a field is added, the manager\nchanges any of the owned fields value or removes a field. The\ntimestamp does not update when a field is removed from the entry\nbecause another manager took it over.\n+optional", "type": "string" } } }, "v1.ManagedFieldsOperationType": { "type": "string", "enum": [ "Apply", "Update" ], "x-enum-varnames": [ "ManagedFieldsOperationApply", "ManagedFieldsOperationUpdate" ] }, "v1.ObjectMeta": { "type": "object", "properties": { "annotations": { "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations\n+optional", "type": "object", "additionalProperties": { "type": "string" } }, "creationTimestamp": { "description": "CreationTimestamp is a timestamp representing the server time when this object was\ncreated. It is not guaranteed to be set in happens-before order across separate operations.\nClients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system.\nRead-only.\nNull for lists.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n+optional", "type": "string" }, "deletionGracePeriodSeconds": { "description": "Number of seconds allowed for this object to gracefully terminate before\nit will be removed from the system. Only set when deletionTimestamp is also set.\nMay only be shortened.\nRead-only.\n+optional", "type": "integer" }, "deletionTimestamp": { "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This\nfield is set by the server when a graceful deletion is requested by the user, and is not\ndirectly settable by a client. The resource is expected to be deleted (no longer visible\nfrom resource lists, and not reachable by name) after the time in this field, once the\nfinalizers list is empty. As long as the finalizers list contains items, deletion is blocked.\nOnce the deletionTimestamp is set, this value may not be unset or be set further into the\nfuture, although it may be shortened or the resource may be deleted prior to this time.\nFor example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react\nby sending a graceful termination signal to the containers in the pod. After that 30 seconds,\nthe Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,\nremove the pod from the API. In the presence of network partitions, this object may still\nexist after this timestamp, until an administrator or automated process can determine the\nresource is fully terminated.\nIf not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested.\nRead-only.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n+optional", "type": "string" }, "finalizers": { "description": "Must be empty before the object is deleted from the registry. Each entry\nis an identifier for the responsible component that will remove the entry\nfrom the list. If the deletionTimestamp of the object is non-nil, entries\nin this list can only be removed.\nFinalizers may be processed and removed in any order. Order is NOT enforced\nbecause it introduces significant risk of stuck finalizers.\nfinalizers is a shared field, any actor with permission can reorder it.\nIf the finalizer list is processed in order, then this can lead to a situation\nin which the component responsible for the first finalizer in the list is\nwaiting for a signal (field value, external system, or other) produced by a\ncomponent responsible for a finalizer later in the list, resulting in a deadlock.\nWithout enforced ordering finalizers are free to order amongst themselves and\nare not vulnerable to ordering changes in the list.\n+optional\n+patchStrategy=merge\n+listType=set", "type": "array", "items": { "type": "string" } }, "generateName": { "description": "GenerateName is an optional prefix, used by the server, to generate a unique\nname ONLY IF the Name field has not been provided.\nIf this field is used, the name returned to the client will be different\nthan the name passed. This value will also be combined with a unique suffix.\nThe provided value has the same validation rules as the Name field,\nand may be truncated by the length of the suffix required to make the value\nunique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency\n+optional", "type": "string" }, "generation": { "description": "A sequence number representing a specific generation of the desired state.\nPopulated by the system. Read-only.\n+optional", "type": "integer" }, "labels": { "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels\n+optional", "type": "object", "additionalProperties": { "type": "string" } }, "managedFields": { "description": "ManagedFields maps workflow-id and version to the set of fields\nthat are managed by that workflow. This is mostly for internal\nhousekeeping, and users typically shouldn't need to set or\nunderstand this field. A workflow can be the user's name, a\ncontroller's name, or the name of a specific apply path like\n\"ci-cd\". The set of fields is always in the version that the\nworkflow used when modifying the object.\n\n+optional\n+listType=atomic", "type": "array", "items": { "$ref": "#/definitions/v1.ManagedFieldsEntry" } }, "name": { "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names\n+optional", "type": "string" }, "namespace": { "description": "Namespace defines the space within which each name must be unique. An empty namespace is\nequivalent to the \"default\" namespace, but \"default\" is the canonical representation.\nNot all objects are required to be scoped to a namespace - the value of this field for\nthose objects will be empty.\n\nMust be a DNS_LABEL.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces\n+optional", "type": "string" }, "ownerReferences": { "description": "List of objects depended by this object. If ALL objects in the list have\nbeen deleted, this object will be garbage collected. If this object is managed by a controller,\nthen an entry in this list will point to this controller, with the controller field set to true.\nThere cannot be more than one managing controller.\n+optional\n+patchMergeKey=uid\n+patchStrategy=merge\n+listType=map\n+listMapKey=uid", "type": "array", "items": { "$ref": "#/definitions/v1.OwnerReference" } }, "resourceVersion": { "description": "An opaque value that represents the internal version of this object that can\nbe used by clients to determine when objects have changed. May be used for optimistic\nconcurrency, change detection, and the watch operation on a resource or set of resources.\nClients must treat these values as opaque and passed unmodified back to the server.\nThey may only be valid for a particular resource or set of resources.\n\nPopulated by the system.\nRead-only.\nValue must be treated as opaque by clients and .\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\n+optional", "type": "string" }, "selfLink": { "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.\n+optional", "type": "string" }, "uid": { "description": "UID is the unique in time and space value for this object. It is typically generated by\nthe server on successful creation of a resource and is not allowed to change on PUT\noperations.\n\nPopulated by the system.\nRead-only.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids\n+optional", "type": "string" } } }, "v1.OwnerReference": { "type": "object", "properties": { "apiVersion": { "description": "API version of the referent.", "type": "string" }, "blockOwnerDeletion": { "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then\nthe owner cannot be deleted from the key-value store until this\nreference is removed.\nSee https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion\nfor how the garbage collector interacts with this field and enforces the foreground deletion.\nDefaults to false.\nTo set this field, a user needs \"delete\" permission of the owner,\notherwise 422 (Unprocessable Entity) will be returned.\n+optional", "type": "boolean" }, "controller": { "description": "If true, this reference points to the managing controller.\n+optional", "type": "boolean" }, "kind": { "description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", "type": "string" }, "uid": { "description": "UID of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", "type": "string" } } }, "v1alpha2.Cluster": { "type": "object", "properties": { "name": { "type": "string" }, "provider": { "type": "string" } } }, "v1alpha2.ClusterInfo": { "type": "object", "properties": { "namespacesCount": { "type": "integer" }, "nodesCount": { "type": "integer" }, "version": { "type": "string" } } }, "v1alpha2.CommandResultItem": { "type": "object", "properties": { "assert": { "type": "boolean" }, "command": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "value": { "type": "string" } } }, "v1alpha2.ComponentResultItem": { "type": "object", "properties": { "assert": { "type": "boolean" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" } } }, "v1alpha2.CustomCommandRule": { "type": "object", "properties": { "command": { "type": "string" }, "desc": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "nodeSelector": { "type": "object", "additionalProperties": { "type": "string" } }, "rule": { "type": "string" } } }, "v1alpha2.ExtraInfo": { "type": "object", "properties": { "namespacesList": { "type": "array", "items": { "type": "string" } }, "workloadsCount": { "type": "integer" } } }, "v1alpha2.FileChangeResultItem": { "type": "object", "properties": { "assert": { "type": "boolean" }, "issues": { "type": "array", "items": { "type": "string" } }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "path": { "type": "string" } } }, "v1alpha2.FileChangeRule": { "type": "object", "properties": { "desc": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "nodeSelector": { "type": "object", "additionalProperties": { "type": "string" } }, "path": { "type": "string" }, "rule": { "type": "string" } } }, "v1alpha2.FileFilterRule": { "type": "object", "properties": { "desc": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "nodeSelector": { "type": "object", "additionalProperties": { "type": "string" } }, "path": { "type": "string" }, "rule": { "type": "string" } } }, "v1alpha2.InspectPlan": { "type": "object", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n+optional", "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n+optional", "type": "string" }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { "$ref": "#/definitions/v1alpha2.InspectPlanSpec" }, "status": { "$ref": "#/definitions/v1alpha2.InspectPlanStatus" } } }, "v1alpha2.InspectPlanSpec": { "type": "object", "properties": { "clusterName": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.Cluster" } }, "kubeConfig": { "type": "string" }, "maxTasks": { "type": "integer" }, "one": { "type": "string" }, "ruleNames": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.InspectRuleNames" } }, "schedule": { "type": "string" }, "suspend": { "type": "boolean" }, "timeout": { "type": "string" } } }, "v1alpha2.InspectPlanStatus": { "type": "object", "properties": { "TaskNames": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.TaskNames" } }, "lastScheduleTime": { "type": "string" }, "lastTaskEndTime": { "type": "string" }, "lastTaskName": { "type": "string" }, "lastTaskStartTime": { "type": "string" }, "lastTaskStatus": { "$ref": "#/definitions/v1alpha2.Phase" }, "nextScheduleTime": { "type": "string" } } }, "v1alpha2.InspectResult": { "type": "object", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n+optional", "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n+optional", "type": "string" }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { "$ref": "#/definitions/v1alpha2.InspectResultSpec" }, "status": { "$ref": "#/definitions/v1alpha2.InspectResultStatus" } } }, "v1alpha2.InspectResultSpec": { "type": "object", "properties": { "commandResult": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.CommandResultItem" } }, "componentResult": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.ComponentResultItem" } }, "fileChangeResult": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.FileChangeResultItem" } }, "fileFilterResult": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.FileChangeResultItem" } }, "inspectCluster": { "$ref": "#/definitions/v1alpha2.Cluster" }, "inspectRuleTotal": { "type": "object", "additionalProperties": { "type": "integer" } }, "nodeInfo": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.NodeInfoResultItem" } }, "opaResult": { "$ref": "#/definitions/v1alpha2.KubeeyeOpaResult" }, "prometheusResult": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.PrometheusResult" } }, "serviceConnectResult": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.ServiceConnectResultItem" } }, "sysctlResult": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.NodeMetricsResultItem" } }, "systemdResult": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.NodeMetricsResultItem" } } } }, "v1alpha2.InspectResultStatus": { "type": "object", "properties": { "complete": { "type": "boolean" }, "duration": { "type": "string" }, "level": { "type": "object", "additionalProperties": { "type": "integer" } }, "policy": { "$ref": "#/definitions/v1alpha2.Policy" }, "taskEndTime": { "type": "string" }, "taskStartTime": { "type": "string" } } }, "v1alpha2.InspectRule": { "type": "object", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n+optional", "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n+optional", "type": "string" }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { "$ref": "#/definitions/v1alpha2.InspectRuleSpec" }, "status": { "$ref": "#/definitions/v1alpha2.InspectRuleStatus" } } }, "v1alpha2.InspectRuleNames": { "type": "object", "properties": { "name": { "type": "string" }, "nodeName": { "type": "string" }, "nodeSelector": { "type": "object", "additionalProperties": { "type": "string" } } } }, "v1alpha2.InspectRuleSpec": { "type": "object", "properties": { "componentExclude": { "type": "array", "items": { "type": "string" } }, "customCommand": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.CustomCommandRule" } }, "fileChange": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.FileChangeRule" } }, "fileFilter": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.FileFilterRule" } }, "nodeInfo": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.NodeInfoRule" } }, "opas": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.OpaRule" } }, "prometheus": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.PrometheusRule" } }, "prometheusEndpoint": { "type": "string" }, "serviceConnect": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.ServiceConnectRule" } }, "sysctl": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.SysRule" } }, "systemd": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.SysRule" } } } }, "v1alpha2.InspectRuleStatus": { "type": "object", "properties": { "endImportTime": { "type": "string" }, "levelCount": { "type": "object", "additionalProperties": { "type": "integer" } }, "startImportTime": { "type": "string" }, "state": { "$ref": "#/definitions/v1alpha2.State" } } }, "v1alpha2.InspectTask": { "type": "object", "properties": { "apiVersion": { "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n+optional", "type": "string" }, "kind": { "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n+optional", "type": "string" }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta" }, "spec": { "$ref": "#/definitions/v1alpha2.InspectTaskSpec" }, "status": { "$ref": "#/definitions/v1alpha2.InspectTaskStatus" } } }, "v1alpha2.InspectTaskSpec": { "type": "object", "properties": { "clusterName": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.Cluster" } }, "inspectPolicy": { "$ref": "#/definitions/v1alpha2.Policy" }, "ruleNames": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.InspectRuleNames" } }, "timeout": { "type": "string" } } }, "v1alpha2.InspectTaskStatus": { "type": "object", "properties": { "clusterInfo": { "$ref": "#/definitions/v1alpha2.ClusterInfo" }, "duration": { "type": "string" }, "endTimestamp": { "type": "string" }, "inspectRuleType": { "type": "array", "items": { "type": "string" } }, "jobPhase": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.JobPhase" } }, "startTimestamp": { "type": "string" }, "status": { "$ref": "#/definitions/v1alpha2.Phase" } } }, "v1alpha2.JobPhase": { "type": "object", "properties": { "jobName": { "type": "string" }, "phase": { "$ref": "#/definitions/v1alpha2.Phase" } } }, "v1alpha2.KubeeyeOpaResult": { "type": "object", "properties": { "extraInfo": { "$ref": "#/definitions/v1alpha2.ExtraInfo" }, "percent": { "type": "integer" }, "resourceResults": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.ResourceResult" } }, "scoreInfo": { "$ref": "#/definitions/v1alpha2.ScoreInfo" } } }, "v1alpha2.Level": { "type": "string", "enum": [ "danger", "warning", "ignore" ], "x-enum-varnames": [ "DangerLevel", "WarningLevel", "IgnoreLevel" ] }, "v1alpha2.NodeInfoResultItem": { "type": "object", "properties": { "assert": { "type": "boolean" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "resourcesType": { "$ref": "#/definitions/v1alpha2.ResourcesType" }, "value": { "type": "string" } } }, "v1alpha2.NodeInfoRule": { "type": "object", "properties": { "desc": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "mount": { "type": "string" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "nodeSelector": { "type": "object", "additionalProperties": { "type": "string" } }, "resourcesType": { "type": "string" }, "rule": { "type": "string" } } }, "v1alpha2.NodeMetricsResultItem": { "type": "object", "properties": { "assert": { "type": "boolean" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "value": { "type": "string" } } }, "v1alpha2.OpaRule": { "type": "object", "properties": { "desc": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "module": { "type": "string" }, "name": { "type": "string" }, "rule": { "type": "string" } } }, "v1alpha2.Phase": { "type": "string", "enum": [ "Pending", "Running", "Succeeded", "Failed", "Unknown" ], "x-enum-varnames": [ "PhasePending", "PhaseRunning", "PhaseSucceeded", "PhaseFailed", "PhaseUnknown" ] }, "v1alpha2.Policy": { "type": "string", "enum": [ "cycle", "single", "timing", "instant" ], "x-enum-varnames": [ "CyclePolicy", "SinglePolicy", "InspectTypeTiming", "InspectTypeInstant" ] }, "v1alpha2.PrometheusResult": { "type": "object", "properties": { "assert": { "type": "boolean" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "result": { "type": "string" } } }, "v1alpha2.PrometheusRule": { "type": "object", "properties": { "desc": { "type": "string" }, "endpoint": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "rule": { "type": "string" } } }, "v1alpha2.ResourceResult": { "type": "object", "properties": { "name": { "type": "string" }, "namespace": { "type": "string" }, "resourceType": { "type": "string" }, "resultItems": { "type": "array", "items": { "$ref": "#/definitions/v1alpha2.ResultItem" } } } }, "v1alpha2.ResourcesType": { "type": "object", "properties": { "mount": { "type": "string" }, "type": { "type": "string" } } }, "v1alpha2.ResultItem": { "type": "object", "properties": { "level": { "type": "string" }, "message": { "type": "string" }, "reason": { "type": "string" } } }, "v1alpha2.ScoreInfo": { "type": "object", "properties": { "dangerous": { "type": "integer" }, "ignore": { "type": "integer" }, "passing": { "type": "integer" }, "score": { "type": "integer" }, "total": { "type": "integer" }, "warning": { "type": "integer" } } }, "v1alpha2.ServiceConnectResultItem": { "type": "object", "properties": { "assert": { "type": "boolean" }, "endpoint": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "namespace": { "type": "string" } } }, "v1alpha2.ServiceConnectRule": { "type": "object", "properties": { "desc": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "namespace": { "type": "string" }, "rule": { "type": "string" }, "workspace": { "type": "string" } } }, "v1alpha2.State": { "type": "string", "enum": [ "StartImport", "ImportComplete" ], "x-enum-varnames": [ "StartImport", "ImportComplete" ] }, "v1alpha2.SysRule": { "type": "object", "properties": { "desc": { "type": "string" }, "level": { "$ref": "#/definitions/v1alpha2.Level" }, "name": { "type": "string" }, "nodeName": { "type": "string" }, "nodeSelector": { "type": "object", "additionalProperties": { "type": "string" } }, "rule": { "type": "string" } } }, "v1alpha2.TaskNames": { "type": "object", "properties": { "name": { "type": "string" }, "taskStatus": { "$ref": "#/definitions/v1alpha2.Phase" } } } } }