Skip to content

InsightRootCause

Structure Class

InsightRootCause dataclass

Bases: _SerdeShape

A root cause that contributes to an insight.

Attributes

affected_session_count class-attribute instance-attribute
affected_session_count: int | None = ...

The number of distinct sessions affected by the root cause. A session can be affected by more than one root cause of the same insight.

explanation instance-attribute
explanation: str

An explanation of how the root cause leads to the failures in the insight.

name instance-attribute
name: str

A generated label for the root cause.

sample_sessions class-attribute instance-attribute
sample_sessions: list[SampleSession] | None = ...

A sample of up to 10 sessions affected by the root cause.

suggested_fix class-attribute instance-attribute
suggested_fix: str | None = ...

A suggested change to the agent that addresses the root cause.