# AlertThresholdAlgo

Threshold determination algorithms for alert rules.

Defines how alert thresholds are calculated - either manually specified or automatically computed based on historical data patterns.

## MANUAL

User-specified static thresholds. Provides full control but requires domain knowledge to set appropriately.

## STD\_DEV\_AUTO\_THRESHOLD

Automatic thresholds based on standard deviation. Calculates thresholds as mean ± (multiplier × std\_dev) from historical data. Adapts to data patterns automatically.

### Example

```python
# Manual threshold - user knows the acceptable drift limit
manual_alert = AlertRule(
        threshold_type=AlertThresholdAlgo.MANUAL,
        critical_threshold=0.1,
        warning_threshold=0.05
    )

    # Auto threshold - let system learn from historical patterns
    auto_alert = AlertRule(
            threshold_type=AlertThresholdAlgo.STD_DEV_AUTO_THRESHOLD,
            auto_threshold_params={
                    'warning_multiplier': 2.0,  # 2 std devs for warning
                    'critical_multiplier': 3.0  # 3 std devs for critical
                }
            )
```

## MANUAL *= 'manual'*

## STD\_DEV\_AUTO\_THRESHOLD *= 'standard\_deviation\_auto\_threshold'*

## **str**()

Return the string value of the enum.

### Returns

The enum's string value for serialization and display.

**Return type:** str

### Example

```python
algo = AlertThresholdAlgo.MANUAL
str(algo)
'manual'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fiddler.ai/api/fiddler-python-client-sdk/constants/alert-threshold-algo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
