Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idfirebase.toolresults.clusters

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
activitystringA string that describes the activity of every screen in the cluster.
clusterIdstringA unique identifier for the cluster. @OutputOnly
keyScreenobjectA singular screen that represents the cluster as a whole. This screen will act as the "cover" of the entire cluster. When users look at the clusters, only the key screen from each cluster will be shown. Which screen is the key screen is determined by the ClusteringAlgorithm (id: Screen)
screensarrayFull list of screens.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectId, historyId, executionId, clusterIdRetrieves a single screenshot cluster by its ID
listselectprojectId, historyId, executionIdLists Screenshot Clusters Returns the list of screenshot clusters corresponding to an execution. Screenshot clusters are created after the execution is finished. Clusters are created from a set of screenshots. Between any two screenshots, a matching score is calculated based off their metadata that determines how similar they are. Screenshots are placed in the cluster that has screens which have the highest matching scores.

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
clusterIdstring
executionIdstring
historyIdstring
projectIdstring

SELECT examples

Retrieves a single screenshot cluster by its ID

SELECT
activity,
clusterId,
keyScreen,
screens
FROM firebase.toolresults.clusters
WHERE projectId = '{{ projectId }}' -- required
AND historyId = '{{ historyId }}' -- required
AND executionId = '{{ executionId }}' -- required
AND clusterId = '{{ clusterId }}' -- required;