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
| Name | Type | JSON name | Description |
|---|---|---|---|
BudgetUsedRatio | double? | budgetUsedRatio | The share of the error budget used: 1 is all of it, over 1 is a breach; absent without requests. |
BurnRate1h | double? | burnRate1h | How 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. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DisplayName | string? | displayName | Up to 63 characters. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
GoodEvents | double? | goodEvents | Good requests in the window. |
Indicator | Models.Observability.ServiceGoalIndicator? | indicator | What a service goal measures. |
Labels | Models.Observability.ServiceGoal_labels? | labels | At most 64. |
LastEvaluatedTime | DateTimeOffset? | lastEvaluatedTime | When it was last evaluated. |
LatencyBoundMs | int? | latencyBoundMs | LATENCY: the bound in milliseconds, one of 50, 100, 250, 500, 1000, 2500, 5000 (the edge histogram's bucket bounds). |
Name | string? | name | projects/{project}/locations/{location}/serviceGoals/{serviceGoal}. |
Resource | string? | resource | The web app or container app it is about: `projects/{project}/locations/{location}/webApps/{id}` or `.../apps/{id}`. Cannot change. |
Sli | double? | sli | Good requests over total in the window, 0 to 1; absent without requests. |
State | Models.Observability.ServiceGoalState? | state | Where 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). |
Target | double? | target | The share of good requests to keep, 0.9 to 0.9999. |
TotalEvents | double? | totalEvents | Requests in the window. |
Uid | string? | uid | The uid property |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |
WindowDays | int? | windowDays | The window in days, 7 or 30. |