SDK reference / Models / Observability

ServiceGoal

Kind: class

Namespace: Egulu.Sdk.Models.Observability

A goal for one web app or container app of the project: a share of good requests over a window, with its error budget and how fast it burns(ADR-0828 proposed). The platform evaluates it every minute from the edge request metrics.

Properties

NameTypeJSON nameDescription
BudgetUsedRatiodouble?budgetUsedRatioThe share of the error budget used: 1 is all of it, over 1 is a breach; absent without requests.
BurnRate1hdouble?burnRate1hHow many times faster than the budget allows the last hour burned it; 1 spends the budget exactly over the window. Absent without requests in the hour.
CreateTimeDateTimeOffset?createTimeThe createTime property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
GoodEventsdouble?goodEventsGood requests in the window.
IndicatorModels.Observability.ServiceGoalIndicator?indicatorWhat a service goal measures.
LabelsModels.Observability.ServiceGoal_labels?labelsAt most 64.
LastEvaluatedTimeDateTimeOffset?lastEvaluatedTimeWhen it was last evaluated.
LatencyBoundMsint?latencyBoundMsLATENCY: the bound in milliseconds, one of 50, 100, 250, 500, 1000, 2500, 5000 (the edge histogram's bucket bounds).
Namestring?nameprojects/{project}/locations/{location}/serviceGoals/{serviceGoal}.
Resourcestring?resourceThe web app or container app it is about: `projects/{project}/locations/{location}/webApps/{id}` or `.../apps/{id}`. Cannot change.
Slidouble?sliGood requests over total in the window, 0 to 1; absent without requests.
StateModels.Observability.ServiceGoalState?stateWhere it stands: NO_DATA until requests were seen, OK, AT_RISK (burning twice as fast as the budget allows, or 80% used), BREACHED (budget used up).
Targetdouble?targetThe share of good requests to keep, 0.9 to 0.9999.
TotalEventsdouble?totalEventsRequests in the window.
Uidstring?uidThe uid property
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
WindowDaysint?windowDaysThe window in days, 7 or 30.