Skip to content

src/dazzle_back/pra/profiles.py

Generated: 2026-03-30T04:38:46.562554+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Load profiles for PRA stress testing.

Defines various load shapes as specified in the PRA specification: - Steady Ramp: Gradual increase to peak load - Burst: Sudden spike (≥10× baseline) for short duration - Skewed Burst: Burst focused on a small key set - Failure Injection: Partial downstream fai...

Key Exports

  • LoadPhase
  • LoadState
  • LoadProfile
  • SteadyRampProfile
  • BurstProfile
  • SkewedBurstProfile
  • FailureInjectionProfile
  • ReplayProfile
  • create_quick_test_profile
  • create_standard_test_profile
  • create_extended_test_profile
  • name
  • total_duration_seconds
  • get_state
  • is_complete
  • name
  • total_duration_seconds
  • get_state
  • name
  • total_duration_seconds

Dependencies

Imports

  • __future__.annotations
  • abc.ABC
  • abc.abstractmethod
  • dataclasses.dataclass
  • dataclasses.field
  • enum.StrEnum
  • typing.Any

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_pra_cli.py
  • tests/unit/test_pra_harness.py
  • tests/unit/test_pra_metrics.py
  • tests/unit/test_pra_load_generator.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.