grafanalib icon indicating copy to clipboard operation
grafanalib copied to clipboard

ALERTRULE_STATE_DATA_NODATA contains incorrect value for AlertRulev9

Open andreas-aman opened this issue 1 year ago • 1 comments

What you expected to happen?

I expect the AlertRule to contain correct value for no_data_state

What happened?

When I use ALERTRULE_STAT_DATA_NODATA and upload the alertgroup it returns the following error

{"message":"invalid rule specification at index [0]: unknown NoData state option No Data","traceID":""}%

How to reproduce it?

Create an AlertRulev9 with noDataAlertState=ALERTRULE_STAT_DATA_NODATA and upload it to grafana.

andreas-aman avatar Jun 07 '23 06:06 andreas-aman

ValueError: could not upload alert. failed with status code: 500. message: unknown NoData state option No Data

Still getting the above error when alert is created using AlertRulev9. Can you please test and merge this MR to fix this issue?

verti9 avatar Oct 02 '23 20:10 verti9