mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This commit better defines how we set states in resultNormal, resultAlerting, resultError and resultNoData. It changes the existing code to call methods such as SetAlerting, SetPending, SetNormal, SetError and NoData instead of assigning values to each individual field whenever the state is changed. This should make it easier to understand what fields should be set for which states and avoid cases where states are missing, or have additional unexpected fields. |
||
---|---|---|
.. | ||
historian | ||
cache_test.go | ||
cache.go | ||
image_mock.go | ||
manager_private_test.go | ||
manager_test.go | ||
manager.go | ||
persist.go | ||
state_test.go | ||
state.go | ||
template_test.go | ||
template.go | ||
testing.go |