-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalyze.py
More file actions
27 lines (18 loc) · 831 Bytes
/
analyze.py
File metadata and controls
27 lines (18 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
Analyze request models.
Copyright (c) 2026 Stefan Kumarasinghe.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
License. See http://www.apache.org/licenses/LICENSE-2.0 for details.
"""
from __future__ import annotations
from pydantic import Field
from ._time_range import TimeRangeRequest
class AnalyzeRequest(TimeRangeRequest):
config_yaml: str | None = None
sensitivity: float | None = Field(default=3.0, ge=1.0, le=6.0)
apdex_threshold_ms: float = 500.0
slo_target: float = Field(default=0.999, ge=0.0, le=1.0)
correlation_window_seconds: float = Field(default=60.0, ge=10.0, le=600.0)
forecast_horizon_seconds: float = Field(default=1800.0, ge=60.0, le=86400.0)
class AnalyzeJobCreateRequest(AnalyzeRequest):
pass