Skip to content

Commit

Permalink
Syncing API (#452)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub <noreply@github.com>
  • Loading branch information
nacho-bot and web-flow authored Feb 7, 2025
1 parent a864fa6 commit f185726
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 209 deletions.
227 changes: 19 additions & 208 deletions packages/common/config/apis/hcc-insights/insights-advisor/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,13 @@
"type": "string"
},
"rating": {
"description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like",
"enum": [
-1,
0,
1
"allOf": [
{
"$ref": "#/components/schemas/RatingEnum"
}
],
"maximum": 32767,
"minimum": -32768,
"type": "integer",
"x-spec-enum-id": "77fd471e36283637"
"minimum": -32768
},
"rule": {
"description": "Rule ID from Insights",
Expand Down Expand Up @@ -1187,6 +1184,15 @@
],
"type": "object"
},
"RatingEnum": {
"description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like",
"enum": [
-1,
0,
1
],
"type": "integer"
},
"Report": {
"properties": {
"details": {},
Expand Down Expand Up @@ -1711,16 +1717,13 @@
"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": {
"description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like",
"enum": [
-1,
0,
1
"allOf": [
{
"$ref": "#/components/schemas/RatingEnum"
}
],
"maximum": 32767,
"minimum": -32768,
"type": "integer",
"x-spec-enum-id": "77fd471e36283637"
"minimum": -32768
},
"rule": {
"description": "Rule ID from Insights",
Expand Down Expand Up @@ -6203,54 +6206,6 @@
"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": {
Expand All @@ -6277,54 +6232,6 @@
"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": {
Expand All @@ -6351,54 +6258,6 @@
"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": {
Expand All @@ -6425,54 +6284,6 @@
"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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3720,7 +3720,7 @@
},
"info": {
"title": "Vulnerability Engine Manager",
"version": "2.42.39"
"version": "2.43.4"
},
"openapi": "3.0.0",
"paths": {
Expand Down

0 comments on commit f185726

Please sign in to comment.