Google Cloud
get_slo_health_from_url
Retrieves SLO for services served by a GCP load balancer
Answers the question, “How much of the error budget remained at the time of the measurement?”
Type | probe |
Module | chaosgcp.monitoring.probes |
Name | get_slo_budget |
Return | list |
Usage
JSON
{
"name": "get-slo-budget",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosgcp.monitoring.probes",
"func": "get_slo_budget",
"arguments": {
"name": ""
}
}
}
YAML
name: get-slo-budget
provider:
arguments:
name: ''
func: get_slo_budget
module: chaosgcp.monitoring.probes
type: python
type: probe
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
name | string | Yes | Name | The full path to the SLO name such as projects/PROJECT_ID/services/SVC_NAME/serviceLevelObjectives/SLO_ID | |
end_time | string | now | No | End Window | |
window | string | 5 minutes | No | Window Length |
See https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/timeseries-selectors
Signature
def get_slo_budget(
name: str,
end_time: str = 'now',
window: str = '5 minutes',
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
pass