# `Choreo.ThreatModel.Analysis.Rule`
[🔗](https://github.com/code-shoily/choreo/blob/v0.14.1/lib/choreo/threat_model/analysis.ex#L28)

Extensible callback protocols for defining organizational custom threat metrics.

# `threats_for_element`
*optional* 

```elixir
@callback threats_for_element(Choreo.ThreatModel.t(), Yog.node_id(), map()) :: [map()]
```

# `threats_for_flow`
*optional* 

```elixir
@callback threats_for_flow(Choreo.ThreatModel.t(), Yog.node_id(), Yog.node_id(), map()) ::
  [map()]
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
