From 1de5df4a0cef092b051df8dcbf00810f5163af16 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 29 Sep 2026 09:23:08 +0000 Subject: [PATCH] Regenerate client from commit c44c316 of spec repo --- .generator/schemas/v2/openapi.yaml | 635 ------------------ .../QueryAggregatedSignalsProblems.java | 56 -- .../com/datadog/api/client/ApiClient.java | 1 - .../api/client/v2/api/RumInsightsApi.java | 157 ----- .../model/AggregatedHighFrozenFrameRate.java | 300 --------- .../v2/model/AggregatedHighScriptEval.java | 419 ------------ .../v2/model/AggregatedLowCacheHitRate.java | 272 -------- .../model/AggregatedMobileScrollFriction.java | 240 ------- .../AggregatedSignalsProblemsRequest.java | 151 ----- ...gatedSignalsProblemsRequestAttributes.java | 369 ---------- .../AggregatedSignalsProblemsRequestData.java | 188 ------ .../AggregatedSignalsProblemsRequestType.java | 60 -- .../AggregatedSignalsProblemsResponse.java | 151 ----- ...atedSignalsProblemsResponseAttributes.java | 346 ---------- ...AggregatedSignalsProblemsResponseData.java | 216 ------ .../v2/model/AggregatedSlowFCPHighBytes.java | 338 ---------- .../AggregatedSlowInteractionLongTask.java | 394 ----------- .../model/AggregatedUncompressedResource.java | 417 ------------ .../v2/model/SignalsProblemsDetections.java | 473 ------------- .../model/SignalsProblemsSampleMetadata.java | 267 -------- .../api/client/v2/api/rum_insights.feature | 16 - .../com/datadog/api/client/v2/api/undo.json | 6 - 22 files changed, 5472 deletions(-) delete mode 100644 examples/v2/rum-insights/QueryAggregatedSignalsProblems.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedHighFrozenFrameRate.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedHighScriptEval.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedLowCacheHitRate.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedMobileScrollFriction.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequest.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestAttributes.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestData.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestType.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponse.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponseAttributes.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponseData.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSlowFCPHighBytes.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedSlowInteractionLongTask.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/AggregatedUncompressedResource.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/SignalsProblemsDetections.java delete mode 100644 src/main/java/com/datadog/api/client/v2/model/SignalsProblemsSampleMetadata.java diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 99e096bf764..fca5a8b2b74 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -4781,111 +4781,6 @@ components: required: - agentTrigger type: object - AggregatedHighFrozenFrameRate: - description: Aggregated high frozen frame rate detection at view level. - properties: - avg_frozen_frame_rate: - description: Average frozen frame rate as a fraction of total frames. - example: 0.15 - format: double - type: number - avg_segment_duration: - description: Average segment duration in nanoseconds. - example: 3000000000 - format: int64 - type: integer - avg_total_frozen_duration: - description: Average total frozen duration in nanoseconds. - example: 500000000 - format: int64 - type: integer - fingerprint: - description: Unique fingerprint identifying this detection group. - example: v1$mno345 - type: string - impact_score: - description: Impact score for this detection. - example: 14.0 - format: double - type: number - view_occurrences: - description: Number of sampled views where this detection occurred. - example: 5 - format: int32 - maximum: 2147483647 - type: integer - required: - - fingerprint - - view_occurrences - - avg_frozen_frame_rate - - avg_total_frozen_duration - - avg_segment_duration - - impact_score - type: object - AggregatedHighScriptEval: - description: Aggregated high script evaluation detection grouped by source. - properties: - avg_duration: - description: Average script evaluation duration in nanoseconds. - example: 300000000 - format: int64 - type: integer - avg_forced_style_layout: - description: Average forced style/layout duration in nanoseconds. - example: 0 - format: int64 - type: integer - fingerprint: - description: Unique fingerprint identifying this detection group. - example: v1$7766a8c2180aa153f5526ba8868999f8 - type: string - impact_score: - description: Impact score combining view frequency and duration severity. - example: 30.0 - format: double - type: number - instance_count: - description: Total number of detection instances across sampled views. - example: 3 - format: int32 - maximum: 2147483647 - type: integer - invoker_type: - description: Type of invoker that triggered the script evaluation. - example: user-callback - type: string - source_category: - description: Category of the script source. - example: third-party - nullable: true - type: string - source_function_name: - description: Name of the function that triggered the high script evaluation. - example: handleClick - type: string - source_url: - description: URL of the script that triggered the high script evaluation. - example: https://cdn.example.com/app.js - nullable: true - type: string - view_occurrences: - description: Number of sampled views where this detection occurred. - example: 3 - format: int32 - maximum: 2147483647 - type: integer - required: - - fingerprint - - source_url - - source_function_name - - source_category - - invoker_type - - view_occurrences - - instance_count - - avg_duration - - avg_forced_style_layout - - impact_score - type: object AggregatedLongTasksByInvokerType: description: Aggregated long task statistics for a single invoker type. properties: @@ -5085,71 +4980,6 @@ components: - type - attributes type: object - AggregatedLowCacheHitRate: - description: Aggregated low cache hit rate detection at view level. - properties: - avg_cache_hit_rate: - description: Average cache hit rate across affected views. - example: 0.15 - format: double - type: number - avg_resource_download_size_bytes: - description: Average total download size of uncached resources in bytes. - example: 1048576 - format: int64 - type: integer - fingerprint: - description: Unique fingerprint identifying this detection group. - example: v1$abc123 - type: string - impact_score: - description: Impact score for this detection. - example: 20.0 - format: double - type: number - view_occurrences: - description: Number of sampled views where this detection occurred. - example: 5 - format: int32 - maximum: 2147483647 - type: integer - required: - - fingerprint - - view_occurrences - - avg_cache_hit_rate - - avg_resource_download_size_bytes - - impact_score - type: object - AggregatedMobileScrollFriction: - description: Aggregated mobile scroll friction detection at view level. - properties: - avg_scroll_frozen_frame_count: - description: Average number of frozen frames during scroll interactions. - example: 3 - format: int32 - maximum: 2147483647 - type: integer - fingerprint: - description: Unique fingerprint identifying this detection group. - example: v1$ghi789 - type: string - impact_score: - description: Impact score for this detection. - example: 12.0 - format: double - type: number - view_occurrences: - description: Number of sampled views where this detection occurred. - example: 6 - format: int32 - maximum: 2147483647 - type: integer - required: - - fingerprint - - view_occurrences - - avg_scroll_frozen_frame_count - - impact_score - type: object AggregatedResource: description: Aggregated performance statistics for a single network resource across sampled view instances. properties: @@ -5348,310 +5178,6 @@ components: - avg_first_byte_ms - avg_download_ms type: object - AggregatedSignalsProblemsRequest: - description: Request body for the aggregated signals and problems endpoint. - properties: - data: - $ref: "#/components/schemas/AggregatedSignalsProblemsRequestData" - required: - - data - type: object - AggregatedSignalsProblemsRequestAttributes: - description: Attributes for an aggregated signals and problems query. - properties: - application_id: - description: The RUM application ID to analyze. - example: ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b - type: string - criteria: - $ref: "#/components/schemas/AggregatedWaterfallPerformanceCriteria" - detection_types: - description: List of detection types to include in the response. When omitted, all types are returned. - example: - - high_script_evaluations - - uncompressed_resources - items: - type: string - type: array - filter: - description: RUM query string to filter events (for example, @session.type:user @geo.country:US). - example: "@session.type:user" - type: string - from: - description: Start of the time range as a Unix timestamp in seconds. - example: 1762437564 - format: int64 - type: integer - sample_size: - description: Number of view instances to sample, between 1 and 50. - example: 30 - format: int32 - maximum: 50 - minimum: 1 - type: integer - to: - description: End of the time range as a Unix timestamp in seconds. - example: 1762523964 - format: int64 - type: integer - view_name: - description: The RUM view name to analyze (for example, /account/login). - example: /account/login(/:type) - type: string - required: - - application_id - - view_name - - from - - to - - sample_size - type: object - AggregatedSignalsProblemsRequestData: - description: Data envelope for an aggregated signals and problems request. - properties: - attributes: - $ref: "#/components/schemas/AggregatedSignalsProblemsRequestAttributes" - type: - $ref: "#/components/schemas/AggregatedSignalsProblemsRequestType" - required: - - type - - attributes - type: object - AggregatedSignalsProblemsRequestType: - description: The JSON:API type for aggregated signals and problems requests. - enum: - - aggregated_signals_problems - example: aggregated_signals_problems - type: string - x-enum-varnames: - - AGGREGATED_SIGNALS_PROBLEMS - AggregatedSignalsProblemsResponse: - description: Response body for the aggregated signals and problems endpoint. - properties: - data: - $ref: "#/components/schemas/AggregatedSignalsProblemsResponseData" - required: - - data - type: object - AggregatedSignalsProblemsResponseAttributes: - description: Attributes of an aggregated signals and problems response. - properties: - application_id: - description: The RUM application ID that was analyzed. - example: ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b - type: string - criteria: - $ref: "#/components/schemas/AggregatedWaterfallPerformanceCriteria" - from: - description: Start of the analyzed time range as a Unix timestamp in seconds. - example: 1710000000 - format: int64 - type: integer - problem_detections: - $ref: "#/components/schemas/SignalsProblemsDetections" - sample_metadata: - $ref: "#/components/schemas/SignalsProblemsSampleMetadata" - to: - description: End of the analyzed time range as a Unix timestamp in seconds. - example: 1710003600 - format: int64 - type: integer - view_name: - description: The RUM view name that was analyzed. - example: /checkout - type: string - required: - - view_name - - application_id - - from - - to - - sample_metadata - - problem_detections - type: object - AggregatedSignalsProblemsResponseData: - description: Data envelope for an aggregated signals and problems response. - properties: - attributes: - $ref: "#/components/schemas/AggregatedSignalsProblemsResponseAttributes" - id: - description: Hash-based unique identifier for this aggregation. - example: 2f0b3455 - type: string - type: - $ref: "#/components/schemas/AggregatedSignalsProblemsRequestType" - required: - - id - - type - - attributes - type: object - AggregatedSlowFCPHighBytes: - description: Aggregated slow first contentful paint with high byte count detection. - properties: - avg_bytes_before_fcp_bytes: - description: Average total bytes loaded before first contentful paint. - example: 2097152 - format: int64 - type: integer - avg_first_contentful_paint_ms: - description: Average first contentful paint time in milliseconds. - example: 3500 - format: int64 - type: integer - avg_resource_count_before_fcp: - description: Average number of resources loaded before first contentful paint. - example: 25 - format: int64 - type: integer - fingerprint: - description: Unique fingerprint identifying this detection group. - example: v1$def456 - type: string - impact_score: - description: Impact score for this detection. - example: 18.0 - format: double - type: number - platform: - description: Platform identifier for the affected views. - example: browser - type: string - view_occurrences: - description: Number of sampled views where this detection occurred. - example: 4 - format: int32 - maximum: 2147483647 - type: integer - required: - - fingerprint - - view_occurrences - - avg_first_contentful_paint_ms - - avg_bytes_before_fcp_bytes - - avg_resource_count_before_fcp - - platform - - impact_score - type: object - AggregatedSlowInteractionLongTask: - description: Aggregated slow interaction with long task detection grouped by action and selector. - properties: - action_type: - description: Type of user interaction that triggered the slow response. - example: click - type: string - avg_blocking_duration: - description: Average long task blocking duration in nanoseconds. - example: 250000000 - format: int64 - type: integer - avg_duration: - description: Average total interaction duration in nanoseconds. - example: 320000000 - format: int64 - type: integer - fingerprint: - description: Unique fingerprint identifying this detection group. - example: v1$jkl012 - type: string - impact_score: - description: Impact score combining view frequency and blocking severity. - example: 22.0 - format: double - type: number - instance_count: - description: Total number of detection instances across sampled views. - example: 9 - format: int32 - maximum: 2147483647 - type: integer - selector: - description: CSS selector of the element that was interacted with. - example: "#submit-button" - nullable: true - type: string - selector_normalized: - description: Normalized CSS selector with dynamic parts replaced. - example: button[data-action] - nullable: true - type: string - view_occurrences: - description: Number of sampled views where this detection occurred. - example: 7 - format: int32 - maximum: 2147483647 - type: integer - required: - - fingerprint - - action_type - - selector - - selector_normalized - - view_occurrences - - instance_count - - avg_blocking_duration - - avg_duration - - impact_score - type: object - AggregatedUncompressedResource: - description: Aggregated uncompressed resource detection grouped by URL path. - properties: - avg_body_size: - description: Average uncompressed body size in bytes. - example: 524288 - format: int64 - type: integer - avg_duration: - description: Average resource loading duration in nanoseconds. - example: 0 - format: int64 - type: integer - fingerprint: - description: Unique fingerprint identifying this detection group. - example: v1$65e268e25cab3a1f6230405ccf011a68 - type: string - impact_score: - description: Impact score combining view frequency and resource size. - example: 16.67 - format: double - type: number - instance_count: - description: Total number of detection instances across sampled views. - example: 1 - format: int32 - maximum: 2147483647 - type: integer - provider_type: - description: CDN or hosting provider type for the resource. - example: cloudfront - nullable: true - type: string - render_blocking: - description: Whether the resource is render-blocking. - example: blocking - nullable: true - type: string - resource_type: - description: Type of the resource (JS, CSS, image, fetch, and so on). - example: image - type: string - url_path_group: - description: Normalized URL path pattern for the uncompressed resource. - example: /cdn/hero.jpg - type: string - view_occurrences: - description: Number of sampled views where this detection occurred. - example: 1 - format: int32 - maximum: 2147483647 - type: integer - required: - - fingerprint - - url_path_group - - resource_type - - render_blocking - - provider_type - - view_occurrences - - instance_count - - avg_body_size - - avg_duration - - impact_score - type: object AggregatedWaterfallPerformanceCriteria: description: Performance criteria to filter view instances by a metric threshold. properties: @@ -111242,85 +110768,6 @@ components: display_name: Test User principal_id: user@example.com type: object - SignalsProblemsDetections: - description: Grouped detection results by detection type. - properties: - high_frozen_frame_rates: - description: Detected high frozen frame rate issues. - items: - $ref: "#/components/schemas/AggregatedHighFrozenFrameRate" - type: array - high_script_evaluations: - description: Detected high script evaluation issues. - items: - $ref: "#/components/schemas/AggregatedHighScriptEval" - type: array - low_cache_hit_rates: - description: Detected low cache hit rate issues. - items: - $ref: "#/components/schemas/AggregatedLowCacheHitRate" - type: array - mobile_scroll_frictions: - description: Detected mobile scroll friction issues. - items: - $ref: "#/components/schemas/AggregatedMobileScrollFriction" - type: array - slow_fcp_high_bytes: - description: Detected slow first contentful paint with high byte count issues. - items: - $ref: "#/components/schemas/AggregatedSlowFCPHighBytes" - type: array - slow_interaction_long_tasks: - description: Detected slow interaction with long task issues. - items: - $ref: "#/components/schemas/AggregatedSlowInteractionLongTask" - type: array - uncompressed_resources: - description: Detected uncompressed resource issues. - items: - $ref: "#/components/schemas/AggregatedUncompressedResource" - type: array - type: object - SignalsProblemsSampleMetadata: - description: Metadata about the sampling quality for a signals and problems query. - properties: - failed: - description: Number of view instances that failed to process. - example: 2 - format: int32 - maximum: 2147483647 - type: integer - requested: - description: Number of view instances requested for sampling. - example: 30 - format: int32 - maximum: 2147483647 - type: integer - sampled_view_ids: - description: List of RUM view IDs that were sampled. - example: - - 6fbf69b6-9455-436a-b894-a6bf64126d40 - items: - type: string - type: array - succeeded: - description: Number of view instances successfully processed. - example: 28 - format: int32 - maximum: 2147483647 - type: integer - success_rate: - description: Ratio of successfully processed views to requested views. - example: 0.93 - format: double - type: number - required: - - requested - - succeeded - - failed - - success_rate - - sampled_view_ids - type: object SimpleMonitorUserTemplate: description: A simplified version of a monitor user template. properties: @@ -201960,88 +201407,6 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). - /api/v2/rum/query/insight/aggregated_signals_problems: - post: - description: |- - Get aggregated performance signals and problem detections for a RUM view, sampled across multiple view instances. - operationId: QueryAggregatedSignalsProblems - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - application_id: ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b - from: 1762437564 - sample_size: 30 - to: 1762523964 - view_name: /account/login(/:type) - type: aggregated_signals_problems - schema: - $ref: "#/components/schemas/AggregatedSignalsProblemsRequest" - required: true - responses: - "201": - content: - application/json: - examples: - default: - value: - data: - attributes: - application_id: ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b - from: 1710000000 - problem_detections: - high_script_evaluations: - - avg_duration: 300000000 - avg_forced_style_layout: 0 - fingerprint: v1$7766a8c2180aa153f5526ba8868999f8 - impact_score: 30.0 - instance_count: 3 - invoker_type: user-callback - source_category: - source_function_name: handleClick - source_url: https://cdn.example.com/app.js - view_occurrences: 3 - sample_metadata: - failed: 2 - requested: 30 - sampled_view_ids: - - 6fbf69b6-9455-436a-b894-a6bf64126d40 - succeeded: 28 - success_rate: 0.93 - to: 1710003600 - view_name: /checkout - id: 2f0b3455 - type: aggregated_signals_problems - schema: - $ref: "#/components/schemas/AggregatedSignalsProblemsResponse" - description: Successful response - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Bad Request - "401": - content: - application/json: - schema: - $ref: "#/components/schemas/JSONAPIErrorResponse" - description: Unauthorized - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - summary: Query aggregated signals and problems - tags: ["RUM Insights"] - x-permission: - operator: OR - permissions: - - rum_apps_read - x-unstable: |- - **Note**: This endpoint is in preview and is subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/rum/query/insight/aggregated_waterfall: post: description: |- diff --git a/examples/v2/rum-insights/QueryAggregatedSignalsProblems.java b/examples/v2/rum-insights/QueryAggregatedSignalsProblems.java deleted file mode 100644 index 2588c1c9afa..00000000000 --- a/examples/v2/rum-insights/QueryAggregatedSignalsProblems.java +++ /dev/null @@ -1,56 +0,0 @@ -// Query aggregated signals and problems returns "Successful response" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.RumInsightsApi; -import com.datadog.api.client.v2.model.AggregatedSignalsProblemsRequest; -import com.datadog.api.client.v2.model.AggregatedSignalsProblemsRequestAttributes; -import com.datadog.api.client.v2.model.AggregatedSignalsProblemsRequestData; -import com.datadog.api.client.v2.model.AggregatedSignalsProblemsRequestType; -import com.datadog.api.client.v2.model.AggregatedSignalsProblemsResponse; -import com.datadog.api.client.v2.model.AggregatedWaterfallPerformanceCriteria; -import com.datadog.api.client.v2.model.AggregatedWaterfallPerformanceCriteriaMetric; -import java.util.Arrays; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); - defaultClient.setUnstableOperationEnabled("v2.queryAggregatedSignalsProblems", true); - RumInsightsApi apiInstance = new RumInsightsApi(defaultClient); - - AggregatedSignalsProblemsRequest body = - new AggregatedSignalsProblemsRequest() - .data( - new AggregatedSignalsProblemsRequestData() - .attributes( - new AggregatedSignalsProblemsRequestAttributes() - .applicationId("ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b") - .criteria( - new AggregatedWaterfallPerformanceCriteria() - .max(5.0) - .metric( - AggregatedWaterfallPerformanceCriteriaMetric - .LARGEST_CONTENTFUL_PAINT) - .min(2.5)) - .detectionTypes( - Arrays.asList("high_script_evaluations", "uncompressed_resources")) - .filter("@session.type:user") - .from(1762437564L) - .sampleSize(30) - .to(1762523964L) - .viewName("/account/login(/:type)")) - .type(AggregatedSignalsProblemsRequestType.AGGREGATED_SIGNALS_PROBLEMS)); - - try { - AggregatedSignalsProblemsResponse result = apiInstance.queryAggregatedSignalsProblems(body); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling RumInsightsApi#queryAggregatedSignalsProblems"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index 31da385557d..9217bc4d50c 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -1476,7 +1476,6 @@ public class ApiClient { put("v2.updateRUMOperation", false); put("v2.updateRUMOperationStrongLink", false); put("v2.queryAggregatedLongTasks", false); - put("v2.queryAggregatedSignalsProblems", false); put("v2.queryAggregatedWaterfall", false); put("v2.createScorecardOutcomesBatch", false); put("v2.getEntityRiskScore", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/RumInsightsApi.java b/src/main/java/com/datadog/api/client/v2/api/RumInsightsApi.java index c84bad5e56d..64138fd47c5 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RumInsightsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RumInsightsApi.java @@ -6,8 +6,6 @@ import com.datadog.api.client.Pair; import com.datadog.api.client.v2.model.AggregatedLongTasksRequest; import com.datadog.api.client.v2.model.AggregatedLongTasksResponse; -import com.datadog.api.client.v2.model.AggregatedSignalsProblemsRequest; -import com.datadog.api.client.v2.model.AggregatedSignalsProblemsResponse; import com.datadog.api.client.v2.model.AggregatedWaterfallRequest; import com.datadog.api.client.v2.model.AggregatedWaterfallResponse; import jakarta.ws.rs.client.Invocation; @@ -202,161 +200,6 @@ public ApiResponse queryAggregatedLongTasksWithHttp new GenericType() {}); } - /** - * Query aggregated signals and problems. - * - *

