SLOQueryBuilder
Constructor
func NewSLOQueryBuilder() *SLOQueryBuilder
Methods
Build
Builds the object.
func (builder *SLOQueryBuilder) Build() (SLOQuery, error)
AlignmentPeriod
Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.
func (builder *SLOQueryBuilder) AlignmentPeriod(alignmentPeriod string) *SLOQueryBuilder
Goal
SLO goal value.
func (builder *SLOQueryBuilder) Goal(goal float64) *SLOQueryBuilder
LookbackPeriod
Specific lookback period for the SLO.
func (builder *SLOQueryBuilder) LookbackPeriod(lookbackPeriod string) *SLOQueryBuilder
PerSeriesAligner
Alignment function to be used. Defaults to ALIGN_MEAN.
func (builder *SLOQueryBuilder) PerSeriesAligner(perSeriesAligner string) *SLOQueryBuilder
ProjectName
GCP project to execute the query against.
func (builder *SLOQueryBuilder) ProjectName(projectName string) *SLOQueryBuilder
SelectorName
SLO selector.
func (builder *SLOQueryBuilder) SelectorName(selectorName string) *SLOQueryBuilder
ServiceId
ID for the service the SLO is in.
func (builder *SLOQueryBuilder) ServiceId(serviceId string) *SLOQueryBuilder
ServiceName
Name for the service the SLO is in.
func (builder *SLOQueryBuilder) ServiceName(serviceName string) *SLOQueryBuilder
SloId
ID for the SLO.
func (builder *SLOQueryBuilder) SloId(sloId string) *SLOQueryBuilder
SloName
Name of the SLO.
func (builder *SLOQueryBuilder) SloName(sloName string) *SLOQueryBuilder
See also