diff --git a/oas_docs/output/kibana.serverless.yaml b/oas_docs/output/kibana.serverless.yaml index e64429b04bb4a..ca6bae10ab64a 100644 --- a/oas_docs/output/kibana.serverless.yaml +++ b/oas_docs/output/kibana.serverless.yaml @@ -59116,15 +59116,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 32ef4b958ee6e..5883284d253d6 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -66162,15 +66162,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 fe6412c761372..8322673f38320 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 811a516a5a467..b2e8d5d44ad75 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