From d6099519fda366ff4992b3488f065ee6cad8ad1c Mon Sep 17 00:00:00 2001 From: GitHub Date: Sat, 8 Feb 2025 00:08:53 +0000 Subject: [PATCH] Syncing API --- .../hcc-insights/automation-hub/content.json | 2 +- .../insights-advisor/content.json | 227 ++++++++++++++++-- 2 files changed, 209 insertions(+), 20 deletions(-) diff --git a/packages/common/config/apis/hcc-insights/automation-hub/content.json b/packages/common/config/apis/hcc-insights/automation-hub/content.json index c5408585..63b275c7 100644 --- a/packages/common/config/apis/hcc-insights/automation-hub/content.json +++ b/packages/common/config/apis/hcc-insights/automation-hub/content.json @@ -8220,7 +8220,7 @@ "Purge": { "properties": { "finished_before": { - "default": "2024-12-30", + "default": "2025-01-01", "description": "Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]'", "format": "date-time", "type": "string" diff --git a/packages/common/config/apis/hcc-insights/insights-advisor/content.json b/packages/common/config/apis/hcc-insights/insights-advisor/content.json index 6ef506c6..2e611474 100644 --- a/packages/common/config/apis/hcc-insights/insights-advisor/content.json +++ b/packages/common/config/apis/hcc-insights/insights-advisor/content.json @@ -145,13 +145,16 @@ "type": "string" }, "rating": { - "allOf": [ - { - "$ref": "#/components/schemas/RatingEnum" - } + "description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like", + "enum": [ + -1, + 0, + 1 ], "maximum": 32767, - "minimum": -32768 + "minimum": -32768, + "type": "integer", + "x-spec-enum-id": "77fd471e36283637" }, "rule": { "description": "Rule ID from Insights", @@ -1184,15 +1187,6 @@ ], "type": "object" }, - "RatingEnum": { - "description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like", - "enum": [ - -1, - 0, - 1 - ], - "type": "integer" - }, "Report": { "properties": { "details": {}, @@ -1717,13 +1711,16 @@ "description": "Rule ratings list the rating (-1, 0 or +1) for one or more rules. The\nrule is listed by its Insights Rule ID.", "properties": { "rating": { - "allOf": [ - { - "$ref": "#/components/schemas/RatingEnum" - } + "description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like", + "enum": [ + -1, + 0, + 1 ], "maximum": 32767, - "minimum": -32768 + "minimum": -32768, + "type": "integer", + "x-spec-enum-id": "77fd471e36283637" }, "rule": { "description": "Rule ID from Insights", @@ -6206,6 +6203,54 @@ "get": { "description": "Show overview statistics for this user\n\nThis gives the number of pathways, and incident, critical and\nimportant recommendations, affecting systems that the user can see.", "operationId": "stats_overview_retrieve", + "parameters": [ + { + "description": "Tags have a namespace, key and value in the form namespace/key=value", + "in": "query", + "name": "tags", + "schema": { + "items": { + "format": "regex", + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "List of Inventory host group names", + "in": "query", + "name": "groups", + "schema": { + "items": { + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "Is this a SAP system?", + "in": "query", + "name": "filter[system_profile][sap_system]", + "schema": { + "type": "boolean" + } + }, + { + "description": "Are there systems which contain these SAP SIDs?", + "in": "query", + "name": "filter[system_profile][sap_sids][contains]", + "schema": { + "items": { + "format": "regex", + "type": "string" + }, + "type": "array" + }, + "style": "form" + } + ], "responses": { "200": { "content": { @@ -6232,6 +6277,54 @@ "get": { "description": "Show statistics of reports impacting across categories and risks.\n\nOnly current reports are considered.", "operationId": "stats_reports_retrieve", + "parameters": [ + { + "description": "Tags have a namespace, key and value in the form namespace/key=value", + "in": "query", + "name": "tags", + "schema": { + "items": { + "format": "regex", + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "List of Inventory host group names", + "in": "query", + "name": "groups", + "schema": { + "items": { + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "Is this a SAP system?", + "in": "query", + "name": "filter[system_profile][sap_system]", + "schema": { + "type": "boolean" + } + }, + { + "description": "Are there systems which contain these SAP SIDs?", + "in": "query", + "name": "filter[system_profile][sap_sids][contains]", + "schema": { + "items": { + "format": "regex", + "type": "string" + }, + "type": "array" + }, + "style": "form" + } + ], "responses": { "200": { "content": { @@ -6258,6 +6351,54 @@ "get": { "description": "Show statistics of rule usage across categories and risks.\n\nOnly current reports are considered.", "operationId": "stats_rules_retrieve", + "parameters": [ + { + "description": "Tags have a namespace, key and value in the form namespace/key=value", + "in": "query", + "name": "tags", + "schema": { + "items": { + "format": "regex", + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "List of Inventory host group names", + "in": "query", + "name": "groups", + "schema": { + "items": { + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "Is this a SAP system?", + "in": "query", + "name": "filter[system_profile][sap_system]", + "schema": { + "type": "boolean" + } + }, + { + "description": "Are there systems which contain these SAP SIDs?", + "in": "query", + "name": "filter[system_profile][sap_sids][contains]", + "schema": { + "items": { + "format": "regex", + "type": "string" + }, + "type": "array" + }, + "style": "form" + } + ], "responses": { "200": { "content": { @@ -6284,6 +6425,54 @@ "get": { "description": "Show statistics of systems being impacted across categories and risks.\n\nOnly current reports are considered.", "operationId": "stats_systems_retrieve", + "parameters": [ + { + "description": "Tags have a namespace, key and value in the form namespace/key=value", + "in": "query", + "name": "tags", + "schema": { + "items": { + "format": "regex", + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "List of Inventory host group names", + "in": "query", + "name": "groups", + "schema": { + "items": { + "type": "string" + }, + "type": "array" + }, + "style": "form" + }, + { + "description": "Is this a SAP system?", + "in": "query", + "name": "filter[system_profile][sap_system]", + "schema": { + "type": "boolean" + } + }, + { + "description": "Are there systems which contain these SAP SIDs?", + "in": "query", + "name": "filter[system_profile][sap_sids][contains]", + "schema": { + "items": { + "format": "regex", + "type": "string" + }, + "type": "array" + }, + "style": "form" + } + ], "responses": { "200": { "content": {