Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
635 changes: 0 additions & 635 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions features/v2/rum_insights.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7698,12 +7698,6 @@
"type": "safe"
}
},
"QueryAggregatedSignalsProblems": {
"tag": "RUM Insights",
"undo": {
"type": "safe"
}
},
"QueryAggregatedWaterfall": {
"tag": "RUM Insights",
"undo": {
Expand Down
7 changes: 0 additions & 7 deletions private/bdd_runner/src/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16514,13 +16514,6 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
},
operationResponseType: "AggregatedLongTasksResponse",
},
"RUMInsightsApi.V2.QueryAggregatedSignalsProblems": {
body: {
type: "AggregatedSignalsProblemsRequest",
format: "",
},
operationResponseType: "AggregatedSignalsProblemsResponse",
},
"RUMInsightsApi.V2.QueryAggregatedWaterfall": {
body: {
type: "AggregatedWaterfallRequest",
Expand Down
174 changes: 0 additions & 174 deletions services/rum_insights/src/v2/RUMInsightsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import {
import { TypingInfo } from "./models/TypingInfo";
import { AggregatedLongTasksRequest } from "./models/AggregatedLongTasksRequest";
import { AggregatedLongTasksResponse } from "./models/AggregatedLongTasksResponse";
import { AggregatedSignalsProblemsRequest } from "./models/AggregatedSignalsProblemsRequest";
import { AggregatedSignalsProblemsResponse } from "./models/AggregatedSignalsProblemsResponse";
import { AggregatedWaterfallRequest } from "./models/AggregatedWaterfallRequest";
import { AggregatedWaterfallResponse } from "./models/AggregatedWaterfallResponse";
import { APIErrorResponse } from "./models/APIErrorResponse";
Expand Down Expand Up @@ -105,73 +103,6 @@ export class RUMInsightsApiRequestFactory extends BaseAPIRequestFactory {
return requestContext;
}

public async queryAggregatedSignalsProblems(
body: AggregatedSignalsProblemsRequest,
_options?: Configuration,
): Promise<RequestContext> {
const _config = _options || this.configuration;

if (
!_config.unstableOperations[
"RUMInsightsApi.v2.queryAggregatedSignalsProblems"
]
) {
throw new Error(
"Unstable operation 'queryAggregatedSignalsProblems' is disabled. Enable it by setting `configuration.unstableOperations['RUMInsightsApi.v2.queryAggregatedSignalsProblems'] = true`",
);
}

// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError("body", "queryAggregatedSignalsProblems");
}

// Path Params
const localVarPath =
"/api/v2/rum/query/insight/aggregated_signals_problems";

// Make Request Context
const { server, overrides } = _config.getServerAndOverrides(
"RUMInsightsApi.v2.queryAggregatedSignalsProblems",
RUMInsightsApi.operationServers,
);
const requestContext = server.makeRequestContext(
localVarPath,
HttpMethod.POST,
overrides,
);
requestContext.setHeaderParam("Accept", "application/json");
requestContext.setHttpConfig(_config.httpConfig);

// Set User-Agent
if (this.userAgent) {
requestContext.setHeaderParam("User-Agent", this.userAgent);
}

// Set IaC header
if (_config.isIaC) {
requestContext.setHeaderParam("X-Datadog-Managed-By", "iac");
}

// Body Params
const contentType = getPreferredMediaType(["application/json"]);
requestContext.setHeaderParam("Content-Type", contentType);
const serializedBody = stringify(
serialize(body, TypingInfo, "AggregatedSignalsProblemsRequest", ""),
contentType,
);
requestContext.setBody(serializedBody);

// Apply auth methods
applySecurityAuthentication(_config, requestContext, [
"apiKeyAuth",
"appKeyAuth",
"AuthZ",
]);

return requestContext;
}

public async queryAggregatedWaterfall(
body: AggregatedWaterfallRequest,
_options?: Configuration,
Expand Down Expand Up @@ -315,83 +246,6 @@ export class RUMInsightsApiResponseProcessor {
);
}

/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
*
* @params response Response returned by the server for a request to queryAggregatedSignalsProblems
* @throws ApiException if the response code was not in [200, 299]
*/
public async queryAggregatedSignalsProblems(
response: ResponseContext,
): Promise<AggregatedSignalsProblemsResponse> {
const contentType = normalizeMediaType(response.headers["content-type"]);
if (response.httpStatusCode === 201) {
const body: AggregatedSignalsProblemsResponse = deserialize(
parse(await response.body.text(), contentType),
TypingInfo,
"AggregatedSignalsProblemsResponse",
) as AggregatedSignalsProblemsResponse;
return body;
}
if (response.httpStatusCode === 400 || response.httpStatusCode === 401) {
const bodyText = parse(await response.body.text(), contentType);
let body: JSONAPIErrorResponse;
try {
body = deserialize(
bodyText,
TypingInfo,
"JSONAPIErrorResponse",
) as JSONAPIErrorResponse;
} catch (error) {
logger.debug(`Got error deserializing error: ${error}`);
throw new ApiException<JSONAPIErrorResponse>(
response.httpStatusCode,
bodyText,
);
}
throw new ApiException<JSONAPIErrorResponse>(
response.httpStatusCode,
body,
);
}
if (response.httpStatusCode === 429) {
const bodyText = parse(await response.body.text(), contentType);
let body: APIErrorResponse;
try {
body = deserialize(
bodyText,
TypingInfo,
"APIErrorResponse",
) as APIErrorResponse;
} catch (error) {
logger.debug(`Got error deserializing error: ${error}`);
throw new ApiException<APIErrorResponse>(
response.httpStatusCode,
bodyText,
);
}
throw new ApiException<APIErrorResponse>(response.httpStatusCode, body);
}

// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: AggregatedSignalsProblemsResponse = deserialize(
parse(await response.body.text(), contentType),
TypingInfo,
"AggregatedSignalsProblemsResponse",
"",
) as AggregatedSignalsProblemsResponse;
return body;
}

const body = (await response.body.text()) || "";
throw new ApiException<string>(
response.httpStatusCode,
'Unknown API Status Code!\nBody: "' + body + '"',
);
}

