Google Cloud
get_slo_burn_rate
Answers the question, “How much of the error budget remained at the time of the measurement?”
Indicates whether a file in Cloud Storage bucket exists
Below are the details and signature of the activity Python module.
Type | probe |
Module | chaosgcp.storage.probes |
Name | object_exists |
Return | boolean |
Usage
JSON
{
"name": "object-exists",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosgcp.storage.probes",
"func": "object_exists",
"arguments": {
"bucket_name": "",
"object_name": ""
}
}
}
YAML
name: object-exists
provider:
arguments:
bucket_name: ""
object_name: ""
func: object_exists
module: chaosgcp.storage.probes
type: python
type: probe
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
bucket_name | string | Yes | Bucket | Name of the bucket | |
object_name | string | Yes | Object | Name of the object to check in the bucket |
Signature
def object_exists(bucket_name: str,
object_name: str,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> bool:
pass