Skip to main content

replays

Creates, updates, deletes, gets or lists a replays resource.

Overview

Namereplays
TypeResource
Idgoogle.policysimulator.replays

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the Replay, which has the following format: `{projects
configobjectThe configuration used for a Replay.
resultsSummaryobjectSummary statistics about the replayed log entries.
statestringOutput only. The current state of the Replay.

Methods

NameAccessible byRequired ParamsDescription
folders_locations_replays_getSELECTfoldersId, locationsId, replaysIdGets the specified Replay. Each Replay is available for at least 7 days.
organizations_locations_replays_getSELECTlocationsId, organizationsId, replaysIdGets the specified Replay. Each Replay is available for at least 7 days.
projects_locations_replays_getSELECTlocationsId, projectsId, replaysIdGets the specified Replay. Each Replay is available for at least 7 days.
folders_locations_replays_createINSERTfoldersId, locationsIdCreates and starts a Replay using the given ReplayConfig.
organizations_locations_replays_createINSERTlocationsId, organizationsIdCreates and starts a Replay using the given ReplayConfig.
projects_locations_replays_createINSERTlocationsId, projectsIdCreates and starts a Replay using the given ReplayConfig.

SELECT examples

Gets the specified Replay. Each Replay is available for at least 7 days.

SELECT
name,
config,
resultsSummary,
state
FROM google.policysimulator.replays
WHERE foldersId = '{{ foldersId }}'
AND locationsId = '{{ locationsId }}'
AND replaysId = '{{ replaysId }}';

INSERT example

Use the following StackQL query and manifest file to create a new replays resource.

/*+ create */
INSERT INTO google.policysimulator.replays (
foldersId,
locationsId,
config
)
SELECT
'{{ foldersId }}',
'{{ locationsId }}',
'{{ config }}'
;