@@ -15182,6 +15182,32 @@ components:
15182
15182
- EDGE_LAPTOP_LARGE
15183
15183
- EDGE_TABLET
15184
15184
- EDGE_MOBILE_SMALL
15185
+ SyntheticsFetchUptimesPayload:
15186
+ description: Object containing IDs of Synthetic tests and a timeframe.
15187
+ properties:
15188
+ from_ts:
15189
+ description: Timestamp in seconds (Unix epoch) for the start of uptime.
15190
+ example: 0
15191
+ format: int64
15192
+ type: integer
15193
+ public_ids:
15194
+ description: An array of Synthetic test IDs you want to delete.
15195
+ example: []
15196
+ items:
15197
+ description: A Synthetic test ID.
15198
+ example: abc-def-123
15199
+ type: string
15200
+ type: array
15201
+ to_ts:
15202
+ description: Timestamp in seconds (Unix epoch) for the end of uptime.
15203
+ example: 0
15204
+ format: int64
15205
+ type: integer
15206
+ required:
15207
+ - from_ts
15208
+ - to_ts
15209
+ - public_ids
15210
+ type: object
15185
15211
SyntheticsGetAPITestLatestResultsResponse:
15186
15212
description: Object with the latest Synthetic API test run.
15187
15213
properties:
@@ -16481,6 +16507,24 @@ components:
16481
16507
description: String Port number to use when performing the test. Supports templated
16482
16508
variables.
16483
16509
type: string
16510
+ SyntheticsTestUptime:
16511
+ description: Object containing the uptime for a Synthetic test ID.
16512
+ properties:
16513
+ from_ts:
16514
+ description: Timestamp in seconds for the start of uptime.
16515
+ format: int64
16516
+ type: integer
16517
+ overall:
16518
+ $ref: '#/components/schemas/SyntheticsUptime'
16519
+ public_id:
16520
+ description: A Synthetic test ID.
16521
+ example: abc-def-123
16522
+ type: string
16523
+ to_ts:
16524
+ description: Timestamp in seconds for the end of uptime.
16525
+ format: int64
16526
+ type: integer
16527
+ type: object
16484
16528
SyntheticsTiming:
16485
16529
description: 'Object containing all metrics and their values collected for a
16486
16530
Synthetic API test.
@@ -16604,6 +16648,62 @@ components:
16604
16648
new_status:
16605
16649
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
16606
16650
type: object
16651
+ SyntheticsUptime:
16652
+ description: Object containing the uptime information.
16653
+ properties:
16654
+ errors:
16655
+ description: An array of error objects returned while querying the history
16656
+ data for the service level objective.
16657
+ items:
16658
+ $ref: '#/components/schemas/SLOHistoryResponseErrorWithType'
16659
+ nullable: true
16660
+ type: array
16661
+ group:
16662
+ description: The location name
16663
+ example: name
16664
+ type: string
16665
+ history:
16666
+ description: 'The state transition history for the monitor, represented
16667
+ as an array of
16668
+
16669
+ pairs. Each pair is an array where the first element is the transition
16670
+ timestamp
16671
+
16672
+ in Unix epoch format (integer) and the second element is the state (integer).
16673
+
16674
+ For the state, an integer value of `0` indicates uptime, `1` indicates
16675
+ downtime,
16676
+
16677
+ and `2` indicates no data.'
16678
+ example:
16679
+ - - 1579212382
16680
+ - 0
16681
+ items:
16682
+ description: An array of transitions
16683
+ example:
16684
+ - 1579212382
16685
+ - 0
16686
+ items:
16687
+ description: A timeseries data point which is a tuple of (timestamp,
16688
+ value).
16689
+ format: double
16690
+ type: number
16691
+ maxItems: 2
16692
+ minItems: 2
16693
+ type: array
16694
+ type: array
16695
+ span_precision:
16696
+ description: The number of decimal places to which the SLI value is accurate
16697
+ for the given from-to timestamps.
16698
+ example: 2.0
16699
+ format: double
16700
+ type: number
16701
+ uptime:
16702
+ description: The overall uptime.
16703
+ example: 99.99
16704
+ format: double
16705
+ type: number
16706
+ type: object
16607
16707
SyntheticsVariableParser:
16608
16708
description: Details of the parser to use for the global variable.
16609
16709
example:
@@ -31307,6 +31407,49 @@ paths:
31307
31407
tags:
31308
31408
- Synthetics
31309
31409
x-codegen-request-body-name: body
31410
+ /api/v1/synthetics/tests/uptimes:
31411
+ post:
31412
+ description: Fetch uptime for multiple Synthetic tests by ID.
31413
+ operationId: FetchUptimes
31414
+ requestBody:
31415
+ content:
31416
+ application/json:
31417
+ schema:
31418
+ $ref: '#/components/schemas/SyntheticsFetchUptimesPayload'
31419
+ description: Public ID list of the Synthetic tests and timeframe.
31420
+ required: true
31421
+ responses:
31422
+ '200':
31423
+ content:
31424
+ application/json:
31425
+ schema:
31426
+ items:
31427
+ $ref: '#/components/schemas/SyntheticsTestUptime'
31428
+ type: array
31429
+ description: OK.
31430
+ '400':
31431
+ content:
31432
+ application/json:
31433
+ schema:
31434
+ $ref: '#/components/schemas/APIErrorResponse'
31435
+ description: '- JSON format is wrong'
31436
+ '403':
31437
+ content:
31438
+ application/json:
31439
+ schema:
31440
+ $ref: '#/components/schemas/APIErrorResponse'
31441
+ description: Forbidden
31442
+ '429':
31443
+ $ref: '#/components/responses/TooManyRequestsResponse'
31444
+ security:
31445
+ - apiKeyAuth: []
31446
+ appKeyAuth: []
31447
+ - AuthZ:
31448
+ - synthetics_read
31449
+ summary: Fetch uptime for multiple tests
31450
+ tags:
31451
+ - Synthetics
31452
+ x-codegen-request-body-name: body
31310
31453
/api/v1/synthetics/tests/{public_id}:
31311
31454
get:
31312
31455
description: Get the detailed configuration associated with a Synthetic test.
0 commit comments