API Reference AshDyan v#0.1.0

Copy Markdown View Source

Modules

AshDyan — runtime-driven dynamic analysis for any Ash resource.

A small MFA-based bridge for exposing AshDyan through ash_phoenix_gen_api.

A thin Phoenix Channel adapter for AshDyan.

A thin Phoenix controller adapter for AshDyan.

Turn an AshDyan.Result into chart-library-ready shapes.

Behaviour describing what analysis capabilities a given Ash data layer supports.

Default capability set for unknown data layers.

Capability set for the AshPostgres data layer.

Capability set for the in-memory Ash.DataLayer.Simple (ETS) data layer.

The AshDyan Spark DSL extension for domains.

Introspection helpers for the domain-level dyan registry.

Struct describing a single analyzable_field declared in the dyan DSL section.

Struct describing a single analyzable_resource declared in the dyan DSL section of a Domain.

Validates the domain-level dyan registry after compilation.

Compile-time transformer that persists a normalized view of the dyan configuration onto the resource for fast runtime access.

Validates the dyan DSL configuration after compilation.

Translates a validated AshDyan.Request into an Ash.Query, runs it through the resource's normal read action (so Ash policies apply), and aggregates the result in memory into a chart-ready shape.

Aggregates raw Ash records (returned by the read action) in memory into the stable labels/series output shape.

Helpers for time-bucket analysis.

Error type raised/returned by AshDyan.

Introspection helpers for the dyan DSL configuration of a resource.

The runtime request spec for a dynamic analysis.

The chart-ready output shape returned by AshDyan.run/1.