diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 37b23f3961db..ff64f3e097be 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -71370,6 +71370,10 @@ components: $ref: "#/components/schemas/SyntheticsApiMultistepSubtestData" type: array type: object + SyntheticsFastTestAssertionResult: + additionalProperties: {} + description: Result of a single assertion evaluated during a fast test run. + type: object SyntheticsFastTestResult: description: |- Fast test result response. Returns `null` if the result is not yet available @@ -71383,18 +71387,19 @@ components: description: Attributes of the fast test result. properties: device: - $ref: "#/components/schemas/SyntheticsTestResultDevice" + $ref: "#/components/schemas/SyntheticsFastTestResultDevice" location: - $ref: "#/components/schemas/SyntheticsTestResultLocation" + $ref: "#/components/schemas/SyntheticsFastTestResultLocation" result: $ref: "#/components/schemas/SyntheticsFastTestResultDetail" test_sub_type: $ref: "#/components/schemas/SyntheticsFastTestSubType" test_type: - $ref: "#/components/schemas/SyntheticsFastTestType" + description: The type of the Synthetic test that produced this result (for example, `api` or `browser`). + example: api + type: string test_version: description: Version of the test at the time the fast test was triggered. - example: 1 format: int64 type: integer type: object @@ -71418,47 +71423,48 @@ components: assertions: description: Results of each assertion evaluated during the test. items: - $ref: "#/components/schemas/SyntheticsTestResultAssertionResult" + $ref: "#/components/schemas/SyntheticsFastTestAssertionResult" type: array call_type: description: gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). - example: unary type: string cert: - $ref: "#/components/schemas/SyntheticsTestResultCertificate" + additionalProperties: {} + description: TLS certificate details, present for SSL tests. + type: object duration: description: Total duration of the test in milliseconds. - example: 150.5 format: double type: number failure: - $ref: "#/components/schemas/SyntheticsTestResultFailure" + $ref: "#/components/schemas/SyntheticsFastTestResultFailure" finished_at: description: Unix timestamp (ms) of when the test finished. - example: 1679328001000 format: int64 type: integer id: description: The result ID. Set to the fast test UUID because no persistent result ID exists for fast tests. - example: abc12345-1234-1234-1234-abc123456789 type: string is_fast_retry: description: Whether this result is from an automatic fast retry. - example: false type: boolean request: - $ref: "#/components/schemas/SyntheticsTestResultRequestInfo" + additionalProperties: {} + description: Details of the outgoing request made during the test. + type: object resolved_ip: description: IP address resolved for the target host. example: "1.2.3.4" type: string response: - $ref: "#/components/schemas/SyntheticsTestResultResponseInfo" + additionalProperties: {} + description: Details of the response received during the test. + type: object run_type: - $ref: "#/components/schemas/SyntheticsTestResultRunType" + description: Run type indicating how this test was triggered (for example, `fast`). + type: string started_at: description: Unix timestamp (ms) of when the test started. - example: 1679328000000 format: int64 type: integer status: @@ -71468,34 +71474,67 @@ components: steps: description: Step results for multistep API tests. items: - $ref: "#/components/schemas/SyntheticsTestResultStep" + $ref: "#/components/schemas/SyntheticsFastTestStepResult" type: array timings: additionalProperties: {} description: Timing breakdown of the test request phases (for example, DNS, TCP, TLS, first byte). - example: - dns: 2.9 - download: 2.1 - firstByte: 95.2 - ssl: 187.9 - tcp: 92.6 - total: 380.7 type: object traceroute: description: Traceroute hop results, present for ICMP and TCP tests. items: - $ref: "#/components/schemas/SyntheticsTestResultTracerouteHop" + $ref: "#/components/schemas/SyntheticsFastTestTracerouteHop" type: array triggered_at: description: Unix timestamp (ms) of when the test was triggered. - example: 1679327999000 format: int64 type: integer tunnel: description: Whether the test was run through a Synthetics tunnel. - example: false type: boolean type: object + SyntheticsFastTestResultDevice: + description: Device information for browser-based fast tests. + properties: + id: + description: Device identifier. + example: chrome.laptop_large + type: string + name: + description: Display name of the device. + example: Laptop Large + type: string + type: object + SyntheticsFastTestResultFailure: + description: Failure details if the fast test did not pass. + properties: + code: + description: Error code identifying the failure type. + example: TIMEOUT + type: string + message: + description: Human-readable description of the failure. + example: Connection timed out + type: string + type: object + SyntheticsFastTestResultLocation: + description: Location from which the fast test was executed. + properties: + id: + description: ID of the location. + example: aws:us-east-1 + type: string + name: + description: Display name of the location. + example: N. Virginia (AWS) + type: string + version: + description: Agent version running at this location. + type: string + worker_id: + description: Identifier of the specific worker that ran the test. + type: string + type: object SyntheticsFastTestResultType: default: result description: JSON:API type for a fast test result. @@ -71505,6 +71544,10 @@ components: type: string x-enum-varnames: - RESULT + SyntheticsFastTestStepResult: + additionalProperties: {} + description: Result of a single step in a multistep fast test run. + type: object SyntheticsFastTestSubType: description: Subtype of the Synthetic test that produced this result. enum: @@ -71531,16 +71574,10 @@ components: - TCP - UDP - WEBSOCKET - SyntheticsFastTestType: - description: Type of the Synthetic fast test that produced this result. - enum: - - fast-api - - fast-browser - example: fast-api - type: string - x-enum-varnames: - - FAST_API - - FAST_BROWSER + SyntheticsFastTestTracerouteHop: + additionalProperties: {} + description: A single traceroute hop result from a fast test run. + type: object SyntheticsGlobalVariable: description: Synthetic global variable. properties: @@ -72025,20 +72062,6 @@ components: type: string x-enum-varnames: - NETWORK - SyntheticsPollTestResultsResponse: - description: Response object for polling Synthetic test results. - properties: - data: - description: Array of Synthetic test results. - items: - $ref: "#/components/schemas/SyntheticsTestResultData" - type: array - included: - description: Array of included related resources, such as the test definition. - items: - $ref: "#/components/schemas/SyntheticsTestResultIncludedItem" - type: array - type: object SyntheticsRestrictedRoles: deprecated: true description: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. @@ -72336,20 +72359,6 @@ components: multipart_presigned_urls_params: $ref: "#/components/schemas/SyntheticsTestFileMultipartPresignedUrlsParams" type: object - SyntheticsTestLatestResultsResponse: - description: Response object for a Synthetic test's latest result summaries. - properties: - data: - description: Array of Synthetic test result summaries. - items: - $ref: "#/components/schemas/SyntheticsTestResultSummaryData" - type: array - included: - description: Array of included related resources, such as the test definition. - items: - $ref: "#/components/schemas/SyntheticsTestResultIncludedItem" - type: array - type: object SyntheticsTestOptions: description: Object describing the extra options for a Synthetic test. properties: @@ -72560,1910 +72569,6 @@ components: x-enum-varnames: - LIVE - PAUSED - SyntheticsTestResultAssertionResult: - description: An individual assertion result from a Synthetic test. - properties: - actual: - description: Actual value observed during the test. Its type depends on the assertion type. - example: 200 - error_message: - description: Error message if the assertion failed. - example: "Assertion failed: expected 200 but got 500" - type: string - expected: - description: Expected value for the assertion. Its type depends on the assertion type. - example: "200" - operator: - description: Operator used for the assertion (for example, `is`, `contains`). - example: is - type: string - property: - description: Property targeted by the assertion, when applicable. - example: content-type - type: string - target: - description: Target value for the assertion. Its type depends on the assertion type. - example: 200 - target_path: - description: JSON path or XPath evaluated for the assertion. - example: $.url - type: string - target_path_operator: - description: Operator used for the target path assertion. - example: contains - type: string - type: - description: Type of the assertion (for example, `responseTime`, `statusCode`, `body`). - example: statusCode - type: string - valid: - description: Whether the assertion passed. - example: true - type: boolean - type: object - SyntheticsTestResultAttributes: - description: Attributes of a Synthetic test result. - properties: - batch: - $ref: "#/components/schemas/SyntheticsTestResultBatch" - ci: - $ref: "#/components/schemas/SyntheticsTestResultCI" - device: - $ref: "#/components/schemas/SyntheticsTestResultDevice" - git: - $ref: "#/components/schemas/SyntheticsTestResultGit" - location: - $ref: "#/components/schemas/SyntheticsTestResultLocation" - result: - $ref: "#/components/schemas/SyntheticsTestResultDetail" - test_sub_type: - $ref: "#/components/schemas/SyntheticsTestSubType" - test_type: - $ref: "#/components/schemas/SyntheticsTestType" - type: object - SyntheticsTestResultBatch: - description: Batch information for the test result. - properties: - id: - description: Batch identifier. - example: batch-abc-123 - type: string - type: object - SyntheticsTestResultBounds: - description: Bounding box of an element on the page. - properties: - height: - description: Height in pixels. - example: 37 - format: int64 - type: integer - width: - description: Width in pixels. - example: 343 - format: int64 - type: integer - x: - description: Horizontal position in pixels. - example: 16 - format: int64 - type: integer - y: - description: Vertical position in pixels. - example: 140 - format: int64 - type: integer - type: object - SyntheticsTestResultBrowserError: - description: A browser error captured during a browser test step. - properties: - description: - description: Error description. - example: Failed to fetch resource - type: string - method: - description: HTTP method associated with the error (for network errors). - example: GET - type: string - name: - description: Error name. - example: NetworkError - type: string - status: - description: HTTP status code associated with the error (for network errors). - example: 500 - format: int64 - type: integer - type: - description: Type of the browser error. - example: network - type: string - url: - additionalProperties: {} - description: URL associated with the error. - type: object - type: object - SyntheticsTestResultBucketKeys: - description: Storage bucket keys for artifacts produced during a step or test. - properties: - after_step_screenshot: - description: Key for the screenshot captured after the step (goal-based tests). - example: screenshots/after-step-1-1.png - type: string - after_turn_screenshot: - description: Key for the screenshot captured after the turn (goal-based tests). - example: screenshots/after-turn-1.png - type: string - artifacts: - description: Key for miscellaneous artifacts. - example: 2/e2e-tests/equ-jku-twc/results/6989498452827932222/edge.laptop_large/artifacts__1724521416257.json - type: string - before_step_screenshot: - description: Key for the screenshot captured before the step (goal-based tests). - example: screenshots/before-step-1-1.png - type: string - before_turn_screenshot: - description: Key for the screenshot captured before the turn (goal-based tests). - example: screenshots/before-turn-1.png - type: string - crash_report: - description: Key for a captured crash report. - example: 2/e2e-tests/d2z-32s-iax/results/1340718101990858549/synthetics:mobile:device:iphone_se_2020_ios_14/crash_report.log - type: string - device_logs: - description: Key for captured device logs. - example: 2/e2e-tests/d2z-32s-iax/results/1340718101990858549/synthetics:mobile:device:iphone_se_2020_ios_14/d2z-32s-iax_1340718101990858549_device_logs.log - type: string - email_messages: - description: Keys for email message payloads captured by the step. - items: - description: Storage bucket key for a captured email message. - type: string - type: array - screenshot: - description: Key for the captured screenshot. - example: 2/e2e-tests/equ-jku-twc/results/6989498452827932222/edge.laptop_large/step-0__1724521416269.jpeg - type: string - snapshot: - description: Key for the captured DOM snapshot. - example: 2/e2e-tests/equ-jku-twc/results/6989498452827932222/edge.laptop_large/snapshot.html - type: string - source: - description: Key for the page source or element source. - example: 2/e2e-tests/d2z-32s-iax/results/1340718101990858549/synthetics:mobile:device:iphone_se_2020_ios_14/step-0__1724445301832.xml - type: string - type: object - SyntheticsTestResultCI: - description: CI information associated with the test result. - properties: - pipeline: - $ref: "#/components/schemas/SyntheticsTestResultCIPipeline" - provider: - $ref: "#/components/schemas/SyntheticsTestResultCIProvider" - stage: - $ref: "#/components/schemas/SyntheticsTestResultCIStage" - workspace_path: - description: Path of the workspace that ran the CI job. - example: /home/runner/work/example - type: string - type: object - SyntheticsTestResultCIPipeline: - description: Details of the CI pipeline. - properties: - id: - description: Pipeline identifier. - example: pipeline-abc-123 - type: string - name: - description: Pipeline name. - example: build-and-test - type: string - number: - description: Pipeline number. - example: 42 - format: int64 - type: integer - url: - description: Pipeline URL. - example: https://github.com/DataDog/example/actions/runs/42 - type: string - type: object - SyntheticsTestResultCIProvider: - description: Details of the CI provider. - properties: - name: - description: Provider name. - example: github - type: string - type: object - SyntheticsTestResultCIStage: - description: Details of the CI stage. - properties: - name: - description: Stage name. - example: test - type: string - type: object - SyntheticsTestResultCdnCacheStatus: - description: Cache status reported by the CDN for the response. - properties: - cached: - description: Whether the response was served from the CDN cache. - example: true - type: boolean - status: - description: Raw cache status string reported by the CDN. - example: HIT - type: string - type: object - SyntheticsTestResultCdnProviderInfo: - description: CDN provider details inferred from response headers. - properties: - cache: - $ref: "#/components/schemas/SyntheticsTestResultCdnCacheStatus" - provider: - description: Name of the CDN provider. - example: google_cloud - type: string - type: object - SyntheticsTestResultCdnResource: - description: A CDN resource encountered while executing a browser step. - properties: - cdn: - $ref: "#/components/schemas/SyntheticsTestResultCdnProviderInfo" - resolved_ip: - description: Resolved IP address for the CDN resource. - example: 34.95.79.70 - type: string - timestamp: - description: Unix timestamp (ms) of when the resource was fetched. - example: 1724521406576 - format: int64 - type: integer - timings: - additionalProperties: {} - description: Timing breakdown for fetching the CDN resource. - example: - firstByte: 99.7 - tcp: 0.9 - type: object - type: object - SyntheticsTestResultCertificate: - description: SSL/TLS certificate information returned from an SSL test. - properties: - cipher: - description: Cipher used for the TLS connection. - example: TLS_AES_256_GCM_SHA384 - type: string - exponent: - description: RSA exponent of the certificate. - example: 65537 - format: int64 - type: integer - ext_key_usage: - description: Extended key usage extensions for the certificate. - example: - - 1.3.6.1.5.5.7.3.1 - items: - description: Extended key usage value. - type: string - type: array - fingerprint: - description: SHA-1 fingerprint of the certificate. - example: D6:03:5A:9F:93:E1:B7:28:EC:90:C5:9F:72:30:55:7C:74:5F:53:92 - type: string - fingerprint256: - description: SHA-256 fingerprint of the certificate. - example: 04:45:93:A9:4C:14:70:47:DB:3C:FC:05:F9:5A:50:4E:DA:DB:A1:C6:37:3D:15:C0:B2:7E:5D:93:5F:A2:02:C7 - type: string - issuer: - additionalProperties: - type: string - description: Certificate issuer details. - example: - C: US - CN: WE2 - O: Google Trust Services - type: object - modulus: - description: RSA modulus of the certificate. - example: C0FCE9F9... - type: string - protocol: - description: TLS protocol used (for example, `TLSv1.2`). - example: TLSv1.3 - type: string - serial_number: - description: Serial number of the certificate. - example: 7B584A1A6670A1EB0941A9A121569D60 - type: string - subject: - additionalProperties: - type: string - description: Certificate subject details. - example: - CN: "*.google.fr" - altName: "DNS:*.google.fr, DNS:google.fr" - type: object - tls_version: - description: TLS protocol version. - example: 1.3 - format: double - type: number - valid: - $ref: "#/components/schemas/SyntheticsTestResultCertificateValidity" - type: object - SyntheticsTestResultCertificateValidity: - description: Validity window of a certificate. - properties: - from: - description: Unix timestamp (ms) of when the certificate became valid. - example: 1742469686000 - format: int64 - type: integer - to: - description: Unix timestamp (ms) of when the certificate expires. - example: 1749727285000 - format: int64 - type: integer - type: object - SyntheticsTestResultData: - description: Wrapper object for a Synthetic test result. - properties: - attributes: - $ref: "#/components/schemas/SyntheticsTestResultAttributes" - id: - description: The result ID. - example: "5158904793181869365" - type: string - relationships: - $ref: "#/components/schemas/SyntheticsTestResultRelationships" - type: - $ref: "#/components/schemas/SyntheticsTestResultType" - type: object - SyntheticsTestResultDetail: - description: Full result details for a Synthetic test execution. - properties: - assertions: - description: Assertion results produced by the test. - items: - $ref: "#/components/schemas/SyntheticsTestResultAssertionResult" - type: array - bucket_keys: - $ref: "#/components/schemas/SyntheticsTestResultBucketKeys" - call_type: - description: gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). - example: unary - type: string - cert: - $ref: "#/components/schemas/SyntheticsTestResultCertificate" - compressed_json_descriptor: - description: Compressed JSON descriptor for the test (internal format). - example: compressedJsonDescriptorValue - type: string - compressed_steps: - description: Compressed representation of the test steps (internal format). - example: eJzLSM3JyQcABiwCFQ== - type: string - connection_outcome: - description: Outcome of the connection attempt (for example, `established`, `refused`). - example: established - type: string - dns_resolution: - $ref: "#/components/schemas/SyntheticsTestResultDnsResolution" - duration: - description: Duration of the test execution (in milliseconds). - example: 380.7 - format: double - type: number - exited_on_step_success: - description: Whether the test exited early because a step marked with `exitIfSucceed` passed. - example: false - type: boolean - failure: - $ref: "#/components/schemas/SyntheticsTestResultFailure" - finished_at: - description: Timestamp of when the test finished (in milliseconds). - example: 1723782422760 - format: int64 - type: integer - handshake: - $ref: "#/components/schemas/SyntheticsTestResultHandshake" - id: - description: The unique identifier for this result. - example: "5158904793181869365" - type: string - initial_id: - description: The initial result ID before any retries. - example: "5158904793181869365" - type: string - is_fast_retry: - description: Whether this result is from a fast retry. - example: true - type: boolean - is_last_retry: - description: Whether this result is from the last retry. - example: true - type: boolean - netpath: - $ref: "#/components/schemas/SyntheticsTestResultNetpath" - netstats: - $ref: "#/components/schemas/SyntheticsTestResultNetstats" - ocsp: - $ref: "#/components/schemas/SyntheticsTestResultOCSPResponse" - ping: - $ref: "#/components/schemas/SyntheticsTestResultTracerouteHop" - received_email_count: - description: Number of emails received during the test (email tests). - example: 1 - format: int64 - type: integer - received_message: - description: Message received from the target (for WebSocket/TCP/UDP tests). - example: "UDP echo: b'Test message'" - type: string - request: - $ref: "#/components/schemas/SyntheticsTestResultRequestInfo" - resolved_ip: - description: IP address resolved for the target host. - example: "54.243.255.141" - type: string - response: - $ref: "#/components/schemas/SyntheticsTestResultResponseInfo" - run_type: - $ref: "#/components/schemas/SyntheticsTestResultRunType" - sent_message: - description: Message sent to the target (for WebSocket/TCP/UDP tests). - example: udp mess - type: string - start_url: - description: Start URL for the test (browser tests). - example: http://34.95.79.70/prototype - type: string - started_at: - description: Timestamp of when the test started (in milliseconds). - example: 1723782422750 - format: int64 - type: integer - status: - $ref: "#/components/schemas/SyntheticsTestResultStatus" - steps: - description: Step results (for browser, mobile, and multistep API tests). - items: - $ref: "#/components/schemas/SyntheticsTestResultStep" - type: array - time_to_interactive: - description: Time to interactive in milliseconds (browser tests). - example: 183 - format: int64 - type: integer - timings: - additionalProperties: {} - description: Timing breakdown of the test request phases (for example, DNS, TCP, TLS, first byte). - example: - dns: 2.9 - download: 2.1 - firstByte: 95.2 - ssl: 187.9 - tcp: 92.6 - total: 380.7 - type: object - trace: - $ref: "#/components/schemas/SyntheticsTestResultTrace" - traceroute: - description: Traceroute hop results (for network tests). - items: - $ref: "#/components/schemas/SyntheticsTestResultTracerouteHop" - type: array - triggered_at: - description: Timestamp of when the test was triggered (in milliseconds). - example: 1723782422715 - format: int64 - type: integer - tunnel: - description: Whether the test was executed through a tunnel. - example: false - type: boolean - turns: - description: Turns executed by a goal-based browser test. - items: - $ref: "#/components/schemas/SyntheticsTestResultTurn" - type: array - unhealthy: - description: Whether the test runner was unhealthy at the time of execution. - example: false - type: boolean - variables: - $ref: "#/components/schemas/SyntheticsTestResultVariables" - type: object - SyntheticsTestResultDevice: - description: Device information for the test result (browser and mobile tests). - properties: - browser: - $ref: "#/components/schemas/SyntheticsTestResultDeviceBrowser" - id: - description: Device identifier. - example: chrome.laptop_large - type: string - name: - description: Device name. - example: "Chrome - Laptop Large" - type: string - platform: - $ref: "#/components/schemas/SyntheticsTestResultDevicePlatform" - resolution: - $ref: "#/components/schemas/SyntheticsTestResultDeviceResolution" - type: - description: Device type. - example: browser - type: string - type: object - SyntheticsTestResultDeviceBrowser: - description: Browser information for the device used to run the test. - properties: - type: - description: Browser type (for example, `chrome`, `firefox`). - example: edge - type: string - user_agent: - description: User agent string reported by the browser. - example: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 Edg/127.0.2651.105 DatadogSynthetics - type: string - version: - description: Browser version. - example: 127.0.2651.105 - type: string - type: object - SyntheticsTestResultDevicePlatform: - description: Platform information for the device used to run the test. - properties: - name: - description: Platform name (for example, `linux`, `macos`). - example: ios - type: string - version: - description: Platform version. - example: "14.8" - type: string - type: object - SyntheticsTestResultDeviceResolution: - description: Screen resolution of the device used to run the test. - properties: - height: - description: Viewport height in pixels. - example: 1100 - format: int64 - type: integer - pixel_ratio: - description: Device pixel ratio. - example: 2 - format: double - type: number - width: - description: Viewport width in pixels. - example: 1440 - format: int64 - type: integer - type: object - SyntheticsTestResultDnsRecord: - description: A DNS record returned in a DNS test response. - properties: - type: - description: DNS record type (for example, `A`, `AAAA`, `CNAME`). - example: A - type: string - values: - description: Values associated with the DNS record. - example: - - 213.186.33.19 - items: - description: DNS record value. - type: string - type: array - type: object - SyntheticsTestResultDnsResolution: - description: DNS resolution details recorded during the test execution. - properties: - attempts: - description: DNS resolution attempts made during the test. - items: - $ref: "#/components/schemas/SyntheticsTestResultDnsResolutionAttempt" - type: array - resolved_ip: - description: Resolved IP address for the target host. - example: 54.243.255.141 - type: string - resolved_port: - description: Resolved port for the target service. - example: "443" - type: string - server: - description: DNS server used for the resolution. - example: 8.8.4.4 - type: string - type: object - SyntheticsTestResultDnsResolutionAttempt: - additionalProperties: - type: string - description: A single DNS resolution attempt. Keys are provider-specific attempt fields. - type: object - SyntheticsTestResultDuration: - description: Total duration of a Synthetic test execution. - properties: - has_duration: - description: Whether a duration was recorded for this execution. - example: true - type: boolean - value: - description: Duration value in milliseconds. - example: 380 - format: int64 - type: integer - type: object - SyntheticsTestResultExecutionInfo: - description: Execution details for a Synthetic test result. - properties: - duration: - $ref: "#/components/schemas/SyntheticsTestResultDuration" - error_message: - description: Error message if the execution encountered an issue. - example: Connection timed out - type: string - is_fast_retry: - description: Whether this result is from a fast retry. - example: true - type: boolean - timings: - additionalProperties: {} - description: Timing breakdown of the test execution in milliseconds. - example: - dns: 2.9 - download: 2.1 - firstByte: 95.2 - ssl: 187.9 - tcp: 92.6 - total: 380.7 - type: object - tunnel: - description: Whether the test was executed through a tunnel. - example: false - type: boolean - unhealthy: - description: Whether the location was unhealthy during execution. - example: false - type: boolean - type: object - SyntheticsTestResultFailure: - description: Details about the failure of a Synthetic test. - properties: - code: - description: Error code for the failure. - example: TIMEOUT - type: string - internal_code: - description: Internal error code used for debugging. - example: INCORRECT_ASSERTION - type: string - internal_message: - description: Internal error message used for debugging. - example: Assertion failed on step 2 - type: string - message: - description: Error message for the failure. - example: Connection timed out - type: string - type: object - SyntheticsTestResultFileRef: - description: Reference to a file attached to a Synthetic test request. - properties: - bucket_key: - description: Storage bucket key where the file is stored. - example: api-upload-file/s3v-msw-tp3/2024-08-20T12:18:27.628081_f433c953-a58a-4296-834b-0669e32ba55f.json - type: string - encoding: - description: Encoding of the file contents. - example: base64 - type: string - name: - description: File name. - example: dd_logo_h_rgb.jpg - type: string - size: - description: File size in bytes. - example: 30294 - format: int64 - type: integer - type: - description: File MIME type. - example: image/jpeg - type: string - type: object - SyntheticsTestResultGit: - description: Git information associated with the test result. - properties: - branch: - description: Git branch name. - example: main - type: string - commit: - $ref: "#/components/schemas/SyntheticsTestResultGitCommit" - repository_url: - description: Git repository URL. - example: https://github.com/DataDog/example - type: string - type: object - SyntheticsTestResultGitCommit: - description: Details of the Git commit associated with the test result. - properties: - author: - $ref: "#/components/schemas/SyntheticsTestResultGitUser" - committer: - $ref: "#/components/schemas/SyntheticsTestResultGitUser" - message: - description: Commit message. - example: Fix bug in login flow - type: string - sha: - description: Commit SHA. - example: 9e107d9d372bb6826bd81d3542a419d6f0e1de56 - type: string - url: - description: URL of the commit. - example: https://github.com/DataDog/example/commit/9e107d9d372bb6826bd81d3542a419d6f0e1de56 - type: string - type: object - SyntheticsTestResultGitUser: - description: A Git user (author or committer). - properties: - date: - description: Timestamp of the commit action for this user. - example: "2024-08-15T14:23:00Z" - type: string - email: - description: Email address of the Git user. - example: jane.doe@example.com - type: string - name: - description: Name of the Git user. - example: Jane Doe - type: string - type: object - SyntheticsTestResultHandshake: - description: Handshake request and response for protocol-level tests. - properties: - request: - $ref: "#/components/schemas/SyntheticsTestResultRequestInfo" - response: - $ref: "#/components/schemas/SyntheticsTestResultResponseInfo" - type: object - SyntheticsTestResultHealthCheck: - description: Health check information returned from a gRPC health check call. - properties: - message: - additionalProperties: - type: string - description: Raw health check message payload. - type: object - status: - description: Health check status code. - example: 1 - format: int64 - type: integer - type: object - SyntheticsTestResultIncludedItem: - description: An included related resource. - properties: - attributes: - additionalProperties: {} - description: Attributes of the included resource. - type: object - id: - description: ID of the included resource. - example: abc-def-123 - type: string - type: - description: Type of the included resource. - example: test - type: string - type: object - SyntheticsTestResultLocation: - description: Location information for a Synthetic test result. - properties: - id: - description: Identifier of the location. - example: aws:us-east-1 - type: string - name: - description: Human-readable name of the location. - example: "N. Virginia (AWS)" - type: string - version: - description: Version of the worker that ran the test. - example: 1.0.0 - type: string - worker_id: - description: Identifier of the specific worker that ran the test. - example: worker-abc-123 - type: string - type: object - SyntheticsTestResultNetpath: - description: Network Path test result capturing the path between source and destination. - properties: - destination: - $ref: "#/components/schemas/SyntheticsTestResultNetpathDestination" - hops: - description: Hops along the network path. - items: - $ref: "#/components/schemas/SyntheticsTestResultNetpathHop" - type: array - origin: - description: Origin of the network path (for example, probe source). - example: synthetics - type: string - pathtrace_id: - description: Identifier of the path trace. - example: 5d3cb978-533b-41ce-85a4-3661c8dd6a0b - type: string - protocol: - description: Protocol used for the path trace (for example, `tcp`, `udp`, `icmp`). - example: TCP - type: string - source: - $ref: "#/components/schemas/SyntheticsTestResultNetpathEndpoint" - tags: - description: Tags associated with the network path measurement. - example: - - synthetics.test_id:nja-epx-mg8 - items: - description: Tag associated with the network path measurement. - type: string - type: array - timestamp: - description: Unix timestamp (ms) of the network path measurement. - example: 1744117822266 - format: int64 - type: integer - type: object - SyntheticsTestResultNetpathDestination: - description: Destination endpoint of a network path measurement. - properties: - hostname: - description: Hostname of the destination. - example: 34.95.79.70 - type: string - ip_address: - description: IP address of the destination. - example: 34.95.79.70 - type: string - port: - description: Port of the destination service. - example: 80 - format: int64 - type: integer - type: object - SyntheticsTestResultNetpathEndpoint: - description: Source endpoint of a network path measurement. - properties: - hostname: - description: Hostname of the endpoint. - example: edge-eu1.staging.dog - type: string - type: object - SyntheticsTestResultNetpathHop: - description: A single hop along a network path. - properties: - hostname: - description: Resolved hostname of the hop. - example: 70.79.95.34.bc.googleusercontent.com - type: string - ip_address: - description: IP address of the hop. - example: 10.240.134.15 - type: string - reachable: - description: Whether this hop was reachable. - example: true - type: boolean - rtt: - description: Round-trip time to this hop in milliseconds. - example: 0.000346599 - format: double - type: number - ttl: - description: Time-to-live value of the probe packet at this hop. - example: 2 - format: int64 - type: integer - type: object - SyntheticsTestResultNetstats: - description: Aggregated network statistics from the test execution. - properties: - hops: - $ref: "#/components/schemas/SyntheticsTestResultNetstatsHops" - jitter: - description: Network jitter in milliseconds. - example: 0.08 - format: double - type: number - latency: - $ref: "#/components/schemas/SyntheticsTestResultNetworkLatency" - packet_loss_percentage: - description: Percentage of probe packets lost. - example: 0.0 - format: double - type: number - packets_received: - description: Number of probe packets received. - example: 4 - format: int64 - type: integer - packets_sent: - description: Number of probe packets sent. - example: 4 - format: int64 - type: integer - type: object - SyntheticsTestResultNetstatsHops: - description: Statistics about the number of hops for a network test. - properties: - avg: - description: Average number of hops. - example: 11.0 - format: double - type: number - max: - description: Maximum number of hops. - example: 11 - format: int64 - type: integer - min: - description: Minimum number of hops. - example: 11 - format: int64 - type: integer - type: object - SyntheticsTestResultNetworkLatency: - description: Latency statistics for a network probe. - properties: - avg: - description: Average latency in milliseconds. - example: 1.8805 - format: double - type: number - max: - description: Maximum latency in milliseconds. - example: 1.97 - format: double - type: number - min: - description: Minimum latency in milliseconds. - example: 1.76 - format: double - type: number - type: object - SyntheticsTestResultOCSPCertificate: - description: Certificate details returned in an OCSP response. - properties: - revocation_reason: - description: Reason code for the revocation, when applicable. - example: unspecified - type: string - revocation_time: - description: Unix timestamp (ms) of the revocation. - example: 1749727285000 - format: int64 - type: integer - serial_number: - description: Serial number of the certificate. - example: 7B584A1A6670A1EB0941A9A121569D60 - type: string - type: object - SyntheticsTestResultOCSPResponse: - description: OCSP response received while validating a certificate. - properties: - certificate: - $ref: "#/components/schemas/SyntheticsTestResultOCSPCertificate" - status: - description: OCSP response status (for example, `good`, `revoked`, `unknown`). - example: good - type: string - updates: - $ref: "#/components/schemas/SyntheticsTestResultOCSPUpdates" - type: object - SyntheticsTestResultOCSPUpdates: - description: OCSP response update timestamps. - properties: - next_update: - description: Unix timestamp (ms) of the next expected OCSP update. - example: 1743074486000 - format: int64 - type: integer - produced_at: - description: Unix timestamp (ms) of when the OCSP response was produced. - example: 1742469686000 - format: int64 - type: integer - this_update: - description: Unix timestamp (ms) of this OCSP update. - example: 1742469686000 - format: int64 - type: integer - type: object - SyntheticsTestResultParentStep: - description: Reference to the parent step of a sub-step. - properties: - id: - description: Identifier of the parent step. - example: fkk-j2a-gmw - type: string - type: object - SyntheticsTestResultParentTest: - description: Reference to the parent test of a sub-step. - properties: - id: - description: Identifier of the parent test. - example: abc-def-123 - type: string - type: object - SyntheticsTestResultRedirect: - description: A redirect hop encountered while performing the request. - properties: - location: - description: Target location of the redirect. - example: https://example.com/new-location - type: string - status_code: - description: HTTP status code of the redirect response. - example: 301 - format: int64 - type: integer - type: object - SyntheticsTestResultRelationshipTest: - description: Relationship to the Synthetic test. - properties: - data: - $ref: "#/components/schemas/SyntheticsTestResultRelationshipTestData" - type: object - SyntheticsTestResultRelationshipTestData: - description: Data for the test relationship. - properties: - id: - description: The public ID of the test. - example: abc-def-123 - type: string - type: - description: Type of the related resource. - example: test - type: string - type: object - SyntheticsTestResultRelationships: - description: Relationships for a Synthetic test result. - properties: - test: - $ref: "#/components/schemas/SyntheticsTestResultRelationshipTest" - type: object - SyntheticsTestResultRequestInfo: - description: Details of the outgoing request made during the test execution. - properties: - allow_insecure: - description: Whether insecure certificates are allowed for this request. - example: false - type: boolean - body: - description: Body sent with the request. - example: '{"key":"value"}' - type: string - call_type: - description: gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). - example: unary - type: string - destination_service: - description: Destination service for a Network Path test. - example: my-service - type: string - dns_server: - description: DNS server used to resolve the target host. - example: 8.8.8.8 - type: string - dns_server_port: - description: Port of the DNS server used for resolution. - example: 53 - format: int64 - type: integer - e2e_queries: - description: Number of end-to-end probe queries issued. - example: 4 - format: int64 - type: integer - files: - description: Files attached to the request. - items: - $ref: "#/components/schemas/SyntheticsTestResultFileRef" - type: array - headers: - additionalProperties: {} - description: Headers sent with the request. - example: - content-type: application/json - type: object - host: - description: Host targeted by the request. - example: grpcbin.test.k6.io - type: string - max_ttl: - description: Maximum TTL for network probe packets. - example: 64 - format: int64 - type: integer - message: - description: Message sent with the request (for WebSocket/TCP/UDP tests). - example: My message - type: string - method: - description: HTTP method used for the request. - example: GET - type: string - no_saving_response_body: - description: Whether the response body was not saved. - example: true - type: boolean - port: - description: Port targeted by the request. Can be a number or a string variable reference. - example: 9000 - service: - description: Service name targeted by the request (for gRPC tests). - example: addsvc.Add - type: string - source_service: - description: Source service for a Network Path test. - example: synthetics - type: string - timeout: - description: Request timeout in milliseconds. - example: 60 - format: int64 - type: integer - tool_name: - description: Name of the MCP tool called (MCP tests only). - example: search - type: string - traceroute_queries: - description: Number of traceroute probe queries issued. - example: 2 - format: int64 - type: integer - url: - description: URL targeted by the request. - example: https://httpbin.org/anything/lol valuehugo - type: string - type: object - SyntheticsTestResultResponse: - description: Response object for a Synthetic test result. - properties: - data: - $ref: "#/components/schemas/SyntheticsTestResultData" - included: - description: Array of included related resources, such as the test definition. - items: - $ref: "#/components/schemas/SyntheticsTestResultIncludedItem" - type: array - type: object - SyntheticsTestResultResponseInfo: - description: Details of the response received during the test execution. - properties: - body: - description: Body of the response. - example: '{"status":"ok"}' - type: string - body_compressed: - description: Compressed representation of the response body. - example: eJzLSM3JyQcABiwCFQ== - type: string - body_hashes: - description: Hashes computed over the response body. - example: 9e107d9d372bb6826bd81d3542a419d6 - type: string - body_size: - description: Size of the response body in bytes. - example: 793 - format: int64 - type: integer - cache_headers: - additionalProperties: - type: string - description: Cache-related response headers. - example: - server: gunicorn/19.9.0 - type: object - cdn: - $ref: "#/components/schemas/SyntheticsTestResultCdnProviderInfo" - close: - $ref: "#/components/schemas/SyntheticsTestResultWebSocketClose" - compressed_message: - description: Compressed representation of the response message. - example: eJzLSM3JyQcABiwCFQ== - type: string - headers: - additionalProperties: {} - description: Response headers. - example: - content-type: application/json - type: object - healthcheck: - $ref: "#/components/schemas/SyntheticsTestResultHealthCheck" - http_version: - description: HTTP version of the response. - example: "2.0" - type: string - is_body_truncated: - description: Whether the response body was truncated. - example: false - type: boolean - is_message_truncated: - description: Whether the response message was truncated. - example: false - type: boolean - message: - description: Message received in the response (for WebSocket/TCP/UDP tests). - example: '{"f_string":"concat-STATIC_HIDDEN_VALUE"}' - type: string - metadata: - additionalProperties: - type: string - description: Additional metadata returned with the response. - type: object - records: - description: DNS records returned in the response (DNS tests only). - items: - $ref: "#/components/schemas/SyntheticsTestResultDnsRecord" - type: array - redirects: - description: Redirect hops encountered while performing the request. - items: - $ref: "#/components/schemas/SyntheticsTestResultRedirect" - type: array - status_code: - description: HTTP status code of the response. - example: 200 - format: int64 - type: integer - type: object - SyntheticsTestResultRouter: - description: A router along the traceroute path. - properties: - ip: - description: IP address of the router. - example: 34.95.79.70 - type: string - resolved_host: - description: Resolved hostname of the router. - example: 70.79.95.34.bc.googleusercontent.com - type: string - type: object - SyntheticsTestResultRumContext: - description: RUM application context associated with a step or sub-test. - properties: - application_id: - description: RUM application identifier. - example: 00000000-0000-0000-0000-000000000000 - type: string - session_id: - description: RUM session identifier. - example: 11111111-1111-1111-1111-111111111111 - type: string - view_id: - description: RUM view identifier. - example: 22222222-2222-2222-2222-222222222222 - type: string - type: object - SyntheticsTestResultRunType: - description: The type of run for a Synthetic test result. - enum: - - scheduled - - fast - - ci - - triggered - example: scheduled - type: string - x-enum-varnames: - - SCHEDULED - - FAST - - CI - - TRIGGERED - SyntheticsTestResultStatus: - description: Status of a Synthetic test result. - enum: - - passed - - failed - - no_data - example: passed - type: string - x-enum-varnames: - - PASSED - - FAILED - - NO_DATA - SyntheticsTestResultStep: - description: A step result from a browser, mobile, or multistep API test. - properties: - allow_failure: - description: Whether the test continues when this step fails. - example: false - type: boolean - api_test: - additionalProperties: {} - description: Inner API test definition for browser `runApiTest` steps. - type: object - assertion_result: - $ref: "#/components/schemas/SyntheticsTestResultStepAssertionResult" - assertions: - description: Assertion results produced by the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultAssertionResult" - type: array - blocked_requests_urls: - description: URLs of requests blocked during the step. - items: - description: Blocked request URL. - type: string - type: array - bounds: - $ref: "#/components/schemas/SyntheticsTestResultBounds" - browser_errors: - description: Browser errors captured during the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultBrowserError" - type: array - bucket_keys: - $ref: "#/components/schemas/SyntheticsTestResultBucketKeys" - cdn_resources: - description: CDN resources encountered during the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultCdnResource" - type: array - click_type: - description: Click type performed in a browser step. - example: primary - type: string - compressed_json_descriptor: - description: Compressed JSON descriptor for the step (internal format). - example: compressedJsonDescriptorValue - type: string - config: - additionalProperties: {} - description: Request configuration executed by this step (API test steps). - type: object - description: - description: Human-readable description of the step. - example: Navigate to start URL - type: string - duration: - description: Duration of the step in milliseconds. - example: 1015.0 - format: double - type: number - element_description: - description: Description of the element interacted with by the step. - example: '' - type: string - element_updates: - $ref: "#/components/schemas/SyntheticsTestResultStepElementUpdates" - extracted_value: - $ref: "#/components/schemas/SyntheticsTestResultVariable" - failure: - $ref: "#/components/schemas/SyntheticsTestResultFailure" - http_results: - description: HTTP results produced by an MCP step. - items: - $ref: "#/components/schemas/SyntheticsTestResultAssertionResult" - type: array - id: - description: Identifier of the step. - example: fkk-j2a-gmw - type: string - is_critical: - description: Whether this step is critical for the test outcome. - example: true - type: boolean - javascript_custom_assertion_code: - description: Whether the step uses a custom JavaScript assertion. - example: false - type: boolean - locate_element_duration: - description: Time taken to locate the element in milliseconds. - example: 845.0 - format: double - type: number - name: - description: Name of the step. - example: Extract variable from body - type: string - request: - $ref: "#/components/schemas/SyntheticsTestResultRequestInfo" - response: - $ref: "#/components/schemas/SyntheticsTestResultResponseInfo" - retries: - description: Retry results for the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultStep" - type: array - retry_count: - description: Number of times this step was retried. - example: 0 - format: int64 - type: integer - rum_context: - $ref: "#/components/schemas/SyntheticsTestResultRumContext" - started_at: - description: Unix timestamp (ms) of when the step started. - example: 1724445283308 - format: int64 - type: integer - status: - description: Status of the step (for example, `passed`, `failed`). - example: passed - type: string - sub_step: - $ref: "#/components/schemas/SyntheticsTestResultSubStep" - sub_test: - $ref: "#/components/schemas/SyntheticsTestResultSubTest" - subtype: - description: Subtype of the step. - example: http - type: string - tabs: - description: Browser tabs involved in the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultTab" - type: array - timings: - additionalProperties: {} - description: Timing breakdown of the step execution. - type: object - tunnel: - description: Whether the step was executed through a Synthetics tunnel. - example: false - type: boolean - type: - description: Type of the step (for example, `click`, `assertElementContent`, `runApiTest`). - example: click - type: string - url: - description: URL associated with the step (for navigation steps). - example: http://34.95.79.70/prototype - type: string - value: - description: Step value. Its type depends on the step type. - example: http://34.95.79.70/prototype - variables: - $ref: "#/components/schemas/SyntheticsTestResultVariables" - vitals_metrics: - description: Web vitals metrics captured during the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultVitalsMetrics" - type: array - warnings: - description: Warnings emitted during the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultWarning" - type: array - type: object - SyntheticsTestResultStepAssertionResult: - description: Assertion result for a browser or mobile step. - properties: - actual: - description: Actual value observed during the step assertion. Its type depends on the check type. - example: "True\ngood\ngood\ngood\ngood\nTrue" - check_type: - description: Type of the step assertion check. - example: contains - type: string - expected: - description: Expected value for the step assertion. Its type depends on the check type. - example: True good good good good True - has_secure_variables: - description: Whether the assertion involves secure variables. - example: false - type: boolean - type: object - SyntheticsTestResultStepElementUpdates: - description: Element locator updates produced during a step. - properties: - multi_locator: - additionalProperties: - type: string - description: Updated multi-locator definition. - type: object - target_outer_html: - description: Updated outer HTML of the targeted element. - example:

