Skip to content

Commit

Permalink
Merge pull request #432 from RedHatInsights/create-pull-request/patch
Browse files Browse the repository at this point in the history
Syncing API
  • Loading branch information
fhlavac authored Dec 11, 2024
2 parents de80feb + 6d1d8cc commit 6f519af
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 221 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@
},
"AzureUploadRequestOptions": {
"properties": {
"hyper_v_generation": {
"default": "V1",
"description": "Choose the VM Image HyperV generation, different features on Azure are available\ndepending on the HyperV generation.\n",
"enum": [
"V1",
"V2"
],
"type": "string"
},
"image_name": {
"description": "Name of the created image.\nMust begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.\nThe total length is limited to 60 characters.\n",
"example": "LinuxImage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2239,8 +2239,8 @@
}
},
"info": {
"description": "The API of the Advisor project in Insights",
"title": "Insights Advisor API",
"description": "The API for managing and issuing Red Hat generated tasks on your infrastructure",
"title": "Insights Tasks API",
"version": "1.0.0"
},
"openapi": "3.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,7 @@
"url": "https://www.gnu.org/licenses/gpl-3.0.en.html"
},
"title": "Patchman-engine API",
"version": "v3.7.39"
"version": "v3.7.55"
},
"openapi": "3.0.1",
"paths": {
Expand Down
4 changes: 2 additions & 2 deletions packages/common/config/apis/hcc-insights/tasks/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -1007,8 +1007,8 @@
}
},
"info": {
"description": "The API for managing and issuing Red Hat generated tasks on your infrastructure",
"title": "Insights Tasks API",
"description": "The API of the Advisor project in Insights",
"title": "Insights Advisor API",
"version": "1.0.0"
},
"openapi": "3.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1440,222 +1440,6 @@
}
]
},
"/api/rhacs/v1/centrals/{id}/metrics/federate": {
"get": {
"operationId": "federateMetrics",
"parameters": [
{
"$ref": "#/components/parameters/id"
}
],
"responses": {
"200": {
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
},
"description": "Returned Central metrics in a Prometheus text format"
},
"400": {
"content": {
"application/json": {
"examples": {
"MissingParameterExample": {
"$ref": "#/components/examples/400MissingParameterExample"
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Bad request"
},
"401": {
"content": {
"application/json": {
"examples": {
"401Example": {
"$ref": "#/components/examples/401Example"
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Auth token is invalid"
},
"404": {
"content": {
"application/json": {
"examples": {
"404Example": {
"$ref": "#/components/examples/404Example"
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Central ID not found"
},
"500": {
"content": {
"application/json": {
"examples": {
"500Example": {
"$ref": "#/components/examples/500Example"
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Unexpected error occurred"
}
},
"security": [
{
"Bearer": []
}
],
"summary": "Returns all metrics in scrapeable format for a given Central ID"
}
},
"/api/rhacs/v1/centrals/{id}/metrics/query": {
"get": {
"operationId": "getMetricsByInstantQuery",
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/filters"
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MetricsInstantQueryList"
}
}
},
"description": "Returned JSON array of Prometheus metrics objects from observatorium"
},
"401": {
"content": {
"application/json": {
"examples": {
"401Example": {
"$ref": "#/components/examples/401Example"
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Auth token is invalid"
},
"500": {
"content": {
"application/json": {
"examples": {
"500Example": {
"$ref": "#/components/examples/500Example"
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Unexpected error occurred"
}
},
"security": [
{
"Bearer": []
}
],
"summary": "Returns metrics with instant query by Central ID"
}
},
"/api/rhacs/v1/centrals/{id}/metrics/query_range": {
"get": {
"operationId": "getMetricsByRangeQuery",
"parameters": [
{
"$ref": "#/components/parameters/id"
},
{
"$ref": "#/components/parameters/duration"
},
{
"$ref": "#/components/parameters/interval"
},
{
"$ref": "#/components/parameters/filters"
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MetricsRangeQueryList"
}
}
},
"description": "Returned JSON array of Prometheus metrics objects from observatorium"
},
"401": {
"content": {
"application/json": {
"examples": {
"401Example": {
"$ref": "#/components/examples/401Example"
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Auth token is invalid"
},
"500": {
"content": {
"application/json": {
"examples": {
"500Example": {
"$ref": "#/components/examples/500Example"
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Unexpected error occurred"
}
},
"security": [
{
"Bearer": []
}
],
"summary": "Returns metrics with timeseries range query by Central ID"
}
},
"/api/rhacs/v1/cloud_accounts": {
"get": {
"operationId": "getCloudAccounts",
Expand Down

0 comments on commit 6f519af

Please sign in to comment.