diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml index 7468ac01d2f16..3f8b5ef9e25e2 100644 --- a/oas_docs/output/kibana.serverless.yaml +++ b/oas_docs/output/kibana.serverless.yaml @@ -70742,15 +70742,13 @@ components: type: number category_1_count: description: The number of risk input documents that contributed to the Category 1 score (`category_1_score`). - format: integer - type: number + type: integer category_1_score: description: The contribution of Category 1 to the overall risk score (`calculated_score`). Category 1 contains Detection Engine Alerts. format: double type: number category_2_count: - format: integer - type: number + type: integer category_2_score: format: double type: number diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index f44326c966644..45500e11aca17 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -83481,15 +83481,13 @@ components: type: number category_1_count: description: The number of risk input documents that contributed to the Category 1 score (`category_1_score`). - format: integer - type: number + type: integer category_1_score: description: The contribution of Category 1 to the overall risk score (`calculated_score`). Category 1 contains Detection Engine Alerts. format: double type: number category_2_count: - format: integer - type: number + type: integer category_2_score: format: double type: number diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts index 4cfa77fac7fd3..576d09a6296a7 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.gen.ts @@ -151,13 +151,13 @@ export const EntityRiskScoreRecord = z.object({ /** * The number of risk input documents that contributed to the Category 1 score (`category_1_score`). */ - category_1_count: z.number(), + category_1_count: z.number().int(), /** * A list of the highest-risk documents contributing to this risk score. Useful for investigative purposes. */ inputs: z.array(RiskScoreInput), category_2_score: z.number().optional(), - category_2_count: z.number().optional(), + category_2_count: z.number().int().optional(), notes: z.array(z.string()), criticality_modifier: z.number().optional(), criticality_level: AssetCriticalityLevel.optional(), diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.schema.yaml index b1827a58ee214..2a10ea6b33c70 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/entity_analytics/common/common.schema.yaml @@ -203,8 +203,7 @@ components: format: double description: The contribution of Category 1 to the overall risk score (`calculated_score`). Category 1 contains Detection Engine Alerts. category_1_count: - type: number - format: integer + type: integer description: The number of risk input documents that contributed to the Category 1 score (`category_1_score`). inputs: type: array @@ -215,8 +214,7 @@ components: type: number format: double category_2_count: - type: number - format: integer + type: integer notes: type: array items: diff --git a/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml b/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml index e28fbf0e0adfa..b723445d1fd3f 100644 --- a/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml @@ -1591,8 +1591,7 @@ components: description: >- The number of risk input documents that contributed to the Category 1 score (`category_1_score`). - format: integer - type: number + type: integer category_1_score: description: >- The contribution of Category 1 to the overall risk score @@ -1600,8 +1599,7 @@ components: format: double type: number category_2_count: - format: integer - type: number + type: integer category_2_score: format: double type: number diff --git a/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml b/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml index 1bfae606d4bdc..d87eeea14d27d 100644 --- a/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml @@ -1591,8 +1591,7 @@ components: description: >- The number of risk input documents that contributed to the Category 1 score (`category_1_score`). - format: integer - type: number + type: integer category_1_score: description: >- The contribution of Category 1 to the overall risk score @@ -1600,8 +1599,7 @@ components: format: double type: number category_2_count: - format: integer - type: number + type: integer category_2_score: format: double type: number