My website - v4

- type: string - version: - description: Version of the element locator definition. - example: 3 - format: int64 - type: integer - type: object - SyntheticsTestResultStepsInfo: - description: Step execution summary for a Synthetic test result. - properties: - completed: - description: Number of completed steps. - example: 6 - format: int64 - type: integer - errors: - description: Number of steps with errors. - example: 0 - format: int64 - type: integer - total: - description: Total number of steps. - example: 6 - format: int64 - type: integer - type: object - SyntheticsTestResultSubStep: - description: Information about a sub-step in a nested test execution. - properties: - level: - description: Depth of the sub-step in the execution tree. - example: 1 - format: int64 - type: integer - parent_step: - $ref: "#/components/schemas/SyntheticsTestResultParentStep" - parent_test: - $ref: "#/components/schemas/SyntheticsTestResultParentTest" - type: object - SyntheticsTestResultSubTest: - description: Information about a sub-test played from a parent browser test. - properties: - id: - description: Identifier of the sub-test. - example: abc-def-123 - type: string - playing_tab: - description: Index of the browser tab playing the sub-test. - example: 0 - format: int64 - type: integer - rum_context: - $ref: "#/components/schemas/SyntheticsTestResultRumContext" - type: object - SyntheticsTestResultSummaryAttributes: - description: Attributes of a Synthetic test result summary. - properties: - device: - $ref: "#/components/schemas/SyntheticsTestResultDevice" - execution_info: - $ref: "#/components/schemas/SyntheticsTestResultExecutionInfo" - finished_at: - description: Timestamp of when the test finished (in milliseconds). - format: int64 - type: integer - location: - $ref: "#/components/schemas/SyntheticsTestResultLocation" - run_type: - $ref: "#/components/schemas/SyntheticsTestResultRunType" - started_at: - description: Timestamp of when the test started (in milliseconds). - format: int64 - type: integer - status: - $ref: "#/components/schemas/SyntheticsTestResultStatus" - steps_info: - $ref: "#/components/schemas/SyntheticsTestResultStepsInfo" - test_sub_type: - $ref: "#/components/schemas/SyntheticsTestSubType" - test_type: - $ref: "#/components/schemas/SyntheticsTestType" - type: object - SyntheticsTestResultSummaryData: - description: Wrapper object for a Synthetic test result summary. - properties: - attributes: - $ref: "#/components/schemas/SyntheticsTestResultSummaryAttributes" - id: - description: The result ID. - example: "5158904793181869365" - type: string - relationships: - $ref: "#/components/schemas/SyntheticsTestResultRelationships" - type: - $ref: "#/components/schemas/SyntheticsTestResultSummaryType" - type: object - SyntheticsTestResultSummaryType: - default: "result_summary" - description: Type of the Synthetic test result summary resource, `result_summary`. - enum: - - result_summary - example: result_summary - type: string - x-enum-varnames: - - RESULT_SUMMARY - SyntheticsTestResultTab: - description: Information about a browser tab involved in a step. - properties: - focused: - description: Whether the tab was focused during the step. - example: true - type: boolean - title: - description: Title of the tab. - example: Team Browser mini-websites - type: string - url: - description: URL loaded in the tab. - example: http://34.95.79.70/prototype - type: string - type: object - SyntheticsTestResultTrace: - description: Trace identifiers associated with a Synthetic test result. - properties: - id: - description: Datadog APM trace identifier. - example: "5513046492231128177" - type: string - otel_id: - description: OpenTelemetry trace identifier. - example: d8ba00eb1507bdba8643ba8e7a1c022c - type: string - type: object - SyntheticsTestResultTracerouteHop: - description: A network probe result, used for traceroute hops and ping summaries. - properties: - host: - description: Target hostname. - example: 34.95.79.70 - type: string - latency: - $ref: "#/components/schemas/SyntheticsTestResultNetworkLatency" - packet_loss_percentage: - description: Percentage of probe packets lost. - example: 0.0 - format: double - type: number - packet_size: - description: Size of each probe packet in bytes. - example: 56 - format: int64 - type: integer - packets_received: - description: Number of probe packets received. - example: 4 - format: int64 - type: integer - packets_sent: - description: Number of probe packets sent. - example: 4 - format: int64 - type: integer - resolved_ip: - description: Resolved IP address for the target. - example: 34.95.79.70 - type: string - routers: - description: List of intermediate routers for the traceroute. - items: - $ref: "#/components/schemas/SyntheticsTestResultRouter" - type: array - type: object - SyntheticsTestResultTurn: - description: A turn in a goal-based browser test, grouping steps and reasoning. - properties: - bucket_keys: - $ref: "#/components/schemas/SyntheticsTestResultBucketKeys" - name: - description: Name of the turn. - example: Turn 1 - type: string - reasoning: - description: Agent reasoning produced for this turn. - example: I need to navigate to the chairs section - type: string - status: - description: Status of the turn (for example, `passed`, `failed`). - example: passed - type: string - steps: - description: Steps executed during the turn. - items: - $ref: "#/components/schemas/SyntheticsTestResultTurnStep" - type: array - turn_finished_at: - description: Unix timestamp (ms) of when the turn finished. - example: 1724521438800 - format: int64 - type: integer - turn_started_at: - description: Unix timestamp (ms) of when the turn started. - example: 1724521436800 - format: int64 - type: integer - type: object - SyntheticsTestResultTurnStep: - description: A step executed during a goal-based browser test turn. - properties: - bucket_keys: - $ref: "#/components/schemas/SyntheticsTestResultBucketKeys" - config: - additionalProperties: {} - description: Browser step configuration for this turn step. - example: - id: step-1 - name: Click on div "Chairs" - type: click - type: object - type: object - SyntheticsTestResultType: - default: "result" - description: Type of the Synthetic test result resource, `result`. - enum: - - result - example: result - type: string - x-enum-varnames: - - RESULT - SyntheticsTestResultVariable: - description: A variable used or extracted during a test. - properties: - err: - description: Error encountered when evaluating the variable. - example: LOCAL_VARIABLE_UNKNOWN - type: string - error_message: - description: Human-readable error message for variable evaluation. - example: Unknown variable name undefined. - type: string - example: - description: Example value for the variable. - example: lol value - type: string - id: - description: Variable identifier. - example: c896702c-1e34-4e62-a67b-432e8092d062 - type: string - name: - description: Variable name. - example: HEADER_VALUE - type: string - pattern: - description: Pattern used to extract the variable. - example: lol value - type: string - secure: - description: Whether the variable holds a secure value. - example: false - type: boolean - type: - description: Variable type. - example: text - type: string - val: - description: Evaluated value of the variable. - example: value-to-extract - type: string - value: - description: Current value of the variable. - example: lol value - type: string - type: object - SyntheticsTestResultVariables: - description: Variables captured during a test step. - properties: - config: - description: Variables defined in the test configuration. - items: - $ref: "#/components/schemas/SyntheticsTestResultVariable" - type: array - extracted: - description: Variables extracted during the test execution. - items: - $ref: "#/components/schemas/SyntheticsTestResultVariable" - type: array - type: object - SyntheticsTestResultVitalsMetrics: - description: Web vitals metrics captured during a browser test step. - properties: - cls: - description: Cumulative Layout Shift score. - example: 0.0 - format: double - type: number - fcp: - description: First Contentful Paint in milliseconds. - example: 120.3 - format: double - type: number - inp: - description: Interaction to Next Paint in milliseconds. - example: 85.0 - format: double - type: number - lcp: - description: Largest Contentful Paint in milliseconds. - example: 210.5 - format: double - type: number - ttfb: - description: Time To First Byte in milliseconds. - example: 95.2 - format: double - type: number - url: - description: URL that produced the metrics. - example: http://34.95.79.70/prototype - type: string - type: object - SyntheticsTestResultWarning: - description: A warning captured during a browser test step. - properties: - element_bounds: - description: Bounds of elements related to the warning. - items: - $ref: "#/components/schemas/SyntheticsTestResultBounds" - type: array - message: - description: Warning message. - example: Element is not visible in the viewport - type: string - type: - description: Type of the warning. - example: visibility - type: string - type: object - SyntheticsTestResultWebSocketClose: - description: WebSocket close frame information for WebSocket test responses. - properties: - reason: - description: Reason string received in the close frame. - example: Normal closure - type: string - status_code: - description: Status code received in the close frame. - example: 1000 - format: int64 - type: integer - type: object - SyntheticsTestSubType: - description: Subtype of the Synthetic test that produced this result. - enum: - - dns - - grpc - - http - - icmp - - mcp - - multi - - ssl - - tcp - - udp - - websocket - example: http - type: string - x-enum-varnames: - - DNS - - GRPC - - HTTP - - ICMP - - MCP - - MULTI - - SSL - - TCP - - UDP - - WEBSOCKET - SyntheticsTestType: - description: Type of the Synthetic test that produced this result. - enum: - - api - - browser - - mobile - - network - example: api - type: string - x-enum-varnames: - - API - - BROWSER - - MOBILE - - NETWORK SyntheticsTestVersionActionMetadata: description: Object containing metadata about a change action. properties: @@ -90975,11 +89080,11 @@ paths: - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations). **Filter Conditions:** - - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged" + - Use **value** for single-value conditions: "is", "is not", "contains", "=", "!=", "like", "not like" - Use **values** for multi-value conditions: "in", "not in" - Cannot use both value and values simultaneously. - **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like + **Supported operators**: is, is not, contains, in, not in, =, !=, like, not like operationId: CreateCustomAllocationRule requestBody: content: @@ -91147,11 +89252,11 @@ paths: - **USAGE_METRIC**: Allocates based on usage metrics (implementation varies). **Filter Conditions:** - - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged" + - Use **value** for single-value conditions: "is", "is not", "contains", "=", "!=", "like", "not like" - Use **values** for multi-value conditions: "in", "not in" - Cannot use both value and values simultaneously. - **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like + **Supported operators**: is, is not, contains, in, not in, =, !=, like, not like operationId: UpdateCustomAllocationRule parameters: - description: The unique identifier of the custom allocation rule @@ -127095,207 +125200,6 @@ paths: permissions: - synthetics_write - synthetics_create_edit_trigger - /api/v2/synthetics/tests/browser/{public_id}/results: - get: - description: Get the latest result summaries for a given Synthetic browser test. - operationId: ListSyntheticsBrowserTestLatestResults - parameters: - - description: The public ID of the Synthetic browser test for which to search results. - in: path - name: public_id - required: true - schema: - type: string - - description: Timestamp in milliseconds from which to start querying results. - in: query - name: from_ts - required: false - schema: - format: int64 - type: integer - - description: Timestamp in milliseconds up to which to query results. - in: query - name: to_ts - required: false - schema: - format: int64 - type: integer - - description: Filter results by status. - in: query - name: status - required: false - schema: - $ref: "#/components/schemas/SyntheticsTestResultStatus" - - description: Filter results by run type. - in: query - name: runType - required: false - schema: - $ref: "#/components/schemas/SyntheticsTestResultRunType" - - description: Locations for which to query results. - in: query - name: probe_dc - required: false - schema: - items: - type: string - type: array - - description: Device IDs for which to query results. - in: query - name: device_id - required: false - schema: - items: - type: string - type: array - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - device: - id: chrome.laptop_large - name: "Chrome - Laptop Large" - type: browser - finished_at: 1679328005200 - location: - id: aws:eu-west-1 - name: "Ireland (AWS)" - run_type: scheduled - started_at: 1679328000000 - status: passed - test_type: browser - test_version: 2 - id: "7291038456723891045" - relationships: - test: - data: - id: xyz-abc-789 - type: test - type: result_summary - schema: - $ref: "#/components/schemas/SyntheticsTestLatestResultsResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Get a browser test's latest results - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read - /api/v2/synthetics/tests/browser/{public_id}/results/{result_id}: - get: - description: Get a specific full result from a given Synthetic browser test. - operationId: GetSyntheticsBrowserTestResult - parameters: - - description: The public ID of the Synthetic browser test to which the target result belongs. - in: path - name: public_id - required: true - schema: - type: string - - description: The ID of the result to get. - in: path - name: result_id - required: true - schema: - type: string - - description: The event ID used to look up the result in the event store. - in: query - name: event_id - required: false - schema: - type: string - - description: Timestamp in seconds to look up the result. - in: query - name: timestamp - required: false - schema: - format: int64 - type: integer - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - device: - id: chrome.laptop_large - name: "Chrome - Laptop Large" - type: browser - location: - id: aws:eu-west-1 - name: "Ireland (AWS)" - result: - duration: 5200.0 - finished_at: 1679328005200 - id: "7291038456723891045" - started_at: 1679328000000 - status: passed - test_type: browser - test_version: 2 - id: "7291038456723891045" - relationships: - test: - data: - id: xyz-abc-789 - type: test - type: result - schema: - $ref: "#/components/schemas/SyntheticsTestResultResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Get a browser test result - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read /api/v2/synthetics/tests/bulk-delete: post: operationId: DeleteSyntheticsTests @@ -127362,27 +125266,6 @@ paths: "200": content: application/json: - examples: - default: - value: - data: - attributes: - location: - id: aws:us-east-1 - name: "N. Virginia (AWS)" - result: - duration: 150.5 - finished_at: 1679328001000 - id: abc12345-1234-1234-1234-abc123456789 - resolved_ip: "1.2.3.4" - run_type: fast - started_at: 1679328000000 - status: passed - test_sub_type: http - test_type: api - test_version: 1 - id: abc12345-1234-1234-1234-abc123456789 - type: result schema: $ref: "#/components/schemas/SyntheticsFastTestResult" description: OK @@ -127628,77 +125511,6 @@ paths: permissions: - synthetics_write - synthetics_create_edit_trigger - /api/v2/synthetics/tests/poll_results: - get: - description: |- - Poll for test results given a list of result IDs. This is typically used after - triggering tests with CI/CD to retrieve results once they are available. - operationId: PollSyntheticsTestResults - parameters: - - description: A JSON-encoded array of result IDs to poll for. - example: '["id1","id2","id3"]' - in: query - name: result_ids - required: true - schema: - type: string - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - location: - id: aws:us-east-1 - name: "N. Virginia (AWS)" - result: - duration: 150.5 - finished_at: 1679328001000 - id: "5158904793181869365" - started_at: 1679328000000 - status: passed - test_sub_type: http - test_type: api - test_version: 3 - id: "5158904793181869365" - relationships: - test: - data: - id: abc-def-123 - type: test - type: result - schema: - $ref: "#/components/schemas/SyntheticsPollTestResultsResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Poll for test results - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read /api/v2/synthetics/tests/{public_id}/files/download: post: description: |- @@ -127992,201 +125804,6 @@ paths: operator: OR permissions: - synthetics_read - /api/v2/synthetics/tests/{public_id}/results: - get: - description: Get the latest result summaries for a given Synthetic test. - operationId: ListSyntheticsTestLatestResults - parameters: - - description: The public ID of the Synthetic test for which to search results. - in: path - name: public_id - required: true - schema: - type: string - - description: Timestamp in milliseconds from which to start querying results. - in: query - name: from_ts - required: false - schema: - format: int64 - type: integer - - description: Timestamp in milliseconds up to which to query results. - in: query - name: to_ts - required: false - schema: - format: int64 - type: integer - - description: Filter results by status. - in: query - name: status - required: false - schema: - $ref: "#/components/schemas/SyntheticsTestResultStatus" - - description: Filter results by run type. - in: query - name: runType - required: false - schema: - $ref: "#/components/schemas/SyntheticsTestResultRunType" - - description: Locations for which to query results. - in: query - name: probe_dc - required: false - schema: - items: - type: string - type: array - - description: Device IDs for which to query results. - in: query - name: device_id - required: false - schema: - items: - type: string - type: array - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - finished_at: 1679328001000 - location: - id: aws:us-east-1 - name: "N. Virginia (AWS)" - run_type: scheduled - started_at: 1679328000000 - status: passed - test_sub_type: http - test_type: api - test_version: 3 - id: "5158904793181869365" - relationships: - test: - data: - id: abc-def-123 - type: test - type: result_summary - schema: - $ref: "#/components/schemas/SyntheticsTestLatestResultsResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Get a test's latest results - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read - /api/v2/synthetics/tests/{public_id}/results/{result_id}: - get: - description: Get a specific full result from a given Synthetic test. - operationId: GetSyntheticsTestResult - parameters: - - description: The public ID of the Synthetic test to which the target result belongs. - in: path - name: public_id - required: true - schema: - type: string - - description: The ID of the result to get. - in: path - name: result_id - required: true - schema: - type: string - - description: The event ID used to look up the result in the event store. - in: query - name: event_id - required: false - schema: - type: string - - description: Timestamp in seconds to look up the result. - in: query - name: timestamp - required: false - schema: - format: int64 - type: integer - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - location: - id: aws:us-east-1 - name: "N. Virginia (AWS)" - result: - duration: 150.5 - finished_at: 1679328001000 - id: "5158904793181869365" - started_at: 1679328000000 - status: passed - test_sub_type: http - test_type: api - test_version: 3 - id: "5158904793181869365" - relationships: - test: - data: - id: abc-def-123 - type: test - type: result - schema: - $ref: "#/components/schemas/SyntheticsTestResultResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Get a test result - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read /api/v2/synthetics/tests/{public_id}/version_history: get: description: Get the paginated version history for a Synthetic test. diff --git a/features/v2/synthetics.feature b/features/v2/synthetics.feature index f847bc0e702e..33f538109f92 100644 --- a/features/v2/synthetics.feature +++ b/features/v2/synthetics.feature @@ -151,36 +151,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a browser test result returns "API error response." response - Given new "GetSyntheticsBrowserTestResult" request - And request contains "public_id" parameter from "REPLACE.ME" - And request contains "result_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a browser test result returns "OK" response - Given new "GetSyntheticsBrowserTestResult" request - And request contains "public_id" parameter from "REPLACE.ME" - And request contains "result_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a browser test's latest results returns "API error response." response - Given new "ListSyntheticsBrowserTestLatestResults" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a browser test's latest results returns "OK" response - Given new "ListSyntheticsBrowserTestLatestResults" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Get a fast test result returns "API error response." response Given new "GetSyntheticsFastTestResult" request @@ -241,36 +211,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a test result returns "API error response." response - Given new "GetSyntheticsTestResult" request - And request contains "public_id" parameter from "REPLACE.ME" - And request contains "result_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a test result returns "OK" response - Given new "GetSyntheticsTestResult" request - And request contains "public_id" parameter from "REPLACE.ME" - And request contains "result_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a test's latest results returns "API error response." response - Given new "ListSyntheticsTestLatestResults" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a test's latest results returns "OK" response - Given new "ListSyntheticsTestLatestResults" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Get available subtests for a multistep test returns "OK" response Given new "GetApiMultistepSubtests" request @@ -382,20 +322,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Poll for test results returns "API error response." response - Given new "PollSyntheticsTestResults" request - And request contains "result_ids" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Poll for test results returns "OK" response - Given new "PollSyntheticsTestResults" request - And request contains "result_ids" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @team:DataDog/synthetics-orchestrating-managing Scenario: Save new value for on-demand concurrency cap returns "OK" response Given new "SetOnDemandConcurrencyCap" request diff --git a/features/v2/undo.json b/features/v2/undo.json index aa37a18fc344..061beded3311 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -6447,18 +6447,6 @@ "type": "idempotent" } }, - "ListSyntheticsBrowserTestLatestResults": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, - "GetSyntheticsBrowserTestResult": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, "DeleteSyntheticsTests": { "tag": "Synthetics", "undo": { @@ -6496,12 +6484,6 @@ "type": "idempotent" } }, - "PollSyntheticsTestResults": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, "GetTestFileDownloadUrl": { "tag": "Synthetics", "undo": { @@ -6532,18 +6514,6 @@ "type": "safe" } }, - "ListSyntheticsTestLatestResults": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, - "GetSyntheticsTestResult": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, "ListSyntheticsTestVersions": { "tag": "Synthetics", "undo": { diff --git a/private/bdd_runner/src/support/scenarios_model_mapping.ts b/private/bdd_runner/src/support/scenarios_model_mapping.ts index a3267f0e1416..69de60ae50e5 100644 --- a/private/bdd_runner/src/support/scenarios_model_mapping.ts +++ b/private/bdd_runner/src/support/scenarios_model_mapping.ts @@ -12223,56 +12223,6 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = { }, operationResponseType: "SyntheticsSuiteResponse", }, - "SyntheticsApi.V2.ListSyntheticsBrowserTestLatestResults": { - publicId: { - type: "string", - format: "", - }, - fromTs: { - type: "number", - format: "int64", - }, - toTs: { - type: "number", - format: "int64", - }, - status: { - type: "SyntheticsTestResultStatus", - format: "", - }, - runType: { - type: "SyntheticsTestResultRunType", - format: "", - }, - probeDc: { - type: "Array", - format: "", - }, - deviceId: { - type: "Array", - format: "", - }, - operationResponseType: "SyntheticsTestLatestResultsResponse", - }, - "SyntheticsApi.V2.GetSyntheticsBrowserTestResult": { - publicId: { - type: "string", - format: "", - }, - resultId: { - type: "string", - format: "", - }, - eventId: { - type: "string", - format: "", - }, - timestamp: { - type: "number", - format: "int64", - }, - operationResponseType: "SyntheticsTestResultResponse", - }, "SyntheticsApi.V2.DeleteSyntheticsTests": { body: { type: "DeletedTestsRequestDeleteRequest", @@ -12312,13 +12262,6 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = { }, operationResponseType: "SyntheticsNetworkTestResponse", }, - "SyntheticsApi.V2.PollSyntheticsTestResults": { - resultIds: { - type: "string", - format: "", - }, - operationResponseType: "SyntheticsPollTestResultsResponse", - }, "SyntheticsApi.V2.GetTestFileDownloadUrl": { publicId: { type: "string", @@ -12370,56 +12313,6 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = { }, operationResponseType: "SyntheticsTestParentSuitesResponse", }, - "SyntheticsApi.V2.ListSyntheticsTestLatestResults": { - publicId: { - type: "string", - format: "", - }, - fromTs: { - type: "number", - format: "int64", - }, - toTs: { - type: "number", - format: "int64", - }, - status: { - type: "SyntheticsTestResultStatus", - format: "", - }, - runType: { - type: "SyntheticsTestResultRunType", - format: "", - }, - probeDc: { - type: "Array", - format: "", - }, - deviceId: { - type: "Array", - format: "", - }, - operationResponseType: "SyntheticsTestLatestResultsResponse", - }, - "SyntheticsApi.V2.GetSyntheticsTestResult": { - publicId: { - type: "string", - format: "", - }, - resultId: { - type: "string", - format: "", - }, - eventId: { - type: "string", - format: "", - }, - timestamp: { - type: "number", - format: "int64", - }, - operationResponseType: "SyntheticsTestResultResponse", - }, "SyntheticsApi.V2.ListSyntheticsTestVersions": { publicId: { type: "string", diff --git a/services/cloud_cost_management/src/v2/CloudCostManagementApi.ts b/services/cloud_cost_management/src/v2/CloudCostManagementApi.ts index b5c2cb003c6d..f27ffd37c476 100644 --- a/services/cloud_cost_management/src/v2/CloudCostManagementApi.ts +++ b/services/cloud_cost_management/src/v2/CloudCostManagementApi.ts @@ -4352,11 +4352,11 @@ export class CloudCostManagementApi { * - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations). * * **Filter Conditions:** - * - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged" + * - Use **value** for single-value conditions: "is", "is not", "contains", "=", "!=", "like", "not like" * - Use **values** for multi-value conditions: "in", "not in" * - Cannot use both value and values simultaneously. * - * **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like + * **Supported operators**: is, is not, contains, in, not in, =, !=, like, not like * @param param The request object */ public createCustomAllocationRule( @@ -4970,11 +4970,11 @@ export class CloudCostManagementApi { * - **USAGE_METRIC**: Allocates based on usage metrics (implementation varies). * * **Filter Conditions:** - * - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged" + * - Use **value** for single-value conditions: "is", "is not", "contains", "=", "!=", "like", "not like" * - Use **values** for multi-value conditions: "in", "not in" * - Cannot use both value and values simultaneously. * - * **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like + * **Supported operators**: is, is not, contains, in, not in, =, !=, like, not like * @param param The request object */ public updateCustomAllocationRule( diff --git a/services/synthetics/src/v2/SyntheticsApi.ts b/services/synthetics/src/v2/SyntheticsApi.ts index 3eb1daa7f7cd..f33f0f6941da 100644 --- a/services/synthetics/src/v2/SyntheticsApi.ts +++ b/services/synthetics/src/v2/SyntheticsApi.ts @@ -38,7 +38,6 @@ import { SyntheticsApiMultistepSubtestsResponse } from "./models/SyntheticsApiMu import { SyntheticsFastTestResult } from "./models/SyntheticsFastTestResult"; import { SyntheticsNetworkTestEditRequest } from "./models/SyntheticsNetworkTestEditRequest"; import { SyntheticsNetworkTestResponse } from "./models/SyntheticsNetworkTestResponse"; -import { SyntheticsPollTestResultsResponse } from "./models/SyntheticsPollTestResultsResponse"; import { SyntheticsSuiteResponse } from "./models/SyntheticsSuiteResponse"; import { SyntheticsSuiteSearchResponse } from "./models/SyntheticsSuiteSearchResponse"; import { SyntheticsTestFileAbortMultipartUploadRequest } from "./models/SyntheticsTestFileAbortMultipartUploadRequest"; @@ -47,11 +46,7 @@ import { SyntheticsTestFileDownloadRequest } from "./models/SyntheticsTestFileDo import { SyntheticsTestFileDownloadResponse } from "./models/SyntheticsTestFileDownloadResponse"; import { SyntheticsTestFileMultipartPresignedUrlsRequest } from "./models/SyntheticsTestFileMultipartPresignedUrlsRequest"; import { SyntheticsTestFileMultipartPresignedUrlsResponse } from "./models/SyntheticsTestFileMultipartPresignedUrlsResponse"; -import { SyntheticsTestLatestResultsResponse } from "./models/SyntheticsTestLatestResultsResponse"; import { SyntheticsTestParentSuitesResponse } from "./models/SyntheticsTestParentSuitesResponse"; -import { SyntheticsTestResultResponse } from "./models/SyntheticsTestResultResponse"; -import { SyntheticsTestResultRunType } from "./models/SyntheticsTestResultRunType"; -import { SyntheticsTestResultStatus } from "./models/SyntheticsTestResultStatus"; import { SyntheticsTestVersionHistoryResponse } from "./models/SyntheticsTestVersionHistoryResponse"; import { SyntheticsTestVersionResponse } from "./models/SyntheticsTestVersionResponse"; import { version } from "../version"; @@ -589,75 +584,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async getSyntheticsBrowserTestResult( - publicId: string, - resultId: string, - eventId?: string, - timestamp?: number, - _options?: Configuration, - ): Promise { - const _config = _options || this.configuration; - - // verify required parameter 'publicId' is not null or undefined - if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getSyntheticsBrowserTestResult"); - } - - // verify required parameter 'resultId' is not null or undefined - if (resultId === null || resultId === undefined) { - throw new RequiredError("resultId", "getSyntheticsBrowserTestResult"); - } - - // Path Params - const localVarPath = - "/api/v2/synthetics/tests/browser/{public_id}/results/{result_id}" - .replace("{public_id}", encodeURIComponent(String(publicId))) - .replace("{result_id}", encodeURIComponent(String(resultId))); - - // Make Request Context - const { server, overrides } = _config.getServerAndOverrides( - "SyntheticsApi.v2.getSyntheticsBrowserTestResult", - SyntheticsApi.operationServers, - ); - const requestContext = server.makeRequestContext( - localVarPath, - HttpMethod.GET, - overrides, - ); - requestContext.setHeaderParam("Accept", "application/json"); - requestContext.setHttpConfig(_config.httpConfig); - - // Set User-Agent - if (this.userAgent) { - requestContext.setHeaderParam("User-Agent", this.userAgent); - } - - // Query Params - if (eventId !== undefined) { - requestContext.setQueryParam( - "event_id", - serialize(eventId, TypingInfo, "string", ""), - "", - ); - } - if (timestamp !== undefined) { - requestContext.setQueryParam( - "timestamp", - serialize(timestamp, TypingInfo, "number", "int64"), - "", - ); - } - - // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - "AuthZ", - ]); - - return requestContext; - } - public async getSyntheticsFastTestResult( id: string, _options?: Configuration, @@ -793,75 +719,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async getSyntheticsTestResult( - publicId: string, - resultId: string, - eventId?: string, - timestamp?: number, - _options?: Configuration, - ): Promise { - const _config = _options || this.configuration; - - // verify required parameter 'publicId' is not null or undefined - if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "getSyntheticsTestResult"); - } - - // verify required parameter 'resultId' is not null or undefined - if (resultId === null || resultId === undefined) { - throw new RequiredError("resultId", "getSyntheticsTestResult"); - } - - // Path Params - const localVarPath = - "/api/v2/synthetics/tests/{public_id}/results/{result_id}" - .replace("{public_id}", encodeURIComponent(String(publicId))) - .replace("{result_id}", encodeURIComponent(String(resultId))); - - // Make Request Context - const { server, overrides } = _config.getServerAndOverrides( - "SyntheticsApi.v2.getSyntheticsTestResult", - SyntheticsApi.operationServers, - ); - const requestContext = server.makeRequestContext( - localVarPath, - HttpMethod.GET, - overrides, - ); - requestContext.setHeaderParam("Accept", "application/json"); - requestContext.setHttpConfig(_config.httpConfig); - - // Set User-Agent - if (this.userAgent) { - requestContext.setHeaderParam("User-Agent", this.userAgent); - } - - // Query Params - if (eventId !== undefined) { - requestContext.setQueryParam( - "event_id", - serialize(eventId, TypingInfo, "string", ""), - "", - ); - } - if (timestamp !== undefined) { - requestContext.setQueryParam( - "timestamp", - serialize(timestamp, TypingInfo, "number", "int64"), - "", - ); - } - - // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - "AuthZ", - ]); - - return requestContext; - } - public async getSyntheticsTestVersion( publicId: string, versionNumber: number, @@ -1104,200 +961,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async listSyntheticsBrowserTestLatestResults( - publicId: string, - fromTs?: number, - toTs?: number, - status?: SyntheticsTestResultStatus, - runType?: SyntheticsTestResultRunType, - probeDc?: Array, - deviceId?: Array, - _options?: Configuration, - ): Promise { - const _config = _options || this.configuration; - - // verify required parameter 'publicId' is not null or undefined - if (publicId === null || publicId === undefined) { - throw new RequiredError( - "publicId", - "listSyntheticsBrowserTestLatestResults", - ); - } - - // Path Params - const localVarPath = - "/api/v2/synthetics/tests/browser/{public_id}/results".replace( - "{public_id}", - encodeURIComponent(String(publicId)), - ); - - // Make Request Context - const { server, overrides } = _config.getServerAndOverrides( - "SyntheticsApi.v2.listSyntheticsBrowserTestLatestResults", - SyntheticsApi.operationServers, - ); - const requestContext = server.makeRequestContext( - localVarPath, - HttpMethod.GET, - overrides, - ); - requestContext.setHeaderParam("Accept", "application/json"); - requestContext.setHttpConfig(_config.httpConfig); - - // Set User-Agent - if (this.userAgent) { - requestContext.setHeaderParam("User-Agent", this.userAgent); - } - - // Query Params - if (fromTs !== undefined) { - requestContext.setQueryParam( - "from_ts", - serialize(fromTs, TypingInfo, "number", "int64"), - "", - ); - } - if (toTs !== undefined) { - requestContext.setQueryParam( - "to_ts", - serialize(toTs, TypingInfo, "number", "int64"), - "", - ); - } - if (status !== undefined) { - requestContext.setQueryParam( - "status", - serialize(status, TypingInfo, "SyntheticsTestResultStatus", ""), - "", - ); - } - if (runType !== undefined) { - requestContext.setQueryParam( - "runType", - serialize(runType, TypingInfo, "SyntheticsTestResultRunType", ""), - "", - ); - } - if (probeDc !== undefined) { - requestContext.setQueryParam( - "probe_dc", - serialize(probeDc, TypingInfo, "Array", ""), - "multi", - ); - } - if (deviceId !== undefined) { - requestContext.setQueryParam( - "device_id", - serialize(deviceId, TypingInfo, "Array", ""), - "multi", - ); - } - - // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - "AuthZ", - ]); - - return requestContext; - } - - public async listSyntheticsTestLatestResults( - publicId: string, - fromTs?: number, - toTs?: number, - status?: SyntheticsTestResultStatus, - runType?: SyntheticsTestResultRunType, - probeDc?: Array, - deviceId?: Array, - _options?: Configuration, - ): Promise { - const _config = _options || this.configuration; - - // verify required parameter 'publicId' is not null or undefined - if (publicId === null || publicId === undefined) { - throw new RequiredError("publicId", "listSyntheticsTestLatestResults"); - } - - // Path Params - const localVarPath = "/api/v2/synthetics/tests/{public_id}/results".replace( - "{public_id}", - encodeURIComponent(String(publicId)), - ); - - // Make Request Context - const { server, overrides } = _config.getServerAndOverrides( - "SyntheticsApi.v2.listSyntheticsTestLatestResults", - SyntheticsApi.operationServers, - ); - const requestContext = server.makeRequestContext( - localVarPath, - HttpMethod.GET, - overrides, - ); - requestContext.setHeaderParam("Accept", "application/json"); - requestContext.setHttpConfig(_config.httpConfig); - - // Set User-Agent - if (this.userAgent) { - requestContext.setHeaderParam("User-Agent", this.userAgent); - } - - // Query Params - if (fromTs !== undefined) { - requestContext.setQueryParam( - "from_ts", - serialize(fromTs, TypingInfo, "number", "int64"), - "", - ); - } - if (toTs !== undefined) { - requestContext.setQueryParam( - "to_ts", - serialize(toTs, TypingInfo, "number", "int64"), - "", - ); - } - if (status !== undefined) { - requestContext.setQueryParam( - "status", - serialize(status, TypingInfo, "SyntheticsTestResultStatus", ""), - "", - ); - } - if (runType !== undefined) { - requestContext.setQueryParam( - "runType", - serialize(runType, TypingInfo, "SyntheticsTestResultRunType", ""), - "", - ); - } - if (probeDc !== undefined) { - requestContext.setQueryParam( - "probe_dc", - serialize(probeDc, TypingInfo, "Array", ""), - "multi", - ); - } - if (deviceId !== undefined) { - requestContext.setQueryParam( - "device_id", - serialize(deviceId, TypingInfo, "Array", ""), - "multi", - ); - } - - // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - "AuthZ", - ]); - - return requestContext; - } - public async listSyntheticsTestVersions( publicId: string, lastVersionNumber?: number, @@ -1483,57 +1146,6 @@ export class SyntheticsApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } - public async pollSyntheticsTestResults( - resultIds: string, - _options?: Configuration, - ): Promise { - const _config = _options || this.configuration; - - // verify required parameter 'resultIds' is not null or undefined - if (resultIds === null || resultIds === undefined) { - throw new RequiredError("resultIds", "pollSyntheticsTestResults"); - } - - // Path Params - const localVarPath = "/api/v2/synthetics/tests/poll_results"; - - // Make Request Context - const { server, overrides } = _config.getServerAndOverrides( - "SyntheticsApi.v2.pollSyntheticsTestResults", - SyntheticsApi.operationServers, - ); - const requestContext = server.makeRequestContext( - localVarPath, - HttpMethod.GET, - overrides, - ); - requestContext.setHeaderParam("Accept", "application/json"); - requestContext.setHttpConfig(_config.httpConfig); - - // Set User-Agent - if (this.userAgent) { - requestContext.setHeaderParam("User-Agent", this.userAgent); - } - - // Query Params - if (resultIds !== undefined) { - requestContext.setQueryParam( - "result_ids", - serialize(resultIds, TypingInfo, "string", ""), - "", - ); - } - - // Apply auth methods - applySecurityAuthentication(_config, requestContext, [ - "apiKeyAuth", - "appKeyAuth", - "AuthZ", - ]); - - return requestContext; - } - public async searchSuites( query?: string, sort?: string, @@ -2277,66 +1889,6 @@ export class SyntheticsApiResponseProcessor { ); } - /** - * 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 getSyntheticsBrowserTestResult - * @throws ApiException if the response code was not in [200, 299] - */ - public async getSyntheticsBrowserTestResult( - response: ResponseContext, - ): Promise { - const contentType = normalizeMediaType(response.headers["content-type"]); - if (response.httpStatusCode === 200) { - const body: SyntheticsTestResultResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestResultResponse", - ) as SyntheticsTestResultResponse; - return body; - } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - 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( - response.httpStatusCode, - bodyText, - ); - } - throw new ApiException(response.httpStatusCode, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTestResultResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestResultResponse", - "", - ) as SyntheticsTestResultResponse; - return body; - } - - const body = (await response.body.text()) || ""; - throw new ApiException( - 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 @@ -2513,66 +2065,6 @@ export class SyntheticsApiResponseProcessor { ); } - /** - * 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 getSyntheticsTestResult - * @throws ApiException if the response code was not in [200, 299] - */ - public async getSyntheticsTestResult( - response: ResponseContext, - ): Promise { - const contentType = normalizeMediaType(response.headers["content-type"]); - if (response.httpStatusCode === 200) { - const body: SyntheticsTestResultResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestResultResponse", - ) as SyntheticsTestResultResponse; - return body; - } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - 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( - response.httpStatusCode, - bodyText, - ); - } - throw new ApiException(response.httpStatusCode, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTestResultResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestResultResponse", - "", - ) as SyntheticsTestResultResponse; - return body; - } - - const body = (await response.body.text()) || ""; - throw new ApiException( - 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 @@ -2674,131 +2166,12 @@ export class SyntheticsApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTestFileDownloadResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestFileDownloadResponse", - "", - ) as SyntheticsTestFileDownloadResponse; - return body; - } - - const body = (await response.body.text()) || ""; - throw new ApiException( - 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 - * - * @params response Response returned by the server for a request to getTestFileMultipartPresignedUrls - * @throws ApiException if the response code was not in [200, 299] - */ - public async getTestFileMultipartPresignedUrls( - response: ResponseContext, - ): Promise { - const contentType = normalizeMediaType(response.headers["content-type"]); - if (response.httpStatusCode === 200) { - const body: SyntheticsTestFileMultipartPresignedUrlsResponse = - deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestFileMultipartPresignedUrlsResponse", - ) as SyntheticsTestFileMultipartPresignedUrlsResponse; - return body; - } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 403 || - response.httpStatusCode === 404 || - 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( - response.httpStatusCode, - bodyText, - ); - } - throw new ApiException(response.httpStatusCode, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTestFileMultipartPresignedUrlsResponse = - deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestFileMultipartPresignedUrlsResponse", - "", - ) as SyntheticsTestFileMultipartPresignedUrlsResponse; - return body; - } - - const body = (await response.body.text()) || ""; - throw new ApiException( - 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 - * - * @params response Response returned by the server for a request to getTestParentSuites - * @throws ApiException if the response code was not in [200, 299] - */ - public async getTestParentSuites( - response: ResponseContext, - ): Promise { - const contentType = normalizeMediaType(response.headers["content-type"]); - if (response.httpStatusCode === 200) { - const body: SyntheticsTestParentSuitesResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestParentSuitesResponse", - ) as SyntheticsTestParentSuitesResponse; - return body; - } - if (response.httpStatusCode === 404 || 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( - response.httpStatusCode, - bodyText, - ); - } - throw new ApiException(response.httpStatusCode, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTestParentSuitesResponse = deserialize( + const body: SyntheticsTestFileDownloadResponse = deserialize( parse(await response.body.text(), contentType), TypingInfo, - "SyntheticsTestParentSuitesResponse", + "SyntheticsTestFileDownloadResponse", "", - ) as SyntheticsTestParentSuitesResponse; + ) as SyntheticsTestFileDownloadResponse; return body; } @@ -2813,23 +2186,25 @@ export class SyntheticsApiResponseProcessor { * 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 listSyntheticsBrowserTestLatestResults + * @params response Response returned by the server for a request to getTestFileMultipartPresignedUrls * @throws ApiException if the response code was not in [200, 299] */ - public async listSyntheticsBrowserTestLatestResults( + public async getTestFileMultipartPresignedUrls( response: ResponseContext, - ): Promise { + ): Promise { const contentType = normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsTestLatestResultsResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestLatestResultsResponse", - ) as SyntheticsTestLatestResultsResponse; + const body: SyntheticsTestFileMultipartPresignedUrlsResponse = + deserialize( + parse(await response.body.text(), contentType), + TypingInfo, + "SyntheticsTestFileMultipartPresignedUrlsResponse", + ) as SyntheticsTestFileMultipartPresignedUrlsResponse; return body; } if ( response.httpStatusCode === 400 || + response.httpStatusCode === 403 || response.httpStatusCode === 404 || response.httpStatusCode === 429 ) { @@ -2853,12 +2228,13 @@ export class SyntheticsApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTestLatestResultsResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsTestLatestResultsResponse", - "", - ) as SyntheticsTestLatestResultsResponse; + const body: SyntheticsTestFileMultipartPresignedUrlsResponse = + deserialize( + parse(await response.body.text(), contentType), + TypingInfo, + "SyntheticsTestFileMultipartPresignedUrlsResponse", + "", + ) as SyntheticsTestFileMultipartPresignedUrlsResponse; return body; } @@ -2873,26 +2249,22 @@ export class SyntheticsApiResponseProcessor { * 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 listSyntheticsTestLatestResults + * @params response Response returned by the server for a request to getTestParentSuites * @throws ApiException if the response code was not in [200, 299] */ - public async listSyntheticsTestLatestResults( + public async getTestParentSuites( response: ResponseContext, - ): Promise { + ): Promise { const contentType = normalizeMediaType(response.headers["content-type"]); if (response.httpStatusCode === 200) { - const body: SyntheticsTestLatestResultsResponse = deserialize( + const body: SyntheticsTestParentSuitesResponse = deserialize( parse(await response.body.text(), contentType), TypingInfo, - "SyntheticsTestLatestResultsResponse", - ) as SyntheticsTestLatestResultsResponse; + "SyntheticsTestParentSuitesResponse", + ) as SyntheticsTestParentSuitesResponse; return body; } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - response.httpStatusCode === 429 - ) { + if (response.httpStatusCode === 404 || response.httpStatusCode === 429) { const bodyText = parse(await response.body.text(), contentType); let body: APIErrorResponse; try { @@ -2913,12 +2285,12 @@ export class SyntheticsApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsTestLatestResultsResponse = deserialize( + const body: SyntheticsTestParentSuitesResponse = deserialize( parse(await response.body.text(), contentType), TypingInfo, - "SyntheticsTestLatestResultsResponse", + "SyntheticsTestParentSuitesResponse", "", - ) as SyntheticsTestLatestResultsResponse; + ) as SyntheticsTestParentSuitesResponse; return body; } @@ -3105,66 +2477,6 @@ export class SyntheticsApiResponseProcessor { ); } - /** - * 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 pollSyntheticsTestResults - * @throws ApiException if the response code was not in [200, 299] - */ - public async pollSyntheticsTestResults( - response: ResponseContext, - ): Promise { - const contentType = normalizeMediaType(response.headers["content-type"]); - if (response.httpStatusCode === 200) { - const body: SyntheticsPollTestResultsResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsPollTestResultsResponse", - ) as SyntheticsPollTestResultsResponse; - return body; - } - if ( - response.httpStatusCode === 400 || - response.httpStatusCode === 404 || - 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( - response.httpStatusCode, - bodyText, - ); - } - throw new ApiException(response.httpStatusCode, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: SyntheticsPollTestResultsResponse = deserialize( - parse(await response.body.text(), contentType), - TypingInfo, - "SyntheticsPollTestResultsResponse", - "", - ) as SyntheticsPollTestResultsResponse; - return body; - } - - const body = (await response.body.text()) || ""; - throw new ApiException( - 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 @@ -3419,29 +2731,6 @@ export interface SyntheticsApiGetApiMultistepSubtestsRequest { publicId: string; } -export interface SyntheticsApiGetSyntheticsBrowserTestResultRequest { - /** - * The public ID of the Synthetic browser test to which the target result belongs. - * @type string - */ - publicId: string; - /** - * The ID of the result to get. - * @type string - */ - resultId: string; - /** - * The event ID used to look up the result in the event store. - * @type string - */ - eventId?: string; - /** - * Timestamp in seconds to look up the result. - * @type number - */ - timestamp?: number; -} - export interface SyntheticsApiGetSyntheticsFastTestResultRequest { /** * The UUID of the fast test to retrieve the result for. @@ -3466,29 +2755,6 @@ export interface SyntheticsApiGetSyntheticsSuiteRequest { publicId: string; } -export interface SyntheticsApiGetSyntheticsTestResultRequest { - /** - * The public ID of the Synthetic test to which the target result belongs. - * @type string - */ - publicId: string; - /** - * The ID of the result to get. - * @type string - */ - resultId: string; - /** - * The event ID used to look up the result in the event store. - * @type string - */ - eventId?: string; - /** - * Timestamp in seconds to look up the result. - * @type number - */ - timestamp?: number; -} - export interface SyntheticsApiGetSyntheticsTestVersionRequest { /** * The public ID of the Synthetic test. @@ -3545,82 +2811,6 @@ export interface SyntheticsApiGetTestParentSuitesRequest { publicId: string; } -export interface SyntheticsApiListSyntheticsBrowserTestLatestResultsRequest { - /** - * The public ID of the Synthetic browser test for which to search results. - * @type string - */ - publicId: string; - /** - * Timestamp in milliseconds from which to start querying results. - * @type number - */ - fromTs?: number; - /** - * Timestamp in milliseconds up to which to query results. - * @type number - */ - toTs?: number; - /** - * Filter results by status. - * @type SyntheticsTestResultStatus - */ - status?: SyntheticsTestResultStatus; - /** - * Filter results by run type. - * @type SyntheticsTestResultRunType - */ - runType?: SyntheticsTestResultRunType; - /** - * Locations for which to query results. - * @type Array - */ - probeDc?: Array; - /** - * Device IDs for which to query results. - * @type Array - */ - deviceId?: Array; -} - -export interface SyntheticsApiListSyntheticsTestLatestResultsRequest { - /** - * The public ID of the Synthetic test for which to search results. - * @type string - */ - publicId: string; - /** - * Timestamp in milliseconds from which to start querying results. - * @type number - */ - fromTs?: number; - /** - * Timestamp in milliseconds up to which to query results. - * @type number - */ - toTs?: number; - /** - * Filter results by status. - * @type SyntheticsTestResultStatus - */ - status?: SyntheticsTestResultStatus; - /** - * Filter results by run type. - * @type SyntheticsTestResultRunType - */ - runType?: SyntheticsTestResultRunType; - /** - * Locations for which to query results. - * @type Array - */ - probeDc?: Array; - /** - * Device IDs for which to query results. - * @type Array - */ - deviceId?: Array; -} - export interface SyntheticsApiListSyntheticsTestVersionsRequest { /** * The public ID of the Synthetic test. @@ -3665,14 +2855,6 @@ export interface SyntheticsApiPatchTestSuiteRequest { body: SuiteJsonPatchRequest; } -export interface SyntheticsApiPollSyntheticsTestResultsRequest { - /** - * A JSON-encoded array of result IDs to poll for. - * @type string - */ - resultIds: string; -} - export interface SyntheticsApiSearchSuitesRequest { /** * The search query. @@ -3963,33 +3145,6 @@ export class SyntheticsApi { }); } - /** - * Get a specific full result from a given Synthetic browser test. - * @param param The request object - */ - public getSyntheticsBrowserTestResult( - param: SyntheticsApiGetSyntheticsBrowserTestResultRequest, - options?: Configuration, - ): Promise { - const requestContextPromise = - this.requestFactory.getSyntheticsBrowserTestResult( - param.publicId, - param.resultId, - param.eventId, - param.timestamp, - options, - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSyntheticsBrowserTestResult( - responseContext, - ); - }); - }); - } - /** * @param param The request object */ @@ -4052,32 +3207,6 @@ export class SyntheticsApi { }); } - /** - * Get a specific full result from a given Synthetic test. - * @param param The request object - */ - public getSyntheticsTestResult( - param: SyntheticsApiGetSyntheticsTestResultRequest, - options?: Configuration, - ): Promise { - const requestContextPromise = this.requestFactory.getSyntheticsTestResult( - param.publicId, - param.resultId, - param.eventId, - param.timestamp, - options, - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.getSyntheticsTestResult( - responseContext, - ); - }); - }); - } - /** * Get a specific version of a Synthetic test by its version number. * @param param The request object @@ -4174,66 +3303,6 @@ export class SyntheticsApi { }); } - /** - * Get the latest result summaries for a given Synthetic browser test. - * @param param The request object - */ - public listSyntheticsBrowserTestLatestResults( - param: SyntheticsApiListSyntheticsBrowserTestLatestResultsRequest, - options?: Configuration, - ): Promise { - const requestContextPromise = - this.requestFactory.listSyntheticsBrowserTestLatestResults( - param.publicId, - param.fromTs, - param.toTs, - param.status, - param.runType, - param.probeDc, - param.deviceId, - options, - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSyntheticsBrowserTestLatestResults( - responseContext, - ); - }); - }); - } - - /** - * Get the latest result summaries for a given Synthetic test. - * @param param The request object - */ - public listSyntheticsTestLatestResults( - param: SyntheticsApiListSyntheticsTestLatestResultsRequest, - options?: Configuration, - ): Promise { - const requestContextPromise = - this.requestFactory.listSyntheticsTestLatestResults( - param.publicId, - param.fromTs, - param.toTs, - param.status, - param.runType, - param.probeDc, - param.deviceId, - options, - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.listSyntheticsTestLatestResults( - responseContext, - ); - }); - }); - } - /** * Get the paginated version history for a Synthetic test. * @param param The request object @@ -4317,30 +3386,6 @@ export class SyntheticsApi { }); } - /** - * Poll for test results given a list of result IDs. This is typically used after - * triggering tests with CI/CD to retrieve results once they are available. - * @param param The request object - */ - public pollSyntheticsTestResults( - param: SyntheticsApiPollSyntheticsTestResultsRequest, - options?: Configuration, - ): Promise { - const requestContextPromise = this.requestFactory.pollSyntheticsTestResults( - param.resultIds, - options, - ); - return requestContextPromise.then((requestContext) => { - return this.configuration.httpApi - .send(requestContext) - .then((responseContext) => { - return this.responseProcessor.pollSyntheticsTestResults( - responseContext, - ); - }); - }); - } - /** * Search for test suites. * @param param The request object diff --git a/services/synthetics/src/v2/index.ts b/services/synthetics/src/v2/index.ts index 3b4082d573f9..1ff89ce863a5 100644 --- a/services/synthetics/src/v2/index.ts +++ b/services/synthetics/src/v2/index.ts @@ -8,21 +8,16 @@ export { SyntheticsApiEditSyntheticsSuiteRequest, SyntheticsApiGetApiMultistepSubtestParentsRequest, SyntheticsApiGetApiMultistepSubtestsRequest, - SyntheticsApiGetSyntheticsBrowserTestResultRequest, SyntheticsApiGetSyntheticsFastTestResultRequest, SyntheticsApiGetSyntheticsNetworkTestRequest, SyntheticsApiGetSyntheticsSuiteRequest, - SyntheticsApiGetSyntheticsTestResultRequest, SyntheticsApiGetSyntheticsTestVersionRequest, SyntheticsApiGetTestFileDownloadUrlRequest, SyntheticsApiGetTestFileMultipartPresignedUrlsRequest, SyntheticsApiGetTestParentSuitesRequest, - SyntheticsApiListSyntheticsBrowserTestLatestResultsRequest, - SyntheticsApiListSyntheticsTestLatestResultsRequest, SyntheticsApiListSyntheticsTestVersionsRequest, SyntheticsApiPatchGlobalVariableRequest, SyntheticsApiPatchTestSuiteRequest, - SyntheticsApiPollSyntheticsTestResultsRequest, SyntheticsApiSearchSuitesRequest, SyntheticsApiSetOnDemandConcurrencyCapRequest, SyntheticsApiUpdateSyntheticsNetworkTestRequest, @@ -77,9 +72,11 @@ export { SyntheticsFastTestResult } from "./models/SyntheticsFastTestResult"; export { SyntheticsFastTestResultAttributes } from "./models/SyntheticsFastTestResultAttributes"; export { SyntheticsFastTestResultData } from "./models/SyntheticsFastTestResultData"; export { SyntheticsFastTestResultDetail } from "./models/SyntheticsFastTestResultDetail"; +export { SyntheticsFastTestResultDevice } from "./models/SyntheticsFastTestResultDevice"; +export { SyntheticsFastTestResultFailure } from "./models/SyntheticsFastTestResultFailure"; +export { SyntheticsFastTestResultLocation } from "./models/SyntheticsFastTestResultLocation"; export { SyntheticsFastTestResultType } from "./models/SyntheticsFastTestResultType"; export { SyntheticsFastTestSubType } from "./models/SyntheticsFastTestSubType"; -export { SyntheticsFastTestType } from "./models/SyntheticsFastTestType"; export { SyntheticsGlobalVariable } from "./models/SyntheticsGlobalVariable"; export { SyntheticsGlobalVariableAttributes } from "./models/SyntheticsGlobalVariableAttributes"; export { SyntheticsGlobalVariableOptions } from "./models/SyntheticsGlobalVariableOptions"; @@ -110,7 +107,6 @@ export { SyntheticsNetworkTestResponseData } from "./models/SyntheticsNetworkTes export { SyntheticsNetworkTestResponseType } from "./models/SyntheticsNetworkTestResponseType"; export { SyntheticsNetworkTestSubType } from "./models/SyntheticsNetworkTestSubType"; export { SyntheticsNetworkTestType } from "./models/SyntheticsNetworkTestType"; -export { SyntheticsPollTestResultsResponse } from "./models/SyntheticsPollTestResultsResponse"; export { SyntheticsSuite } from "./models/SyntheticsSuite"; export { SyntheticsSuiteOptions } from "./models/SyntheticsSuiteOptions"; export { SyntheticsSuiteResponse } from "./models/SyntheticsSuiteResponse"; @@ -132,7 +128,6 @@ export { SyntheticsTestFileMultipartPresignedUrlsPart } from "./models/Synthetic export { SyntheticsTestFileMultipartPresignedUrlsRequest } from "./models/SyntheticsTestFileMultipartPresignedUrlsRequest"; export { SyntheticsTestFileMultipartPresignedUrlsRequestBucketKeyPrefix } from "./models/SyntheticsTestFileMultipartPresignedUrlsRequestBucketKeyPrefix"; export { SyntheticsTestFileMultipartPresignedUrlsResponse } from "./models/SyntheticsTestFileMultipartPresignedUrlsResponse"; -export { SyntheticsTestLatestResultsResponse } from "./models/SyntheticsTestLatestResultsResponse"; export { SyntheticsTestOptions } from "./models/SyntheticsTestOptions"; export { SyntheticsTestOptionsMonitorOptions } from "./models/SyntheticsTestOptionsMonitorOptions"; export { SyntheticsTestOptionsMonitorOptionsNotificationPresetName } from "./models/SyntheticsTestOptionsMonitorOptionsNotificationPresetName"; @@ -144,85 +139,6 @@ export { SyntheticsTestParentSuiteData } from "./models/SyntheticsTestParentSuit export { SyntheticsTestParentSuitesResponse } from "./models/SyntheticsTestParentSuitesResponse"; export { SyntheticsTestParentSuiteType } from "./models/SyntheticsTestParentSuiteType"; export { SyntheticsTestPauseStatus } from "./models/SyntheticsTestPauseStatus"; -export { SyntheticsTestResultAssertionResult } from "./models/SyntheticsTestResultAssertionResult"; -export { SyntheticsTestResultAttributes } from "./models/SyntheticsTestResultAttributes"; -export { SyntheticsTestResultBatch } from "./models/SyntheticsTestResultBatch"; -export { SyntheticsTestResultBounds } from "./models/SyntheticsTestResultBounds"; -export { SyntheticsTestResultBrowserError } from "./models/SyntheticsTestResultBrowserError"; -export { SyntheticsTestResultBucketKeys } from "./models/SyntheticsTestResultBucketKeys"; -export { SyntheticsTestResultCdnCacheStatus } from "./models/SyntheticsTestResultCdnCacheStatus"; -export { SyntheticsTestResultCdnProviderInfo } from "./models/SyntheticsTestResultCdnProviderInfo"; -export { SyntheticsTestResultCdnResource } from "./models/SyntheticsTestResultCdnResource"; -export { SyntheticsTestResultCertificate } from "./models/SyntheticsTestResultCertificate"; -export { SyntheticsTestResultCertificateValidity } from "./models/SyntheticsTestResultCertificateValidity"; -export { SyntheticsTestResultCI } from "./models/SyntheticsTestResultCI"; -export { SyntheticsTestResultCIPipeline } from "./models/SyntheticsTestResultCIPipeline"; -export { SyntheticsTestResultCIProvider } from "./models/SyntheticsTestResultCIProvider"; -export { SyntheticsTestResultCIStage } from "./models/SyntheticsTestResultCIStage"; -export { SyntheticsTestResultData } from "./models/SyntheticsTestResultData"; -export { SyntheticsTestResultDetail } from "./models/SyntheticsTestResultDetail"; -export { SyntheticsTestResultDevice } from "./models/SyntheticsTestResultDevice"; -export { SyntheticsTestResultDeviceBrowser } from "./models/SyntheticsTestResultDeviceBrowser"; -export { SyntheticsTestResultDevicePlatform } from "./models/SyntheticsTestResultDevicePlatform"; -export { SyntheticsTestResultDeviceResolution } from "./models/SyntheticsTestResultDeviceResolution"; -export { SyntheticsTestResultDnsRecord } from "./models/SyntheticsTestResultDnsRecord"; -export { SyntheticsTestResultDnsResolution } from "./models/SyntheticsTestResultDnsResolution"; -export { SyntheticsTestResultDuration } from "./models/SyntheticsTestResultDuration"; -export { SyntheticsTestResultExecutionInfo } from "./models/SyntheticsTestResultExecutionInfo"; -export { SyntheticsTestResultFailure } from "./models/SyntheticsTestResultFailure"; -export { SyntheticsTestResultFileRef } from "./models/SyntheticsTestResultFileRef"; -export { SyntheticsTestResultGit } from "./models/SyntheticsTestResultGit"; -export { SyntheticsTestResultGitCommit } from "./models/SyntheticsTestResultGitCommit"; -export { SyntheticsTestResultGitUser } from "./models/SyntheticsTestResultGitUser"; -export { SyntheticsTestResultHandshake } from "./models/SyntheticsTestResultHandshake"; -export { SyntheticsTestResultHealthCheck } from "./models/SyntheticsTestResultHealthCheck"; -export { SyntheticsTestResultIncludedItem } from "./models/SyntheticsTestResultIncludedItem"; -export { SyntheticsTestResultLocation } from "./models/SyntheticsTestResultLocation"; -export { SyntheticsTestResultNetpath } from "./models/SyntheticsTestResultNetpath"; -export { SyntheticsTestResultNetpathDestination } from "./models/SyntheticsTestResultNetpathDestination"; -export { SyntheticsTestResultNetpathEndpoint } from "./models/SyntheticsTestResultNetpathEndpoint"; -export { SyntheticsTestResultNetpathHop } from "./models/SyntheticsTestResultNetpathHop"; -export { SyntheticsTestResultNetstats } from "./models/SyntheticsTestResultNetstats"; -export { SyntheticsTestResultNetstatsHops } from "./models/SyntheticsTestResultNetstatsHops"; -export { SyntheticsTestResultNetworkLatency } from "./models/SyntheticsTestResultNetworkLatency"; -export { SyntheticsTestResultOCSPCertificate } from "./models/SyntheticsTestResultOCSPCertificate"; -export { SyntheticsTestResultOCSPResponse } from "./models/SyntheticsTestResultOCSPResponse"; -export { SyntheticsTestResultOCSPUpdates } from "./models/SyntheticsTestResultOCSPUpdates"; -export { SyntheticsTestResultParentStep } from "./models/SyntheticsTestResultParentStep"; -export { SyntheticsTestResultParentTest } from "./models/SyntheticsTestResultParentTest"; -export { SyntheticsTestResultRedirect } from "./models/SyntheticsTestResultRedirect"; -export { SyntheticsTestResultRelationships } from "./models/SyntheticsTestResultRelationships"; -export { SyntheticsTestResultRelationshipTest } from "./models/SyntheticsTestResultRelationshipTest"; -export { SyntheticsTestResultRelationshipTestData } from "./models/SyntheticsTestResultRelationshipTestData"; -export { SyntheticsTestResultRequestInfo } from "./models/SyntheticsTestResultRequestInfo"; -export { SyntheticsTestResultResponse } from "./models/SyntheticsTestResultResponse"; -export { SyntheticsTestResultResponseInfo } from "./models/SyntheticsTestResultResponseInfo"; -export { SyntheticsTestResultRouter } from "./models/SyntheticsTestResultRouter"; -export { SyntheticsTestResultRumContext } from "./models/SyntheticsTestResultRumContext"; -export { SyntheticsTestResultRunType } from "./models/SyntheticsTestResultRunType"; -export { SyntheticsTestResultStatus } from "./models/SyntheticsTestResultStatus"; -export { SyntheticsTestResultStep } from "./models/SyntheticsTestResultStep"; -export { SyntheticsTestResultStepAssertionResult } from "./models/SyntheticsTestResultStepAssertionResult"; -export { SyntheticsTestResultStepElementUpdates } from "./models/SyntheticsTestResultStepElementUpdates"; -export { SyntheticsTestResultStepsInfo } from "./models/SyntheticsTestResultStepsInfo"; -export { SyntheticsTestResultSubStep } from "./models/SyntheticsTestResultSubStep"; -export { SyntheticsTestResultSubTest } from "./models/SyntheticsTestResultSubTest"; -export { SyntheticsTestResultSummaryAttributes } from "./models/SyntheticsTestResultSummaryAttributes"; -export { SyntheticsTestResultSummaryData } from "./models/SyntheticsTestResultSummaryData"; -export { SyntheticsTestResultSummaryType } from "./models/SyntheticsTestResultSummaryType"; -export { SyntheticsTestResultTab } from "./models/SyntheticsTestResultTab"; -export { SyntheticsTestResultTrace } from "./models/SyntheticsTestResultTrace"; -export { SyntheticsTestResultTracerouteHop } from "./models/SyntheticsTestResultTracerouteHop"; -export { SyntheticsTestResultTurn } from "./models/SyntheticsTestResultTurn"; -export { SyntheticsTestResultTurnStep } from "./models/SyntheticsTestResultTurnStep"; -export { SyntheticsTestResultType } from "./models/SyntheticsTestResultType"; -export { SyntheticsTestResultVariable } from "./models/SyntheticsTestResultVariable"; -export { SyntheticsTestResultVariables } from "./models/SyntheticsTestResultVariables"; -export { SyntheticsTestResultVitalsMetrics } from "./models/SyntheticsTestResultVitalsMetrics"; -export { SyntheticsTestResultWarning } from "./models/SyntheticsTestResultWarning"; -export { SyntheticsTestResultWebSocketClose } from "./models/SyntheticsTestResultWebSocketClose"; -export { SyntheticsTestSubType } from "./models/SyntheticsTestSubType"; -export { SyntheticsTestType } from "./models/SyntheticsTestType"; export { SyntheticsTestVersionActionMetadata } from "./models/SyntheticsTestVersionActionMetadata"; export { SyntheticsTestVersionAttributes } from "./models/SyntheticsTestVersionAttributes"; export { SyntheticsTestVersionAuthor } from "./models/SyntheticsTestVersionAuthor"; diff --git a/services/synthetics/src/v2/models/SyntheticsFastTestResultAttributes.ts b/services/synthetics/src/v2/models/SyntheticsFastTestResultAttributes.ts index f66bbf6ca97a..5b022783fadb 100644 --- a/services/synthetics/src/v2/models/SyntheticsFastTestResultAttributes.ts +++ b/services/synthetics/src/v2/models/SyntheticsFastTestResultAttributes.ts @@ -1,23 +1,22 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; import { SyntheticsFastTestResultDetail } from "./SyntheticsFastTestResultDetail"; +import { SyntheticsFastTestResultDevice } from "./SyntheticsFastTestResultDevice"; +import { SyntheticsFastTestResultLocation } from "./SyntheticsFastTestResultLocation"; import { SyntheticsFastTestSubType } from "./SyntheticsFastTestSubType"; -import { SyntheticsFastTestType } from "./SyntheticsFastTestType"; -import { SyntheticsTestResultDevice } from "./SyntheticsTestResultDevice"; -import { SyntheticsTestResultLocation } from "./SyntheticsTestResultLocation"; /** * Attributes of the fast test result. */ export class SyntheticsFastTestResultAttributes { /** - * Device information for the test result (browser and mobile tests). + * Device information for browser-based fast tests. */ - "device"?: SyntheticsTestResultDevice; + "device"?: SyntheticsFastTestResultDevice; /** - * Location information for a Synthetic test result. + * Location from which the fast test was executed. */ - "location"?: SyntheticsTestResultLocation; + "location"?: SyntheticsFastTestResultLocation; /** * Detailed result data for the fast test run. The exact shape of nested fields * (`request`, `response`, `assertions`, etc.) depends on the test subtype. @@ -28,9 +27,9 @@ export class SyntheticsFastTestResultAttributes { */ "testSubType"?: SyntheticsFastTestSubType; /** - * Type of the Synthetic fast test that produced this result. + * The type of the Synthetic test that produced this result (for example, `api` or `browser`). */ - "testType"?: SyntheticsFastTestType; + "testType"?: string; /** * Version of the test at the time the fast test was triggered. */ @@ -52,11 +51,11 @@ export class SyntheticsFastTestResultAttributes { static readonly attributeTypeMap: AttributeTypeMap = { device: { baseName: "device", - type: "SyntheticsTestResultDevice", + type: "SyntheticsFastTestResultDevice", }, location: { baseName: "location", - type: "SyntheticsTestResultLocation", + type: "SyntheticsFastTestResultLocation", }, result: { baseName: "result", @@ -68,7 +67,7 @@ export class SyntheticsFastTestResultAttributes { }, testType: { baseName: "test_type", - type: "SyntheticsFastTestType", + type: "string", }, testVersion: { baseName: "test_version", diff --git a/services/synthetics/src/v2/models/SyntheticsFastTestResultDetail.ts b/services/synthetics/src/v2/models/SyntheticsFastTestResultDetail.ts index f9b027c228b1..e6d8702aeb4c 100644 --- a/services/synthetics/src/v2/models/SyntheticsFastTestResultDetail.ts +++ b/services/synthetics/src/v2/models/SyntheticsFastTestResultDetail.ts @@ -1,13 +1,6 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; -import { SyntheticsTestResultAssertionResult } from "./SyntheticsTestResultAssertionResult"; -import { SyntheticsTestResultCertificate } from "./SyntheticsTestResultCertificate"; -import { SyntheticsTestResultFailure } from "./SyntheticsTestResultFailure"; -import { SyntheticsTestResultRequestInfo } from "./SyntheticsTestResultRequestInfo"; -import { SyntheticsTestResultResponseInfo } from "./SyntheticsTestResultResponseInfo"; -import { SyntheticsTestResultRunType } from "./SyntheticsTestResultRunType"; -import { SyntheticsTestResultStep } from "./SyntheticsTestResultStep"; -import { SyntheticsTestResultTracerouteHop } from "./SyntheticsTestResultTracerouteHop"; +import { SyntheticsFastTestResultFailure } from "./SyntheticsFastTestResultFailure"; /** * Detailed result data for the fast test run. The exact shape of nested fields @@ -17,23 +10,23 @@ export class SyntheticsFastTestResultDetail { /** * Results of each assertion evaluated during the test. */ - "assertions"?: Array; + "assertions"?: Array<{ [key: string]: any }>; /** * gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). */ "callType"?: string; /** - * SSL/TLS certificate information returned from an SSL test. + * TLS certificate details, present for SSL tests. */ - "cert"?: SyntheticsTestResultCertificate; + "cert"?: { [key: string]: any }; /** * Total duration of the test in milliseconds. */ "duration"?: number; /** - * Details about the failure of a Synthetic test. + * Failure details if the fast test did not pass. */ - "failure"?: SyntheticsTestResultFailure; + "failure"?: SyntheticsFastTestResultFailure; /** * Unix timestamp (ms) of when the test finished. */ @@ -47,21 +40,21 @@ export class SyntheticsFastTestResultDetail { */ "isFastRetry"?: boolean; /** - * Details of the outgoing request made during the test execution. + * Details of the outgoing request made during the test. */ - "request"?: SyntheticsTestResultRequestInfo; + "request"?: { [key: string]: any }; /** * IP address resolved for the target host. */ "resolvedIp"?: string; /** - * Details of the response received during the test execution. + * Details of the response received during the test. */ - "response"?: SyntheticsTestResultResponseInfo; + "response"?: { [key: string]: any }; /** - * The type of run for a Synthetic test result. + * Run type indicating how this test was triggered (for example, `fast`). */ - "runType"?: SyntheticsTestResultRunType; + "runType"?: string; /** * Unix timestamp (ms) of when the test started. */ @@ -73,7 +66,7 @@ export class SyntheticsFastTestResultDetail { /** * Step results for multistep API tests. */ - "steps"?: Array; + "steps"?: Array<{ [key: string]: any }>; /** * Timing breakdown of the test request phases (for example, DNS, TCP, TLS, first byte). */ @@ -81,7 +74,7 @@ export class SyntheticsFastTestResultDetail { /** * Traceroute hop results, present for ICMP and TCP tests. */ - "traceroute"?: Array; + "traceroute"?: Array<{ [key: string]: any }>; /** * Unix timestamp (ms) of when the test was triggered. */ @@ -107,7 +100,7 @@ export class SyntheticsFastTestResultDetail { static readonly attributeTypeMap: AttributeTypeMap = { assertions: { baseName: "assertions", - type: "Array", + type: "Array<{ [key: string]: any; }>", }, callType: { baseName: "call_type", @@ -115,7 +108,7 @@ export class SyntheticsFastTestResultDetail { }, cert: { baseName: "cert", - type: "SyntheticsTestResultCertificate", + type: "{ [key: string]: any; }", }, duration: { baseName: "duration", @@ -124,7 +117,7 @@ export class SyntheticsFastTestResultDetail { }, failure: { baseName: "failure", - type: "SyntheticsTestResultFailure", + type: "SyntheticsFastTestResultFailure", }, finishedAt: { baseName: "finished_at", @@ -141,7 +134,7 @@ export class SyntheticsFastTestResultDetail { }, request: { baseName: "request", - type: "SyntheticsTestResultRequestInfo", + type: "{ [key: string]: any; }", }, resolvedIp: { baseName: "resolved_ip", @@ -149,11 +142,11 @@ export class SyntheticsFastTestResultDetail { }, response: { baseName: "response", - type: "SyntheticsTestResultResponseInfo", + type: "{ [key: string]: any; }", }, runType: { baseName: "run_type", - type: "SyntheticsTestResultRunType", + type: "string", }, startedAt: { baseName: "started_at", @@ -166,7 +159,7 @@ export class SyntheticsFastTestResultDetail { }, steps: { baseName: "steps", - type: "Array", + type: "Array<{ [key: string]: any; }>", }, timings: { baseName: "timings", @@ -174,7 +167,7 @@ export class SyntheticsFastTestResultDetail { }, traceroute: { baseName: "traceroute", - type: "Array", + type: "Array<{ [key: string]: any; }>", }, triggeredAt: { baseName: "triggered_at", diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultRelationshipTestData.ts b/services/synthetics/src/v2/models/SyntheticsFastTestResultDevice.ts similarity index 74% rename from services/synthetics/src/v2/models/SyntheticsTestResultRelationshipTestData.ts rename to services/synthetics/src/v2/models/SyntheticsFastTestResultDevice.ts index 3e7a25bff51f..70866883be14 100644 --- a/services/synthetics/src/v2/models/SyntheticsTestResultRelationshipTestData.ts +++ b/services/synthetics/src/v2/models/SyntheticsFastTestResultDevice.ts @@ -1,17 +1,17 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; /** - * Data for the test relationship. + * Device information for browser-based fast tests. */ -export class SyntheticsTestResultRelationshipTestData { +export class SyntheticsFastTestResultDevice { /** - * The public ID of the test. + * Device identifier. */ "id"?: string; /** - * Type of the related resource. + * Display name of the device. */ - "type"?: string; + "name"?: string; /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -31,8 +31,8 @@ export class SyntheticsTestResultRelationshipTestData { baseName: "id", type: "string", }, - type: { - baseName: "type", + name: { + baseName: "name", type: "string", }, additionalProperties: { @@ -45,7 +45,7 @@ export class SyntheticsTestResultRelationshipTestData { * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultRelationshipTestData.attributeTypeMap; + return SyntheticsFastTestResultDevice.attributeTypeMap; } public constructor() {} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultDevicePlatform.ts b/services/synthetics/src/v2/models/SyntheticsFastTestResultFailure.ts similarity index 67% rename from services/synthetics/src/v2/models/SyntheticsTestResultDevicePlatform.ts rename to services/synthetics/src/v2/models/SyntheticsFastTestResultFailure.ts index 3ab17ff39d4d..a6740e3e0ce2 100644 --- a/services/synthetics/src/v2/models/SyntheticsTestResultDevicePlatform.ts +++ b/services/synthetics/src/v2/models/SyntheticsFastTestResultFailure.ts @@ -1,17 +1,17 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; /** - * Platform information for the device used to run the test. + * Failure details if the fast test did not pass. */ -export class SyntheticsTestResultDevicePlatform { +export class SyntheticsFastTestResultFailure { /** - * Platform name (for example, `linux`, `macos`). + * Error code identifying the failure type. */ - "name"?: string; + "code"?: string; /** - * Platform version. + * Human-readable description of the failure. */ - "version"?: string; + "message"?: string; /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -27,12 +27,12 @@ export class SyntheticsTestResultDevicePlatform { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", + code: { + baseName: "code", type: "string", }, - version: { - baseName: "version", + message: { + baseName: "message", type: "string", }, additionalProperties: { @@ -45,7 +45,7 @@ export class SyntheticsTestResultDevicePlatform { * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultDevicePlatform.attributeTypeMap; + return SyntheticsFastTestResultFailure.attributeTypeMap; } public constructor() {} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultLocation.ts b/services/synthetics/src/v2/models/SyntheticsFastTestResultLocation.ts similarity index 80% rename from services/synthetics/src/v2/models/SyntheticsTestResultLocation.ts rename to services/synthetics/src/v2/models/SyntheticsFastTestResultLocation.ts index 2f84c6975aa9..c473c5a3736c 100644 --- a/services/synthetics/src/v2/models/SyntheticsTestResultLocation.ts +++ b/services/synthetics/src/v2/models/SyntheticsFastTestResultLocation.ts @@ -1,19 +1,19 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; /** - * Location information for a Synthetic test result. + * Location from which the fast test was executed. */ -export class SyntheticsTestResultLocation { +export class SyntheticsFastTestResultLocation { /** - * Identifier of the location. + * ID of the location. */ "id"?: string; /** - * Human-readable name of the location. + * Display name of the location. */ "name"?: string; /** - * Version of the worker that ran the test. + * Agent version running at this location. */ "version"?: string; /** @@ -61,7 +61,7 @@ export class SyntheticsTestResultLocation { * @ignore */ static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultLocation.attributeTypeMap; + return SyntheticsFastTestResultLocation.attributeTypeMap; } public constructor() {} diff --git a/services/synthetics/src/v2/models/SyntheticsFastTestType.ts b/services/synthetics/src/v2/models/SyntheticsFastTestType.ts deleted file mode 100644 index 138fc7f5ddce..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsFastTestType.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * Type of the Synthetic fast test that produced this result. - */ -export type SyntheticsFastTestType = - | typeof FAST_API - | typeof FAST_BROWSER - | UnparsedObject; -export const FAST_API = "fast-api"; -export const FAST_BROWSER = "fast-browser"; diff --git a/services/synthetics/src/v2/models/SyntheticsPollTestResultsResponse.ts b/services/synthetics/src/v2/models/SyntheticsPollTestResultsResponse.ts deleted file mode 100644 index 13a1a9591f7f..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsPollTestResultsResponse.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultData } from "./SyntheticsTestResultData"; -import { SyntheticsTestResultIncludedItem } from "./SyntheticsTestResultIncludedItem"; - -/** - * Response object for polling Synthetic test results. - */ -export class SyntheticsPollTestResultsResponse { - /** - * Array of Synthetic test results. - */ - "data"?: Array; - /** - * Array of included related resources, such as the test definition. - */ - "included"?: Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsPollTestResultsResponse.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestLatestResultsResponse.ts b/services/synthetics/src/v2/models/SyntheticsTestLatestResultsResponse.ts deleted file mode 100644 index 955e5062faa9..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestLatestResultsResponse.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultIncludedItem } from "./SyntheticsTestResultIncludedItem"; -import { SyntheticsTestResultSummaryData } from "./SyntheticsTestResultSummaryData"; - -/** - * Response object for a Synthetic test's latest result summaries. - */ -export class SyntheticsTestLatestResultsResponse { - /** - * Array of Synthetic test result summaries. - */ - "data"?: Array; - /** - * Array of included related resources, such as the test definition. - */ - "included"?: Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "Array", - }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestLatestResultsResponse.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultAssertionResult.ts b/services/synthetics/src/v2/models/SyntheticsTestResultAssertionResult.ts deleted file mode 100644 index 96ccc6853c29..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultAssertionResult.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * An individual assertion result from a Synthetic test. - */ -export class SyntheticsTestResultAssertionResult { - /** - * Actual value observed during the test. Its type depends on the assertion type. - */ - "actual"?: any; - /** - * Error message if the assertion failed. - */ - "errorMessage"?: string; - /** - * Expected value for the assertion. Its type depends on the assertion type. - */ - "expected"?: any; - /** - * Operator used for the assertion (for example, `is`, `contains`). - */ - "operator"?: string; - /** - * Property targeted by the assertion, when applicable. - */ - "property"?: string; - /** - * Target value for the assertion. Its type depends on the assertion type. - */ - "target"?: any; - /** - * JSON path or XPath evaluated for the assertion. - */ - "targetPath"?: string; - /** - * Operator used for the target path assertion. - */ - "targetPathOperator"?: string; - /** - * Type of the assertion (for example, `responseTime`, `statusCode`, `body`). - */ - "type"?: string; - /** - * Whether the assertion passed. - */ - "valid"?: boolean; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - actual: { - baseName: "actual", - type: "any", - }, - errorMessage: { - baseName: "error_message", - type: "string", - }, - expected: { - baseName: "expected", - type: "any", - }, - operator: { - baseName: "operator", - type: "string", - }, - property: { - baseName: "property", - type: "string", - }, - target: { - baseName: "target", - type: "any", - }, - targetPath: { - baseName: "target_path", - type: "string", - }, - targetPathOperator: { - baseName: "target_path_operator", - type: "string", - }, - type: { - baseName: "type", - type: "string", - }, - valid: { - baseName: "valid", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultAssertionResult.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultAttributes.ts b/services/synthetics/src/v2/models/SyntheticsTestResultAttributes.ts deleted file mode 100644 index 61f8bc73393a..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultAttributes.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultBatch } from "./SyntheticsTestResultBatch"; -import { SyntheticsTestResultCI } from "./SyntheticsTestResultCI"; -import { SyntheticsTestResultDetail } from "./SyntheticsTestResultDetail"; -import { SyntheticsTestResultDevice } from "./SyntheticsTestResultDevice"; -import { SyntheticsTestResultGit } from "./SyntheticsTestResultGit"; -import { SyntheticsTestResultLocation } from "./SyntheticsTestResultLocation"; -import { SyntheticsTestSubType } from "./SyntheticsTestSubType"; -import { SyntheticsTestType } from "./SyntheticsTestType"; - -/** - * Attributes of a Synthetic test result. - */ -export class SyntheticsTestResultAttributes { - /** - * Batch information for the test result. - */ - "batch"?: SyntheticsTestResultBatch; - /** - * CI information associated with the test result. - */ - "ci"?: SyntheticsTestResultCI; - /** - * Device information for the test result (browser and mobile tests). - */ - "device"?: SyntheticsTestResultDevice; - /** - * Git information associated with the test result. - */ - "git"?: SyntheticsTestResultGit; - /** - * Location information for a Synthetic test result. - */ - "location"?: SyntheticsTestResultLocation; - /** - * Full result details for a Synthetic test execution. - */ - "result"?: SyntheticsTestResultDetail; - /** - * Subtype of the Synthetic test that produced this result. - */ - "testSubType"?: SyntheticsTestSubType; - /** - * Type of the Synthetic test that produced this result. - */ - "testType"?: SyntheticsTestType; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - batch: { - baseName: "batch", - type: "SyntheticsTestResultBatch", - }, - ci: { - baseName: "ci", - type: "SyntheticsTestResultCI", - }, - device: { - baseName: "device", - type: "SyntheticsTestResultDevice", - }, - git: { - baseName: "git", - type: "SyntheticsTestResultGit", - }, - location: { - baseName: "location", - type: "SyntheticsTestResultLocation", - }, - result: { - baseName: "result", - type: "SyntheticsTestResultDetail", - }, - testSubType: { - baseName: "test_sub_type", - type: "SyntheticsTestSubType", - }, - testType: { - baseName: "test_type", - type: "SyntheticsTestType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultAttributes.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultBatch.ts b/services/synthetics/src/v2/models/SyntheticsTestResultBatch.ts deleted file mode 100644 index 40606718a6a8..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultBatch.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Batch information for the test result. - */ -export class SyntheticsTestResultBatch { - /** - * Batch identifier. - */ - "id"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultBatch.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultBounds.ts b/services/synthetics/src/v2/models/SyntheticsTestResultBounds.ts deleted file mode 100644 index 165c7bb95a19..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultBounds.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Bounding box of an element on the page. - */ -export class SyntheticsTestResultBounds { - /** - * Height in pixels. - */ - "height"?: number; - /** - * Width in pixels. - */ - "width"?: number; - /** - * Horizontal position in pixels. - */ - "x"?: number; - /** - * Vertical position in pixels. - */ - "y"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - height: { - baseName: "height", - type: "number", - format: "int64", - }, - width: { - baseName: "width", - type: "number", - format: "int64", - }, - x: { - baseName: "x", - type: "number", - format: "int64", - }, - y: { - baseName: "y", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultBounds.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultBrowserError.ts b/services/synthetics/src/v2/models/SyntheticsTestResultBrowserError.ts deleted file mode 100644 index a48de0de92d2..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultBrowserError.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * A browser error captured during a browser test step. - */ -export class SyntheticsTestResultBrowserError { - /** - * Error description. - */ - "description"?: string; - /** - * HTTP method associated with the error (for network errors). - */ - "method"?: string; - /** - * Error name. - */ - "name"?: string; - /** - * HTTP status code associated with the error (for network errors). - */ - "status"?: number; - /** - * Type of the browser error. - */ - "type"?: string; - /** - * URL associated with the error. - */ - "url"?: { [key: string]: any }; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - description: { - baseName: "description", - type: "string", - }, - method: { - baseName: "method", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - status: { - baseName: "status", - type: "number", - format: "int64", - }, - type: { - baseName: "type", - type: "string", - }, - url: { - baseName: "url", - type: "{ [key: string]: any; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultBrowserError.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultBucketKeys.ts b/services/synthetics/src/v2/models/SyntheticsTestResultBucketKeys.ts deleted file mode 100644 index 6d13ed175ac5..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultBucketKeys.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Storage bucket keys for artifacts produced during a step or test. - */ -export class SyntheticsTestResultBucketKeys { - /** - * Key for the screenshot captured after the step (goal-based tests). - */ - "afterStepScreenshot"?: string; - /** - * Key for the screenshot captured after the turn (goal-based tests). - */ - "afterTurnScreenshot"?: string; - /** - * Key for miscellaneous artifacts. - */ - "artifacts"?: string; - /** - * Key for the screenshot captured before the step (goal-based tests). - */ - "beforeStepScreenshot"?: string; - /** - * Key for the screenshot captured before the turn (goal-based tests). - */ - "beforeTurnScreenshot"?: string; - /** - * Key for a captured crash report. - */ - "crashReport"?: string; - /** - * Key for captured device logs. - */ - "deviceLogs"?: string; - /** - * Keys for email message payloads captured by the step. - */ - "emailMessages"?: Array; - /** - * Key for the captured screenshot. - */ - "screenshot"?: string; - /** - * Key for the captured DOM snapshot. - */ - "snapshot"?: string; - /** - * Key for the page source or element source. - */ - "source"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - afterStepScreenshot: { - baseName: "after_step_screenshot", - type: "string", - }, - afterTurnScreenshot: { - baseName: "after_turn_screenshot", - type: "string", - }, - artifacts: { - baseName: "artifacts", - type: "string", - }, - beforeStepScreenshot: { - baseName: "before_step_screenshot", - type: "string", - }, - beforeTurnScreenshot: { - baseName: "before_turn_screenshot", - type: "string", - }, - crashReport: { - baseName: "crash_report", - type: "string", - }, - deviceLogs: { - baseName: "device_logs", - type: "string", - }, - emailMessages: { - baseName: "email_messages", - type: "Array", - }, - screenshot: { - baseName: "screenshot", - type: "string", - }, - snapshot: { - baseName: "snapshot", - type: "string", - }, - source: { - baseName: "source", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultBucketKeys.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCI.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCI.ts deleted file mode 100644 index bde0217d0b01..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCI.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultCIPipeline } from "./SyntheticsTestResultCIPipeline"; -import { SyntheticsTestResultCIProvider } from "./SyntheticsTestResultCIProvider"; -import { SyntheticsTestResultCIStage } from "./SyntheticsTestResultCIStage"; - -/** - * CI information associated with the test result. - */ -export class SyntheticsTestResultCI { - /** - * Details of the CI pipeline. - */ - "pipeline"?: SyntheticsTestResultCIPipeline; - /** - * Details of the CI provider. - */ - "provider"?: SyntheticsTestResultCIProvider; - /** - * Details of the CI stage. - */ - "stage"?: SyntheticsTestResultCIStage; - /** - * Path of the workspace that ran the CI job. - */ - "workspacePath"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - pipeline: { - baseName: "pipeline", - type: "SyntheticsTestResultCIPipeline", - }, - provider: { - baseName: "provider", - type: "SyntheticsTestResultCIProvider", - }, - stage: { - baseName: "stage", - type: "SyntheticsTestResultCIStage", - }, - workspacePath: { - baseName: "workspace_path", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCI.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCIPipeline.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCIPipeline.ts deleted file mode 100644 index 35885b7d665e..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCIPipeline.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Details of the CI pipeline. - */ -export class SyntheticsTestResultCIPipeline { - /** - * Pipeline identifier. - */ - "id"?: string; - /** - * Pipeline name. - */ - "name"?: string; - /** - * Pipeline number. - */ - "number"?: number; - /** - * Pipeline URL. - */ - "url"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - number: { - baseName: "number", - type: "number", - format: "int64", - }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCIPipeline.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCIProvider.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCIProvider.ts deleted file mode 100644 index 6138f5939e8a..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCIProvider.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Details of the CI provider. - */ -export class SyntheticsTestResultCIProvider { - /** - * Provider name. - */ - "name"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCIProvider.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCIStage.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCIStage.ts deleted file mode 100644 index 63faa3502475..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCIStage.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Details of the CI stage. - */ -export class SyntheticsTestResultCIStage { - /** - * Stage name. - */ - "name"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCIStage.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCdnCacheStatus.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCdnCacheStatus.ts deleted file mode 100644 index ecdb82101a0f..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCdnCacheStatus.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Cache status reported by the CDN for the response. - */ -export class SyntheticsTestResultCdnCacheStatus { - /** - * Whether the response was served from the CDN cache. - */ - "cached"?: boolean; - /** - * Raw cache status string reported by the CDN. - */ - "status"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - cached: { - baseName: "cached", - type: "boolean", - }, - status: { - baseName: "status", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCdnCacheStatus.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCdnProviderInfo.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCdnProviderInfo.ts deleted file mode 100644 index 55fc86a8bc05..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCdnProviderInfo.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultCdnCacheStatus } from "./SyntheticsTestResultCdnCacheStatus"; - -/** - * CDN provider details inferred from response headers. - */ -export class SyntheticsTestResultCdnProviderInfo { - /** - * Cache status reported by the CDN for the response. - */ - "cache"?: SyntheticsTestResultCdnCacheStatus; - /** - * Name of the CDN provider. - */ - "provider"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - cache: { - baseName: "cache", - type: "SyntheticsTestResultCdnCacheStatus", - }, - provider: { - baseName: "provider", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCdnProviderInfo.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCdnResource.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCdnResource.ts deleted file mode 100644 index e9c1e2498728..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCdnResource.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultCdnProviderInfo } from "./SyntheticsTestResultCdnProviderInfo"; - -/** - * A CDN resource encountered while executing a browser step. - */ -export class SyntheticsTestResultCdnResource { - /** - * CDN provider details inferred from response headers. - */ - "cdn"?: SyntheticsTestResultCdnProviderInfo; - /** - * Resolved IP address for the CDN resource. - */ - "resolvedIp"?: string; - /** - * Unix timestamp (ms) of when the resource was fetched. - */ - "timestamp"?: number; - /** - * Timing breakdown for fetching the CDN resource. - */ - "timings"?: { [key: string]: any }; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - cdn: { - baseName: "cdn", - type: "SyntheticsTestResultCdnProviderInfo", - }, - resolvedIp: { - baseName: "resolved_ip", - type: "string", - }, - timestamp: { - baseName: "timestamp", - type: "number", - format: "int64", - }, - timings: { - baseName: "timings", - type: "{ [key: string]: any; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCdnResource.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCertificate.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCertificate.ts deleted file mode 100644 index 2577354c88f2..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCertificate.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultCertificateValidity } from "./SyntheticsTestResultCertificateValidity"; - -/** - * SSL/TLS certificate information returned from an SSL test. - */ -export class SyntheticsTestResultCertificate { - /** - * Cipher used for the TLS connection. - */ - "cipher"?: string; - /** - * RSA exponent of the certificate. - */ - "exponent"?: number; - /** - * Extended key usage extensions for the certificate. - */ - "extKeyUsage"?: Array; - /** - * SHA-1 fingerprint of the certificate. - */ - "fingerprint"?: string; - /** - * SHA-256 fingerprint of the certificate. - */ - "fingerprint256"?: string; - /** - * Certificate issuer details. - */ - "issuer"?: { [key: string]: string }; - /** - * RSA modulus of the certificate. - */ - "modulus"?: string; - /** - * TLS protocol used (for example, `TLSv1.2`). - */ - "protocol"?: string; - /** - * Serial number of the certificate. - */ - "serialNumber"?: string; - /** - * Certificate subject details. - */ - "subject"?: { [key: string]: string }; - /** - * TLS protocol version. - */ - "tlsVersion"?: number; - /** - * Validity window of a certificate. - */ - "valid"?: SyntheticsTestResultCertificateValidity; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - cipher: { - baseName: "cipher", - type: "string", - }, - exponent: { - baseName: "exponent", - type: "number", - format: "int64", - }, - extKeyUsage: { - baseName: "ext_key_usage", - type: "Array", - }, - fingerprint: { - baseName: "fingerprint", - type: "string", - }, - fingerprint256: { - baseName: "fingerprint256", - type: "string", - }, - issuer: { - baseName: "issuer", - type: "{ [key: string]: string; }", - }, - modulus: { - baseName: "modulus", - type: "string", - }, - protocol: { - baseName: "protocol", - type: "string", - }, - serialNumber: { - baseName: "serial_number", - type: "string", - }, - subject: { - baseName: "subject", - type: "{ [key: string]: string; }", - }, - tlsVersion: { - baseName: "tls_version", - type: "number", - format: "double", - }, - valid: { - baseName: "valid", - type: "SyntheticsTestResultCertificateValidity", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCertificate.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultCertificateValidity.ts b/services/synthetics/src/v2/models/SyntheticsTestResultCertificateValidity.ts deleted file mode 100644 index 70cc253550c5..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultCertificateValidity.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Validity window of a certificate. - */ -export class SyntheticsTestResultCertificateValidity { - /** - * Unix timestamp (ms) of when the certificate became valid. - */ - "from"?: number; - /** - * Unix timestamp (ms) of when the certificate expires. - */ - "to"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - from: { - baseName: "from", - type: "number", - format: "int64", - }, - to: { - baseName: "to", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultCertificateValidity.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultData.ts b/services/synthetics/src/v2/models/SyntheticsTestResultData.ts deleted file mode 100644 index 47a424dc08b3..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultData.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultAttributes } from "./SyntheticsTestResultAttributes"; -import { SyntheticsTestResultRelationships } from "./SyntheticsTestResultRelationships"; -import { SyntheticsTestResultType } from "./SyntheticsTestResultType"; - -/** - * Wrapper object for a Synthetic test result. - */ -export class SyntheticsTestResultData { - /** - * Attributes of a Synthetic test result. - */ - "attributes"?: SyntheticsTestResultAttributes; - /** - * The result ID. - */ - "id"?: string; - /** - * Relationships for a Synthetic test result. - */ - "relationships"?: SyntheticsTestResultRelationships; - /** - * Type of the Synthetic test result resource, `result`. - */ - "type"?: SyntheticsTestResultType; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SyntheticsTestResultAttributes", - }, - id: { - baseName: "id", - type: "string", - }, - relationships: { - baseName: "relationships", - type: "SyntheticsTestResultRelationships", - }, - type: { - baseName: "type", - type: "SyntheticsTestResultType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultData.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultDetail.ts b/services/synthetics/src/v2/models/SyntheticsTestResultDetail.ts deleted file mode 100644 index 8b8ff87c34db..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultDetail.ts +++ /dev/null @@ -1,389 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultAssertionResult } from "./SyntheticsTestResultAssertionResult"; -import { SyntheticsTestResultBucketKeys } from "./SyntheticsTestResultBucketKeys"; -import { SyntheticsTestResultCertificate } from "./SyntheticsTestResultCertificate"; -import { SyntheticsTestResultDnsResolution } from "./SyntheticsTestResultDnsResolution"; -import { SyntheticsTestResultFailure } from "./SyntheticsTestResultFailure"; -import { SyntheticsTestResultHandshake } from "./SyntheticsTestResultHandshake"; -import { SyntheticsTestResultNetpath } from "./SyntheticsTestResultNetpath"; -import { SyntheticsTestResultNetstats } from "./SyntheticsTestResultNetstats"; -import { SyntheticsTestResultOCSPResponse } from "./SyntheticsTestResultOCSPResponse"; -import { SyntheticsTestResultRequestInfo } from "./SyntheticsTestResultRequestInfo"; -import { SyntheticsTestResultResponseInfo } from "./SyntheticsTestResultResponseInfo"; -import { SyntheticsTestResultRunType } from "./SyntheticsTestResultRunType"; -import { SyntheticsTestResultStatus } from "./SyntheticsTestResultStatus"; -import { SyntheticsTestResultStep } from "./SyntheticsTestResultStep"; -import { SyntheticsTestResultTrace } from "./SyntheticsTestResultTrace"; -import { SyntheticsTestResultTracerouteHop } from "./SyntheticsTestResultTracerouteHop"; -import { SyntheticsTestResultTurn } from "./SyntheticsTestResultTurn"; -import { SyntheticsTestResultVariables } from "./SyntheticsTestResultVariables"; - -/** - * Full result details for a Synthetic test execution. - */ -export class SyntheticsTestResultDetail { - /** - * Assertion results produced by the test. - */ - "assertions"?: Array; - /** - * Storage bucket keys for artifacts produced during a step or test. - */ - "bucketKeys"?: SyntheticsTestResultBucketKeys; - /** - * gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). - */ - "callType"?: string; - /** - * SSL/TLS certificate information returned from an SSL test. - */ - "cert"?: SyntheticsTestResultCertificate; - /** - * Compressed JSON descriptor for the test (internal format). - */ - "compressedJsonDescriptor"?: string; - /** - * Compressed representation of the test steps (internal format). - */ - "compressedSteps"?: string; - /** - * Outcome of the connection attempt (for example, `established`, `refused`). - */ - "connectionOutcome"?: string; - /** - * DNS resolution details recorded during the test execution. - */ - "dnsResolution"?: SyntheticsTestResultDnsResolution; - /** - * Duration of the test execution (in milliseconds). - */ - "duration"?: number; - /** - * Whether the test exited early because a step marked with `exitIfSucceed` passed. - */ - "exitedOnStepSuccess"?: boolean; - /** - * Details about the failure of a Synthetic test. - */ - "failure"?: SyntheticsTestResultFailure; - /** - * Timestamp of when the test finished (in milliseconds). - */ - "finishedAt"?: number; - /** - * Handshake request and response for protocol-level tests. - */ - "handshake"?: SyntheticsTestResultHandshake; - /** - * The unique identifier for this result. - */ - "id"?: string; - /** - * The initial result ID before any retries. - */ - "initialId"?: string; - /** - * Whether this result is from a fast retry. - */ - "isFastRetry"?: boolean; - /** - * Whether this result is from the last retry. - */ - "isLastRetry"?: boolean; - /** - * Network Path test result capturing the path between source and destination. - */ - "netpath"?: SyntheticsTestResultNetpath; - /** - * Aggregated network statistics from the test execution. - */ - "netstats"?: SyntheticsTestResultNetstats; - /** - * OCSP response received while validating a certificate. - */ - "ocsp"?: SyntheticsTestResultOCSPResponse; - /** - * A network probe result, used for traceroute hops and ping summaries. - */ - "ping"?: SyntheticsTestResultTracerouteHop; - /** - * Number of emails received during the test (email tests). - */ - "receivedEmailCount"?: number; - /** - * Message received from the target (for WebSocket/TCP/UDP tests). - */ - "receivedMessage"?: string; - /** - * Details of the outgoing request made during the test execution. - */ - "request"?: SyntheticsTestResultRequestInfo; - /** - * IP address resolved for the target host. - */ - "resolvedIp"?: string; - /** - * Details of the response received during the test execution. - */ - "response"?: SyntheticsTestResultResponseInfo; - /** - * The type of run for a Synthetic test result. - */ - "runType"?: SyntheticsTestResultRunType; - /** - * Message sent to the target (for WebSocket/TCP/UDP tests). - */ - "sentMessage"?: string; - /** - * Start URL for the test (browser tests). - */ - "startUrl"?: string; - /** - * Timestamp of when the test started (in milliseconds). - */ - "startedAt"?: number; - /** - * Status of a Synthetic test result. - */ - "status"?: SyntheticsTestResultStatus; - /** - * Step results (for browser, mobile, and multistep API tests). - */ - "steps"?: Array; - /** - * Time to interactive in milliseconds (browser tests). - */ - "timeToInteractive"?: number; - /** - * Timing breakdown of the test request phases (for example, DNS, TCP, TLS, first byte). - */ - "timings"?: { [key: string]: any }; - /** - * Trace identifiers associated with a Synthetic test result. - */ - "trace"?: SyntheticsTestResultTrace; - /** - * Traceroute hop results (for network tests). - */ - "traceroute"?: Array; - /** - * Timestamp of when the test was triggered (in milliseconds). - */ - "triggeredAt"?: number; - /** - * Whether the test was executed through a tunnel. - */ - "tunnel"?: boolean; - /** - * Turns executed by a goal-based browser test. - */ - "turns"?: Array; - /** - * Whether the test runner was unhealthy at the time of execution. - */ - "unhealthy"?: boolean; - /** - * Variables captured during a test step. - */ - "variables"?: SyntheticsTestResultVariables; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - assertions: { - baseName: "assertions", - type: "Array", - }, - bucketKeys: { - baseName: "bucket_keys", - type: "SyntheticsTestResultBucketKeys", - }, - callType: { - baseName: "call_type", - type: "string", - }, - cert: { - baseName: "cert", - type: "SyntheticsTestResultCertificate", - }, - compressedJsonDescriptor: { - baseName: "compressed_json_descriptor", - type: "string", - }, - compressedSteps: { - baseName: "compressed_steps", - type: "string", - }, - connectionOutcome: { - baseName: "connection_outcome", - type: "string", - }, - dnsResolution: { - baseName: "dns_resolution", - type: "SyntheticsTestResultDnsResolution", - }, - duration: { - baseName: "duration", - type: "number", - format: "double", - }, - exitedOnStepSuccess: { - baseName: "exited_on_step_success", - type: "boolean", - }, - failure: { - baseName: "failure", - type: "SyntheticsTestResultFailure", - }, - finishedAt: { - baseName: "finished_at", - type: "number", - format: "int64", - }, - handshake: { - baseName: "handshake", - type: "SyntheticsTestResultHandshake", - }, - id: { - baseName: "id", - type: "string", - }, - initialId: { - baseName: "initial_id", - type: "string", - }, - isFastRetry: { - baseName: "is_fast_retry", - type: "boolean", - }, - isLastRetry: { - baseName: "is_last_retry", - type: "boolean", - }, - netpath: { - baseName: "netpath", - type: "SyntheticsTestResultNetpath", - }, - netstats: { - baseName: "netstats", - type: "SyntheticsTestResultNetstats", - }, - ocsp: { - baseName: "ocsp", - type: "SyntheticsTestResultOCSPResponse", - }, - ping: { - baseName: "ping", - type: "SyntheticsTestResultTracerouteHop", - }, - receivedEmailCount: { - baseName: "received_email_count", - type: "number", - format: "int64", - }, - receivedMessage: { - baseName: "received_message", - type: "string", - }, - request: { - baseName: "request", - type: "SyntheticsTestResultRequestInfo", - }, - resolvedIp: { - baseName: "resolved_ip", - type: "string", - }, - response: { - baseName: "response", - type: "SyntheticsTestResultResponseInfo", - }, - runType: { - baseName: "run_type", - type: "SyntheticsTestResultRunType", - }, - sentMessage: { - baseName: "sent_message", - type: "string", - }, - startUrl: { - baseName: "start_url", - type: "string", - }, - startedAt: { - baseName: "started_at", - type: "number", - format: "int64", - }, - status: { - baseName: "status", - type: "SyntheticsTestResultStatus", - }, - steps: { - baseName: "steps", - type: "Array", - }, - timeToInteractive: { - baseName: "time_to_interactive", - type: "number", - format: "int64", - }, - timings: { - baseName: "timings", - type: "{ [key: string]: any; }", - }, - trace: { - baseName: "trace", - type: "SyntheticsTestResultTrace", - }, - traceroute: { - baseName: "traceroute", - type: "Array", - }, - triggeredAt: { - baseName: "triggered_at", - type: "number", - format: "int64", - }, - tunnel: { - baseName: "tunnel", - type: "boolean", - }, - turns: { - baseName: "turns", - type: "Array", - }, - unhealthy: { - baseName: "unhealthy", - type: "boolean", - }, - variables: { - baseName: "variables", - type: "SyntheticsTestResultVariables", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultDetail.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultDevice.ts b/services/synthetics/src/v2/models/SyntheticsTestResultDevice.ts deleted file mode 100644 index 35387a6fb46c..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultDevice.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultDeviceBrowser } from "./SyntheticsTestResultDeviceBrowser"; -import { SyntheticsTestResultDevicePlatform } from "./SyntheticsTestResultDevicePlatform"; -import { SyntheticsTestResultDeviceResolution } from "./SyntheticsTestResultDeviceResolution"; - -/** - * Device information for the test result (browser and mobile tests). - */ -export class SyntheticsTestResultDevice { - /** - * Browser information for the device used to run the test. - */ - "browser"?: SyntheticsTestResultDeviceBrowser; - /** - * Device identifier. - */ - "id"?: string; - /** - * Device name. - */ - "name"?: string; - /** - * Platform information for the device used to run the test. - */ - "platform"?: SyntheticsTestResultDevicePlatform; - /** - * Screen resolution of the device used to run the test. - */ - "resolution"?: SyntheticsTestResultDeviceResolution; - /** - * Device type. - */ - "type"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - browser: { - baseName: "browser", - type: "SyntheticsTestResultDeviceBrowser", - }, - id: { - baseName: "id", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - platform: { - baseName: "platform", - type: "SyntheticsTestResultDevicePlatform", - }, - resolution: { - baseName: "resolution", - type: "SyntheticsTestResultDeviceResolution", - }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultDevice.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultDeviceBrowser.ts b/services/synthetics/src/v2/models/SyntheticsTestResultDeviceBrowser.ts deleted file mode 100644 index 1f2034f05546..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultDeviceBrowser.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Browser information for the device used to run the test. - */ -export class SyntheticsTestResultDeviceBrowser { - /** - * Browser type (for example, `chrome`, `firefox`). - */ - "type"?: string; - /** - * User agent string reported by the browser. - */ - "userAgent"?: string; - /** - * Browser version. - */ - "version"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "string", - }, - userAgent: { - baseName: "user_agent", - type: "string", - }, - version: { - baseName: "version", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultDeviceBrowser.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultDeviceResolution.ts b/services/synthetics/src/v2/models/SyntheticsTestResultDeviceResolution.ts deleted file mode 100644 index 23bb2a785948..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultDeviceResolution.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Screen resolution of the device used to run the test. - */ -export class SyntheticsTestResultDeviceResolution { - /** - * Viewport height in pixels. - */ - "height"?: number; - /** - * Device pixel ratio. - */ - "pixelRatio"?: number; - /** - * Viewport width in pixels. - */ - "width"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - height: { - baseName: "height", - type: "number", - format: "int64", - }, - pixelRatio: { - baseName: "pixel_ratio", - type: "number", - format: "double", - }, - width: { - baseName: "width", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultDeviceResolution.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultDnsRecord.ts b/services/synthetics/src/v2/models/SyntheticsTestResultDnsRecord.ts deleted file mode 100644 index e325ce108a1a..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultDnsRecord.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * A DNS record returned in a DNS test response. - */ -export class SyntheticsTestResultDnsRecord { - /** - * DNS record type (for example, `A`, `AAAA`, `CNAME`). - */ - "type"?: string; - /** - * Values associated with the DNS record. - */ - "values"?: Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - type: { - baseName: "type", - type: "string", - }, - values: { - baseName: "values", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultDnsRecord.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultDnsResolution.ts b/services/synthetics/src/v2/models/SyntheticsTestResultDnsResolution.ts deleted file mode 100644 index 0ee653533bc1..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultDnsResolution.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * DNS resolution details recorded during the test execution. - */ -export class SyntheticsTestResultDnsResolution { - /** - * DNS resolution attempts made during the test. - */ - "attempts"?: Array<{ [key: string]: string }>; - /** - * Resolved IP address for the target host. - */ - "resolvedIp"?: string; - /** - * Resolved port for the target service. - */ - "resolvedPort"?: string; - /** - * DNS server used for the resolution. - */ - "server"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - attempts: { - baseName: "attempts", - type: "Array<{ [key: string]: string; }>", - }, - resolvedIp: { - baseName: "resolved_ip", - type: "string", - }, - resolvedPort: { - baseName: "resolved_port", - type: "string", - }, - server: { - baseName: "server", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultDnsResolution.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultDuration.ts b/services/synthetics/src/v2/models/SyntheticsTestResultDuration.ts deleted file mode 100644 index f8159d3f7019..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultDuration.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Total duration of a Synthetic test execution. - */ -export class SyntheticsTestResultDuration { - /** - * Whether a duration was recorded for this execution. - */ - "hasDuration"?: boolean; - /** - * Duration value in milliseconds. - */ - "value"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - hasDuration: { - baseName: "has_duration", - type: "boolean", - }, - value: { - baseName: "value", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultDuration.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultExecutionInfo.ts b/services/synthetics/src/v2/models/SyntheticsTestResultExecutionInfo.ts deleted file mode 100644 index c30c4ba18eee..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultExecutionInfo.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultDuration } from "./SyntheticsTestResultDuration"; - -/** - * Execution details for a Synthetic test result. - */ -export class SyntheticsTestResultExecutionInfo { - /** - * Total duration of a Synthetic test execution. - */ - "duration"?: SyntheticsTestResultDuration; - /** - * Error message if the execution encountered an issue. - */ - "errorMessage"?: string; - /** - * Whether this result is from a fast retry. - */ - "isFastRetry"?: boolean; - /** - * Timing breakdown of the test execution in milliseconds. - */ - "timings"?: { [key: string]: any }; - /** - * Whether the test was executed through a tunnel. - */ - "tunnel"?: boolean; - /** - * Whether the location was unhealthy during execution. - */ - "unhealthy"?: boolean; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - duration: { - baseName: "duration", - type: "SyntheticsTestResultDuration", - }, - errorMessage: { - baseName: "error_message", - type: "string", - }, - isFastRetry: { - baseName: "is_fast_retry", - type: "boolean", - }, - timings: { - baseName: "timings", - type: "{ [key: string]: any; }", - }, - tunnel: { - baseName: "tunnel", - type: "boolean", - }, - unhealthy: { - baseName: "unhealthy", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultExecutionInfo.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultFailure.ts b/services/synthetics/src/v2/models/SyntheticsTestResultFailure.ts deleted file mode 100644 index 766af1d80b29..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultFailure.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Details about the failure of a Synthetic test. - */ -export class SyntheticsTestResultFailure { - /** - * Error code for the failure. - */ - "code"?: string; - /** - * Internal error code used for debugging. - */ - "internalCode"?: string; - /** - * Internal error message used for debugging. - */ - "internalMessage"?: string; - /** - * Error message for the failure. - */ - "message"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - code: { - baseName: "code", - type: "string", - }, - internalCode: { - baseName: "internal_code", - type: "string", - }, - internalMessage: { - baseName: "internal_message", - type: "string", - }, - message: { - baseName: "message", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultFailure.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultFileRef.ts b/services/synthetics/src/v2/models/SyntheticsTestResultFileRef.ts deleted file mode 100644 index 6411dcab05bc..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultFileRef.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Reference to a file attached to a Synthetic test request. - */ -export class SyntheticsTestResultFileRef { - /** - * Storage bucket key where the file is stored. - */ - "bucketKey"?: string; - /** - * Encoding of the file contents. - */ - "encoding"?: string; - /** - * File name. - */ - "name"?: string; - /** - * File size in bytes. - */ - "size"?: number; - /** - * File MIME type. - */ - "type"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - bucketKey: { - baseName: "bucket_key", - type: "string", - }, - encoding: { - baseName: "encoding", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - size: { - baseName: "size", - type: "number", - format: "int64", - }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultFileRef.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultGit.ts b/services/synthetics/src/v2/models/SyntheticsTestResultGit.ts deleted file mode 100644 index ca325d86386c..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultGit.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultGitCommit } from "./SyntheticsTestResultGitCommit"; - -/** - * Git information associated with the test result. - */ -export class SyntheticsTestResultGit { - /** - * Git branch name. - */ - "branch"?: string; - /** - * Details of the Git commit associated with the test result. - */ - "commit"?: SyntheticsTestResultGitCommit; - /** - * Git repository URL. - */ - "repositoryUrl"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - branch: { - baseName: "branch", - type: "string", - }, - commit: { - baseName: "commit", - type: "SyntheticsTestResultGitCommit", - }, - repositoryUrl: { - baseName: "repository_url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultGit.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultGitCommit.ts b/services/synthetics/src/v2/models/SyntheticsTestResultGitCommit.ts deleted file mode 100644 index dda53c4d0c98..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultGitCommit.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultGitUser } from "./SyntheticsTestResultGitUser"; - -/** - * Details of the Git commit associated with the test result. - */ -export class SyntheticsTestResultGitCommit { - /** - * A Git user (author or committer). - */ - "author"?: SyntheticsTestResultGitUser; - /** - * A Git user (author or committer). - */ - "committer"?: SyntheticsTestResultGitUser; - /** - * Commit message. - */ - "message"?: string; - /** - * Commit SHA. - */ - "sha"?: string; - /** - * URL of the commit. - */ - "url"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - author: { - baseName: "author", - type: "SyntheticsTestResultGitUser", - }, - committer: { - baseName: "committer", - type: "SyntheticsTestResultGitUser", - }, - message: { - baseName: "message", - type: "string", - }, - sha: { - baseName: "sha", - type: "string", - }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultGitCommit.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultGitUser.ts b/services/synthetics/src/v2/models/SyntheticsTestResultGitUser.ts deleted file mode 100644 index 038956ab60b6..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultGitUser.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * A Git user (author or committer). - */ -export class SyntheticsTestResultGitUser { - /** - * Timestamp of the commit action for this user. - */ - "date"?: string; - /** - * Email address of the Git user. - */ - "email"?: string; - /** - * Name of the Git user. - */ - "name"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - date: { - baseName: "date", - type: "string", - }, - email: { - baseName: "email", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultGitUser.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultHandshake.ts b/services/synthetics/src/v2/models/SyntheticsTestResultHandshake.ts deleted file mode 100644 index d27c9875194b..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultHandshake.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultRequestInfo } from "./SyntheticsTestResultRequestInfo"; -import { SyntheticsTestResultResponseInfo } from "./SyntheticsTestResultResponseInfo"; - -/** - * Handshake request and response for protocol-level tests. - */ -export class SyntheticsTestResultHandshake { - /** - * Details of the outgoing request made during the test execution. - */ - "request"?: SyntheticsTestResultRequestInfo; - /** - * Details of the response received during the test execution. - */ - "response"?: SyntheticsTestResultResponseInfo; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - request: { - baseName: "request", - type: "SyntheticsTestResultRequestInfo", - }, - response: { - baseName: "response", - type: "SyntheticsTestResultResponseInfo", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultHandshake.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultHealthCheck.ts b/services/synthetics/src/v2/models/SyntheticsTestResultHealthCheck.ts deleted file mode 100644 index 6b41b329f588..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultHealthCheck.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Health check information returned from a gRPC health check call. - */ -export class SyntheticsTestResultHealthCheck { - /** - * Raw health check message payload. - */ - "message"?: { [key: string]: string }; - /** - * Health check status code. - */ - "status"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - message: { - baseName: "message", - type: "{ [key: string]: string; }", - }, - status: { - baseName: "status", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultHealthCheck.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultIncludedItem.ts b/services/synthetics/src/v2/models/SyntheticsTestResultIncludedItem.ts deleted file mode 100644 index c160693b9a0c..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultIncludedItem.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * An included related resource. - */ -export class SyntheticsTestResultIncludedItem { - /** - * Attributes of the included resource. - */ - "attributes"?: { [key: string]: any }; - /** - * ID of the included resource. - */ - "id"?: string; - /** - * Type of the included resource. - */ - "type"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "{ [key: string]: any; }", - }, - id: { - baseName: "id", - type: "string", - }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultIncludedItem.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultNetpath.ts b/services/synthetics/src/v2/models/SyntheticsTestResultNetpath.ts deleted file mode 100644 index 0da39339836d..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultNetpath.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultNetpathDestination } from "./SyntheticsTestResultNetpathDestination"; -import { SyntheticsTestResultNetpathEndpoint } from "./SyntheticsTestResultNetpathEndpoint"; -import { SyntheticsTestResultNetpathHop } from "./SyntheticsTestResultNetpathHop"; - -/** - * Network Path test result capturing the path between source and destination. - */ -export class SyntheticsTestResultNetpath { - /** - * Destination endpoint of a network path measurement. - */ - "destination"?: SyntheticsTestResultNetpathDestination; - /** - * Hops along the network path. - */ - "hops"?: Array; - /** - * Origin of the network path (for example, probe source). - */ - "origin"?: string; - /** - * Identifier of the path trace. - */ - "pathtraceId"?: string; - /** - * Protocol used for the path trace (for example, `tcp`, `udp`, `icmp`). - */ - "protocol"?: string; - /** - * Source endpoint of a network path measurement. - */ - "source"?: SyntheticsTestResultNetpathEndpoint; - /** - * Tags associated with the network path measurement. - */ - "tags"?: Array; - /** - * Unix timestamp (ms) of the network path measurement. - */ - "timestamp"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - destination: { - baseName: "destination", - type: "SyntheticsTestResultNetpathDestination", - }, - hops: { - baseName: "hops", - type: "Array", - }, - origin: { - baseName: "origin", - type: "string", - }, - pathtraceId: { - baseName: "pathtrace_id", - type: "string", - }, - protocol: { - baseName: "protocol", - type: "string", - }, - source: { - baseName: "source", - type: "SyntheticsTestResultNetpathEndpoint", - }, - tags: { - baseName: "tags", - type: "Array", - }, - timestamp: { - baseName: "timestamp", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultNetpath.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultNetpathDestination.ts b/services/synthetics/src/v2/models/SyntheticsTestResultNetpathDestination.ts deleted file mode 100644 index 06c4871dc667..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultNetpathDestination.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Destination endpoint of a network path measurement. - */ -export class SyntheticsTestResultNetpathDestination { - /** - * Hostname of the destination. - */ - "hostname"?: string; - /** - * IP address of the destination. - */ - "ipAddress"?: string; - /** - * Port of the destination service. - */ - "port"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - hostname: { - baseName: "hostname", - type: "string", - }, - ipAddress: { - baseName: "ip_address", - type: "string", - }, - port: { - baseName: "port", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultNetpathDestination.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultNetpathEndpoint.ts b/services/synthetics/src/v2/models/SyntheticsTestResultNetpathEndpoint.ts deleted file mode 100644 index 126f597f1d78..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultNetpathEndpoint.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Source endpoint of a network path measurement. - */ -export class SyntheticsTestResultNetpathEndpoint { - /** - * Hostname of the endpoint. - */ - "hostname"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - hostname: { - baseName: "hostname", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultNetpathEndpoint.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultNetpathHop.ts b/services/synthetics/src/v2/models/SyntheticsTestResultNetpathHop.ts deleted file mode 100644 index e04787cbe813..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultNetpathHop.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * A single hop along a network path. - */ -export class SyntheticsTestResultNetpathHop { - /** - * Resolved hostname of the hop. - */ - "hostname"?: string; - /** - * IP address of the hop. - */ - "ipAddress"?: string; - /** - * Whether this hop was reachable. - */ - "reachable"?: boolean; - /** - * Round-trip time to this hop in milliseconds. - */ - "rtt"?: number; - /** - * Time-to-live value of the probe packet at this hop. - */ - "ttl"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - hostname: { - baseName: "hostname", - type: "string", - }, - ipAddress: { - baseName: "ip_address", - type: "string", - }, - reachable: { - baseName: "reachable", - type: "boolean", - }, - rtt: { - baseName: "rtt", - type: "number", - format: "double", - }, - ttl: { - baseName: "ttl", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultNetpathHop.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultNetstats.ts b/services/synthetics/src/v2/models/SyntheticsTestResultNetstats.ts deleted file mode 100644 index 2d2db2fdc06a..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultNetstats.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultNetstatsHops } from "./SyntheticsTestResultNetstatsHops"; -import { SyntheticsTestResultNetworkLatency } from "./SyntheticsTestResultNetworkLatency"; - -/** - * Aggregated network statistics from the test execution. - */ -export class SyntheticsTestResultNetstats { - /** - * Statistics about the number of hops for a network test. - */ - "hops"?: SyntheticsTestResultNetstatsHops; - /** - * Network jitter in milliseconds. - */ - "jitter"?: number; - /** - * Latency statistics for a network probe. - */ - "latency"?: SyntheticsTestResultNetworkLatency; - /** - * Percentage of probe packets lost. - */ - "packetLossPercentage"?: number; - /** - * Number of probe packets received. - */ - "packetsReceived"?: number; - /** - * Number of probe packets sent. - */ - "packetsSent"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - hops: { - baseName: "hops", - type: "SyntheticsTestResultNetstatsHops", - }, - jitter: { - baseName: "jitter", - type: "number", - format: "double", - }, - latency: { - baseName: "latency", - type: "SyntheticsTestResultNetworkLatency", - }, - packetLossPercentage: { - baseName: "packet_loss_percentage", - type: "number", - format: "double", - }, - packetsReceived: { - baseName: "packets_received", - type: "number", - format: "int64", - }, - packetsSent: { - baseName: "packets_sent", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultNetstats.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultNetstatsHops.ts b/services/synthetics/src/v2/models/SyntheticsTestResultNetstatsHops.ts deleted file mode 100644 index d1715b2daa65..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultNetstatsHops.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Statistics about the number of hops for a network test. - */ -export class SyntheticsTestResultNetstatsHops { - /** - * Average number of hops. - */ - "avg"?: number; - /** - * Maximum number of hops. - */ - "max"?: number; - /** - * Minimum number of hops. - */ - "min"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - avg: { - baseName: "avg", - type: "number", - format: "double", - }, - max: { - baseName: "max", - type: "number", - format: "int64", - }, - min: { - baseName: "min", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultNetstatsHops.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultNetworkLatency.ts b/services/synthetics/src/v2/models/SyntheticsTestResultNetworkLatency.ts deleted file mode 100644 index 46d82ab1f06c..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultNetworkLatency.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Latency statistics for a network probe. - */ -export class SyntheticsTestResultNetworkLatency { - /** - * Average latency in milliseconds. - */ - "avg"?: number; - /** - * Maximum latency in milliseconds. - */ - "max"?: number; - /** - * Minimum latency in milliseconds. - */ - "min"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - avg: { - baseName: "avg", - type: "number", - format: "double", - }, - max: { - baseName: "max", - type: "number", - format: "double", - }, - min: { - baseName: "min", - type: "number", - format: "double", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultNetworkLatency.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultOCSPCertificate.ts b/services/synthetics/src/v2/models/SyntheticsTestResultOCSPCertificate.ts deleted file mode 100644 index 8cbc0146fef7..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultOCSPCertificate.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Certificate details returned in an OCSP response. - */ -export class SyntheticsTestResultOCSPCertificate { - /** - * Reason code for the revocation, when applicable. - */ - "revocationReason"?: string; - /** - * Unix timestamp (ms) of the revocation. - */ - "revocationTime"?: number; - /** - * Serial number of the certificate. - */ - "serialNumber"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - revocationReason: { - baseName: "revocation_reason", - type: "string", - }, - revocationTime: { - baseName: "revocation_time", - type: "number", - format: "int64", - }, - serialNumber: { - baseName: "serial_number", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultOCSPCertificate.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultOCSPResponse.ts b/services/synthetics/src/v2/models/SyntheticsTestResultOCSPResponse.ts deleted file mode 100644 index 7a60c5538b16..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultOCSPResponse.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultOCSPCertificate } from "./SyntheticsTestResultOCSPCertificate"; -import { SyntheticsTestResultOCSPUpdates } from "./SyntheticsTestResultOCSPUpdates"; - -/** - * OCSP response received while validating a certificate. - */ -export class SyntheticsTestResultOCSPResponse { - /** - * Certificate details returned in an OCSP response. - */ - "certificate"?: SyntheticsTestResultOCSPCertificate; - /** - * OCSP response status (for example, `good`, `revoked`, `unknown`). - */ - "status"?: string; - /** - * OCSP response update timestamps. - */ - "updates"?: SyntheticsTestResultOCSPUpdates; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - certificate: { - baseName: "certificate", - type: "SyntheticsTestResultOCSPCertificate", - }, - status: { - baseName: "status", - type: "string", - }, - updates: { - baseName: "updates", - type: "SyntheticsTestResultOCSPUpdates", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultOCSPResponse.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultOCSPUpdates.ts b/services/synthetics/src/v2/models/SyntheticsTestResultOCSPUpdates.ts deleted file mode 100644 index 16fc2cd57256..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultOCSPUpdates.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * OCSP response update timestamps. - */ -export class SyntheticsTestResultOCSPUpdates { - /** - * Unix timestamp (ms) of the next expected OCSP update. - */ - "nextUpdate"?: number; - /** - * Unix timestamp (ms) of when the OCSP response was produced. - */ - "producedAt"?: number; - /** - * Unix timestamp (ms) of this OCSP update. - */ - "thisUpdate"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - nextUpdate: { - baseName: "next_update", - type: "number", - format: "int64", - }, - producedAt: { - baseName: "produced_at", - type: "number", - format: "int64", - }, - thisUpdate: { - baseName: "this_update", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultOCSPUpdates.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultParentStep.ts b/services/synthetics/src/v2/models/SyntheticsTestResultParentStep.ts deleted file mode 100644 index a2dbf9e39fc6..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultParentStep.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Reference to the parent step of a sub-step. - */ -export class SyntheticsTestResultParentStep { - /** - * Identifier of the parent step. - */ - "id"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultParentStep.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultParentTest.ts b/services/synthetics/src/v2/models/SyntheticsTestResultParentTest.ts deleted file mode 100644 index b89e7bc3f03a..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultParentTest.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Reference to the parent test of a sub-step. - */ -export class SyntheticsTestResultParentTest { - /** - * Identifier of the parent test. - */ - "id"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultParentTest.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultRedirect.ts b/services/synthetics/src/v2/models/SyntheticsTestResultRedirect.ts deleted file mode 100644 index 1fb45730dc8e..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultRedirect.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * A redirect hop encountered while performing the request. - */ -export class SyntheticsTestResultRedirect { - /** - * Target location of the redirect. - */ - "location"?: string; - /** - * HTTP status code of the redirect response. - */ - "statusCode"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - location: { - baseName: "location", - type: "string", - }, - statusCode: { - baseName: "status_code", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultRedirect.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultRelationshipTest.ts b/services/synthetics/src/v2/models/SyntheticsTestResultRelationshipTest.ts deleted file mode 100644 index ecb5319e3d7b..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultRelationshipTest.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultRelationshipTestData } from "./SyntheticsTestResultRelationshipTestData"; - -/** - * Relationship to the Synthetic test. - */ -export class SyntheticsTestResultRelationshipTest { - /** - * Data for the test relationship. - */ - "data"?: SyntheticsTestResultRelationshipTestData; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SyntheticsTestResultRelationshipTestData", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultRelationshipTest.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultRelationships.ts b/services/synthetics/src/v2/models/SyntheticsTestResultRelationships.ts deleted file mode 100644 index 00d6d6cd7e13..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultRelationships.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultRelationshipTest } from "./SyntheticsTestResultRelationshipTest"; - -/** - * Relationships for a Synthetic test result. - */ -export class SyntheticsTestResultRelationships { - /** - * Relationship to the Synthetic test. - */ - "test"?: SyntheticsTestResultRelationshipTest; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - test: { - baseName: "test", - type: "SyntheticsTestResultRelationshipTest", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultRelationships.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultRequestInfo.ts b/services/synthetics/src/v2/models/SyntheticsTestResultRequestInfo.ts deleted file mode 100644 index 0284fbcfcc4a..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultRequestInfo.ts +++ /dev/null @@ -1,211 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultFileRef } from "./SyntheticsTestResultFileRef"; - -/** - * Details of the outgoing request made during the test execution. - */ -export class SyntheticsTestResultRequestInfo { - /** - * Whether insecure certificates are allowed for this request. - */ - "allowInsecure"?: boolean; - /** - * Body sent with the request. - */ - "body"?: string; - /** - * gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). - */ - "callType"?: string; - /** - * Destination service for a Network Path test. - */ - "destinationService"?: string; - /** - * DNS server used to resolve the target host. - */ - "dnsServer"?: string; - /** - * Port of the DNS server used for resolution. - */ - "dnsServerPort"?: number; - /** - * Number of end-to-end probe queries issued. - */ - "e2eQueries"?: number; - /** - * Files attached to the request. - */ - "files"?: Array; - /** - * Headers sent with the request. - */ - "headers"?: { [key: string]: any }; - /** - * Host targeted by the request. - */ - "host"?: string; - /** - * Maximum TTL for network probe packets. - */ - "maxTtl"?: number; - /** - * Message sent with the request (for WebSocket/TCP/UDP tests). - */ - "message"?: string; - /** - * HTTP method used for the request. - */ - "method"?: string; - /** - * Whether the response body was not saved. - */ - "noSavingResponseBody"?: boolean; - /** - * Port targeted by the request. Can be a number or a string variable reference. - */ - "port"?: any; - /** - * Service name targeted by the request (for gRPC tests). - */ - "service"?: string; - /** - * Source service for a Network Path test. - */ - "sourceService"?: string; - /** - * Request timeout in milliseconds. - */ - "timeout"?: number; - /** - * Name of the MCP tool called (MCP tests only). - */ - "toolName"?: string; - /** - * Number of traceroute probe queries issued. - */ - "tracerouteQueries"?: number; - /** - * URL targeted by the request. - */ - "url"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - allowInsecure: { - baseName: "allow_insecure", - type: "boolean", - }, - body: { - baseName: "body", - type: "string", - }, - callType: { - baseName: "call_type", - type: "string", - }, - destinationService: { - baseName: "destination_service", - type: "string", - }, - dnsServer: { - baseName: "dns_server", - type: "string", - }, - dnsServerPort: { - baseName: "dns_server_port", - type: "number", - format: "int64", - }, - e2eQueries: { - baseName: "e2e_queries", - type: "number", - format: "int64", - }, - files: { - baseName: "files", - type: "Array", - }, - headers: { - baseName: "headers", - type: "{ [key: string]: any; }", - }, - host: { - baseName: "host", - type: "string", - }, - maxTtl: { - baseName: "max_ttl", - type: "number", - format: "int64", - }, - message: { - baseName: "message", - type: "string", - }, - method: { - baseName: "method", - type: "string", - }, - noSavingResponseBody: { - baseName: "no_saving_response_body", - type: "boolean", - }, - port: { - baseName: "port", - type: "any", - }, - service: { - baseName: "service", - type: "string", - }, - sourceService: { - baseName: "source_service", - type: "string", - }, - timeout: { - baseName: "timeout", - type: "number", - format: "int64", - }, - toolName: { - baseName: "tool_name", - type: "string", - }, - tracerouteQueries: { - baseName: "traceroute_queries", - type: "number", - format: "int64", - }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultRequestInfo.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultResponse.ts b/services/synthetics/src/v2/models/SyntheticsTestResultResponse.ts deleted file mode 100644 index d7db9e88373f..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultResponse.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultData } from "./SyntheticsTestResultData"; -import { SyntheticsTestResultIncludedItem } from "./SyntheticsTestResultIncludedItem"; - -/** - * Response object for a Synthetic test result. - */ -export class SyntheticsTestResultResponse { - /** - * Wrapper object for a Synthetic test result. - */ - "data"?: SyntheticsTestResultData; - /** - * Array of included related resources, such as the test definition. - */ - "included"?: Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - data: { - baseName: "data", - type: "SyntheticsTestResultData", - }, - included: { - baseName: "included", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultResponse.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultResponseInfo.ts b/services/synthetics/src/v2/models/SyntheticsTestResultResponseInfo.ts deleted file mode 100644 index f89dbc343b2c..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultResponseInfo.ts +++ /dev/null @@ -1,188 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultCdnProviderInfo } from "./SyntheticsTestResultCdnProviderInfo"; -import { SyntheticsTestResultDnsRecord } from "./SyntheticsTestResultDnsRecord"; -import { SyntheticsTestResultHealthCheck } from "./SyntheticsTestResultHealthCheck"; -import { SyntheticsTestResultRedirect } from "./SyntheticsTestResultRedirect"; -import { SyntheticsTestResultWebSocketClose } from "./SyntheticsTestResultWebSocketClose"; - -/** - * Details of the response received during the test execution. - */ -export class SyntheticsTestResultResponseInfo { - /** - * Body of the response. - */ - "body"?: string; - /** - * Compressed representation of the response body. - */ - "bodyCompressed"?: string; - /** - * Hashes computed over the response body. - */ - "bodyHashes"?: string; - /** - * Size of the response body in bytes. - */ - "bodySize"?: number; - /** - * Cache-related response headers. - */ - "cacheHeaders"?: { [key: string]: string }; - /** - * CDN provider details inferred from response headers. - */ - "cdn"?: SyntheticsTestResultCdnProviderInfo; - /** - * WebSocket close frame information for WebSocket test responses. - */ - "close"?: SyntheticsTestResultWebSocketClose; - /** - * Compressed representation of the response message. - */ - "compressedMessage"?: string; - /** - * Response headers. - */ - "headers"?: { [key: string]: any }; - /** - * Health check information returned from a gRPC health check call. - */ - "healthcheck"?: SyntheticsTestResultHealthCheck; - /** - * HTTP version of the response. - */ - "httpVersion"?: string; - /** - * Whether the response body was truncated. - */ - "isBodyTruncated"?: boolean; - /** - * Whether the response message was truncated. - */ - "isMessageTruncated"?: boolean; - /** - * Message received in the response (for WebSocket/TCP/UDP tests). - */ - "message"?: string; - /** - * Additional metadata returned with the response. - */ - "metadata"?: { [key: string]: string }; - /** - * DNS records returned in the response (DNS tests only). - */ - "records"?: Array; - /** - * Redirect hops encountered while performing the request. - */ - "redirects"?: Array; - /** - * HTTP status code of the response. - */ - "statusCode"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - body: { - baseName: "body", - type: "string", - }, - bodyCompressed: { - baseName: "body_compressed", - type: "string", - }, - bodyHashes: { - baseName: "body_hashes", - type: "string", - }, - bodySize: { - baseName: "body_size", - type: "number", - format: "int64", - }, - cacheHeaders: { - baseName: "cache_headers", - type: "{ [key: string]: string; }", - }, - cdn: { - baseName: "cdn", - type: "SyntheticsTestResultCdnProviderInfo", - }, - close: { - baseName: "close", - type: "SyntheticsTestResultWebSocketClose", - }, - compressedMessage: { - baseName: "compressed_message", - type: "string", - }, - headers: { - baseName: "headers", - type: "{ [key: string]: any; }", - }, - healthcheck: { - baseName: "healthcheck", - type: "SyntheticsTestResultHealthCheck", - }, - httpVersion: { - baseName: "http_version", - type: "string", - }, - isBodyTruncated: { - baseName: "is_body_truncated", - type: "boolean", - }, - isMessageTruncated: { - baseName: "is_message_truncated", - type: "boolean", - }, - message: { - baseName: "message", - type: "string", - }, - metadata: { - baseName: "metadata", - type: "{ [key: string]: string; }", - }, - records: { - baseName: "records", - type: "Array", - }, - redirects: { - baseName: "redirects", - type: "Array", - }, - statusCode: { - baseName: "status_code", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultResponseInfo.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultRouter.ts b/services/synthetics/src/v2/models/SyntheticsTestResultRouter.ts deleted file mode 100644 index e8ffebe85947..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultRouter.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * A router along the traceroute path. - */ -export class SyntheticsTestResultRouter { - /** - * IP address of the router. - */ - "ip"?: string; - /** - * Resolved hostname of the router. - */ - "resolvedHost"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - ip: { - baseName: "ip", - type: "string", - }, - resolvedHost: { - baseName: "resolved_host", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultRouter.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultRumContext.ts b/services/synthetics/src/v2/models/SyntheticsTestResultRumContext.ts deleted file mode 100644 index 3d8dec9a7b9e..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultRumContext.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * RUM application context associated with a step or sub-test. - */ -export class SyntheticsTestResultRumContext { - /** - * RUM application identifier. - */ - "applicationId"?: string; - /** - * RUM session identifier. - */ - "sessionId"?: string; - /** - * RUM view identifier. - */ - "viewId"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - applicationId: { - baseName: "application_id", - type: "string", - }, - sessionId: { - baseName: "session_id", - type: "string", - }, - viewId: { - baseName: "view_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultRumContext.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultRunType.ts b/services/synthetics/src/v2/models/SyntheticsTestResultRunType.ts deleted file mode 100644 index 86c7aac86333..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultRunType.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * The type of run for a Synthetic test result. - */ -export type SyntheticsTestResultRunType = - | typeof SCHEDULED - | typeof FAST - | typeof CI - | typeof TRIGGERED - | UnparsedObject; -export const SCHEDULED = "scheduled"; -export const FAST = "fast"; -export const CI = "ci"; -export const TRIGGERED = "triggered"; diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultStatus.ts b/services/synthetics/src/v2/models/SyntheticsTestResultStatus.ts deleted file mode 100644 index f5c81f086b4d..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultStatus.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * Status of a Synthetic test result. - */ -export type SyntheticsTestResultStatus = - | typeof PASSED - | typeof FAILED - | typeof NO_DATA - | UnparsedObject; -export const PASSED = "passed"; -export const FAILED = "failed"; -export const NO_DATA = "no_data"; diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultStep.ts b/services/synthetics/src/v2/models/SyntheticsTestResultStep.ts deleted file mode 100644 index e33509e18cec..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultStep.ts +++ /dev/null @@ -1,403 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultAssertionResult } from "./SyntheticsTestResultAssertionResult"; -import { SyntheticsTestResultBounds } from "./SyntheticsTestResultBounds"; -import { SyntheticsTestResultBrowserError } from "./SyntheticsTestResultBrowserError"; -import { SyntheticsTestResultBucketKeys } from "./SyntheticsTestResultBucketKeys"; -import { SyntheticsTestResultCdnResource } from "./SyntheticsTestResultCdnResource"; -import { SyntheticsTestResultFailure } from "./SyntheticsTestResultFailure"; -import { SyntheticsTestResultRequestInfo } from "./SyntheticsTestResultRequestInfo"; -import { SyntheticsTestResultResponseInfo } from "./SyntheticsTestResultResponseInfo"; -import { SyntheticsTestResultRumContext } from "./SyntheticsTestResultRumContext"; -import { SyntheticsTestResultStepAssertionResult } from "./SyntheticsTestResultStepAssertionResult"; -import { SyntheticsTestResultStepElementUpdates } from "./SyntheticsTestResultStepElementUpdates"; -import { SyntheticsTestResultSubStep } from "./SyntheticsTestResultSubStep"; -import { SyntheticsTestResultSubTest } from "./SyntheticsTestResultSubTest"; -import { SyntheticsTestResultTab } from "./SyntheticsTestResultTab"; -import { SyntheticsTestResultVariable } from "./SyntheticsTestResultVariable"; -import { SyntheticsTestResultVariables } from "./SyntheticsTestResultVariables"; -import { SyntheticsTestResultVitalsMetrics } from "./SyntheticsTestResultVitalsMetrics"; -import { SyntheticsTestResultWarning } from "./SyntheticsTestResultWarning"; - -/** - * A step result from a browser, mobile, or multistep API test. - */ -export class SyntheticsTestResultStep { - /** - * Whether the test continues when this step fails. - */ - "allowFailure"?: boolean; - /** - * Inner API test definition for browser `runApiTest` steps. - */ - "apiTest"?: { [key: string]: any }; - /** - * Assertion result for a browser or mobile step. - */ - "assertionResult"?: SyntheticsTestResultStepAssertionResult; - /** - * Assertion results produced by the step. - */ - "assertions"?: Array; - /** - * URLs of requests blocked during the step. - */ - "blockedRequestsUrls"?: Array; - /** - * Bounding box of an element on the page. - */ - "bounds"?: SyntheticsTestResultBounds; - /** - * Browser errors captured during the step. - */ - "browserErrors"?: Array; - /** - * Storage bucket keys for artifacts produced during a step or test. - */ - "bucketKeys"?: SyntheticsTestResultBucketKeys; - /** - * CDN resources encountered during the step. - */ - "cdnResources"?: Array; - /** - * Click type performed in a browser step. - */ - "clickType"?: string; - /** - * Compressed JSON descriptor for the step (internal format). - */ - "compressedJsonDescriptor"?: string; - /** - * Request configuration executed by this step (API test steps). - */ - "config"?: { [key: string]: any }; - /** - * Human-readable description of the step. - */ - "description"?: string; - /** - * Duration of the step in milliseconds. - */ - "duration"?: number; - /** - * Description of the element interacted with by the step. - */ - "elementDescription"?: string; - /** - * Element locator updates produced during a step. - */ - "elementUpdates"?: SyntheticsTestResultStepElementUpdates; - /** - * A variable used or extracted during a test. - */ - "extractedValue"?: SyntheticsTestResultVariable; - /** - * Details about the failure of a Synthetic test. - */ - "failure"?: SyntheticsTestResultFailure; - /** - * HTTP results produced by an MCP step. - */ - "httpResults"?: Array; - /** - * Identifier of the step. - */ - "id"?: string; - /** - * Whether this step is critical for the test outcome. - */ - "isCritical"?: boolean; - /** - * Whether the step uses a custom JavaScript assertion. - */ - "javascriptCustomAssertionCode"?: boolean; - /** - * Time taken to locate the element in milliseconds. - */ - "locateElementDuration"?: number; - /** - * Name of the step. - */ - "name"?: string; - /** - * Details of the outgoing request made during the test execution. - */ - "request"?: SyntheticsTestResultRequestInfo; - /** - * Details of the response received during the test execution. - */ - "response"?: SyntheticsTestResultResponseInfo; - /** - * Retry results for the step. - */ - "retries"?: Array; - /** - * Number of times this step was retried. - */ - "retryCount"?: number; - /** - * RUM application context associated with a step or sub-test. - */ - "rumContext"?: SyntheticsTestResultRumContext; - /** - * Unix timestamp (ms) of when the step started. - */ - "startedAt"?: number; - /** - * Status of the step (for example, `passed`, `failed`). - */ - "status"?: string; - /** - * Information about a sub-step in a nested test execution. - */ - "subStep"?: SyntheticsTestResultSubStep; - /** - * Information about a sub-test played from a parent browser test. - */ - "subTest"?: SyntheticsTestResultSubTest; - /** - * Subtype of the step. - */ - "subtype"?: string; - /** - * Browser tabs involved in the step. - */ - "tabs"?: Array; - /** - * Timing breakdown of the step execution. - */ - "timings"?: { [key: string]: any }; - /** - * Whether the step was executed through a Synthetics tunnel. - */ - "tunnel"?: boolean; - /** - * Type of the step (for example, `click`, `assertElementContent`, `runApiTest`). - */ - "type"?: string; - /** - * URL associated with the step (for navigation steps). - */ - "url"?: string; - /** - * Step value. Its type depends on the step type. - */ - "value"?: any; - /** - * Variables captured during a test step. - */ - "variables"?: SyntheticsTestResultVariables; - /** - * Web vitals metrics captured during the step. - */ - "vitalsMetrics"?: Array; - /** - * Warnings emitted during the step. - */ - "warnings"?: Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - allowFailure: { - baseName: "allow_failure", - type: "boolean", - }, - apiTest: { - baseName: "api_test", - type: "{ [key: string]: any; }", - }, - assertionResult: { - baseName: "assertion_result", - type: "SyntheticsTestResultStepAssertionResult", - }, - assertions: { - baseName: "assertions", - type: "Array", - }, - blockedRequestsUrls: { - baseName: "blocked_requests_urls", - type: "Array", - }, - bounds: { - baseName: "bounds", - type: "SyntheticsTestResultBounds", - }, - browserErrors: { - baseName: "browser_errors", - type: "Array", - }, - bucketKeys: { - baseName: "bucket_keys", - type: "SyntheticsTestResultBucketKeys", - }, - cdnResources: { - baseName: "cdn_resources", - type: "Array", - }, - clickType: { - baseName: "click_type", - type: "string", - }, - compressedJsonDescriptor: { - baseName: "compressed_json_descriptor", - type: "string", - }, - config: { - baseName: "config", - type: "{ [key: string]: any; }", - }, - description: { - baseName: "description", - type: "string", - }, - duration: { - baseName: "duration", - type: "number", - format: "double", - }, - elementDescription: { - baseName: "element_description", - type: "string", - }, - elementUpdates: { - baseName: "element_updates", - type: "SyntheticsTestResultStepElementUpdates", - }, - extractedValue: { - baseName: "extracted_value", - type: "SyntheticsTestResultVariable", - }, - failure: { - baseName: "failure", - type: "SyntheticsTestResultFailure", - }, - httpResults: { - baseName: "http_results", - type: "Array", - }, - id: { - baseName: "id", - type: "string", - }, - isCritical: { - baseName: "is_critical", - type: "boolean", - }, - javascriptCustomAssertionCode: { - baseName: "javascript_custom_assertion_code", - type: "boolean", - }, - locateElementDuration: { - baseName: "locate_element_duration", - type: "number", - format: "double", - }, - name: { - baseName: "name", - type: "string", - }, - request: { - baseName: "request", - type: "SyntheticsTestResultRequestInfo", - }, - response: { - baseName: "response", - type: "SyntheticsTestResultResponseInfo", - }, - retries: { - baseName: "retries", - type: "Array", - }, - retryCount: { - baseName: "retry_count", - type: "number", - format: "int64", - }, - rumContext: { - baseName: "rum_context", - type: "SyntheticsTestResultRumContext", - }, - startedAt: { - baseName: "started_at", - type: "number", - format: "int64", - }, - status: { - baseName: "status", - type: "string", - }, - subStep: { - baseName: "sub_step", - type: "SyntheticsTestResultSubStep", - }, - subTest: { - baseName: "sub_test", - type: "SyntheticsTestResultSubTest", - }, - subtype: { - baseName: "subtype", - type: "string", - }, - tabs: { - baseName: "tabs", - type: "Array", - }, - timings: { - baseName: "timings", - type: "{ [key: string]: any; }", - }, - tunnel: { - baseName: "tunnel", - type: "boolean", - }, - type: { - baseName: "type", - type: "string", - }, - url: { - baseName: "url", - type: "string", - }, - value: { - baseName: "value", - type: "any", - }, - variables: { - baseName: "variables", - type: "SyntheticsTestResultVariables", - }, - vitalsMetrics: { - baseName: "vitals_metrics", - type: "Array", - }, - warnings: { - baseName: "warnings", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultStep.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultStepAssertionResult.ts b/services/synthetics/src/v2/models/SyntheticsTestResultStepAssertionResult.ts deleted file mode 100644 index 7af3b1ee1594..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultStepAssertionResult.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Assertion result for a browser or mobile step. - */ -export class SyntheticsTestResultStepAssertionResult { - /** - * Actual value observed during the step assertion. Its type depends on the check type. - */ - "actual"?: any; - /** - * Type of the step assertion check. - */ - "checkType"?: string; - /** - * Expected value for the step assertion. Its type depends on the check type. - */ - "expected"?: any; - /** - * Whether the assertion involves secure variables. - */ - "hasSecureVariables"?: boolean; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - actual: { - baseName: "actual", - type: "any", - }, - checkType: { - baseName: "check_type", - type: "string", - }, - expected: { - baseName: "expected", - type: "any", - }, - hasSecureVariables: { - baseName: "has_secure_variables", - type: "boolean", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultStepAssertionResult.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultStepElementUpdates.ts b/services/synthetics/src/v2/models/SyntheticsTestResultStepElementUpdates.ts deleted file mode 100644 index d8aed1458af5..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultStepElementUpdates.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Element locator updates produced during a step. - */ -export class SyntheticsTestResultStepElementUpdates { - /** - * Updated multi-locator definition. - */ - "multiLocator"?: { [key: string]: string }; - /** - * Updated outer HTML of the targeted element. - */ - "targetOuterHtml"?: string; - /** - * Version of the element locator definition. - */ - "version"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - multiLocator: { - baseName: "multi_locator", - type: "{ [key: string]: string; }", - }, - targetOuterHtml: { - baseName: "target_outer_html", - type: "string", - }, - version: { - baseName: "version", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultStepElementUpdates.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultStepsInfo.ts b/services/synthetics/src/v2/models/SyntheticsTestResultStepsInfo.ts deleted file mode 100644 index 42ef544402a7..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultStepsInfo.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Step execution summary for a Synthetic test result. - */ -export class SyntheticsTestResultStepsInfo { - /** - * Number of completed steps. - */ - "completed"?: number; - /** - * Number of steps with errors. - */ - "errors"?: number; - /** - * Total number of steps. - */ - "total"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - completed: { - baseName: "completed", - type: "number", - format: "int64", - }, - errors: { - baseName: "errors", - type: "number", - format: "int64", - }, - total: { - baseName: "total", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultStepsInfo.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultSubStep.ts b/services/synthetics/src/v2/models/SyntheticsTestResultSubStep.ts deleted file mode 100644 index ffaf74cdb44c..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultSubStep.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultParentStep } from "./SyntheticsTestResultParentStep"; -import { SyntheticsTestResultParentTest } from "./SyntheticsTestResultParentTest"; - -/** - * Information about a sub-step in a nested test execution. - */ -export class SyntheticsTestResultSubStep { - /** - * Depth of the sub-step in the execution tree. - */ - "level"?: number; - /** - * Reference to the parent step of a sub-step. - */ - "parentStep"?: SyntheticsTestResultParentStep; - /** - * Reference to the parent test of a sub-step. - */ - "parentTest"?: SyntheticsTestResultParentTest; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - level: { - baseName: "level", - type: "number", - format: "int64", - }, - parentStep: { - baseName: "parent_step", - type: "SyntheticsTestResultParentStep", - }, - parentTest: { - baseName: "parent_test", - type: "SyntheticsTestResultParentTest", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultSubStep.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultSubTest.ts b/services/synthetics/src/v2/models/SyntheticsTestResultSubTest.ts deleted file mode 100644 index d140c7fbd6a8..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultSubTest.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultRumContext } from "./SyntheticsTestResultRumContext"; - -/** - * Information about a sub-test played from a parent browser test. - */ -export class SyntheticsTestResultSubTest { - /** - * Identifier of the sub-test. - */ - "id"?: string; - /** - * Index of the browser tab playing the sub-test. - */ - "playingTab"?: number; - /** - * RUM application context associated with a step or sub-test. - */ - "rumContext"?: SyntheticsTestResultRumContext; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - playingTab: { - baseName: "playing_tab", - type: "number", - format: "int64", - }, - rumContext: { - baseName: "rum_context", - type: "SyntheticsTestResultRumContext", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultSubTest.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultSummaryAttributes.ts b/services/synthetics/src/v2/models/SyntheticsTestResultSummaryAttributes.ts deleted file mode 100644 index 50ad45a9bcaa..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultSummaryAttributes.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultDevice } from "./SyntheticsTestResultDevice"; -import { SyntheticsTestResultExecutionInfo } from "./SyntheticsTestResultExecutionInfo"; -import { SyntheticsTestResultLocation } from "./SyntheticsTestResultLocation"; -import { SyntheticsTestResultRunType } from "./SyntheticsTestResultRunType"; -import { SyntheticsTestResultStatus } from "./SyntheticsTestResultStatus"; -import { SyntheticsTestResultStepsInfo } from "./SyntheticsTestResultStepsInfo"; -import { SyntheticsTestSubType } from "./SyntheticsTestSubType"; -import { SyntheticsTestType } from "./SyntheticsTestType"; - -/** - * Attributes of a Synthetic test result summary. - */ -export class SyntheticsTestResultSummaryAttributes { - /** - * Device information for the test result (browser and mobile tests). - */ - "device"?: SyntheticsTestResultDevice; - /** - * Execution details for a Synthetic test result. - */ - "executionInfo"?: SyntheticsTestResultExecutionInfo; - /** - * Timestamp of when the test finished (in milliseconds). - */ - "finishedAt"?: number; - /** - * Location information for a Synthetic test result. - */ - "location"?: SyntheticsTestResultLocation; - /** - * The type of run for a Synthetic test result. - */ - "runType"?: SyntheticsTestResultRunType; - /** - * Timestamp of when the test started (in milliseconds). - */ - "startedAt"?: number; - /** - * Status of a Synthetic test result. - */ - "status"?: SyntheticsTestResultStatus; - /** - * Step execution summary for a Synthetic test result. - */ - "stepsInfo"?: SyntheticsTestResultStepsInfo; - /** - * Subtype of the Synthetic test that produced this result. - */ - "testSubType"?: SyntheticsTestSubType; - /** - * Type of the Synthetic test that produced this result. - */ - "testType"?: SyntheticsTestType; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - device: { - baseName: "device", - type: "SyntheticsTestResultDevice", - }, - executionInfo: { - baseName: "execution_info", - type: "SyntheticsTestResultExecutionInfo", - }, - finishedAt: { - baseName: "finished_at", - type: "number", - format: "int64", - }, - location: { - baseName: "location", - type: "SyntheticsTestResultLocation", - }, - runType: { - baseName: "run_type", - type: "SyntheticsTestResultRunType", - }, - startedAt: { - baseName: "started_at", - type: "number", - format: "int64", - }, - status: { - baseName: "status", - type: "SyntheticsTestResultStatus", - }, - stepsInfo: { - baseName: "steps_info", - type: "SyntheticsTestResultStepsInfo", - }, - testSubType: { - baseName: "test_sub_type", - type: "SyntheticsTestSubType", - }, - testType: { - baseName: "test_type", - type: "SyntheticsTestType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultSummaryAttributes.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultSummaryData.ts b/services/synthetics/src/v2/models/SyntheticsTestResultSummaryData.ts deleted file mode 100644 index 92635b6dc018..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultSummaryData.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultRelationships } from "./SyntheticsTestResultRelationships"; -import { SyntheticsTestResultSummaryAttributes } from "./SyntheticsTestResultSummaryAttributes"; -import { SyntheticsTestResultSummaryType } from "./SyntheticsTestResultSummaryType"; - -/** - * Wrapper object for a Synthetic test result summary. - */ -export class SyntheticsTestResultSummaryData { - /** - * Attributes of a Synthetic test result summary. - */ - "attributes"?: SyntheticsTestResultSummaryAttributes; - /** - * The result ID. - */ - "id"?: string; - /** - * Relationships for a Synthetic test result. - */ - "relationships"?: SyntheticsTestResultRelationships; - /** - * Type of the Synthetic test result summary resource, `result_summary`. - */ - "type"?: SyntheticsTestResultSummaryType; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - attributes: { - baseName: "attributes", - type: "SyntheticsTestResultSummaryAttributes", - }, - id: { - baseName: "id", - type: "string", - }, - relationships: { - baseName: "relationships", - type: "SyntheticsTestResultRelationships", - }, - type: { - baseName: "type", - type: "SyntheticsTestResultSummaryType", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultSummaryData.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultSummaryType.ts b/services/synthetics/src/v2/models/SyntheticsTestResultSummaryType.ts deleted file mode 100644 index c0185eab1e91..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultSummaryType.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * Type of the Synthetic test result summary resource, `result_summary`. - */ -export type SyntheticsTestResultSummaryType = - | typeof RESULT_SUMMARY - | UnparsedObject; -export const RESULT_SUMMARY = "result_summary"; diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultTab.ts b/services/synthetics/src/v2/models/SyntheticsTestResultTab.ts deleted file mode 100644 index 13d9f3e5d746..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultTab.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Information about a browser tab involved in a step. - */ -export class SyntheticsTestResultTab { - /** - * Whether the tab was focused during the step. - */ - "focused"?: boolean; - /** - * Title of the tab. - */ - "title"?: string; - /** - * URL loaded in the tab. - */ - "url"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - focused: { - baseName: "focused", - type: "boolean", - }, - title: { - baseName: "title", - type: "string", - }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultTab.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultTrace.ts b/services/synthetics/src/v2/models/SyntheticsTestResultTrace.ts deleted file mode 100644 index 412a1e5ef215..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultTrace.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Trace identifiers associated with a Synthetic test result. - */ -export class SyntheticsTestResultTrace { - /** - * Datadog APM trace identifier. - */ - "id"?: string; - /** - * OpenTelemetry trace identifier. - */ - "otelId"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - id: { - baseName: "id", - type: "string", - }, - otelId: { - baseName: "otel_id", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultTrace.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultTracerouteHop.ts b/services/synthetics/src/v2/models/SyntheticsTestResultTracerouteHop.ts deleted file mode 100644 index 75670b1f9f3b..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultTracerouteHop.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultNetworkLatency } from "./SyntheticsTestResultNetworkLatency"; -import { SyntheticsTestResultRouter } from "./SyntheticsTestResultRouter"; - -/** - * A network probe result, used for traceroute hops and ping summaries. - */ -export class SyntheticsTestResultTracerouteHop { - /** - * Target hostname. - */ - "host"?: string; - /** - * Latency statistics for a network probe. - */ - "latency"?: SyntheticsTestResultNetworkLatency; - /** - * Percentage of probe packets lost. - */ - "packetLossPercentage"?: number; - /** - * Size of each probe packet in bytes. - */ - "packetSize"?: number; - /** - * Number of probe packets received. - */ - "packetsReceived"?: number; - /** - * Number of probe packets sent. - */ - "packetsSent"?: number; - /** - * Resolved IP address for the target. - */ - "resolvedIp"?: string; - /** - * List of intermediate routers for the traceroute. - */ - "routers"?: Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - host: { - baseName: "host", - type: "string", - }, - latency: { - baseName: "latency", - type: "SyntheticsTestResultNetworkLatency", - }, - packetLossPercentage: { - baseName: "packet_loss_percentage", - type: "number", - format: "double", - }, - packetSize: { - baseName: "packet_size", - type: "number", - format: "int64", - }, - packetsReceived: { - baseName: "packets_received", - type: "number", - format: "int64", - }, - packetsSent: { - baseName: "packets_sent", - type: "number", - format: "int64", - }, - resolvedIp: { - baseName: "resolved_ip", - type: "string", - }, - routers: { - baseName: "routers", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultTracerouteHop.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultTurn.ts b/services/synthetics/src/v2/models/SyntheticsTestResultTurn.ts deleted file mode 100644 index 0a4e28d2dc71..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultTurn.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultBucketKeys } from "./SyntheticsTestResultBucketKeys"; -import { SyntheticsTestResultTurnStep } from "./SyntheticsTestResultTurnStep"; - -/** - * A turn in a goal-based browser test, grouping steps and reasoning. - */ -export class SyntheticsTestResultTurn { - /** - * Storage bucket keys for artifacts produced during a step or test. - */ - "bucketKeys"?: SyntheticsTestResultBucketKeys; - /** - * Name of the turn. - */ - "name"?: string; - /** - * Agent reasoning produced for this turn. - */ - "reasoning"?: string; - /** - * Status of the turn (for example, `passed`, `failed`). - */ - "status"?: string; - /** - * Steps executed during the turn. - */ - "steps"?: Array; - /** - * Unix timestamp (ms) of when the turn finished. - */ - "turnFinishedAt"?: number; - /** - * Unix timestamp (ms) of when the turn started. - */ - "turnStartedAt"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - bucketKeys: { - baseName: "bucket_keys", - type: "SyntheticsTestResultBucketKeys", - }, - name: { - baseName: "name", - type: "string", - }, - reasoning: { - baseName: "reasoning", - type: "string", - }, - status: { - baseName: "status", - type: "string", - }, - steps: { - baseName: "steps", - type: "Array", - }, - turnFinishedAt: { - baseName: "turn_finished_at", - type: "number", - format: "int64", - }, - turnStartedAt: { - baseName: "turn_started_at", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultTurn.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultTurnStep.ts b/services/synthetics/src/v2/models/SyntheticsTestResultTurnStep.ts deleted file mode 100644 index 3fcb185cdb09..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultTurnStep.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultBucketKeys } from "./SyntheticsTestResultBucketKeys"; - -/** - * A step executed during a goal-based browser test turn. - */ -export class SyntheticsTestResultTurnStep { - /** - * Storage bucket keys for artifacts produced during a step or test. - */ - "bucketKeys"?: SyntheticsTestResultBucketKeys; - /** - * Browser step configuration for this turn step. - */ - "config"?: { [key: string]: any }; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - bucketKeys: { - baseName: "bucket_keys", - type: "SyntheticsTestResultBucketKeys", - }, - config: { - baseName: "config", - type: "{ [key: string]: any; }", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultTurnStep.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultType.ts b/services/synthetics/src/v2/models/SyntheticsTestResultType.ts deleted file mode 100644 index c6d50972a887..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultType.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * Type of the Synthetic test result resource, `result`. - */ -export type SyntheticsTestResultType = typeof RESULT | UnparsedObject; -export const RESULT = "result"; diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultVariable.ts b/services/synthetics/src/v2/models/SyntheticsTestResultVariable.ts deleted file mode 100644 index 89e8e1726779..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultVariable.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * A variable used or extracted during a test. - */ -export class SyntheticsTestResultVariable { - /** - * Error encountered when evaluating the variable. - */ - "err"?: string; - /** - * Human-readable error message for variable evaluation. - */ - "errorMessage"?: string; - /** - * Example value for the variable. - */ - "example"?: string; - /** - * Variable identifier. - */ - "id"?: string; - /** - * Variable name. - */ - "name"?: string; - /** - * Pattern used to extract the variable. - */ - "pattern"?: string; - /** - * Whether the variable holds a secure value. - */ - "secure"?: boolean; - /** - * Variable type. - */ - "type"?: string; - /** - * Evaluated value of the variable. - */ - "val"?: string; - /** - * Current value of the variable. - */ - "value"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - err: { - baseName: "err", - type: "string", - }, - errorMessage: { - baseName: "error_message", - type: "string", - }, - example: { - baseName: "example", - type: "string", - }, - id: { - baseName: "id", - type: "string", - }, - name: { - baseName: "name", - type: "string", - }, - pattern: { - baseName: "pattern", - type: "string", - }, - secure: { - baseName: "secure", - type: "boolean", - }, - type: { - baseName: "type", - type: "string", - }, - val: { - baseName: "val", - type: "string", - }, - value: { - baseName: "value", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultVariable.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultVariables.ts b/services/synthetics/src/v2/models/SyntheticsTestResultVariables.ts deleted file mode 100644 index 588a2b5f13a4..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultVariables.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultVariable } from "./SyntheticsTestResultVariable"; - -/** - * Variables captured during a test step. - */ -export class SyntheticsTestResultVariables { - /** - * Variables defined in the test configuration. - */ - "config"?: Array; - /** - * Variables extracted during the test execution. - */ - "extracted"?: Array; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - config: { - baseName: "config", - type: "Array", - }, - extracted: { - baseName: "extracted", - type: "Array", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultVariables.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultVitalsMetrics.ts b/services/synthetics/src/v2/models/SyntheticsTestResultVitalsMetrics.ts deleted file mode 100644 index 3a74991c5173..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultVitalsMetrics.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * Web vitals metrics captured during a browser test step. - */ -export class SyntheticsTestResultVitalsMetrics { - /** - * Cumulative Layout Shift score. - */ - "cls"?: number; - /** - * First Contentful Paint in milliseconds. - */ - "fcp"?: number; - /** - * Interaction to Next Paint in milliseconds. - */ - "inp"?: number; - /** - * Largest Contentful Paint in milliseconds. - */ - "lcp"?: number; - /** - * Time To First Byte in milliseconds. - */ - "ttfb"?: number; - /** - * URL that produced the metrics. - */ - "url"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - cls: { - baseName: "cls", - type: "number", - format: "double", - }, - fcp: { - baseName: "fcp", - type: "number", - format: "double", - }, - inp: { - baseName: "inp", - type: "number", - format: "double", - }, - lcp: { - baseName: "lcp", - type: "number", - format: "double", - }, - ttfb: { - baseName: "ttfb", - type: "number", - format: "double", - }, - url: { - baseName: "url", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultVitalsMetrics.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultWarning.ts b/services/synthetics/src/v2/models/SyntheticsTestResultWarning.ts deleted file mode 100644 index 649905cb33c7..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultWarning.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -import { SyntheticsTestResultBounds } from "./SyntheticsTestResultBounds"; - -/** - * A warning captured during a browser test step. - */ -export class SyntheticsTestResultWarning { - /** - * Bounds of elements related to the warning. - */ - "elementBounds"?: Array; - /** - * Warning message. - */ - "message"?: string; - /** - * Type of the warning. - */ - "type"?: string; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - elementBounds: { - baseName: "element_bounds", - type: "Array", - }, - message: { - baseName: "message", - type: "string", - }, - type: { - baseName: "type", - type: "string", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultWarning.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestResultWebSocketClose.ts b/services/synthetics/src/v2/models/SyntheticsTestResultWebSocketClose.ts deleted file mode 100644 index d6b4aebbdcb5..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestResultWebSocketClose.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { AttributeTypeMap } from "@datadog/datadog-api-client"; - -/** - * WebSocket close frame information for WebSocket test responses. - */ -export class SyntheticsTestResultWebSocketClose { - /** - * Reason string received in the close frame. - */ - "reason"?: string; - /** - * Status code received in the close frame. - */ - "statusCode"?: number; - /** - * A container for additional, undeclared properties. - * This is a holder for any undeclared properties as specified with - * the 'additionalProperties' keyword in the OAS document. - */ - "additionalProperties"?: { [key: string]: any }; - /** - * @ignore - */ - "_unparsed"?: boolean; - - /** - * @ignore - */ - static readonly attributeTypeMap: AttributeTypeMap = { - reason: { - baseName: "reason", - type: "string", - }, - statusCode: { - baseName: "status_code", - type: "number", - format: "int64", - }, - additionalProperties: { - baseName: "additionalProperties", - type: "{ [key: string]: any; }", - }, - }; - - /** - * @ignore - */ - static getAttributeTypeMap(): AttributeTypeMap { - return SyntheticsTestResultWebSocketClose.attributeTypeMap; - } - - public constructor() {} -} diff --git a/services/synthetics/src/v2/models/SyntheticsTestSubType.ts b/services/synthetics/src/v2/models/SyntheticsTestSubType.ts deleted file mode 100644 index e2534a4c8309..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestSubType.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * Subtype of the Synthetic test that produced this result. - */ -export type SyntheticsTestSubType = - | typeof DNS - | typeof GRPC - | typeof HTTP - | typeof ICMP - | typeof MCP - | typeof MULTI - | typeof SSL - | typeof TCP - | typeof UDP - | typeof WEBSOCKET - | UnparsedObject; -export const DNS = "dns"; -export const GRPC = "grpc"; -export const HTTP = "http"; -export const ICMP = "icmp"; -export const MCP = "mcp"; -export const MULTI = "multi"; -export const SSL = "ssl"; -export const TCP = "tcp"; -export const UDP = "udp"; -export const WEBSOCKET = "websocket"; diff --git a/services/synthetics/src/v2/models/SyntheticsTestType.ts b/services/synthetics/src/v2/models/SyntheticsTestType.ts deleted file mode 100644 index 855e4ed29364..000000000000 --- a/services/synthetics/src/v2/models/SyntheticsTestType.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { UnparsedObject } from "@datadog/datadog-api-client"; - -/** - * Type of the Synthetic test that produced this result. - */ -export type SyntheticsTestType = - | typeof API - | typeof BROWSER - | typeof MOBILE - | typeof NETWORK - | UnparsedObject; -export const API = "api"; -export const BROWSER = "browser"; -export const MOBILE = "mobile"; -export const NETWORK = "network"; diff --git a/services/synthetics/src/v2/models/TypingInfo.ts b/services/synthetics/src/v2/models/TypingInfo.ts index d28f117a51e0..3494d75299e1 100644 --- a/services/synthetics/src/v2/models/TypingInfo.ts +++ b/services/synthetics/src/v2/models/TypingInfo.ts @@ -37,6 +37,9 @@ import { SyntheticsFastTestResult } from "./SyntheticsFastTestResult"; import { SyntheticsFastTestResultAttributes } from "./SyntheticsFastTestResultAttributes"; import { SyntheticsFastTestResultData } from "./SyntheticsFastTestResultData"; import { SyntheticsFastTestResultDetail } from "./SyntheticsFastTestResultDetail"; +import { SyntheticsFastTestResultDevice } from "./SyntheticsFastTestResultDevice"; +import { SyntheticsFastTestResultFailure } from "./SyntheticsFastTestResultFailure"; +import { SyntheticsFastTestResultLocation } from "./SyntheticsFastTestResultLocation"; import { SyntheticsGlobalVariable } from "./SyntheticsGlobalVariable"; import { SyntheticsGlobalVariableAttributes } from "./SyntheticsGlobalVariableAttributes"; import { SyntheticsGlobalVariableOptions } from "./SyntheticsGlobalVariableOptions"; @@ -54,7 +57,6 @@ import { SyntheticsNetworkTestEditRequest } from "./SyntheticsNetworkTestEditReq import { SyntheticsNetworkTestRequest } from "./SyntheticsNetworkTestRequest"; import { SyntheticsNetworkTestResponse } from "./SyntheticsNetworkTestResponse"; import { SyntheticsNetworkTestResponseData } from "./SyntheticsNetworkTestResponseData"; -import { SyntheticsPollTestResultsResponse } from "./SyntheticsPollTestResultsResponse"; import { SyntheticsSuite } from "./SyntheticsSuite"; import { SyntheticsSuiteOptions } from "./SyntheticsSuiteOptions"; import { SyntheticsSuiteResponse } from "./SyntheticsSuiteResponse"; @@ -72,7 +74,6 @@ import { SyntheticsTestFileMultipartPresignedUrlsParams } from "./SyntheticsTest import { SyntheticsTestFileMultipartPresignedUrlsPart } from "./SyntheticsTestFileMultipartPresignedUrlsPart"; import { SyntheticsTestFileMultipartPresignedUrlsRequest } from "./SyntheticsTestFileMultipartPresignedUrlsRequest"; import { SyntheticsTestFileMultipartPresignedUrlsResponse } from "./SyntheticsTestFileMultipartPresignedUrlsResponse"; -import { SyntheticsTestLatestResultsResponse } from "./SyntheticsTestLatestResultsResponse"; import { SyntheticsTestOptions } from "./SyntheticsTestOptions"; import { SyntheticsTestOptionsMonitorOptions } from "./SyntheticsTestOptionsMonitorOptions"; import { SyntheticsTestOptionsRetry } from "./SyntheticsTestOptionsRetry"; @@ -81,79 +82,6 @@ import { SyntheticsTestOptionsSchedulingTimeframe } from "./SyntheticsTestOption import { SyntheticsTestParentSuiteAttributes } from "./SyntheticsTestParentSuiteAttributes"; import { SyntheticsTestParentSuiteData } from "./SyntheticsTestParentSuiteData"; import { SyntheticsTestParentSuitesResponse } from "./SyntheticsTestParentSuitesResponse"; -import { SyntheticsTestResultAssertionResult } from "./SyntheticsTestResultAssertionResult"; -import { SyntheticsTestResultAttributes } from "./SyntheticsTestResultAttributes"; -import { SyntheticsTestResultBatch } from "./SyntheticsTestResultBatch"; -import { SyntheticsTestResultBounds } from "./SyntheticsTestResultBounds"; -import { SyntheticsTestResultBrowserError } from "./SyntheticsTestResultBrowserError"; -import { SyntheticsTestResultBucketKeys } from "./SyntheticsTestResultBucketKeys"; -import { SyntheticsTestResultCI } from "./SyntheticsTestResultCI"; -import { SyntheticsTestResultCIPipeline } from "./SyntheticsTestResultCIPipeline"; -import { SyntheticsTestResultCIProvider } from "./SyntheticsTestResultCIProvider"; -import { SyntheticsTestResultCIStage } from "./SyntheticsTestResultCIStage"; -import { SyntheticsTestResultCdnCacheStatus } from "./SyntheticsTestResultCdnCacheStatus"; -import { SyntheticsTestResultCdnProviderInfo } from "./SyntheticsTestResultCdnProviderInfo"; -import { SyntheticsTestResultCdnResource } from "./SyntheticsTestResultCdnResource"; -import { SyntheticsTestResultCertificate } from "./SyntheticsTestResultCertificate"; -import { SyntheticsTestResultCertificateValidity } from "./SyntheticsTestResultCertificateValidity"; -import { SyntheticsTestResultData } from "./SyntheticsTestResultData"; -import { SyntheticsTestResultDetail } from "./SyntheticsTestResultDetail"; -import { SyntheticsTestResultDevice } from "./SyntheticsTestResultDevice"; -import { SyntheticsTestResultDeviceBrowser } from "./SyntheticsTestResultDeviceBrowser"; -import { SyntheticsTestResultDevicePlatform } from "./SyntheticsTestResultDevicePlatform"; -import { SyntheticsTestResultDeviceResolution } from "./SyntheticsTestResultDeviceResolution"; -import { SyntheticsTestResultDnsRecord } from "./SyntheticsTestResultDnsRecord"; -import { SyntheticsTestResultDnsResolution } from "./SyntheticsTestResultDnsResolution"; -import { SyntheticsTestResultDuration } from "./SyntheticsTestResultDuration"; -import { SyntheticsTestResultExecutionInfo } from "./SyntheticsTestResultExecutionInfo"; -import { SyntheticsTestResultFailure } from "./SyntheticsTestResultFailure"; -import { SyntheticsTestResultFileRef } from "./SyntheticsTestResultFileRef"; -import { SyntheticsTestResultGit } from "./SyntheticsTestResultGit"; -import { SyntheticsTestResultGitCommit } from "./SyntheticsTestResultGitCommit"; -import { SyntheticsTestResultGitUser } from "./SyntheticsTestResultGitUser"; -import { SyntheticsTestResultHandshake } from "./SyntheticsTestResultHandshake"; -import { SyntheticsTestResultHealthCheck } from "./SyntheticsTestResultHealthCheck"; -import { SyntheticsTestResultIncludedItem } from "./SyntheticsTestResultIncludedItem"; -import { SyntheticsTestResultLocation } from "./SyntheticsTestResultLocation"; -import { SyntheticsTestResultNetpath } from "./SyntheticsTestResultNetpath"; -import { SyntheticsTestResultNetpathDestination } from "./SyntheticsTestResultNetpathDestination"; -import { SyntheticsTestResultNetpathEndpoint } from "./SyntheticsTestResultNetpathEndpoint"; -import { SyntheticsTestResultNetpathHop } from "./SyntheticsTestResultNetpathHop"; -import { SyntheticsTestResultNetstats } from "./SyntheticsTestResultNetstats"; -import { SyntheticsTestResultNetstatsHops } from "./SyntheticsTestResultNetstatsHops"; -import { SyntheticsTestResultNetworkLatency } from "./SyntheticsTestResultNetworkLatency"; -import { SyntheticsTestResultOCSPCertificate } from "./SyntheticsTestResultOCSPCertificate"; -import { SyntheticsTestResultOCSPResponse } from "./SyntheticsTestResultOCSPResponse"; -import { SyntheticsTestResultOCSPUpdates } from "./SyntheticsTestResultOCSPUpdates"; -import { SyntheticsTestResultParentStep } from "./SyntheticsTestResultParentStep"; -import { SyntheticsTestResultParentTest } from "./SyntheticsTestResultParentTest"; -import { SyntheticsTestResultRedirect } from "./SyntheticsTestResultRedirect"; -import { SyntheticsTestResultRelationshipTest } from "./SyntheticsTestResultRelationshipTest"; -import { SyntheticsTestResultRelationshipTestData } from "./SyntheticsTestResultRelationshipTestData"; -import { SyntheticsTestResultRelationships } from "./SyntheticsTestResultRelationships"; -import { SyntheticsTestResultRequestInfo } from "./SyntheticsTestResultRequestInfo"; -import { SyntheticsTestResultResponse } from "./SyntheticsTestResultResponse"; -import { SyntheticsTestResultResponseInfo } from "./SyntheticsTestResultResponseInfo"; -import { SyntheticsTestResultRouter } from "./SyntheticsTestResultRouter"; -import { SyntheticsTestResultRumContext } from "./SyntheticsTestResultRumContext"; -import { SyntheticsTestResultStep } from "./SyntheticsTestResultStep"; -import { SyntheticsTestResultStepAssertionResult } from "./SyntheticsTestResultStepAssertionResult"; -import { SyntheticsTestResultStepElementUpdates } from "./SyntheticsTestResultStepElementUpdates"; -import { SyntheticsTestResultStepsInfo } from "./SyntheticsTestResultStepsInfo"; -import { SyntheticsTestResultSubStep } from "./SyntheticsTestResultSubStep"; -import { SyntheticsTestResultSubTest } from "./SyntheticsTestResultSubTest"; -import { SyntheticsTestResultSummaryAttributes } from "./SyntheticsTestResultSummaryAttributes"; -import { SyntheticsTestResultSummaryData } from "./SyntheticsTestResultSummaryData"; -import { SyntheticsTestResultTab } from "./SyntheticsTestResultTab"; -import { SyntheticsTestResultTrace } from "./SyntheticsTestResultTrace"; -import { SyntheticsTestResultTracerouteHop } from "./SyntheticsTestResultTracerouteHop"; -import { SyntheticsTestResultTurn } from "./SyntheticsTestResultTurn"; -import { SyntheticsTestResultTurnStep } from "./SyntheticsTestResultTurnStep"; -import { SyntheticsTestResultVariable } from "./SyntheticsTestResultVariable"; -import { SyntheticsTestResultVariables } from "./SyntheticsTestResultVariables"; -import { SyntheticsTestResultVitalsMetrics } from "./SyntheticsTestResultVitalsMetrics"; -import { SyntheticsTestResultWarning } from "./SyntheticsTestResultWarning"; -import { SyntheticsTestResultWebSocketClose } from "./SyntheticsTestResultWebSocketClose"; import { SyntheticsTestVersionActionMetadata } from "./SyntheticsTestVersionActionMetadata"; import { SyntheticsTestVersionAttributes } from "./SyntheticsTestVersionAttributes"; import { SyntheticsTestVersionAuthor } from "./SyntheticsTestVersionAuthor"; @@ -194,7 +122,6 @@ export const TypingInfo: ModelTypingInfo = { "udp", "websocket", ], - SyntheticsFastTestType: ["fast-api", "fast-browser"], SyntheticsGlobalVariableParseTestOptionsType: [ "http_body", "http_header", @@ -239,23 +166,6 @@ export const TypingInfo: ModelTypingInfo = { ], SyntheticsTestParentSuiteType: ["parent_suite"], SyntheticsTestPauseStatus: ["live", "paused"], - SyntheticsTestResultRunType: ["scheduled", "fast", "ci", "triggered"], - SyntheticsTestResultStatus: ["passed", "failed", "no_data"], - SyntheticsTestResultSummaryType: ["result_summary"], - SyntheticsTestResultType: ["result"], - SyntheticsTestSubType: [ - "dns", - "grpc", - "http", - "icmp", - "mcp", - "multi", - "ssl", - "tcp", - "udp", - "websocket", - ], - SyntheticsTestType: ["api", "browser", "mobile", "network"], SyntheticsTestVersionChangeType: ["version_metadata"], SyntheticsTestVersionType: ["version"], }, @@ -310,6 +220,9 @@ export const TypingInfo: ModelTypingInfo = { SyntheticsFastTestResultAttributes: SyntheticsFastTestResultAttributes, SyntheticsFastTestResultData: SyntheticsFastTestResultData, SyntheticsFastTestResultDetail: SyntheticsFastTestResultDetail, + SyntheticsFastTestResultDevice: SyntheticsFastTestResultDevice, + SyntheticsFastTestResultFailure: SyntheticsFastTestResultFailure, + SyntheticsFastTestResultLocation: SyntheticsFastTestResultLocation, SyntheticsGlobalVariable: SyntheticsGlobalVariable, SyntheticsGlobalVariableAttributes: SyntheticsGlobalVariableAttributes, SyntheticsGlobalVariableOptions: SyntheticsGlobalVariableOptions, @@ -331,7 +244,6 @@ export const TypingInfo: ModelTypingInfo = { SyntheticsNetworkTestRequest: SyntheticsNetworkTestRequest, SyntheticsNetworkTestResponse: SyntheticsNetworkTestResponse, SyntheticsNetworkTestResponseData: SyntheticsNetworkTestResponseData, - SyntheticsPollTestResultsResponse: SyntheticsPollTestResultsResponse, SyntheticsSuite: SyntheticsSuite, SyntheticsSuiteOptions: SyntheticsSuiteOptions, SyntheticsSuiteResponse: SyntheticsSuiteResponse, @@ -357,7 +269,6 @@ export const TypingInfo: ModelTypingInfo = { SyntheticsTestFileMultipartPresignedUrlsRequest, SyntheticsTestFileMultipartPresignedUrlsResponse: SyntheticsTestFileMultipartPresignedUrlsResponse, - SyntheticsTestLatestResultsResponse: SyntheticsTestLatestResultsResponse, SyntheticsTestOptions: SyntheticsTestOptions, SyntheticsTestOptionsMonitorOptions: SyntheticsTestOptionsMonitorOptions, SyntheticsTestOptionsRetry: SyntheticsTestOptionsRetry, @@ -367,85 +278,6 @@ export const TypingInfo: ModelTypingInfo = { SyntheticsTestParentSuiteAttributes: SyntheticsTestParentSuiteAttributes, SyntheticsTestParentSuiteData: SyntheticsTestParentSuiteData, SyntheticsTestParentSuitesResponse: SyntheticsTestParentSuitesResponse, - SyntheticsTestResultAssertionResult: SyntheticsTestResultAssertionResult, - SyntheticsTestResultAttributes: SyntheticsTestResultAttributes, - SyntheticsTestResultBatch: SyntheticsTestResultBatch, - SyntheticsTestResultBounds: SyntheticsTestResultBounds, - SyntheticsTestResultBrowserError: SyntheticsTestResultBrowserError, - SyntheticsTestResultBucketKeys: SyntheticsTestResultBucketKeys, - SyntheticsTestResultCI: SyntheticsTestResultCI, - SyntheticsTestResultCIPipeline: SyntheticsTestResultCIPipeline, - SyntheticsTestResultCIProvider: SyntheticsTestResultCIProvider, - SyntheticsTestResultCIStage: SyntheticsTestResultCIStage, - SyntheticsTestResultCdnCacheStatus: SyntheticsTestResultCdnCacheStatus, - SyntheticsTestResultCdnProviderInfo: SyntheticsTestResultCdnProviderInfo, - SyntheticsTestResultCdnResource: SyntheticsTestResultCdnResource, - SyntheticsTestResultCertificate: SyntheticsTestResultCertificate, - SyntheticsTestResultCertificateValidity: - SyntheticsTestResultCertificateValidity, - SyntheticsTestResultData: SyntheticsTestResultData, - SyntheticsTestResultDetail: SyntheticsTestResultDetail, - SyntheticsTestResultDevice: SyntheticsTestResultDevice, - SyntheticsTestResultDeviceBrowser: SyntheticsTestResultDeviceBrowser, - SyntheticsTestResultDevicePlatform: SyntheticsTestResultDevicePlatform, - SyntheticsTestResultDeviceResolution: SyntheticsTestResultDeviceResolution, - SyntheticsTestResultDnsRecord: SyntheticsTestResultDnsRecord, - SyntheticsTestResultDnsResolution: SyntheticsTestResultDnsResolution, - SyntheticsTestResultDuration: SyntheticsTestResultDuration, - SyntheticsTestResultExecutionInfo: SyntheticsTestResultExecutionInfo, - SyntheticsTestResultFailure: SyntheticsTestResultFailure, - SyntheticsTestResultFileRef: SyntheticsTestResultFileRef, - SyntheticsTestResultGit: SyntheticsTestResultGit, - SyntheticsTestResultGitCommit: SyntheticsTestResultGitCommit, - SyntheticsTestResultGitUser: SyntheticsTestResultGitUser, - SyntheticsTestResultHandshake: SyntheticsTestResultHandshake, - SyntheticsTestResultHealthCheck: SyntheticsTestResultHealthCheck, - SyntheticsTestResultIncludedItem: SyntheticsTestResultIncludedItem, - SyntheticsTestResultLocation: SyntheticsTestResultLocation, - SyntheticsTestResultNetpath: SyntheticsTestResultNetpath, - SyntheticsTestResultNetpathDestination: - SyntheticsTestResultNetpathDestination, - SyntheticsTestResultNetpathEndpoint: SyntheticsTestResultNetpathEndpoint, - SyntheticsTestResultNetpathHop: SyntheticsTestResultNetpathHop, - SyntheticsTestResultNetstats: SyntheticsTestResultNetstats, - SyntheticsTestResultNetstatsHops: SyntheticsTestResultNetstatsHops, - SyntheticsTestResultNetworkLatency: SyntheticsTestResultNetworkLatency, - SyntheticsTestResultOCSPCertificate: SyntheticsTestResultOCSPCertificate, - SyntheticsTestResultOCSPResponse: SyntheticsTestResultOCSPResponse, - SyntheticsTestResultOCSPUpdates: SyntheticsTestResultOCSPUpdates, - SyntheticsTestResultParentStep: SyntheticsTestResultParentStep, - SyntheticsTestResultParentTest: SyntheticsTestResultParentTest, - SyntheticsTestResultRedirect: SyntheticsTestResultRedirect, - SyntheticsTestResultRelationshipTest: SyntheticsTestResultRelationshipTest, - SyntheticsTestResultRelationshipTestData: - SyntheticsTestResultRelationshipTestData, - SyntheticsTestResultRelationships: SyntheticsTestResultRelationships, - SyntheticsTestResultRequestInfo: SyntheticsTestResultRequestInfo, - SyntheticsTestResultResponse: SyntheticsTestResultResponse, - SyntheticsTestResultResponseInfo: SyntheticsTestResultResponseInfo, - SyntheticsTestResultRouter: SyntheticsTestResultRouter, - SyntheticsTestResultRumContext: SyntheticsTestResultRumContext, - SyntheticsTestResultStep: SyntheticsTestResultStep, - SyntheticsTestResultStepAssertionResult: - SyntheticsTestResultStepAssertionResult, - SyntheticsTestResultStepElementUpdates: - SyntheticsTestResultStepElementUpdates, - SyntheticsTestResultStepsInfo: SyntheticsTestResultStepsInfo, - SyntheticsTestResultSubStep: SyntheticsTestResultSubStep, - SyntheticsTestResultSubTest: SyntheticsTestResultSubTest, - SyntheticsTestResultSummaryAttributes: - SyntheticsTestResultSummaryAttributes, - SyntheticsTestResultSummaryData: SyntheticsTestResultSummaryData, - SyntheticsTestResultTab: SyntheticsTestResultTab, - SyntheticsTestResultTrace: SyntheticsTestResultTrace, - SyntheticsTestResultTracerouteHop: SyntheticsTestResultTracerouteHop, - SyntheticsTestResultTurn: SyntheticsTestResultTurn, - SyntheticsTestResultTurnStep: SyntheticsTestResultTurnStep, - SyntheticsTestResultVariable: SyntheticsTestResultVariable, - SyntheticsTestResultVariables: SyntheticsTestResultVariables, - SyntheticsTestResultVitalsMetrics: SyntheticsTestResultVitalsMetrics, - SyntheticsTestResultWarning: SyntheticsTestResultWarning, - SyntheticsTestResultWebSocketClose: SyntheticsTestResultWebSocketClose, SyntheticsTestVersionActionMetadata: SyntheticsTestVersionActionMetadata, SyntheticsTestVersionAttributes: SyntheticsTestVersionAttributes, SyntheticsTestVersionAuthor: SyntheticsTestVersionAuthor,