@@ -15194,6 +15194,32 @@ components:
15194
15194
- EDGE_LAPTOP_LARGE
15195
15195
- EDGE_TABLET
15196
15196
- EDGE_MOBILE_SMALL
15197
+ SyntheticsFetchUptimesPayload:
15198
+ description: Object containing IDs of Synthetic tests and a timeframe.
15199
+ properties:
15200
+ from_ts:
15201
+ description: Timestamp in seconds (Unix epoch) for the start of uptime.
15202
+ example: 0
15203
+ format: int64
15204
+ type: integer
15205
+ public_ids:
15206
+ description: An array of Synthetic test IDs you want to delete.
15207
+ example: []
15208
+ items:
15209
+ description: A Synthetic test ID.
15210
+ example: abc-def-123
15211
+ type: string
15212
+ type: array
15213
+ to_ts:
15214
+ description: Timestamp in seconds (Unix epoch) for the end of uptime.
15215
+ example: 0
15216
+ format: int64
15217
+ type: integer
15218
+ required:
15219
+ - from_ts
15220
+ - to_ts
15221
+ - public_ids
15222
+ type: object
15197
15223
SyntheticsGetAPITestLatestResultsResponse:
15198
15224
description: Object with the latest Synthetic API test run.
15199
15225
properties:
@@ -17283,6 +17309,24 @@ components:
17283
17309
description: String Port number to use when performing the test. Supports templated
17284
17310
variables.
17285
17311
type: string
17312
+ SyntheticsTestUptime:
17313
+ description: Object containing the uptime for a Synthetic test ID.
17314
+ properties:
17315
+ from_ts:
17316
+ description: Timestamp in seconds for the start of uptime.
17317
+ format: int64
17318
+ type: integer
17319
+ overall:
17320
+ $ref: '#/components/schemas/SyntheticsUptime'
17321
+ public_id:
17322
+ description: A Synthetic test ID.
17323
+ example: abc-def-123
17324
+ type: string
17325
+ to_ts:
17326
+ description: Timestamp in seconds for the end of uptime.
17327
+ format: int64
17328
+ type: integer
17329
+ type: object
17286
17330
SyntheticsTiming:
17287
17331
description: 'Object containing all metrics and their values collected for a
17288
17332
Synthetic API test.
@@ -17406,6 +17450,62 @@ components:
17406
17450
new_status:
17407
17451
$ref: '#/components/schemas/SyntheticsTestPauseStatus'
17408
17452
type: object
17453
+ SyntheticsUptime:
17454
+ description: Object containing the uptime information.
17455
+ properties:
17456
+ errors:
17457
+ description: An array of error objects returned while querying the history
17458
+ data for the service level objective.
17459
+ items:
17460
+ $ref: '#/components/schemas/SLOHistoryResponseErrorWithType'
17461
+ nullable: true
17462
+ type: array
17463
+ group:
17464
+ description: The location name
17465
+ example: name
17466
+ type: string
17467
+ history:
17468
+ description: 'The state transition history for the monitor, represented
17469
+ as an array of
17470
+
17471
+ pairs. Each pair is an array where the first element is the transition
17472
+ timestamp
17473
+
17474
+ in Unix epoch format (integer) and the second element is the state (integer).
17475
+
17476
+ For the state, an integer value of `0` indicates uptime, `1` indicates
17477
+ downtime,
17478
+
17479
+ and `2` indicates no data.'
17480
+ example:
17481
+ - - 1579212382
17482
+ - 0
17483
+ items:
17484
+ description: An array of transitions
17485
+ example:
17486
+ - 1579212382
17487
+ - 0
17488
+ items:
17489
+ description: A timeseries data point which is a tuple of (timestamp,
17490
+ value).
17491
+ format: double
17492
+ type: number
17493
+ maxItems: 2
17494
+ minItems: 2
17495
+ type: array
17496
+ type: array
17497
+ span_precision:
17498
+ description: The number of decimal places to which the SLI value is accurate
17499
+ for the given from-to timestamps.
17500
+ example: 2.0
17501
+ format: double
17502
+ type: number
17503
+ uptime:
17504
+ description: The overall uptime.
17505
+ example: 99.99
17506
+ format: double
17507
+ type: number
17508
+ type: object
17409
17509
SyntheticsVariableParser:
17410
17510
description: Details of the parser to use for the global variable.
17411
17511
example:
@@ -32934,6 +33034,49 @@ paths:
32934
33034
operator: OR
32935
33035
permissions:
32936
33036
- synthetics_write
33037
+ /api/v1/synthetics/tests/uptimes:
33038
+ post:
33039
+ description: Fetch uptime for multiple Synthetic tests by ID.
33040
+ operationId: FetchUptimes
33041
+ requestBody:
33042
+ content:
33043
+ application/json:
33044
+ schema:
33045
+ $ref: '#/components/schemas/SyntheticsFetchUptimesPayload'
33046
+ description: Public ID list of the Synthetic tests and timeframe.
33047
+ required: true
33048
+ responses:
33049
+ '200':
33050
+ content:
33051
+ application/json:
33052
+ schema:
33053
+ items:
33054
+ $ref: '#/components/schemas/SyntheticsTestUptime'
33055
+ type: array
33056
+ description: OK.
33057
+ '400':
33058
+ content:
33059
+ application/json:
33060
+ schema:
33061
+ $ref: '#/components/schemas/APIErrorResponse'
33062
+ description: '- JSON format is wrong'
33063
+ '403':
33064
+ content:
33065
+ application/json:
33066
+ schema:
33067
+ $ref: '#/components/schemas/APIErrorResponse'
33068
+ description: Forbidden
33069
+ '429':
33070
+ $ref: '#/components/responses/TooManyRequestsResponse'
33071
+ security:
33072
+ - apiKeyAuth: []
33073
+ appKeyAuth: []
33074
+ - AuthZ:
33075
+ - synthetics_read
33076
+ summary: Fetch uptime for multiple tests
33077
+ tags:
33078
+ - Synthetics
33079
+ x-codegen-request-body-name: body
32937
33080
/api/v1/synthetics/tests/{public_id}:
32938
33081
get:
32939
33082
description: Get the detailed configuration associated with a Synthetic test.
0 commit comments