probe Monitoring

get_slo_health_from_url

Retrieves SLO for services served by a GCP load balancer

Run it now
View details
Typeprobe
Modulechaosgcp.monitoring.probes
Nameget_slo_health_from_url
Returnlist

Usage

JSON

{
  "name": "get-slo-health-from-url",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgcp.monitoring.probes",
    "func": "get_slo_health_from_url",
    "arguments": {
      "url": ""
    }
  }
}

YAML

name: get-slo-health-from-url
provider:
  arguments:
    url: ''
  func: get_slo_health_from_url
  module: chaosgcp.monitoring.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
project_idstringYesProjectName of the GCP project holding the SLO
urlstringYesURLFull URL managed by a GCP load balancer
end_timestringnowNoEnd Window
windowstring5 minutesNoWindow Length
alignment_periodinteger60NoAlignment PeriodInterval, in seconds, that is used to divide the data into consistent blocks of time
per_series_alignerstringALIGN_MEANNoPer Series AlignerDescribes how to bring the data points in a single time series into temporal alignment
cross_series_reducerstringREDUCE_MEANNoCross Series ReducerReduction operation to be used to combine time series into a single time series
group_by_fieldsstring""NoGroup By FieldsComma-separated set of fields to preserve when Cross Series Reducer is specified

See https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/timeseries-selectors

For aggregation, see also this

Signature

def get_slo_health_from_url(
        url: str,
        end_time: str = 'now',
        window: str = '5 minutes',
        alignment_period: int = 60,
        per_series_aligner: str = 'ALIGN_MEAN',
        cross_series_reducer: int = 'REDUCE_COUNT',
        group_by_fields: Union[str, List[str], NoneType] = None,
        project_id: str = None,
        region: str = None,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
    pass