probe Query

result_data_must_be_greater_than

Check query result to be lower than treshold

Run it now
View details
Typeprobe
Modulechaoshoneycomb.query.probes
Nameresult_data_must_be_greater_than
Returnboolean

Usage

JSON

{
  "name": "result-data-must-be-greater-than",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaoshoneycomb.query.probes",
    "func": "result_data_must_be_greater_than",
    "arguments": {
      "dataset_slug": "",
      "query_result_id": "",
      "property_name": "",
      "min_value": 0
    }
  }
}

YAML

name: result-data-must-be-greater-than
provider:
  arguments:
    dataset_slug: ''
    min_value: 0
    property_name: ''
    query_result_id: ''
  func: result_data_must_be_greater_than
  module: chaoshoneycomb.query.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
dataset_slugstringYesDatasetDataset slug
query_result_idstringYesQuery Result Identifier
property_namestringYesProperty NameProperty to look for and evaluate against the treshold
min_valuefloatYesTresholdMinimum value the property can take
other_propertiesobjectnullNoExtra PropertiesExtra properties to select the right result data. Must be a JSON encoded object of property names and values
timeoutinteger30NoTimeoutTimeout to fetch results when they are not complete yet

Signature

def result_data_must_be_greater_than(
        dataset_slug: str,
        query_result_id: str,
        property_name: str,
        min_value: float,
        other_properties: Optional[Dict[str, Any]] = None,
        timeout: int = 30,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> bool:
    pass