getGradleAttributesFlow

fun BuildsApi.getGradleAttributesFlow(since: Long = 0, sinceBuild: String? = null, fromInstant: Long? = null, fromBuild: String? = null, query: String? = null, reverse: Boolean? = null, maxWaitSecs: Int? = null, scope: CoroutineScope = GlobalScope, models: List<BuildModelName>? = null): Flow<GradleAttributes>(source)

Deprecated

Use `getBuildsFlow(models = listOf(BuildModelName.gradleAttributes))` instead. This function will be removed in the next release.

Replace with

import com.gabrielfeo.gradle.enterprise.api.extension.getBuildsFlow
import com.gabrielfeo.gradle.enterprise.api.model.BuildModelName
getBuildsFlow(since, sinceBuild, fromInstant, fromBuild, query, reverse,maxWaitSecs, models = listOf(BuildModelName.gradleAttributes))

Gets GradleAttributes of all builds from a given date. Queries BuildsApi.getBuilds first, the endpoint providing a timeline of builds, then maps each to BuildsApi.getGradleAttributes.

Instead of filtering builds downstream based on GradleAttributes (e.g. using Flow.filter), prefer filtering server-side using a query (see BuildsApi.getBuilds).

Buffering

Will request eagerly and buffer up to Int.MAX_VALUE calls.

Concurrency

Attributes are requested concurrently in coroutines started in scope. The number of concurrent requests underneath is still limited by Config.maxConcurrentRequests.

Parameters

scope

CoroutineScope in which to create coroutines. Defaults to GlobalScope.