Skip to content

SLOQueryBuilder🔗

Constructor🔗

new SLOQueryBuilder()

Methods🔗

build🔗

Builds the object.

public SLOQuery build()

alignmentPeriod🔗

Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.

public SLOQueryBuilder alignmentPeriod(String alignmentPeriod)

goal🔗

SLO goal value.

public SLOQueryBuilder goal(Double goal)

lookbackPeriod🔗

Specific lookback period for the SLO.

public SLOQueryBuilder lookbackPeriod(String lookbackPeriod)

perSeriesAligner🔗

Alignment function to be used. Defaults to ALIGN_MEAN.

public SLOQueryBuilder perSeriesAligner(String perSeriesAligner)

projectName🔗

GCP project to execute the query against.

public SLOQueryBuilder projectName(String projectName)

selectorName🔗

SLO selector.

public SLOQueryBuilder selectorName(String selectorName)

serviceId🔗

ID for the service the SLO is in.

public SLOQueryBuilder serviceId(String serviceId)

serviceName🔗

Name for the service the SLO is in.

public SLOQueryBuilder serviceName(String serviceName)

sloId🔗

ID for the SLO.

public SLOQueryBuilder sloId(String sloId)

sloName🔗

Name of the SLO.

public SLOQueryBuilder sloName(String sloName)

See also🔗