diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml index 37614cbac7ef7..97075c2314d76 100644 --- a/oas_docs/output/kibana.serverless.yaml +++ b/oas_docs/output/kibana.serverless.yaml @@ -56752,15 +56752,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 3e47150272dee..e3da8c70f235e 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -52358,15 +52358,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 7f2ccc40ba725..3137c8e0b503f 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 04967a63e205a..ada8735ab460a 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 a76e9d0486142..030dc603c6e88 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 @@ -1150,8 +1150,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 @@ -1159,8 +1158,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 ab872d479c13e..8a1b8207480f9 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 @@ -1150,8 +1150,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 @@ -1159,8 +1158,7 @@ components: format: double type: number category_2_count: - format: integer - type: number + type: integer category_2_score: format: double type: number