/**
* Unwraps the actual response sent by the server from the response context and deserializes the response content
* to the expected objects
Expand Down Expand Up @@ -477,13 +331,6 @@ export interface RUMInsightsApiQueryAggregatedLongTasksRequest {
body: AggregatedLongTasksRequest;
}

export interface RUMInsightsApiQueryAggregatedSignalsProblemsRequest {
/**
* @type AggregatedSignalsProblemsRequest
*/
body: AggregatedSignalsProblemsRequest;
}

export interface RUMInsightsApiQueryAggregatedWaterfallRequest {
/**
* @type AggregatedWaterfallRequest
Expand Down Expand Up @@ -533,27 +380,6 @@ export class RUMInsightsApi {
});
}

/**
* Get aggregated performance signals and problem detections for a RUM view, sampled across multiple view instances.
* @param param The request object
*/
public queryAggregatedSignalsProblems(
param: RUMInsightsApiQueryAggregatedSignalsProblemsRequest,
options?: Configuration,
): Promise<AggregatedSignalsProblemsResponse> {
const requestContextPromise =
this.requestFactory.queryAggregatedSignalsProblems(param.body, options);
return requestContextPromise.then((requestContext) => {
return this.configuration.httpApi
.send(requestContext)
.then((responseContext) => {
return this.responseProcessor.queryAggregatedSignalsProblems(
responseContext,
);
});
});
}

/**
* Get aggregated network resource waterfall data for a RUM view, sampled across multiple view instances.
* @param param The request object
Expand Down
17 changes: 0 additions & 17 deletions services/rum_insights/src/v2/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
export {
RUMInsightsApiQueryAggregatedLongTasksRequest,
RUMInsightsApiQueryAggregatedSignalsProblemsRequest,
RUMInsightsApiQueryAggregatedWaterfallRequest,
RUMInsightsApi,
} from "./RUMInsightsApi";

export { AggregatedHighFrozenFrameRate } from "./models/AggregatedHighFrozenFrameRate";
export { AggregatedHighScriptEval } from "./models/AggregatedHighScriptEval";
export { AggregatedLongTasksByInvokerType } from "./models/AggregatedLongTasksByInvokerType";
export { AggregatedLongTasksRequest } from "./models/AggregatedLongTasksRequest";
export { AggregatedLongTasksRequestAttributes } from "./models/AggregatedLongTasksRequestAttributes";
Expand All @@ -16,20 +13,8 @@ export { AggregatedLongTasksResponse } from "./models/AggregatedLongTasksRespons
export { AggregatedLongTasksResponseAttributes } from "./models/AggregatedLongTasksResponseAttributes";
export { AggregatedLongTasksResponseAttributesCriteria } from "./models/AggregatedLongTasksResponseAttributesCriteria";
export { AggregatedLongTasksResponseData } from "./models/AggregatedLongTasksResponseData";
export { AggregatedLowCacheHitRate } from "./models/AggregatedLowCacheHitRate";
export { AggregatedMobileScrollFriction } from "./models/AggregatedMobileScrollFriction";
export { AggregatedResource } from "./models/AggregatedResource";
export { AggregatedResourceTimingBreakdown } from "./models/AggregatedResourceTimingBreakdown";
export { AggregatedSignalsProblemsRequest } from "./models/AggregatedSignalsProblemsRequest";
export { AggregatedSignalsProblemsRequestAttributes } from "./models/AggregatedSignalsProblemsRequestAttributes";
export { AggregatedSignalsProblemsRequestData } from "./models/AggregatedSignalsProblemsRequestData";
export { AggregatedSignalsProblemsRequestType } from "./models/AggregatedSignalsProblemsRequestType";
export { AggregatedSignalsProblemsResponse } from "./models/AggregatedSignalsProblemsResponse";
export { AggregatedSignalsProblemsResponseAttributes } from "./models/AggregatedSignalsProblemsResponseAttributes";
export { AggregatedSignalsProblemsResponseData } from "./models/AggregatedSignalsProblemsResponseData";
export { AggregatedSlowFCPHighBytes } from "./models/AggregatedSlowFCPHighBytes";
export { AggregatedSlowInteractionLongTask } from "./models/AggregatedSlowInteractionLongTask";
export { AggregatedUncompressedResource } from "./models/AggregatedUncompressedResource";
export { AggregatedWaterfallPerformanceCriteria } from "./models/AggregatedWaterfallPerformanceCriteria";
export { AggregatedWaterfallPerformanceCriteriaMetric } from "./models/AggregatedWaterfallPerformanceCriteriaMetric";
export { AggregatedWaterfallRequest } from "./models/AggregatedWaterfallRequest";
Expand All @@ -46,6 +31,4 @@ export { JSONAPIErrorItemSource } from "./models/JSONAPIErrorItemSource";
export { JSONAPIErrorResponse } from "./models/JSONAPIErrorResponse";
export { LongTaskMetricStats } from "./models/LongTaskMetricStats";
export { LongTaskStatsPerView } from "./models/LongTaskStatsPerView";
export { SignalsProblemsDetections } from "./models/SignalsProblemsDetections";
export { SignalsProblemsSampleMetadata } from "./models/SignalsProblemsSampleMetadata";
export { TopLongTaskInvoker } from "./models/TopLongTaskInvoker";

This file was deleted.

Loading
Loading