See {@link #queryAggregatedSignalsProblemsWithHttpInfo}. - * - * @param body (required) - * @return AggregatedSignalsProblemsResponse - * @throws ApiException if fails to make API call - */ - public AggregatedSignalsProblemsResponse queryAggregatedSignalsProblems( - AggregatedSignalsProblemsRequest body) throws ApiException { - return queryAggregatedSignalsProblemsWithHttpInfo(body).getData(); - } - - /** - * Query aggregated signals and problems. - * - *

See {@link #queryAggregatedSignalsProblemsWithHttpInfoAsync}. - * - * @param body (required) - * @return CompletableFuture<AggregatedSignalsProblemsResponse> - */ - public CompletableFuture queryAggregatedSignalsProblemsAsync( - AggregatedSignalsProblemsRequest body) { - return queryAggregatedSignalsProblemsWithHttpInfoAsync(body) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get aggregated performance signals and problem detections for a RUM view, sampled across - * multiple view instances. - * - * @param body (required) - * @return ApiResponse<AggregatedSignalsProblemsResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
201 Successful response -
400 Bad Request -
401 Unauthorized -
429 Too many requests -
- */ - public ApiResponse queryAggregatedSignalsProblemsWithHttpInfo( - AggregatedSignalsProblemsRequest body) throws ApiException { - // Check if unstable operation is enabled - String operationId = "queryAggregatedSignalsProblems"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); - } - Object localVarPostBody = body; - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException( - 400, "Missing the required parameter 'body' when calling queryAggregatedSignalsProblems"); - } - // create path and map variables - String localVarPath = "/api/v2/rum/query/insight/aggregated_signals_problems"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.RumInsightsApi.queryAggregatedSignalsProblems", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Query aggregated signals and problems. - * - *

See {@link #queryAggregatedSignalsProblemsWithHttpInfo}. - * - * @param body (required) - * @return CompletableFuture<ApiResponse<AggregatedSignalsProblemsResponse>> - */ - public CompletableFuture> - queryAggregatedSignalsProblemsWithHttpInfoAsync(AggregatedSignalsProblemsRequest body) { - // Check if unstable operation is enabled - String operationId = "queryAggregatedSignalsProblems"; - if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { - apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); - } else { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); - return result; - } - Object localVarPostBody = body; - - // verify the required parameter 'body' is set - if (body == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'body' when calling queryAggregatedSignalsProblems")); - return result; - } - // create path and map variables - String localVarPath = "/api/v2/rum/query/insight/aggregated_signals_problems"; - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.RumInsightsApi.queryAggregatedSignalsProblems", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - /** * Query aggregated waterfall. * diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedHighFrozenFrameRate.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedHighFrozenFrameRate.java deleted file mode 100644 index 847c1a5d8cf..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedHighFrozenFrameRate.java +++ /dev/null @@ -1,300 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Aggregated high frozen frame rate detection at view level. */ -@JsonPropertyOrder({ - AggregatedHighFrozenFrameRate.JSON_PROPERTY_AVG_FROZEN_FRAME_RATE, - AggregatedHighFrozenFrameRate.JSON_PROPERTY_AVG_SEGMENT_DURATION, - AggregatedHighFrozenFrameRate.JSON_PROPERTY_AVG_TOTAL_FROZEN_DURATION, - AggregatedHighFrozenFrameRate.JSON_PROPERTY_FINGERPRINT, - AggregatedHighFrozenFrameRate.JSON_PROPERTY_IMPACT_SCORE, - AggregatedHighFrozenFrameRate.JSON_PROPERTY_VIEW_OCCURRENCES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedHighFrozenFrameRate { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AVG_FROZEN_FRAME_RATE = "avg_frozen_frame_rate"; - private Double avgFrozenFrameRate; - - public static final String JSON_PROPERTY_AVG_SEGMENT_DURATION = "avg_segment_duration"; - private Long avgSegmentDuration; - - public static final String JSON_PROPERTY_AVG_TOTAL_FROZEN_DURATION = "avg_total_frozen_duration"; - private Long avgTotalFrozenDuration; - - public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint"; - private String fingerprint; - - public static final String JSON_PROPERTY_IMPACT_SCORE = "impact_score"; - private Double impactScore; - - public static final String JSON_PROPERTY_VIEW_OCCURRENCES = "view_occurrences"; - private Integer viewOccurrences; - - public AggregatedHighFrozenFrameRate() {} - - @JsonCreator - public AggregatedHighFrozenFrameRate( - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_FROZEN_FRAME_RATE) - Double avgFrozenFrameRate, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_SEGMENT_DURATION) - Long avgSegmentDuration, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_TOTAL_FROZEN_DURATION) - Long avgTotalFrozenDuration, - @JsonProperty(required = true, value = JSON_PROPERTY_FINGERPRINT) String fingerprint, - @JsonProperty(required = true, value = JSON_PROPERTY_IMPACT_SCORE) Double impactScore, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_OCCURRENCES) - Integer viewOccurrences) { - this.avgFrozenFrameRate = avgFrozenFrameRate; - this.avgSegmentDuration = avgSegmentDuration; - this.avgTotalFrozenDuration = avgTotalFrozenDuration; - this.fingerprint = fingerprint; - this.impactScore = impactScore; - this.viewOccurrences = viewOccurrences; - } - - public AggregatedHighFrozenFrameRate avgFrozenFrameRate(Double avgFrozenFrameRate) { - this.avgFrozenFrameRate = avgFrozenFrameRate; - return this; - } - - /** - * Average frozen frame rate as a fraction of total frames. - * - * @return avgFrozenFrameRate - */ - @JsonProperty(JSON_PROPERTY_AVG_FROZEN_FRAME_RATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getAvgFrozenFrameRate() { - return avgFrozenFrameRate; - } - - public void setAvgFrozenFrameRate(Double avgFrozenFrameRate) { - this.avgFrozenFrameRate = avgFrozenFrameRate; - } - - public AggregatedHighFrozenFrameRate avgSegmentDuration(Long avgSegmentDuration) { - this.avgSegmentDuration = avgSegmentDuration; - return this; - } - - /** - * Average segment duration in nanoseconds. - * - * @return avgSegmentDuration - */ - @JsonProperty(JSON_PROPERTY_AVG_SEGMENT_DURATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgSegmentDuration() { - return avgSegmentDuration; - } - - public void setAvgSegmentDuration(Long avgSegmentDuration) { - this.avgSegmentDuration = avgSegmentDuration; - } - - public AggregatedHighFrozenFrameRate avgTotalFrozenDuration(Long avgTotalFrozenDuration) { - this.avgTotalFrozenDuration = avgTotalFrozenDuration; - return this; - } - - /** - * Average total frozen duration in nanoseconds. - * - * @return avgTotalFrozenDuration - */ - @JsonProperty(JSON_PROPERTY_AVG_TOTAL_FROZEN_DURATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgTotalFrozenDuration() { - return avgTotalFrozenDuration; - } - - public void setAvgTotalFrozenDuration(Long avgTotalFrozenDuration) { - this.avgTotalFrozenDuration = avgTotalFrozenDuration; - } - - public AggregatedHighFrozenFrameRate fingerprint(String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Unique fingerprint identifying this detection group. - * - * @return fingerprint - */ - @JsonProperty(JSON_PROPERTY_FINGERPRINT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFingerprint() { - return fingerprint; - } - - public void setFingerprint(String fingerprint) { - this.fingerprint = fingerprint; - } - - public AggregatedHighFrozenFrameRate impactScore(Double impactScore) { - this.impactScore = impactScore; - return this; - } - - /** - * Impact score for this detection. - * - * @return impactScore - */ - @JsonProperty(JSON_PROPERTY_IMPACT_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getImpactScore() { - return impactScore; - } - - public void setImpactScore(Double impactScore) { - this.impactScore = impactScore; - } - - public AggregatedHighFrozenFrameRate viewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - return this; - } - - /** - * Number of sampled views where this detection occurred. maximum: 2147483647 - * - * @return viewOccurrences - */ - @JsonProperty(JSON_PROPERTY_VIEW_OCCURRENCES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getViewOccurrences() { - return viewOccurrences; - } - - public void setViewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedHighFrozenFrameRate - */ - @JsonAnySetter - public AggregatedHighFrozenFrameRate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedHighFrozenFrameRate object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedHighFrozenFrameRate aggregatedHighFrozenFrameRate = (AggregatedHighFrozenFrameRate) o; - return Objects.equals(this.avgFrozenFrameRate, aggregatedHighFrozenFrameRate.avgFrozenFrameRate) - && Objects.equals(this.avgSegmentDuration, aggregatedHighFrozenFrameRate.avgSegmentDuration) - && Objects.equals( - this.avgTotalFrozenDuration, aggregatedHighFrozenFrameRate.avgTotalFrozenDuration) - && Objects.equals(this.fingerprint, aggregatedHighFrozenFrameRate.fingerprint) - && Objects.equals(this.impactScore, aggregatedHighFrozenFrameRate.impactScore) - && Objects.equals(this.viewOccurrences, aggregatedHighFrozenFrameRate.viewOccurrences) - && Objects.equals( - this.additionalProperties, aggregatedHighFrozenFrameRate.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - avgFrozenFrameRate, - avgSegmentDuration, - avgTotalFrozenDuration, - fingerprint, - impactScore, - viewOccurrences, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedHighFrozenFrameRate {\n"); - sb.append(" avgFrozenFrameRate: ").append(toIndentedString(avgFrozenFrameRate)).append("\n"); - sb.append(" avgSegmentDuration: ").append(toIndentedString(avgSegmentDuration)).append("\n"); - sb.append(" avgTotalFrozenDuration: ") - .append(toIndentedString(avgTotalFrozenDuration)) - .append("\n"); - sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); - sb.append(" impactScore: ").append(toIndentedString(impactScore)).append("\n"); - sb.append(" viewOccurrences: ").append(toIndentedString(viewOccurrences)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedHighScriptEval.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedHighScriptEval.java deleted file mode 100644 index b2789c3b82b..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedHighScriptEval.java +++ /dev/null @@ -1,419 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Aggregated high script evaluation detection grouped by source. */ -@JsonPropertyOrder({ - AggregatedHighScriptEval.JSON_PROPERTY_AVG_DURATION, - AggregatedHighScriptEval.JSON_PROPERTY_AVG_FORCED_STYLE_LAYOUT, - AggregatedHighScriptEval.JSON_PROPERTY_FINGERPRINT, - AggregatedHighScriptEval.JSON_PROPERTY_IMPACT_SCORE, - AggregatedHighScriptEval.JSON_PROPERTY_INSTANCE_COUNT, - AggregatedHighScriptEval.JSON_PROPERTY_INVOKER_TYPE, - AggregatedHighScriptEval.JSON_PROPERTY_SOURCE_CATEGORY, - AggregatedHighScriptEval.JSON_PROPERTY_SOURCE_FUNCTION_NAME, - AggregatedHighScriptEval.JSON_PROPERTY_SOURCE_URL, - AggregatedHighScriptEval.JSON_PROPERTY_VIEW_OCCURRENCES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedHighScriptEval { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AVG_DURATION = "avg_duration"; - private Long avgDuration; - - public static final String JSON_PROPERTY_AVG_FORCED_STYLE_LAYOUT = "avg_forced_style_layout"; - private Long avgForcedStyleLayout; - - public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint"; - private String fingerprint; - - public static final String JSON_PROPERTY_IMPACT_SCORE = "impact_score"; - private Double impactScore; - - public static final String JSON_PROPERTY_INSTANCE_COUNT = "instance_count"; - private Integer instanceCount; - - public static final String JSON_PROPERTY_INVOKER_TYPE = "invoker_type"; - private String invokerType; - - public static final String JSON_PROPERTY_SOURCE_CATEGORY = "source_category"; - private String sourceCategory; - - public static final String JSON_PROPERTY_SOURCE_FUNCTION_NAME = "source_function_name"; - private String sourceFunctionName; - - public static final String JSON_PROPERTY_SOURCE_URL = "source_url"; - private String sourceUrl; - - public static final String JSON_PROPERTY_VIEW_OCCURRENCES = "view_occurrences"; - private Integer viewOccurrences; - - public AggregatedHighScriptEval() {} - - @JsonCreator - public AggregatedHighScriptEval( - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_DURATION) Long avgDuration, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_FORCED_STYLE_LAYOUT) - Long avgForcedStyleLayout, - @JsonProperty(required = true, value = JSON_PROPERTY_FINGERPRINT) String fingerprint, - @JsonProperty(required = true, value = JSON_PROPERTY_IMPACT_SCORE) Double impactScore, - @JsonProperty(required = true, value = JSON_PROPERTY_INSTANCE_COUNT) Integer instanceCount, - @JsonProperty(required = true, value = JSON_PROPERTY_INVOKER_TYPE) String invokerType, - @JsonProperty(required = true, value = JSON_PROPERTY_SOURCE_CATEGORY) String sourceCategory, - @JsonProperty(required = true, value = JSON_PROPERTY_SOURCE_FUNCTION_NAME) - String sourceFunctionName, - @JsonProperty(required = true, value = JSON_PROPERTY_SOURCE_URL) String sourceUrl, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_OCCURRENCES) - Integer viewOccurrences) { - this.avgDuration = avgDuration; - this.avgForcedStyleLayout = avgForcedStyleLayout; - this.fingerprint = fingerprint; - this.impactScore = impactScore; - this.instanceCount = instanceCount; - this.invokerType = invokerType; - this.sourceCategory = sourceCategory; - if (sourceCategory != null) {} - this.sourceFunctionName = sourceFunctionName; - this.sourceUrl = sourceUrl; - if (sourceUrl != null) {} - this.viewOccurrences = viewOccurrences; - } - - public AggregatedHighScriptEval avgDuration(Long avgDuration) { - this.avgDuration = avgDuration; - return this; - } - - /** - * Average script evaluation duration in nanoseconds. - * - * @return avgDuration - */ - @JsonProperty(JSON_PROPERTY_AVG_DURATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgDuration() { - return avgDuration; - } - - public void setAvgDuration(Long avgDuration) { - this.avgDuration = avgDuration; - } - - public AggregatedHighScriptEval avgForcedStyleLayout(Long avgForcedStyleLayout) { - this.avgForcedStyleLayout = avgForcedStyleLayout; - return this; - } - - /** - * Average forced style/layout duration in nanoseconds. - * - * @return avgForcedStyleLayout - */ - @JsonProperty(JSON_PROPERTY_AVG_FORCED_STYLE_LAYOUT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgForcedStyleLayout() { - return avgForcedStyleLayout; - } - - public void setAvgForcedStyleLayout(Long avgForcedStyleLayout) { - this.avgForcedStyleLayout = avgForcedStyleLayout; - } - - public AggregatedHighScriptEval fingerprint(String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Unique fingerprint identifying this detection group. - * - * @return fingerprint - */ - @JsonProperty(JSON_PROPERTY_FINGERPRINT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFingerprint() { - return fingerprint; - } - - public void setFingerprint(String fingerprint) { - this.fingerprint = fingerprint; - } - - public AggregatedHighScriptEval impactScore(Double impactScore) { - this.impactScore = impactScore; - return this; - } - - /** - * Impact score combining view frequency and duration severity. - * - * @return impactScore - */ - @JsonProperty(JSON_PROPERTY_IMPACT_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getImpactScore() { - return impactScore; - } - - public void setImpactScore(Double impactScore) { - this.impactScore = impactScore; - } - - public AggregatedHighScriptEval instanceCount(Integer instanceCount) { - this.instanceCount = instanceCount; - return this; - } - - /** - * Total number of detection instances across sampled views. maximum: 2147483647 - * - * @return instanceCount - */ - @JsonProperty(JSON_PROPERTY_INSTANCE_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getInstanceCount() { - return instanceCount; - } - - public void setInstanceCount(Integer instanceCount) { - this.instanceCount = instanceCount; - } - - public AggregatedHighScriptEval invokerType(String invokerType) { - this.invokerType = invokerType; - return this; - } - - /** - * Type of invoker that triggered the script evaluation. - * - * @return invokerType - */ - @JsonProperty(JSON_PROPERTY_INVOKER_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getInvokerType() { - return invokerType; - } - - public void setInvokerType(String invokerType) { - this.invokerType = invokerType; - } - - public AggregatedHighScriptEval sourceCategory(String sourceCategory) { - this.sourceCategory = sourceCategory; - if (sourceCategory != null) {} - return this; - } - - /** - * Category of the script source. - * - * @return sourceCategory - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_CATEGORY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSourceCategory() { - return sourceCategory; - } - - public void setSourceCategory(String sourceCategory) { - this.sourceCategory = sourceCategory; - } - - public AggregatedHighScriptEval sourceFunctionName(String sourceFunctionName) { - this.sourceFunctionName = sourceFunctionName; - return this; - } - - /** - * Name of the function that triggered the high script evaluation. - * - * @return sourceFunctionName - */ - @JsonProperty(JSON_PROPERTY_SOURCE_FUNCTION_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSourceFunctionName() { - return sourceFunctionName; - } - - public void setSourceFunctionName(String sourceFunctionName) { - this.sourceFunctionName = sourceFunctionName; - } - - public AggregatedHighScriptEval sourceUrl(String sourceUrl) { - this.sourceUrl = sourceUrl; - if (sourceUrl != null) {} - return this; - } - - /** - * URL of the script that triggered the high script evaluation. - * - * @return sourceUrl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSourceUrl() { - return sourceUrl; - } - - public void setSourceUrl(String sourceUrl) { - this.sourceUrl = sourceUrl; - } - - public AggregatedHighScriptEval viewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - return this; - } - - /** - * Number of sampled views where this detection occurred. maximum: 2147483647 - * - * @return viewOccurrences - */ - @JsonProperty(JSON_PROPERTY_VIEW_OCCURRENCES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getViewOccurrences() { - return viewOccurrences; - } - - public void setViewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedHighScriptEval - */ - @JsonAnySetter - public AggregatedHighScriptEval putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedHighScriptEval object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedHighScriptEval aggregatedHighScriptEval = (AggregatedHighScriptEval) o; - return Objects.equals(this.avgDuration, aggregatedHighScriptEval.avgDuration) - && Objects.equals(this.avgForcedStyleLayout, aggregatedHighScriptEval.avgForcedStyleLayout) - && Objects.equals(this.fingerprint, aggregatedHighScriptEval.fingerprint) - && Objects.equals(this.impactScore, aggregatedHighScriptEval.impactScore) - && Objects.equals(this.instanceCount, aggregatedHighScriptEval.instanceCount) - && Objects.equals(this.invokerType, aggregatedHighScriptEval.invokerType) - && Objects.equals(this.sourceCategory, aggregatedHighScriptEval.sourceCategory) - && Objects.equals(this.sourceFunctionName, aggregatedHighScriptEval.sourceFunctionName) - && Objects.equals(this.sourceUrl, aggregatedHighScriptEval.sourceUrl) - && Objects.equals(this.viewOccurrences, aggregatedHighScriptEval.viewOccurrences) - && Objects.equals(this.additionalProperties, aggregatedHighScriptEval.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - avgDuration, - avgForcedStyleLayout, - fingerprint, - impactScore, - instanceCount, - invokerType, - sourceCategory, - sourceFunctionName, - sourceUrl, - viewOccurrences, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedHighScriptEval {\n"); - sb.append(" avgDuration: ").append(toIndentedString(avgDuration)).append("\n"); - sb.append(" avgForcedStyleLayout: ") - .append(toIndentedString(avgForcedStyleLayout)) - .append("\n"); - sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); - sb.append(" impactScore: ").append(toIndentedString(impactScore)).append("\n"); - sb.append(" instanceCount: ").append(toIndentedString(instanceCount)).append("\n"); - sb.append(" invokerType: ").append(toIndentedString(invokerType)).append("\n"); - sb.append(" sourceCategory: ").append(toIndentedString(sourceCategory)).append("\n"); - sb.append(" sourceFunctionName: ").append(toIndentedString(sourceFunctionName)).append("\n"); - sb.append(" sourceUrl: ").append(toIndentedString(sourceUrl)).append("\n"); - sb.append(" viewOccurrences: ").append(toIndentedString(viewOccurrences)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedLowCacheHitRate.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedLowCacheHitRate.java deleted file mode 100644 index a5c289fd43b..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedLowCacheHitRate.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Aggregated low cache hit rate detection at view level. */ -@JsonPropertyOrder({ - AggregatedLowCacheHitRate.JSON_PROPERTY_AVG_CACHE_HIT_RATE, - AggregatedLowCacheHitRate.JSON_PROPERTY_AVG_RESOURCE_DOWNLOAD_SIZE_BYTES, - AggregatedLowCacheHitRate.JSON_PROPERTY_FINGERPRINT, - AggregatedLowCacheHitRate.JSON_PROPERTY_IMPACT_SCORE, - AggregatedLowCacheHitRate.JSON_PROPERTY_VIEW_OCCURRENCES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedLowCacheHitRate { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AVG_CACHE_HIT_RATE = "avg_cache_hit_rate"; - private Double avgCacheHitRate; - - public static final String JSON_PROPERTY_AVG_RESOURCE_DOWNLOAD_SIZE_BYTES = - "avg_resource_download_size_bytes"; - private Long avgResourceDownloadSizeBytes; - - public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint"; - private String fingerprint; - - public static final String JSON_PROPERTY_IMPACT_SCORE = "impact_score"; - private Double impactScore; - - public static final String JSON_PROPERTY_VIEW_OCCURRENCES = "view_occurrences"; - private Integer viewOccurrences; - - public AggregatedLowCacheHitRate() {} - - @JsonCreator - public AggregatedLowCacheHitRate( - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_CACHE_HIT_RATE) - Double avgCacheHitRate, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_RESOURCE_DOWNLOAD_SIZE_BYTES) - Long avgResourceDownloadSizeBytes, - @JsonProperty(required = true, value = JSON_PROPERTY_FINGERPRINT) String fingerprint, - @JsonProperty(required = true, value = JSON_PROPERTY_IMPACT_SCORE) Double impactScore, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_OCCURRENCES) - Integer viewOccurrences) { - this.avgCacheHitRate = avgCacheHitRate; - this.avgResourceDownloadSizeBytes = avgResourceDownloadSizeBytes; - this.fingerprint = fingerprint; - this.impactScore = impactScore; - this.viewOccurrences = viewOccurrences; - } - - public AggregatedLowCacheHitRate avgCacheHitRate(Double avgCacheHitRate) { - this.avgCacheHitRate = avgCacheHitRate; - return this; - } - - /** - * Average cache hit rate across affected views. - * - * @return avgCacheHitRate - */ - @JsonProperty(JSON_PROPERTY_AVG_CACHE_HIT_RATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getAvgCacheHitRate() { - return avgCacheHitRate; - } - - public void setAvgCacheHitRate(Double avgCacheHitRate) { - this.avgCacheHitRate = avgCacheHitRate; - } - - public AggregatedLowCacheHitRate avgResourceDownloadSizeBytes(Long avgResourceDownloadSizeBytes) { - this.avgResourceDownloadSizeBytes = avgResourceDownloadSizeBytes; - return this; - } - - /** - * Average total download size of uncached resources in bytes. - * - * @return avgResourceDownloadSizeBytes - */ - @JsonProperty(JSON_PROPERTY_AVG_RESOURCE_DOWNLOAD_SIZE_BYTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgResourceDownloadSizeBytes() { - return avgResourceDownloadSizeBytes; - } - - public void setAvgResourceDownloadSizeBytes(Long avgResourceDownloadSizeBytes) { - this.avgResourceDownloadSizeBytes = avgResourceDownloadSizeBytes; - } - - public AggregatedLowCacheHitRate fingerprint(String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Unique fingerprint identifying this detection group. - * - * @return fingerprint - */ - @JsonProperty(JSON_PROPERTY_FINGERPRINT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFingerprint() { - return fingerprint; - } - - public void setFingerprint(String fingerprint) { - this.fingerprint = fingerprint; - } - - public AggregatedLowCacheHitRate impactScore(Double impactScore) { - this.impactScore = impactScore; - return this; - } - - /** - * Impact score for this detection. - * - * @return impactScore - */ - @JsonProperty(JSON_PROPERTY_IMPACT_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getImpactScore() { - return impactScore; - } - - public void setImpactScore(Double impactScore) { - this.impactScore = impactScore; - } - - public AggregatedLowCacheHitRate viewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - return this; - } - - /** - * Number of sampled views where this detection occurred. maximum: 2147483647 - * - * @return viewOccurrences - */ - @JsonProperty(JSON_PROPERTY_VIEW_OCCURRENCES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getViewOccurrences() { - return viewOccurrences; - } - - public void setViewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedLowCacheHitRate - */ - @JsonAnySetter - public AggregatedLowCacheHitRate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedLowCacheHitRate object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedLowCacheHitRate aggregatedLowCacheHitRate = (AggregatedLowCacheHitRate) o; - return Objects.equals(this.avgCacheHitRate, aggregatedLowCacheHitRate.avgCacheHitRate) - && Objects.equals( - this.avgResourceDownloadSizeBytes, - aggregatedLowCacheHitRate.avgResourceDownloadSizeBytes) - && Objects.equals(this.fingerprint, aggregatedLowCacheHitRate.fingerprint) - && Objects.equals(this.impactScore, aggregatedLowCacheHitRate.impactScore) - && Objects.equals(this.viewOccurrences, aggregatedLowCacheHitRate.viewOccurrences) - && Objects.equals( - this.additionalProperties, aggregatedLowCacheHitRate.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - avgCacheHitRate, - avgResourceDownloadSizeBytes, - fingerprint, - impactScore, - viewOccurrences, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedLowCacheHitRate {\n"); - sb.append(" avgCacheHitRate: ").append(toIndentedString(avgCacheHitRate)).append("\n"); - sb.append(" avgResourceDownloadSizeBytes: ") - .append(toIndentedString(avgResourceDownloadSizeBytes)) - .append("\n"); - sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); - sb.append(" impactScore: ").append(toIndentedString(impactScore)).append("\n"); - sb.append(" viewOccurrences: ").append(toIndentedString(viewOccurrences)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedMobileScrollFriction.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedMobileScrollFriction.java deleted file mode 100644 index 1df2128e099..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedMobileScrollFriction.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Aggregated mobile scroll friction detection at view level. */ -@JsonPropertyOrder({ - AggregatedMobileScrollFriction.JSON_PROPERTY_AVG_SCROLL_FROZEN_FRAME_COUNT, - AggregatedMobileScrollFriction.JSON_PROPERTY_FINGERPRINT, - AggregatedMobileScrollFriction.JSON_PROPERTY_IMPACT_SCORE, - AggregatedMobileScrollFriction.JSON_PROPERTY_VIEW_OCCURRENCES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedMobileScrollFriction { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AVG_SCROLL_FROZEN_FRAME_COUNT = - "avg_scroll_frozen_frame_count"; - private Integer avgScrollFrozenFrameCount; - - public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint"; - private String fingerprint; - - public static final String JSON_PROPERTY_IMPACT_SCORE = "impact_score"; - private Double impactScore; - - public static final String JSON_PROPERTY_VIEW_OCCURRENCES = "view_occurrences"; - private Integer viewOccurrences; - - public AggregatedMobileScrollFriction() {} - - @JsonCreator - public AggregatedMobileScrollFriction( - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_SCROLL_FROZEN_FRAME_COUNT) - Integer avgScrollFrozenFrameCount, - @JsonProperty(required = true, value = JSON_PROPERTY_FINGERPRINT) String fingerprint, - @JsonProperty(required = true, value = JSON_PROPERTY_IMPACT_SCORE) Double impactScore, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_OCCURRENCES) - Integer viewOccurrences) { - this.avgScrollFrozenFrameCount = avgScrollFrozenFrameCount; - this.fingerprint = fingerprint; - this.impactScore = impactScore; - this.viewOccurrences = viewOccurrences; - } - - public AggregatedMobileScrollFriction avgScrollFrozenFrameCount( - Integer avgScrollFrozenFrameCount) { - this.avgScrollFrozenFrameCount = avgScrollFrozenFrameCount; - return this; - } - - /** - * Average number of frozen frames during scroll interactions. maximum: 2147483647 - * - * @return avgScrollFrozenFrameCount - */ - @JsonProperty(JSON_PROPERTY_AVG_SCROLL_FROZEN_FRAME_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAvgScrollFrozenFrameCount() { - return avgScrollFrozenFrameCount; - } - - public void setAvgScrollFrozenFrameCount(Integer avgScrollFrozenFrameCount) { - this.avgScrollFrozenFrameCount = avgScrollFrozenFrameCount; - } - - public AggregatedMobileScrollFriction fingerprint(String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Unique fingerprint identifying this detection group. - * - * @return fingerprint - */ - @JsonProperty(JSON_PROPERTY_FINGERPRINT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFingerprint() { - return fingerprint; - } - - public void setFingerprint(String fingerprint) { - this.fingerprint = fingerprint; - } - - public AggregatedMobileScrollFriction impactScore(Double impactScore) { - this.impactScore = impactScore; - return this; - } - - /** - * Impact score for this detection. - * - * @return impactScore - */ - @JsonProperty(JSON_PROPERTY_IMPACT_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getImpactScore() { - return impactScore; - } - - public void setImpactScore(Double impactScore) { - this.impactScore = impactScore; - } - - public AggregatedMobileScrollFriction viewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - return this; - } - - /** - * Number of sampled views where this detection occurred. maximum: 2147483647 - * - * @return viewOccurrences - */ - @JsonProperty(JSON_PROPERTY_VIEW_OCCURRENCES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getViewOccurrences() { - return viewOccurrences; - } - - public void setViewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedMobileScrollFriction - */ - @JsonAnySetter - public AggregatedMobileScrollFriction putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedMobileScrollFriction object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedMobileScrollFriction aggregatedMobileScrollFriction = - (AggregatedMobileScrollFriction) o; - return Objects.equals( - this.avgScrollFrozenFrameCount, - aggregatedMobileScrollFriction.avgScrollFrozenFrameCount) - && Objects.equals(this.fingerprint, aggregatedMobileScrollFriction.fingerprint) - && Objects.equals(this.impactScore, aggregatedMobileScrollFriction.impactScore) - && Objects.equals(this.viewOccurrences, aggregatedMobileScrollFriction.viewOccurrences) - && Objects.equals( - this.additionalProperties, aggregatedMobileScrollFriction.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - avgScrollFrozenFrameCount, fingerprint, impactScore, viewOccurrences, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedMobileScrollFriction {\n"); - sb.append(" avgScrollFrozenFrameCount: ") - .append(toIndentedString(avgScrollFrozenFrameCount)) - .append("\n"); - sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); - sb.append(" impactScore: ").append(toIndentedString(impactScore)).append("\n"); - sb.append(" viewOccurrences: ").append(toIndentedString(viewOccurrences)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequest.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequest.java deleted file mode 100644 index f46070bc0d1..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequest.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Request body for the aggregated signals and problems endpoint. */ -@JsonPropertyOrder({AggregatedSignalsProblemsRequest.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedSignalsProblemsRequest { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private AggregatedSignalsProblemsRequestData data; - - public AggregatedSignalsProblemsRequest() {} - - @JsonCreator - public AggregatedSignalsProblemsRequest( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - AggregatedSignalsProblemsRequestData data) { - this.data = data; - this.unparsed |= data.unparsed; - } - - public AggregatedSignalsProblemsRequest data(AggregatedSignalsProblemsRequestData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * Data envelope for an aggregated signals and problems request. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AggregatedSignalsProblemsRequestData getData() { - return data; - } - - public void setData(AggregatedSignalsProblemsRequestData data) { - this.data = data; - if (data != null) { - this.unparsed |= data.unparsed; - } - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedSignalsProblemsRequest - */ - @JsonAnySetter - public AggregatedSignalsProblemsRequest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedSignalsProblemsRequest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedSignalsProblemsRequest aggregatedSignalsProblemsRequest = - (AggregatedSignalsProblemsRequest) o; - return Objects.equals(this.data, aggregatedSignalsProblemsRequest.data) - && Objects.equals( - this.additionalProperties, aggregatedSignalsProblemsRequest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedSignalsProblemsRequest {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestAttributes.java deleted file mode 100644 index 65ee1c043d8..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestAttributes.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Attributes for an aggregated signals and problems query. */ -@JsonPropertyOrder({ - AggregatedSignalsProblemsRequestAttributes.JSON_PROPERTY_APPLICATION_ID, - AggregatedSignalsProblemsRequestAttributes.JSON_PROPERTY_CRITERIA, - AggregatedSignalsProblemsRequestAttributes.JSON_PROPERTY_DETECTION_TYPES, - AggregatedSignalsProblemsRequestAttributes.JSON_PROPERTY_FILTER, - AggregatedSignalsProblemsRequestAttributes.JSON_PROPERTY_FROM, - AggregatedSignalsProblemsRequestAttributes.JSON_PROPERTY_SAMPLE_SIZE, - AggregatedSignalsProblemsRequestAttributes.JSON_PROPERTY_TO, - AggregatedSignalsProblemsRequestAttributes.JSON_PROPERTY_VIEW_NAME -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedSignalsProblemsRequestAttributes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_APPLICATION_ID = "application_id"; - private String applicationId; - - public static final String JSON_PROPERTY_CRITERIA = "criteria"; - private AggregatedWaterfallPerformanceCriteria criteria; - - public static final String JSON_PROPERTY_DETECTION_TYPES = "detection_types"; - private List detectionTypes = null; - - public static final String JSON_PROPERTY_FILTER = "filter"; - private String filter; - - public static final String JSON_PROPERTY_FROM = "from"; - private Long from; - - public static final String JSON_PROPERTY_SAMPLE_SIZE = "sample_size"; - private Integer sampleSize; - - public static final String JSON_PROPERTY_TO = "to"; - private Long to; - - public static final String JSON_PROPERTY_VIEW_NAME = "view_name"; - private String viewName; - - public AggregatedSignalsProblemsRequestAttributes() {} - - @JsonCreator - public AggregatedSignalsProblemsRequestAttributes( - @JsonProperty(required = true, value = JSON_PROPERTY_APPLICATION_ID) String applicationId, - @JsonProperty(required = true, value = JSON_PROPERTY_FROM) Long from, - @JsonProperty(required = true, value = JSON_PROPERTY_SAMPLE_SIZE) Integer sampleSize, - @JsonProperty(required = true, value = JSON_PROPERTY_TO) Long to, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_NAME) String viewName) { - this.applicationId = applicationId; - this.from = from; - this.sampleSize = sampleSize; - this.to = to; - this.viewName = viewName; - } - - public AggregatedSignalsProblemsRequestAttributes applicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - /** - * The RUM application ID to analyze. - * - * @return applicationId - */ - @JsonProperty(JSON_PROPERTY_APPLICATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getApplicationId() { - return applicationId; - } - - public void setApplicationId(String applicationId) { - this.applicationId = applicationId; - } - - public AggregatedSignalsProblemsRequestAttributes criteria( - AggregatedWaterfallPerformanceCriteria criteria) { - this.criteria = criteria; - this.unparsed |= criteria.unparsed; - return this; - } - - /** - * Performance criteria to filter view instances by a metric threshold. - * - * @return criteria - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CRITERIA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AggregatedWaterfallPerformanceCriteria getCriteria() { - return criteria; - } - - public void setCriteria(AggregatedWaterfallPerformanceCriteria criteria) { - this.criteria = criteria; - if (criteria != null) { - this.unparsed |= criteria.unparsed; - } - } - - public AggregatedSignalsProblemsRequestAttributes detectionTypes(List detectionTypes) { - this.detectionTypes = detectionTypes; - return this; - } - - public AggregatedSignalsProblemsRequestAttributes addDetectionTypesItem( - String detectionTypesItem) { - if (this.detectionTypes == null) { - this.detectionTypes = new ArrayList<>(); - } - this.detectionTypes.add(detectionTypesItem); - return this; - } - - /** - * List of detection types to include in the response. When omitted, all types are returned. - * - * @return detectionTypes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DETECTION_TYPES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDetectionTypes() { - return detectionTypes; - } - - public void setDetectionTypes(List detectionTypes) { - this.detectionTypes = detectionTypes; - } - - public AggregatedSignalsProblemsRequestAttributes filter(String filter) { - this.filter = filter; - return this; - } - - /** - * RUM query string to filter events (for example, @session.type:user @geo.country:US). - * - * @return filter - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILTER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFilter() { - return filter; - } - - public void setFilter(String filter) { - this.filter = filter; - } - - public AggregatedSignalsProblemsRequestAttributes from(Long from) { - this.from = from; - return this; - } - - /** - * Start of the time range as a Unix timestamp in seconds. - * - * @return from - */ - @JsonProperty(JSON_PROPERTY_FROM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getFrom() { - return from; - } - - public void setFrom(Long from) { - this.from = from; - } - - public AggregatedSignalsProblemsRequestAttributes sampleSize(Integer sampleSize) { - this.sampleSize = sampleSize; - return this; - } - - /** - * Number of view instances to sample, between 1 and 50. minimum: 1 maximum: 50 - * - * @return sampleSize - */ - @JsonProperty(JSON_PROPERTY_SAMPLE_SIZE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getSampleSize() { - return sampleSize; - } - - public void setSampleSize(Integer sampleSize) { - this.sampleSize = sampleSize; - } - - public AggregatedSignalsProblemsRequestAttributes to(Long to) { - this.to = to; - return this; - } - - /** - * End of the time range as a Unix timestamp in seconds. - * - * @return to - */ - @JsonProperty(JSON_PROPERTY_TO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getTo() { - return to; - } - - public void setTo(Long to) { - this.to = to; - } - - public AggregatedSignalsProblemsRequestAttributes viewName(String viewName) { - this.viewName = viewName; - return this; - } - - /** - * The RUM view name to analyze (for example, /account/login). - * - * @return viewName - */ - @JsonProperty(JSON_PROPERTY_VIEW_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getViewName() { - return viewName; - } - - public void setViewName(String viewName) { - this.viewName = viewName; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedSignalsProblemsRequestAttributes - */ - @JsonAnySetter - public AggregatedSignalsProblemsRequestAttributes putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedSignalsProblemsRequestAttributes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedSignalsProblemsRequestAttributes aggregatedSignalsProblemsRequestAttributes = - (AggregatedSignalsProblemsRequestAttributes) o; - return Objects.equals( - this.applicationId, aggregatedSignalsProblemsRequestAttributes.applicationId) - && Objects.equals(this.criteria, aggregatedSignalsProblemsRequestAttributes.criteria) - && Objects.equals( - this.detectionTypes, aggregatedSignalsProblemsRequestAttributes.detectionTypes) - && Objects.equals(this.filter, aggregatedSignalsProblemsRequestAttributes.filter) - && Objects.equals(this.from, aggregatedSignalsProblemsRequestAttributes.from) - && Objects.equals(this.sampleSize, aggregatedSignalsProblemsRequestAttributes.sampleSize) - && Objects.equals(this.to, aggregatedSignalsProblemsRequestAttributes.to) - && Objects.equals(this.viewName, aggregatedSignalsProblemsRequestAttributes.viewName) - && Objects.equals( - this.additionalProperties, - aggregatedSignalsProblemsRequestAttributes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - applicationId, - criteria, - detectionTypes, - filter, - from, - sampleSize, - to, - viewName, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedSignalsProblemsRequestAttributes {\n"); - sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); - sb.append(" criteria: ").append(toIndentedString(criteria)).append("\n"); - sb.append(" detectionTypes: ").append(toIndentedString(detectionTypes)).append("\n"); - sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); - sb.append(" from: ").append(toIndentedString(from)).append("\n"); - sb.append(" sampleSize: ").append(toIndentedString(sampleSize)).append("\n"); - sb.append(" to: ").append(toIndentedString(to)).append("\n"); - sb.append(" viewName: ").append(toIndentedString(viewName)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestData.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestData.java deleted file mode 100644 index 0d6013d2e62..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestData.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Data envelope for an aggregated signals and problems request. */ -@JsonPropertyOrder({ - AggregatedSignalsProblemsRequestData.JSON_PROPERTY_ATTRIBUTES, - AggregatedSignalsProblemsRequestData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedSignalsProblemsRequestData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private AggregatedSignalsProblemsRequestAttributes attributes; - - public static final String JSON_PROPERTY_TYPE = "type"; - private AggregatedSignalsProblemsRequestType type; - - public AggregatedSignalsProblemsRequestData() {} - - @JsonCreator - public AggregatedSignalsProblemsRequestData( - @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - AggregatedSignalsProblemsRequestAttributes attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - AggregatedSignalsProblemsRequestType type) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - this.type = type; - this.unparsed |= !type.isValid(); - } - - public AggregatedSignalsProblemsRequestData attributes( - AggregatedSignalsProblemsRequestAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * Attributes for an aggregated signals and problems query. - * - * @return attributes - */ - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AggregatedSignalsProblemsRequestAttributes getAttributes() { - return attributes; - } - - public void setAttributes(AggregatedSignalsProblemsRequestAttributes attributes) { - this.attributes = attributes; - if (attributes != null) { - this.unparsed |= attributes.unparsed; - } - } - - public AggregatedSignalsProblemsRequestData type(AggregatedSignalsProblemsRequestType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * The JSON:API type for aggregated signals and problems requests. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AggregatedSignalsProblemsRequestType getType() { - return type; - } - - public void setType(AggregatedSignalsProblemsRequestType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedSignalsProblemsRequestData - */ - @JsonAnySetter - public AggregatedSignalsProblemsRequestData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedSignalsProblemsRequestData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedSignalsProblemsRequestData aggregatedSignalsProblemsRequestData = - (AggregatedSignalsProblemsRequestData) o; - return Objects.equals(this.attributes, aggregatedSignalsProblemsRequestData.attributes) - && Objects.equals(this.type, aggregatedSignalsProblemsRequestData.type) - && Objects.equals( - this.additionalProperties, aggregatedSignalsProblemsRequestData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedSignalsProblemsRequestData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestType.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestType.java deleted file mode 100644 index 5c965ffa895..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsRequestType.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** The JSON:API type for aggregated signals and problems requests. */ -@JsonSerialize( - using = - AggregatedSignalsProblemsRequestType.AggregatedSignalsProblemsRequestTypeSerializer.class) -public class AggregatedSignalsProblemsRequestType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("aggregated_signals_problems")); - - public static final AggregatedSignalsProblemsRequestType AGGREGATED_SIGNALS_PROBLEMS = - new AggregatedSignalsProblemsRequestType("aggregated_signals_problems"); - - AggregatedSignalsProblemsRequestType(String value) { - super(value, allowedValues); - } - - public static class AggregatedSignalsProblemsRequestTypeSerializer - extends StdSerializer { - public AggregatedSignalsProblemsRequestTypeSerializer( - Class t) { - super(t); - } - - public AggregatedSignalsProblemsRequestTypeSerializer() { - this(null); - } - - @Override - public void serialize( - AggregatedSignalsProblemsRequestType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static AggregatedSignalsProblemsRequestType fromValue(String value) { - return new AggregatedSignalsProblemsRequestType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponse.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponse.java deleted file mode 100644 index ca5fce082e8..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponse.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Response body for the aggregated signals and problems endpoint. */ -@JsonPropertyOrder({AggregatedSignalsProblemsResponse.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedSignalsProblemsResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private AggregatedSignalsProblemsResponseData data; - - public AggregatedSignalsProblemsResponse() {} - - @JsonCreator - public AggregatedSignalsProblemsResponse( - @JsonProperty(required = true, value = JSON_PROPERTY_DATA) - AggregatedSignalsProblemsResponseData data) { - this.data = data; - this.unparsed |= data.unparsed; - } - - public AggregatedSignalsProblemsResponse data(AggregatedSignalsProblemsResponseData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * Data envelope for an aggregated signals and problems response. - * - * @return data - */ - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AggregatedSignalsProblemsResponseData getData() { - return data; - } - - public void setData(AggregatedSignalsProblemsResponseData data) { - this.data = data; - if (data != null) { - this.unparsed |= data.unparsed; - } - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedSignalsProblemsResponse - */ - @JsonAnySetter - public AggregatedSignalsProblemsResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedSignalsProblemsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedSignalsProblemsResponse aggregatedSignalsProblemsResponse = - (AggregatedSignalsProblemsResponse) o; - return Objects.equals(this.data, aggregatedSignalsProblemsResponse.data) - && Objects.equals( - this.additionalProperties, aggregatedSignalsProblemsResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedSignalsProblemsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponseAttributes.java deleted file mode 100644 index e41f4189aa5..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponseAttributes.java +++ /dev/null @@ -1,346 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Attributes of an aggregated signals and problems response. */ -@JsonPropertyOrder({ - AggregatedSignalsProblemsResponseAttributes.JSON_PROPERTY_APPLICATION_ID, - AggregatedSignalsProblemsResponseAttributes.JSON_PROPERTY_CRITERIA, - AggregatedSignalsProblemsResponseAttributes.JSON_PROPERTY_FROM, - AggregatedSignalsProblemsResponseAttributes.JSON_PROPERTY_PROBLEM_DETECTIONS, - AggregatedSignalsProblemsResponseAttributes.JSON_PROPERTY_SAMPLE_METADATA, - AggregatedSignalsProblemsResponseAttributes.JSON_PROPERTY_TO, - AggregatedSignalsProblemsResponseAttributes.JSON_PROPERTY_VIEW_NAME -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedSignalsProblemsResponseAttributes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_APPLICATION_ID = "application_id"; - private String applicationId; - - public static final String JSON_PROPERTY_CRITERIA = "criteria"; - private AggregatedWaterfallPerformanceCriteria criteria; - - public static final String JSON_PROPERTY_FROM = "from"; - private Long from; - - public static final String JSON_PROPERTY_PROBLEM_DETECTIONS = "problem_detections"; - private SignalsProblemsDetections problemDetections; - - public static final String JSON_PROPERTY_SAMPLE_METADATA = "sample_metadata"; - private SignalsProblemsSampleMetadata sampleMetadata; - - public static final String JSON_PROPERTY_TO = "to"; - private Long to; - - public static final String JSON_PROPERTY_VIEW_NAME = "view_name"; - private String viewName; - - public AggregatedSignalsProblemsResponseAttributes() {} - - @JsonCreator - public AggregatedSignalsProblemsResponseAttributes( - @JsonProperty(required = true, value = JSON_PROPERTY_APPLICATION_ID) String applicationId, - @JsonProperty(required = true, value = JSON_PROPERTY_FROM) Long from, - @JsonProperty(required = true, value = JSON_PROPERTY_PROBLEM_DETECTIONS) - SignalsProblemsDetections problemDetections, - @JsonProperty(required = true, value = JSON_PROPERTY_SAMPLE_METADATA) - SignalsProblemsSampleMetadata sampleMetadata, - @JsonProperty(required = true, value = JSON_PROPERTY_TO) Long to, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_NAME) String viewName) { - this.applicationId = applicationId; - this.from = from; - this.problemDetections = problemDetections; - this.unparsed |= problemDetections.unparsed; - this.sampleMetadata = sampleMetadata; - this.unparsed |= sampleMetadata.unparsed; - this.to = to; - this.viewName = viewName; - } - - public AggregatedSignalsProblemsResponseAttributes applicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - /** - * The RUM application ID that was analyzed. - * - * @return applicationId - */ - @JsonProperty(JSON_PROPERTY_APPLICATION_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getApplicationId() { - return applicationId; - } - - public void setApplicationId(String applicationId) { - this.applicationId = applicationId; - } - - public AggregatedSignalsProblemsResponseAttributes criteria( - AggregatedWaterfallPerformanceCriteria criteria) { - this.criteria = criteria; - this.unparsed |= criteria.unparsed; - return this; - } - - /** - * Performance criteria to filter view instances by a metric threshold. - * - * @return criteria - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CRITERIA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AggregatedWaterfallPerformanceCriteria getCriteria() { - return criteria; - } - - public void setCriteria(AggregatedWaterfallPerformanceCriteria criteria) { - this.criteria = criteria; - if (criteria != null) { - this.unparsed |= criteria.unparsed; - } - } - - public AggregatedSignalsProblemsResponseAttributes from(Long from) { - this.from = from; - return this; - } - - /** - * Start of the analyzed time range as a Unix timestamp in seconds. - * - * @return from - */ - @JsonProperty(JSON_PROPERTY_FROM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getFrom() { - return from; - } - - public void setFrom(Long from) { - this.from = from; - } - - public AggregatedSignalsProblemsResponseAttributes problemDetections( - SignalsProblemsDetections problemDetections) { - this.problemDetections = problemDetections; - this.unparsed |= problemDetections.unparsed; - return this; - } - - /** - * Grouped detection results by detection type. - * - * @return problemDetections - */ - @JsonProperty(JSON_PROPERTY_PROBLEM_DETECTIONS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SignalsProblemsDetections getProblemDetections() { - return problemDetections; - } - - public void setProblemDetections(SignalsProblemsDetections problemDetections) { - this.problemDetections = problemDetections; - if (problemDetections != null) { - this.unparsed |= problemDetections.unparsed; - } - } - - public AggregatedSignalsProblemsResponseAttributes sampleMetadata( - SignalsProblemsSampleMetadata sampleMetadata) { - this.sampleMetadata = sampleMetadata; - this.unparsed |= sampleMetadata.unparsed; - return this; - } - - /** - * Metadata about the sampling quality for a signals and problems query. - * - * @return sampleMetadata - */ - @JsonProperty(JSON_PROPERTY_SAMPLE_METADATA) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SignalsProblemsSampleMetadata getSampleMetadata() { - return sampleMetadata; - } - - public void setSampleMetadata(SignalsProblemsSampleMetadata sampleMetadata) { - this.sampleMetadata = sampleMetadata; - if (sampleMetadata != null) { - this.unparsed |= sampleMetadata.unparsed; - } - } - - public AggregatedSignalsProblemsResponseAttributes to(Long to) { - this.to = to; - return this; - } - - /** - * End of the analyzed time range as a Unix timestamp in seconds. - * - * @return to - */ - @JsonProperty(JSON_PROPERTY_TO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getTo() { - return to; - } - - public void setTo(Long to) { - this.to = to; - } - - public AggregatedSignalsProblemsResponseAttributes viewName(String viewName) { - this.viewName = viewName; - return this; - } - - /** - * The RUM view name that was analyzed. - * - * @return viewName - */ - @JsonProperty(JSON_PROPERTY_VIEW_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getViewName() { - return viewName; - } - - public void setViewName(String viewName) { - this.viewName = viewName; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedSignalsProblemsResponseAttributes - */ - @JsonAnySetter - public AggregatedSignalsProblemsResponseAttributes putAdditionalProperty( - String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedSignalsProblemsResponseAttributes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedSignalsProblemsResponseAttributes aggregatedSignalsProblemsResponseAttributes = - (AggregatedSignalsProblemsResponseAttributes) o; - return Objects.equals( - this.applicationId, aggregatedSignalsProblemsResponseAttributes.applicationId) - && Objects.equals(this.criteria, aggregatedSignalsProblemsResponseAttributes.criteria) - && Objects.equals(this.from, aggregatedSignalsProblemsResponseAttributes.from) - && Objects.equals( - this.problemDetections, aggregatedSignalsProblemsResponseAttributes.problemDetections) - && Objects.equals( - this.sampleMetadata, aggregatedSignalsProblemsResponseAttributes.sampleMetadata) - && Objects.equals(this.to, aggregatedSignalsProblemsResponseAttributes.to) - && Objects.equals(this.viewName, aggregatedSignalsProblemsResponseAttributes.viewName) - && Objects.equals( - this.additionalProperties, - aggregatedSignalsProblemsResponseAttributes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - applicationId, - criteria, - from, - problemDetections, - sampleMetadata, - to, - viewName, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedSignalsProblemsResponseAttributes {\n"); - sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); - sb.append(" criteria: ").append(toIndentedString(criteria)).append("\n"); - sb.append(" from: ").append(toIndentedString(from)).append("\n"); - sb.append(" problemDetections: ").append(toIndentedString(problemDetections)).append("\n"); - sb.append(" sampleMetadata: ").append(toIndentedString(sampleMetadata)).append("\n"); - sb.append(" to: ").append(toIndentedString(to)).append("\n"); - sb.append(" viewName: ").append(toIndentedString(viewName)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponseData.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponseData.java deleted file mode 100644 index bb8f4d04028..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSignalsProblemsResponseData.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Data envelope for an aggregated signals and problems response. */ -@JsonPropertyOrder({ - AggregatedSignalsProblemsResponseData.JSON_PROPERTY_ATTRIBUTES, - AggregatedSignalsProblemsResponseData.JSON_PROPERTY_ID, - AggregatedSignalsProblemsResponseData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedSignalsProblemsResponseData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private AggregatedSignalsProblemsResponseAttributes attributes; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_TYPE = "type"; - private AggregatedSignalsProblemsRequestType type; - - public AggregatedSignalsProblemsResponseData() {} - - @JsonCreator - public AggregatedSignalsProblemsResponseData( - @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) - AggregatedSignalsProblemsResponseAttributes attributes, - @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, - @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) - AggregatedSignalsProblemsRequestType type) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - this.id = id; - this.type = type; - this.unparsed |= !type.isValid(); - } - - public AggregatedSignalsProblemsResponseData attributes( - AggregatedSignalsProblemsResponseAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * Attributes of an aggregated signals and problems response. - * - * @return attributes - */ - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AggregatedSignalsProblemsResponseAttributes getAttributes() { - return attributes; - } - - public void setAttributes(AggregatedSignalsProblemsResponseAttributes attributes) { - this.attributes = attributes; - if (attributes != null) { - this.unparsed |= attributes.unparsed; - } - } - - public AggregatedSignalsProblemsResponseData id(String id) { - this.id = id; - return this; - } - - /** - * Hash-based unique identifier for this aggregation. - * - * @return id - */ - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public AggregatedSignalsProblemsResponseData type(AggregatedSignalsProblemsRequestType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * The JSON:API type for aggregated signals and problems requests. - * - * @return type - */ - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AggregatedSignalsProblemsRequestType getType() { - return type; - } - - public void setType(AggregatedSignalsProblemsRequestType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedSignalsProblemsResponseData - */ - @JsonAnySetter - public AggregatedSignalsProblemsResponseData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedSignalsProblemsResponseData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedSignalsProblemsResponseData aggregatedSignalsProblemsResponseData = - (AggregatedSignalsProblemsResponseData) o; - return Objects.equals(this.attributes, aggregatedSignalsProblemsResponseData.attributes) - && Objects.equals(this.id, aggregatedSignalsProblemsResponseData.id) - && Objects.equals(this.type, aggregatedSignalsProblemsResponseData.type) - && Objects.equals( - this.additionalProperties, aggregatedSignalsProblemsResponseData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedSignalsProblemsResponseData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSlowFCPHighBytes.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSlowFCPHighBytes.java deleted file mode 100644 index 0e99f542eeb..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSlowFCPHighBytes.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Aggregated slow first contentful paint with high byte count detection. */ -@JsonPropertyOrder({ - AggregatedSlowFCPHighBytes.JSON_PROPERTY_AVG_BYTES_BEFORE_FCP_BYTES, - AggregatedSlowFCPHighBytes.JSON_PROPERTY_AVG_FIRST_CONTENTFUL_PAINT_MS, - AggregatedSlowFCPHighBytes.JSON_PROPERTY_AVG_RESOURCE_COUNT_BEFORE_FCP, - AggregatedSlowFCPHighBytes.JSON_PROPERTY_FINGERPRINT, - AggregatedSlowFCPHighBytes.JSON_PROPERTY_IMPACT_SCORE, - AggregatedSlowFCPHighBytes.JSON_PROPERTY_PLATFORM, - AggregatedSlowFCPHighBytes.JSON_PROPERTY_VIEW_OCCURRENCES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedSlowFCPHighBytes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AVG_BYTES_BEFORE_FCP_BYTES = - "avg_bytes_before_fcp_bytes"; - private Long avgBytesBeforeFcpBytes; - - public static final String JSON_PROPERTY_AVG_FIRST_CONTENTFUL_PAINT_MS = - "avg_first_contentful_paint_ms"; - private Long avgFirstContentfulPaintMs; - - public static final String JSON_PROPERTY_AVG_RESOURCE_COUNT_BEFORE_FCP = - "avg_resource_count_before_fcp"; - private Long avgResourceCountBeforeFcp; - - public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint"; - private String fingerprint; - - public static final String JSON_PROPERTY_IMPACT_SCORE = "impact_score"; - private Double impactScore; - - public static final String JSON_PROPERTY_PLATFORM = "platform"; - private String platform; - - public static final String JSON_PROPERTY_VIEW_OCCURRENCES = "view_occurrences"; - private Integer viewOccurrences; - - public AggregatedSlowFCPHighBytes() {} - - @JsonCreator - public AggregatedSlowFCPHighBytes( - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_BYTES_BEFORE_FCP_BYTES) - Long avgBytesBeforeFcpBytes, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_FIRST_CONTENTFUL_PAINT_MS) - Long avgFirstContentfulPaintMs, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_RESOURCE_COUNT_BEFORE_FCP) - Long avgResourceCountBeforeFcp, - @JsonProperty(required = true, value = JSON_PROPERTY_FINGERPRINT) String fingerprint, - @JsonProperty(required = true, value = JSON_PROPERTY_IMPACT_SCORE) Double impactScore, - @JsonProperty(required = true, value = JSON_PROPERTY_PLATFORM) String platform, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_OCCURRENCES) - Integer viewOccurrences) { - this.avgBytesBeforeFcpBytes = avgBytesBeforeFcpBytes; - this.avgFirstContentfulPaintMs = avgFirstContentfulPaintMs; - this.avgResourceCountBeforeFcp = avgResourceCountBeforeFcp; - this.fingerprint = fingerprint; - this.impactScore = impactScore; - this.platform = platform; - this.viewOccurrences = viewOccurrences; - } - - public AggregatedSlowFCPHighBytes avgBytesBeforeFcpBytes(Long avgBytesBeforeFcpBytes) { - this.avgBytesBeforeFcpBytes = avgBytesBeforeFcpBytes; - return this; - } - - /** - * Average total bytes loaded before first contentful paint. - * - * @return avgBytesBeforeFcpBytes - */ - @JsonProperty(JSON_PROPERTY_AVG_BYTES_BEFORE_FCP_BYTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgBytesBeforeFcpBytes() { - return avgBytesBeforeFcpBytes; - } - - public void setAvgBytesBeforeFcpBytes(Long avgBytesBeforeFcpBytes) { - this.avgBytesBeforeFcpBytes = avgBytesBeforeFcpBytes; - } - - public AggregatedSlowFCPHighBytes avgFirstContentfulPaintMs(Long avgFirstContentfulPaintMs) { - this.avgFirstContentfulPaintMs = avgFirstContentfulPaintMs; - return this; - } - - /** - * Average first contentful paint time in milliseconds. - * - * @return avgFirstContentfulPaintMs - */ - @JsonProperty(JSON_PROPERTY_AVG_FIRST_CONTENTFUL_PAINT_MS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgFirstContentfulPaintMs() { - return avgFirstContentfulPaintMs; - } - - public void setAvgFirstContentfulPaintMs(Long avgFirstContentfulPaintMs) { - this.avgFirstContentfulPaintMs = avgFirstContentfulPaintMs; - } - - public AggregatedSlowFCPHighBytes avgResourceCountBeforeFcp(Long avgResourceCountBeforeFcp) { - this.avgResourceCountBeforeFcp = avgResourceCountBeforeFcp; - return this; - } - - /** - * Average number of resources loaded before first contentful paint. - * - * @return avgResourceCountBeforeFcp - */ - @JsonProperty(JSON_PROPERTY_AVG_RESOURCE_COUNT_BEFORE_FCP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgResourceCountBeforeFcp() { - return avgResourceCountBeforeFcp; - } - - public void setAvgResourceCountBeforeFcp(Long avgResourceCountBeforeFcp) { - this.avgResourceCountBeforeFcp = avgResourceCountBeforeFcp; - } - - public AggregatedSlowFCPHighBytes fingerprint(String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Unique fingerprint identifying this detection group. - * - * @return fingerprint - */ - @JsonProperty(JSON_PROPERTY_FINGERPRINT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFingerprint() { - return fingerprint; - } - - public void setFingerprint(String fingerprint) { - this.fingerprint = fingerprint; - } - - public AggregatedSlowFCPHighBytes impactScore(Double impactScore) { - this.impactScore = impactScore; - return this; - } - - /** - * Impact score for this detection. - * - * @return impactScore - */ - @JsonProperty(JSON_PROPERTY_IMPACT_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getImpactScore() { - return impactScore; - } - - public void setImpactScore(Double impactScore) { - this.impactScore = impactScore; - } - - public AggregatedSlowFCPHighBytes platform(String platform) { - this.platform = platform; - return this; - } - - /** - * Platform identifier for the affected views. - * - * @return platform - */ - @JsonProperty(JSON_PROPERTY_PLATFORM) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPlatform() { - return platform; - } - - public void setPlatform(String platform) { - this.platform = platform; - } - - public AggregatedSlowFCPHighBytes viewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - return this; - } - - /** - * Number of sampled views where this detection occurred. maximum: 2147483647 - * - * @return viewOccurrences - */ - @JsonProperty(JSON_PROPERTY_VIEW_OCCURRENCES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getViewOccurrences() { - return viewOccurrences; - } - - public void setViewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedSlowFCPHighBytes - */ - @JsonAnySetter - public AggregatedSlowFCPHighBytes putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedSlowFCPHighBytes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedSlowFCPHighBytes aggregatedSlowFcpHighBytes = (AggregatedSlowFCPHighBytes) o; - return Objects.equals( - this.avgBytesBeforeFcpBytes, aggregatedSlowFcpHighBytes.avgBytesBeforeFcpBytes) - && Objects.equals( - this.avgFirstContentfulPaintMs, aggregatedSlowFcpHighBytes.avgFirstContentfulPaintMs) - && Objects.equals( - this.avgResourceCountBeforeFcp, aggregatedSlowFcpHighBytes.avgResourceCountBeforeFcp) - && Objects.equals(this.fingerprint, aggregatedSlowFcpHighBytes.fingerprint) - && Objects.equals(this.impactScore, aggregatedSlowFcpHighBytes.impactScore) - && Objects.equals(this.platform, aggregatedSlowFcpHighBytes.platform) - && Objects.equals(this.viewOccurrences, aggregatedSlowFcpHighBytes.viewOccurrences) - && Objects.equals( - this.additionalProperties, aggregatedSlowFcpHighBytes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - avgBytesBeforeFcpBytes, - avgFirstContentfulPaintMs, - avgResourceCountBeforeFcp, - fingerprint, - impactScore, - platform, - viewOccurrences, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedSlowFCPHighBytes {\n"); - sb.append(" avgBytesBeforeFcpBytes: ") - .append(toIndentedString(avgBytesBeforeFcpBytes)) - .append("\n"); - sb.append(" avgFirstContentfulPaintMs: ") - .append(toIndentedString(avgFirstContentfulPaintMs)) - .append("\n"); - sb.append(" avgResourceCountBeforeFcp: ") - .append(toIndentedString(avgResourceCountBeforeFcp)) - .append("\n"); - sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); - sb.append(" impactScore: ").append(toIndentedString(impactScore)).append("\n"); - sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); - sb.append(" viewOccurrences: ").append(toIndentedString(viewOccurrences)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedSlowInteractionLongTask.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedSlowInteractionLongTask.java deleted file mode 100644 index b7d3787bc6b..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedSlowInteractionLongTask.java +++ /dev/null @@ -1,394 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Aggregated slow interaction with long task detection grouped by action and selector. */ -@JsonPropertyOrder({ - AggregatedSlowInteractionLongTask.JSON_PROPERTY_ACTION_TYPE, - AggregatedSlowInteractionLongTask.JSON_PROPERTY_AVG_BLOCKING_DURATION, - AggregatedSlowInteractionLongTask.JSON_PROPERTY_AVG_DURATION, - AggregatedSlowInteractionLongTask.JSON_PROPERTY_FINGERPRINT, - AggregatedSlowInteractionLongTask.JSON_PROPERTY_IMPACT_SCORE, - AggregatedSlowInteractionLongTask.JSON_PROPERTY_INSTANCE_COUNT, - AggregatedSlowInteractionLongTask.JSON_PROPERTY_SELECTOR, - AggregatedSlowInteractionLongTask.JSON_PROPERTY_SELECTOR_NORMALIZED, - AggregatedSlowInteractionLongTask.JSON_PROPERTY_VIEW_OCCURRENCES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedSlowInteractionLongTask { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ACTION_TYPE = "action_type"; - private String actionType; - - public static final String JSON_PROPERTY_AVG_BLOCKING_DURATION = "avg_blocking_duration"; - private Long avgBlockingDuration; - - public static final String JSON_PROPERTY_AVG_DURATION = "avg_duration"; - private Long avgDuration; - - public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint"; - private String fingerprint; - - public static final String JSON_PROPERTY_IMPACT_SCORE = "impact_score"; - private Double impactScore; - - public static final String JSON_PROPERTY_INSTANCE_COUNT = "instance_count"; - private Integer instanceCount; - - public static final String JSON_PROPERTY_SELECTOR = "selector"; - private String selector; - - public static final String JSON_PROPERTY_SELECTOR_NORMALIZED = "selector_normalized"; - private String selectorNormalized; - - public static final String JSON_PROPERTY_VIEW_OCCURRENCES = "view_occurrences"; - private Integer viewOccurrences; - - public AggregatedSlowInteractionLongTask() {} - - @JsonCreator - public AggregatedSlowInteractionLongTask( - @JsonProperty(required = true, value = JSON_PROPERTY_ACTION_TYPE) String actionType, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_BLOCKING_DURATION) - Long avgBlockingDuration, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_DURATION) Long avgDuration, - @JsonProperty(required = true, value = JSON_PROPERTY_FINGERPRINT) String fingerprint, - @JsonProperty(required = true, value = JSON_PROPERTY_IMPACT_SCORE) Double impactScore, - @JsonProperty(required = true, value = JSON_PROPERTY_INSTANCE_COUNT) Integer instanceCount, - @JsonProperty(required = true, value = JSON_PROPERTY_SELECTOR) String selector, - @JsonProperty(required = true, value = JSON_PROPERTY_SELECTOR_NORMALIZED) - String selectorNormalized, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_OCCURRENCES) - Integer viewOccurrences) { - this.actionType = actionType; - this.avgBlockingDuration = avgBlockingDuration; - this.avgDuration = avgDuration; - this.fingerprint = fingerprint; - this.impactScore = impactScore; - this.instanceCount = instanceCount; - this.selector = selector; - if (selector != null) {} - this.selectorNormalized = selectorNormalized; - if (selectorNormalized != null) {} - this.viewOccurrences = viewOccurrences; - } - - public AggregatedSlowInteractionLongTask actionType(String actionType) { - this.actionType = actionType; - return this; - } - - /** - * Type of user interaction that triggered the slow response. - * - * @return actionType - */ - @JsonProperty(JSON_PROPERTY_ACTION_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getActionType() { - return actionType; - } - - public void setActionType(String actionType) { - this.actionType = actionType; - } - - public AggregatedSlowInteractionLongTask avgBlockingDuration(Long avgBlockingDuration) { - this.avgBlockingDuration = avgBlockingDuration; - return this; - } - - /** - * Average long task blocking duration in nanoseconds. - * - * @return avgBlockingDuration - */ - @JsonProperty(JSON_PROPERTY_AVG_BLOCKING_DURATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgBlockingDuration() { - return avgBlockingDuration; - } - - public void setAvgBlockingDuration(Long avgBlockingDuration) { - this.avgBlockingDuration = avgBlockingDuration; - } - - public AggregatedSlowInteractionLongTask avgDuration(Long avgDuration) { - this.avgDuration = avgDuration; - return this; - } - - /** - * Average total interaction duration in nanoseconds. - * - * @return avgDuration - */ - @JsonProperty(JSON_PROPERTY_AVG_DURATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgDuration() { - return avgDuration; - } - - public void setAvgDuration(Long avgDuration) { - this.avgDuration = avgDuration; - } - - public AggregatedSlowInteractionLongTask fingerprint(String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Unique fingerprint identifying this detection group. - * - * @return fingerprint - */ - @JsonProperty(JSON_PROPERTY_FINGERPRINT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFingerprint() { - return fingerprint; - } - - public void setFingerprint(String fingerprint) { - this.fingerprint = fingerprint; - } - - public AggregatedSlowInteractionLongTask impactScore(Double impactScore) { - this.impactScore = impactScore; - return this; - } - - /** - * Impact score combining view frequency and blocking severity. - * - * @return impactScore - */ - @JsonProperty(JSON_PROPERTY_IMPACT_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getImpactScore() { - return impactScore; - } - - public void setImpactScore(Double impactScore) { - this.impactScore = impactScore; - } - - public AggregatedSlowInteractionLongTask instanceCount(Integer instanceCount) { - this.instanceCount = instanceCount; - return this; - } - - /** - * Total number of detection instances across sampled views. maximum: 2147483647 - * - * @return instanceCount - */ - @JsonProperty(JSON_PROPERTY_INSTANCE_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getInstanceCount() { - return instanceCount; - } - - public void setInstanceCount(Integer instanceCount) { - this.instanceCount = instanceCount; - } - - public AggregatedSlowInteractionLongTask selector(String selector) { - this.selector = selector; - if (selector != null) {} - return this; - } - - /** - * CSS selector of the element that was interacted with. - * - * @return selector - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SELECTOR) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSelector() { - return selector; - } - - public void setSelector(String selector) { - this.selector = selector; - } - - public AggregatedSlowInteractionLongTask selectorNormalized(String selectorNormalized) { - this.selectorNormalized = selectorNormalized; - if (selectorNormalized != null) {} - return this; - } - - /** - * Normalized CSS selector with dynamic parts replaced. - * - * @return selectorNormalized - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SELECTOR_NORMALIZED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSelectorNormalized() { - return selectorNormalized; - } - - public void setSelectorNormalized(String selectorNormalized) { - this.selectorNormalized = selectorNormalized; - } - - public AggregatedSlowInteractionLongTask viewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - return this; - } - - /** - * Number of sampled views where this detection occurred. maximum: 2147483647 - * - * @return viewOccurrences - */ - @JsonProperty(JSON_PROPERTY_VIEW_OCCURRENCES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getViewOccurrences() { - return viewOccurrences; - } - - public void setViewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedSlowInteractionLongTask - */ - @JsonAnySetter - public AggregatedSlowInteractionLongTask putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedSlowInteractionLongTask object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedSlowInteractionLongTask aggregatedSlowInteractionLongTask = - (AggregatedSlowInteractionLongTask) o; - return Objects.equals(this.actionType, aggregatedSlowInteractionLongTask.actionType) - && Objects.equals( - this.avgBlockingDuration, aggregatedSlowInteractionLongTask.avgBlockingDuration) - && Objects.equals(this.avgDuration, aggregatedSlowInteractionLongTask.avgDuration) - && Objects.equals(this.fingerprint, aggregatedSlowInteractionLongTask.fingerprint) - && Objects.equals(this.impactScore, aggregatedSlowInteractionLongTask.impactScore) - && Objects.equals(this.instanceCount, aggregatedSlowInteractionLongTask.instanceCount) - && Objects.equals(this.selector, aggregatedSlowInteractionLongTask.selector) - && Objects.equals( - this.selectorNormalized, aggregatedSlowInteractionLongTask.selectorNormalized) - && Objects.equals(this.viewOccurrences, aggregatedSlowInteractionLongTask.viewOccurrences) - && Objects.equals( - this.additionalProperties, aggregatedSlowInteractionLongTask.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - actionType, - avgBlockingDuration, - avgDuration, - fingerprint, - impactScore, - instanceCount, - selector, - selectorNormalized, - viewOccurrences, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedSlowInteractionLongTask {\n"); - sb.append(" actionType: ").append(toIndentedString(actionType)).append("\n"); - sb.append(" avgBlockingDuration: ") - .append(toIndentedString(avgBlockingDuration)) - .append("\n"); - sb.append(" avgDuration: ").append(toIndentedString(avgDuration)).append("\n"); - sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); - sb.append(" impactScore: ").append(toIndentedString(impactScore)).append("\n"); - sb.append(" instanceCount: ").append(toIndentedString(instanceCount)).append("\n"); - sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); - sb.append(" selectorNormalized: ").append(toIndentedString(selectorNormalized)).append("\n"); - sb.append(" viewOccurrences: ").append(toIndentedString(viewOccurrences)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/AggregatedUncompressedResource.java b/src/main/java/com/datadog/api/client/v2/model/AggregatedUncompressedResource.java deleted file mode 100644 index a6c35a121ed..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/AggregatedUncompressedResource.java +++ /dev/null @@ -1,417 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Aggregated uncompressed resource detection grouped by URL path. */ -@JsonPropertyOrder({ - AggregatedUncompressedResource.JSON_PROPERTY_AVG_BODY_SIZE, - AggregatedUncompressedResource.JSON_PROPERTY_AVG_DURATION, - AggregatedUncompressedResource.JSON_PROPERTY_FINGERPRINT, - AggregatedUncompressedResource.JSON_PROPERTY_IMPACT_SCORE, - AggregatedUncompressedResource.JSON_PROPERTY_INSTANCE_COUNT, - AggregatedUncompressedResource.JSON_PROPERTY_PROVIDER_TYPE, - AggregatedUncompressedResource.JSON_PROPERTY_RENDER_BLOCKING, - AggregatedUncompressedResource.JSON_PROPERTY_RESOURCE_TYPE, - AggregatedUncompressedResource.JSON_PROPERTY_URL_PATH_GROUP, - AggregatedUncompressedResource.JSON_PROPERTY_VIEW_OCCURRENCES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class AggregatedUncompressedResource { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AVG_BODY_SIZE = "avg_body_size"; - private Long avgBodySize; - - public static final String JSON_PROPERTY_AVG_DURATION = "avg_duration"; - private Long avgDuration; - - public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint"; - private String fingerprint; - - public static final String JSON_PROPERTY_IMPACT_SCORE = "impact_score"; - private Double impactScore; - - public static final String JSON_PROPERTY_INSTANCE_COUNT = "instance_count"; - private Integer instanceCount; - - public static final String JSON_PROPERTY_PROVIDER_TYPE = "provider_type"; - private String providerType; - - public static final String JSON_PROPERTY_RENDER_BLOCKING = "render_blocking"; - private String renderBlocking; - - public static final String JSON_PROPERTY_RESOURCE_TYPE = "resource_type"; - private String resourceType; - - public static final String JSON_PROPERTY_URL_PATH_GROUP = "url_path_group"; - private String urlPathGroup; - - public static final String JSON_PROPERTY_VIEW_OCCURRENCES = "view_occurrences"; - private Integer viewOccurrences; - - public AggregatedUncompressedResource() {} - - @JsonCreator - public AggregatedUncompressedResource( - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_BODY_SIZE) Long avgBodySize, - @JsonProperty(required = true, value = JSON_PROPERTY_AVG_DURATION) Long avgDuration, - @JsonProperty(required = true, value = JSON_PROPERTY_FINGERPRINT) String fingerprint, - @JsonProperty(required = true, value = JSON_PROPERTY_IMPACT_SCORE) Double impactScore, - @JsonProperty(required = true, value = JSON_PROPERTY_INSTANCE_COUNT) Integer instanceCount, - @JsonProperty(required = true, value = JSON_PROPERTY_PROVIDER_TYPE) String providerType, - @JsonProperty(required = true, value = JSON_PROPERTY_RENDER_BLOCKING) String renderBlocking, - @JsonProperty(required = true, value = JSON_PROPERTY_RESOURCE_TYPE) String resourceType, - @JsonProperty(required = true, value = JSON_PROPERTY_URL_PATH_GROUP) String urlPathGroup, - @JsonProperty(required = true, value = JSON_PROPERTY_VIEW_OCCURRENCES) - Integer viewOccurrences) { - this.avgBodySize = avgBodySize; - this.avgDuration = avgDuration; - this.fingerprint = fingerprint; - this.impactScore = impactScore; - this.instanceCount = instanceCount; - this.providerType = providerType; - if (providerType != null) {} - this.renderBlocking = renderBlocking; - if (renderBlocking != null) {} - this.resourceType = resourceType; - this.urlPathGroup = urlPathGroup; - this.viewOccurrences = viewOccurrences; - } - - public AggregatedUncompressedResource avgBodySize(Long avgBodySize) { - this.avgBodySize = avgBodySize; - return this; - } - - /** - * Average uncompressed body size in bytes. - * - * @return avgBodySize - */ - @JsonProperty(JSON_PROPERTY_AVG_BODY_SIZE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgBodySize() { - return avgBodySize; - } - - public void setAvgBodySize(Long avgBodySize) { - this.avgBodySize = avgBodySize; - } - - public AggregatedUncompressedResource avgDuration(Long avgDuration) { - this.avgDuration = avgDuration; - return this; - } - - /** - * Average resource loading duration in nanoseconds. - * - * @return avgDuration - */ - @JsonProperty(JSON_PROPERTY_AVG_DURATION) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Long getAvgDuration() { - return avgDuration; - } - - public void setAvgDuration(Long avgDuration) { - this.avgDuration = avgDuration; - } - - public AggregatedUncompressedResource fingerprint(String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * Unique fingerprint identifying this detection group. - * - * @return fingerprint - */ - @JsonProperty(JSON_PROPERTY_FINGERPRINT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFingerprint() { - return fingerprint; - } - - public void setFingerprint(String fingerprint) { - this.fingerprint = fingerprint; - } - - public AggregatedUncompressedResource impactScore(Double impactScore) { - this.impactScore = impactScore; - return this; - } - - /** - * Impact score combining view frequency and resource size. - * - * @return impactScore - */ - @JsonProperty(JSON_PROPERTY_IMPACT_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getImpactScore() { - return impactScore; - } - - public void setImpactScore(Double impactScore) { - this.impactScore = impactScore; - } - - public AggregatedUncompressedResource instanceCount(Integer instanceCount) { - this.instanceCount = instanceCount; - return this; - } - - /** - * Total number of detection instances across sampled views. maximum: 2147483647 - * - * @return instanceCount - */ - @JsonProperty(JSON_PROPERTY_INSTANCE_COUNT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getInstanceCount() { - return instanceCount; - } - - public void setInstanceCount(Integer instanceCount) { - this.instanceCount = instanceCount; - } - - public AggregatedUncompressedResource providerType(String providerType) { - this.providerType = providerType; - if (providerType != null) {} - return this; - } - - /** - * CDN or hosting provider type for the resource. - * - * @return providerType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROVIDER_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getProviderType() { - return providerType; - } - - public void setProviderType(String providerType) { - this.providerType = providerType; - } - - public AggregatedUncompressedResource renderBlocking(String renderBlocking) { - this.renderBlocking = renderBlocking; - if (renderBlocking != null) {} - return this; - } - - /** - * Whether the resource is render-blocking. - * - * @return renderBlocking - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RENDER_BLOCKING) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRenderBlocking() { - return renderBlocking; - } - - public void setRenderBlocking(String renderBlocking) { - this.renderBlocking = renderBlocking; - } - - public AggregatedUncompressedResource resourceType(String resourceType) { - this.resourceType = resourceType; - return this; - } - - /** - * Type of the resource (JS, CSS, image, fetch, and so on). - * - * @return resourceType - */ - @JsonProperty(JSON_PROPERTY_RESOURCE_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public AggregatedUncompressedResource urlPathGroup(String urlPathGroup) { - this.urlPathGroup = urlPathGroup; - return this; - } - - /** - * Normalized URL path pattern for the uncompressed resource. - * - * @return urlPathGroup - */ - @JsonProperty(JSON_PROPERTY_URL_PATH_GROUP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrlPathGroup() { - return urlPathGroup; - } - - public void setUrlPathGroup(String urlPathGroup) { - this.urlPathGroup = urlPathGroup; - } - - public AggregatedUncompressedResource viewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - return this; - } - - /** - * Number of sampled views where this detection occurred. maximum: 2147483647 - * - * @return viewOccurrences - */ - @JsonProperty(JSON_PROPERTY_VIEW_OCCURRENCES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getViewOccurrences() { - return viewOccurrences; - } - - public void setViewOccurrences(Integer viewOccurrences) { - this.viewOccurrences = viewOccurrences; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return AggregatedUncompressedResource - */ - @JsonAnySetter - public AggregatedUncompressedResource putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this AggregatedUncompressedResource object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregatedUncompressedResource aggregatedUncompressedResource = - (AggregatedUncompressedResource) o; - return Objects.equals(this.avgBodySize, aggregatedUncompressedResource.avgBodySize) - && Objects.equals(this.avgDuration, aggregatedUncompressedResource.avgDuration) - && Objects.equals(this.fingerprint, aggregatedUncompressedResource.fingerprint) - && Objects.equals(this.impactScore, aggregatedUncompressedResource.impactScore) - && Objects.equals(this.instanceCount, aggregatedUncompressedResource.instanceCount) - && Objects.equals(this.providerType, aggregatedUncompressedResource.providerType) - && Objects.equals(this.renderBlocking, aggregatedUncompressedResource.renderBlocking) - && Objects.equals(this.resourceType, aggregatedUncompressedResource.resourceType) - && Objects.equals(this.urlPathGroup, aggregatedUncompressedResource.urlPathGroup) - && Objects.equals(this.viewOccurrences, aggregatedUncompressedResource.viewOccurrences) - && Objects.equals( - this.additionalProperties, aggregatedUncompressedResource.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - avgBodySize, - avgDuration, - fingerprint, - impactScore, - instanceCount, - providerType, - renderBlocking, - resourceType, - urlPathGroup, - viewOccurrences, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AggregatedUncompressedResource {\n"); - sb.append(" avgBodySize: ").append(toIndentedString(avgBodySize)).append("\n"); - sb.append(" avgDuration: ").append(toIndentedString(avgDuration)).append("\n"); - sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); - sb.append(" impactScore: ").append(toIndentedString(impactScore)).append("\n"); - sb.append(" instanceCount: ").append(toIndentedString(instanceCount)).append("\n"); - sb.append(" providerType: ").append(toIndentedString(providerType)).append("\n"); - sb.append(" renderBlocking: ").append(toIndentedString(renderBlocking)).append("\n"); - sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); - sb.append(" urlPathGroup: ").append(toIndentedString(urlPathGroup)).append("\n"); - sb.append(" viewOccurrences: ").append(toIndentedString(viewOccurrences)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SignalsProblemsDetections.java b/src/main/java/com/datadog/api/client/v2/model/SignalsProblemsDetections.java deleted file mode 100644 index 408ab1b2d11..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SignalsProblemsDetections.java +++ /dev/null @@ -1,473 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Grouped detection results by detection type. */ -@JsonPropertyOrder({ - SignalsProblemsDetections.JSON_PROPERTY_HIGH_FROZEN_FRAME_RATES, - SignalsProblemsDetections.JSON_PROPERTY_HIGH_SCRIPT_EVALUATIONS, - SignalsProblemsDetections.JSON_PROPERTY_LOW_CACHE_HIT_RATES, - SignalsProblemsDetections.JSON_PROPERTY_MOBILE_SCROLL_FRICTIONS, - SignalsProblemsDetections.JSON_PROPERTY_SLOW_FCP_HIGH_BYTES, - SignalsProblemsDetections.JSON_PROPERTY_SLOW_INTERACTION_LONG_TASKS, - SignalsProblemsDetections.JSON_PROPERTY_UNCOMPRESSED_RESOURCES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SignalsProblemsDetections { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HIGH_FROZEN_FRAME_RATES = "high_frozen_frame_rates"; - private List highFrozenFrameRates = null; - - public static final String JSON_PROPERTY_HIGH_SCRIPT_EVALUATIONS = "high_script_evaluations"; - private List highScriptEvaluations = null; - - public static final String JSON_PROPERTY_LOW_CACHE_HIT_RATES = "low_cache_hit_rates"; - private List lowCacheHitRates = null; - - public static final String JSON_PROPERTY_MOBILE_SCROLL_FRICTIONS = "mobile_scroll_frictions"; - private List mobileScrollFrictions = null; - - public static final String JSON_PROPERTY_SLOW_FCP_HIGH_BYTES = "slow_fcp_high_bytes"; - private List slowFcpHighBytes = null; - - public static final String JSON_PROPERTY_SLOW_INTERACTION_LONG_TASKS = - "slow_interaction_long_tasks"; - private List slowInteractionLongTasks = null; - - public static final String JSON_PROPERTY_UNCOMPRESSED_RESOURCES = "uncompressed_resources"; - private List uncompressedResources = null; - - public SignalsProblemsDetections highFrozenFrameRates( - List highFrozenFrameRates) { - this.highFrozenFrameRates = highFrozenFrameRates; - if (highFrozenFrameRates != null) { - for (AggregatedHighFrozenFrameRate item : highFrozenFrameRates) { - this.unparsed |= item.unparsed; - } - } - return this; - } - - public SignalsProblemsDetections addHighFrozenFrameRatesItem( - AggregatedHighFrozenFrameRate highFrozenFrameRatesItem) { - if (this.highFrozenFrameRates == null) { - this.highFrozenFrameRates = new ArrayList<>(); - } - this.highFrozenFrameRates.add(highFrozenFrameRatesItem); - this.unparsed |= highFrozenFrameRatesItem.unparsed; - return this; - } - - /** - * Detected high frozen frame rate issues. - * - * @return highFrozenFrameRates - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIGH_FROZEN_FRAME_RATES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getHighFrozenFrameRates() { - return highFrozenFrameRates; - } - - public void setHighFrozenFrameRates(List highFrozenFrameRates) { - this.highFrozenFrameRates = highFrozenFrameRates; - if (highFrozenFrameRates != null) { - for (AggregatedHighFrozenFrameRate item : highFrozenFrameRates) { - this.unparsed |= item.unparsed; - } - } - } - - public SignalsProblemsDetections highScriptEvaluations( - List highScriptEvaluations) { - this.highScriptEvaluations = highScriptEvaluations; - if (highScriptEvaluations != null) { - for (AggregatedHighScriptEval item : highScriptEvaluations) { - this.unparsed |= item.unparsed; - } - } - return this; - } - - public SignalsProblemsDetections addHighScriptEvaluationsItem( - AggregatedHighScriptEval highScriptEvaluationsItem) { - if (this.highScriptEvaluations == null) { - this.highScriptEvaluations = new ArrayList<>(); - } - this.highScriptEvaluations.add(highScriptEvaluationsItem); - this.unparsed |= highScriptEvaluationsItem.unparsed; - return this; - } - - /** - * Detected high script evaluation issues. - * - * @return highScriptEvaluations - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HIGH_SCRIPT_EVALUATIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getHighScriptEvaluations() { - return highScriptEvaluations; - } - - public void setHighScriptEvaluations(List highScriptEvaluations) { - this.highScriptEvaluations = highScriptEvaluations; - if (highScriptEvaluations != null) { - for (AggregatedHighScriptEval item : highScriptEvaluations) { - this.unparsed |= item.unparsed; - } - } - } - - public SignalsProblemsDetections lowCacheHitRates( - List lowCacheHitRates) { - this.lowCacheHitRates = lowCacheHitRates; - if (lowCacheHitRates != null) { - for (AggregatedLowCacheHitRate item : lowCacheHitRates) { - this.unparsed |= item.unparsed; - } - } - return this; - } - - public SignalsProblemsDetections addLowCacheHitRatesItem( - AggregatedLowCacheHitRate lowCacheHitRatesItem) { - if (this.lowCacheHitRates == null) { - this.lowCacheHitRates = new ArrayList<>(); - } - this.lowCacheHitRates.add(lowCacheHitRatesItem); - this.unparsed |= lowCacheHitRatesItem.unparsed; - return this; - } - - /** - * Detected low cache hit rate issues. - * - * @return lowCacheHitRates - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOW_CACHE_HIT_RATES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getLowCacheHitRates() { - return lowCacheHitRates; - } - - public void setLowCacheHitRates(List lowCacheHitRates) { - this.lowCacheHitRates = lowCacheHitRates; - if (lowCacheHitRates != null) { - for (AggregatedLowCacheHitRate item : lowCacheHitRates) { - this.unparsed |= item.unparsed; - } - } - } - - public SignalsProblemsDetections mobileScrollFrictions( - List mobileScrollFrictions) { - this.mobileScrollFrictions = mobileScrollFrictions; - if (mobileScrollFrictions != null) { - for (AggregatedMobileScrollFriction item : mobileScrollFrictions) { - this.unparsed |= item.unparsed; - } - } - return this; - } - - public SignalsProblemsDetections addMobileScrollFrictionsItem( - AggregatedMobileScrollFriction mobileScrollFrictionsItem) { - if (this.mobileScrollFrictions == null) { - this.mobileScrollFrictions = new ArrayList<>(); - } - this.mobileScrollFrictions.add(mobileScrollFrictionsItem); - this.unparsed |= mobileScrollFrictionsItem.unparsed; - return this; - } - - /** - * Detected mobile scroll friction issues. - * - * @return mobileScrollFrictions - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MOBILE_SCROLL_FRICTIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getMobileScrollFrictions() { - return mobileScrollFrictions; - } - - public void setMobileScrollFrictions(List mobileScrollFrictions) { - this.mobileScrollFrictions = mobileScrollFrictions; - if (mobileScrollFrictions != null) { - for (AggregatedMobileScrollFriction item : mobileScrollFrictions) { - this.unparsed |= item.unparsed; - } - } - } - - public SignalsProblemsDetections slowFcpHighBytes( - List slowFcpHighBytes) { - this.slowFcpHighBytes = slowFcpHighBytes; - if (slowFcpHighBytes != null) { - for (AggregatedSlowFCPHighBytes item : slowFcpHighBytes) { - this.unparsed |= item.unparsed; - } - } - return this; - } - - public SignalsProblemsDetections addSlowFcpHighBytesItem( - AggregatedSlowFCPHighBytes slowFcpHighBytesItem) { - if (this.slowFcpHighBytes == null) { - this.slowFcpHighBytes = new ArrayList<>(); - } - this.slowFcpHighBytes.add(slowFcpHighBytesItem); - this.unparsed |= slowFcpHighBytesItem.unparsed; - return this; - } - - /** - * Detected slow first contentful paint with high byte count issues. - * - * @return slowFcpHighBytes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SLOW_FCP_HIGH_BYTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSlowFcpHighBytes() { - return slowFcpHighBytes; - } - - public void setSlowFcpHighBytes(List slowFcpHighBytes) { - this.slowFcpHighBytes = slowFcpHighBytes; - if (slowFcpHighBytes != null) { - for (AggregatedSlowFCPHighBytes item : slowFcpHighBytes) { - this.unparsed |= item.unparsed; - } - } - } - - public SignalsProblemsDetections slowInteractionLongTasks( - List slowInteractionLongTasks) { - this.slowInteractionLongTasks = slowInteractionLongTasks; - if (slowInteractionLongTasks != null) { - for (AggregatedSlowInteractionLongTask item : slowInteractionLongTasks) { - this.unparsed |= item.unparsed; - } - } - return this; - } - - public SignalsProblemsDetections addSlowInteractionLongTasksItem( - AggregatedSlowInteractionLongTask slowInteractionLongTasksItem) { - if (this.slowInteractionLongTasks == null) { - this.slowInteractionLongTasks = new ArrayList<>(); - } - this.slowInteractionLongTasks.add(slowInteractionLongTasksItem); - this.unparsed |= slowInteractionLongTasksItem.unparsed; - return this; - } - - /** - * Detected slow interaction with long task issues. - * - * @return slowInteractionLongTasks - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SLOW_INTERACTION_LONG_TASKS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSlowInteractionLongTasks() { - return slowInteractionLongTasks; - } - - public void setSlowInteractionLongTasks( - List slowInteractionLongTasks) { - this.slowInteractionLongTasks = slowInteractionLongTasks; - if (slowInteractionLongTasks != null) { - for (AggregatedSlowInteractionLongTask item : slowInteractionLongTasks) { - this.unparsed |= item.unparsed; - } - } - } - - public SignalsProblemsDetections uncompressedResources( - List uncompressedResources) { - this.uncompressedResources = uncompressedResources; - if (uncompressedResources != null) { - for (AggregatedUncompressedResource item : uncompressedResources) { - this.unparsed |= item.unparsed; - } - } - return this; - } - - public SignalsProblemsDetections addUncompressedResourcesItem( - AggregatedUncompressedResource uncompressedResourcesItem) { - if (this.uncompressedResources == null) { - this.uncompressedResources = new ArrayList<>(); - } - this.uncompressedResources.add(uncompressedResourcesItem); - this.unparsed |= uncompressedResourcesItem.unparsed; - return this; - } - - /** - * Detected uncompressed resource issues. - * - * @return uncompressedResources - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UNCOMPRESSED_RESOURCES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getUncompressedResources() { - return uncompressedResources; - } - - public void setUncompressedResources(List uncompressedResources) { - this.uncompressedResources = uncompressedResources; - if (uncompressedResources != null) { - for (AggregatedUncompressedResource item : uncompressedResources) { - this.unparsed |= item.unparsed; - } - } - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SignalsProblemsDetections - */ - @JsonAnySetter - public SignalsProblemsDetections putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SignalsProblemsDetections object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalsProblemsDetections signalsProblemsDetections = (SignalsProblemsDetections) o; - return Objects.equals(this.highFrozenFrameRates, signalsProblemsDetections.highFrozenFrameRates) - && Objects.equals( - this.highScriptEvaluations, signalsProblemsDetections.highScriptEvaluations) - && Objects.equals(this.lowCacheHitRates, signalsProblemsDetections.lowCacheHitRates) - && Objects.equals( - this.mobileScrollFrictions, signalsProblemsDetections.mobileScrollFrictions) - && Objects.equals(this.slowFcpHighBytes, signalsProblemsDetections.slowFcpHighBytes) - && Objects.equals( - this.slowInteractionLongTasks, signalsProblemsDetections.slowInteractionLongTasks) - && Objects.equals( - this.uncompressedResources, signalsProblemsDetections.uncompressedResources) - && Objects.equals( - this.additionalProperties, signalsProblemsDetections.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - highFrozenFrameRates, - highScriptEvaluations, - lowCacheHitRates, - mobileScrollFrictions, - slowFcpHighBytes, - slowInteractionLongTasks, - uncompressedResources, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalsProblemsDetections {\n"); - sb.append(" highFrozenFrameRates: ") - .append(toIndentedString(highFrozenFrameRates)) - .append("\n"); - sb.append(" highScriptEvaluations: ") - .append(toIndentedString(highScriptEvaluations)) - .append("\n"); - sb.append(" lowCacheHitRates: ").append(toIndentedString(lowCacheHitRates)).append("\n"); - sb.append(" mobileScrollFrictions: ") - .append(toIndentedString(mobileScrollFrictions)) - .append("\n"); - sb.append(" slowFcpHighBytes: ").append(toIndentedString(slowFcpHighBytes)).append("\n"); - sb.append(" slowInteractionLongTasks: ") - .append(toIndentedString(slowInteractionLongTasks)) - .append("\n"); - sb.append(" uncompressedResources: ") - .append(toIndentedString(uncompressedResources)) - .append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SignalsProblemsSampleMetadata.java b/src/main/java/com/datadog/api/client/v2/model/SignalsProblemsSampleMetadata.java deleted file mode 100644 index 8948721995d..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SignalsProblemsSampleMetadata.java +++ /dev/null @@ -1,267 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Metadata about the sampling quality for a signals and problems query. */ -@JsonPropertyOrder({ - SignalsProblemsSampleMetadata.JSON_PROPERTY_FAILED, - SignalsProblemsSampleMetadata.JSON_PROPERTY_REQUESTED, - SignalsProblemsSampleMetadata.JSON_PROPERTY_SAMPLED_VIEW_IDS, - SignalsProblemsSampleMetadata.JSON_PROPERTY_SUCCEEDED, - SignalsProblemsSampleMetadata.JSON_PROPERTY_SUCCESS_RATE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SignalsProblemsSampleMetadata { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_FAILED = "failed"; - private Integer failed; - - public static final String JSON_PROPERTY_REQUESTED = "requested"; - private Integer requested; - - public static final String JSON_PROPERTY_SAMPLED_VIEW_IDS = "sampled_view_ids"; - private List sampledViewIds = new ArrayList<>(); - - public static final String JSON_PROPERTY_SUCCEEDED = "succeeded"; - private Integer succeeded; - - public static final String JSON_PROPERTY_SUCCESS_RATE = "success_rate"; - private Double successRate; - - public SignalsProblemsSampleMetadata() {} - - @JsonCreator - public SignalsProblemsSampleMetadata( - @JsonProperty(required = true, value = JSON_PROPERTY_FAILED) Integer failed, - @JsonProperty(required = true, value = JSON_PROPERTY_REQUESTED) Integer requested, - @JsonProperty(required = true, value = JSON_PROPERTY_SAMPLED_VIEW_IDS) - List sampledViewIds, - @JsonProperty(required = true, value = JSON_PROPERTY_SUCCEEDED) Integer succeeded, - @JsonProperty(required = true, value = JSON_PROPERTY_SUCCESS_RATE) Double successRate) { - this.failed = failed; - this.requested = requested; - this.sampledViewIds = sampledViewIds; - this.succeeded = succeeded; - this.successRate = successRate; - } - - public SignalsProblemsSampleMetadata failed(Integer failed) { - this.failed = failed; - return this; - } - - /** - * Number of view instances that failed to process. maximum: 2147483647 - * - * @return failed - */ - @JsonProperty(JSON_PROPERTY_FAILED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getFailed() { - return failed; - } - - public void setFailed(Integer failed) { - this.failed = failed; - } - - public SignalsProblemsSampleMetadata requested(Integer requested) { - this.requested = requested; - return this; - } - - /** - * Number of view instances requested for sampling. maximum: 2147483647 - * - * @return requested - */ - @JsonProperty(JSON_PROPERTY_REQUESTED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getRequested() { - return requested; - } - - public void setRequested(Integer requested) { - this.requested = requested; - } - - public SignalsProblemsSampleMetadata sampledViewIds(List sampledViewIds) { - this.sampledViewIds = sampledViewIds; - return this; - } - - public SignalsProblemsSampleMetadata addSampledViewIdsItem(String sampledViewIdsItem) { - this.sampledViewIds.add(sampledViewIdsItem); - return this; - } - - /** - * List of RUM view IDs that were sampled. - * - * @return sampledViewIds - */ - @JsonProperty(JSON_PROPERTY_SAMPLED_VIEW_IDS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getSampledViewIds() { - return sampledViewIds; - } - - public void setSampledViewIds(List sampledViewIds) { - this.sampledViewIds = sampledViewIds; - } - - public SignalsProblemsSampleMetadata succeeded(Integer succeeded) { - this.succeeded = succeeded; - return this; - } - - /** - * Number of view instances successfully processed. maximum: 2147483647 - * - * @return succeeded - */ - @JsonProperty(JSON_PROPERTY_SUCCEEDED) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getSucceeded() { - return succeeded; - } - - public void setSucceeded(Integer succeeded) { - this.succeeded = succeeded; - } - - public SignalsProblemsSampleMetadata successRate(Double successRate) { - this.successRate = successRate; - return this; - } - - /** - * Ratio of successfully processed views to requested views. - * - * @return successRate - */ - @JsonProperty(JSON_PROPERTY_SUCCESS_RATE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getSuccessRate() { - return successRate; - } - - public void setSuccessRate(Double successRate) { - this.successRate = successRate; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SignalsProblemsSampleMetadata - */ - @JsonAnySetter - public SignalsProblemsSampleMetadata putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SignalsProblemsSampleMetadata object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalsProblemsSampleMetadata signalsProblemsSampleMetadata = (SignalsProblemsSampleMetadata) o; - return Objects.equals(this.failed, signalsProblemsSampleMetadata.failed) - && Objects.equals(this.requested, signalsProblemsSampleMetadata.requested) - && Objects.equals(this.sampledViewIds, signalsProblemsSampleMetadata.sampledViewIds) - && Objects.equals(this.succeeded, signalsProblemsSampleMetadata.succeeded) - && Objects.equals(this.successRate, signalsProblemsSampleMetadata.successRate) - && Objects.equals( - this.additionalProperties, signalsProblemsSampleMetadata.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - failed, requested, sampledViewIds, succeeded, successRate, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalsProblemsSampleMetadata {\n"); - sb.append(" failed: ").append(toIndentedString(failed)).append("\n"); - sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); - sb.append(" sampledViewIds: ").append(toIndentedString(sampledViewIds)).append("\n"); - sb.append(" succeeded: ").append(toIndentedString(succeeded)).append("\n"); - sb.append(" successRate: ").append(toIndentedString(successRate)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum_insights.feature b/src/test/resources/com/datadog/api/client/v2/api/rum_insights.feature index 27dcc3fb565..a06b8e62eac 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/rum_insights.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/rum_insights.feature @@ -26,22 +26,6 @@ Feature: RUM Insights When the request is sent Then the response status is 201 Successful response - @generated @skip @team:DataDog/rum-backend - Scenario: Query aggregated signals and problems returns "Bad Request" response - Given operation "QueryAggregatedSignalsProblems" enabled - And new "QueryAggregatedSignalsProblems" request - And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "detection_types": ["high_script_evaluations", "uncompressed_resources"], "filter": "@session.type:user", "from": 1762437564, "sample_size": 30, "to": 1762523964, "view_name": "/account/login(/:type)"}, "type": "aggregated_signals_problems"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:DataDog/rum-backend - Scenario: Query aggregated signals and problems returns "Successful response" response - Given operation "QueryAggregatedSignalsProblems" enabled - And new "QueryAggregatedSignalsProblems" request - And body with value {"data": {"attributes": {"application_id": "ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b", "criteria": {"max": 5.0, "metric": "largest_contentful_paint", "min": 2.5}, "detection_types": ["high_script_evaluations", "uncompressed_resources"], "filter": "@session.type:user", "from": 1762437564, "sample_size": 30, "to": 1762523964, "view_name": "/account/login(/:type)"}, "type": "aggregated_signals_problems"}} - When the request is sent - Then the response status is 201 Successful response - @generated @skip @team:DataDog/rum-backend Scenario: Query aggregated waterfall returns "Bad Request" response Given operation "QueryAggregatedWaterfall" enabled diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index cbecf69cfc2..cddd8813ff3 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -7686,12 +7686,6 @@ "type": "safe" } }, - "QueryAggregatedSignalsProblems": { - "tag": "RUM Insights", - "undo": { - "type": "safe" - } - }, "QueryAggregatedWaterfall": { "tag": "RUM Insights", "undo": {