Skip to main content

perf_sample_series

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

Overview

Nameperf_sample_series
TypeResource
Idfirebase.toolresults.perf_sample_series

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
basicPerfSampleSeriesobjectBasic series represented by a line chart (id: BasicPerfSampleSeries)
executionIdstringA tool results execution ID. @OutputOnly
historyIdstringA tool results history ID. @OutputOnly
projectIdstringThe cloud project @OutputOnly
sampleSeriesIdstringA sample series id @OutputOnly
stepIdstringA tool results step ID. @OutputOnly

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectId, historyId, executionId, stepId, sampleSeriesIdGets a PerfSampleSeries. May return any of the following error code(s): - NOT_FOUND - The specified PerfSampleSeries does not exist
listselectprojectId, historyId, executionId, stepIdfilterLists PerfSampleSeries for a given Step. The request provides an optional filter which specifies one or more PerfMetricsType to include in the result; if none returns all. The resulting PerfSampleSeries are sorted by ids. May return any of the following canonical error codes: - NOT_FOUND - The containing Step does not exist
createinsertprojectId, historyId, executionId, stepIdCreates a PerfSampleSeries. May return any of the following error code(s): - ALREADY_EXISTS - PerfMetricSummary already exists for the given Step - NOT_FOUND - The containing Step does not exist

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
executionIdstring
historyIdstring
projectIdstring
sampleSeriesIdstring
stepIdstring
filterstring

SELECT examples

Gets a PerfSampleSeries. May return any of the following error code(s): - NOT_FOUND - The specified PerfSampleSeries does not exist

SELECT
basicPerfSampleSeries,
executionId,
historyId,
projectId,
sampleSeriesId,
stepId
FROM firebase.toolresults.perf_sample_series
WHERE projectId = '{{ projectId }}' -- required
AND historyId = '{{ historyId }}' -- required
AND executionId = '{{ executionId }}' -- required
AND stepId = '{{ stepId }}' -- required
AND sampleSeriesId = '{{ sampleSeriesId }}' -- required;

INSERT examples

Creates a PerfSampleSeries. May return any of the following error code(s): - ALREADY_EXISTS - PerfMetricSummary already exists for the given Step - NOT_FOUND - The containing Step does not exist

INSERT INTO firebase.toolresults.perf_sample_series (
data__projectId,
data__historyId,
data__executionId,
data__stepId,
data__sampleSeriesId,
data__basicPerfSampleSeries,
projectId,
historyId,
executionId,
stepId
)
SELECT
'{{ projectId }}',
'{{ historyId }}',
'{{ executionId }}',
'{{ stepId }}',
'{{ sampleSeriesId }}',
'{{ basicPerfSampleSeries }}',
'{{ projectId }}',
'{{ historyId }}',
'{{ executionId }}',
'{{ stepId }}'
RETURNING
basicPerfSampleSeries,
executionId,
historyId,
projectId,
sampleSeriesId,
stepId
;