diff --git a/src/grafanarmadillo/flow.py b/src/grafanarmadillo/flow.py index db23dcd..710ec59 100644 --- a/src/grafanarmadillo/flow.py +++ b/src/grafanarmadillo/flow.py @@ -84,11 +84,11 @@ def read_alert(self, name): def read_dashboard(self, name): """Read a dashboard from this store.""" - return self._read(self.resolve_object_to_filepath(name, self.TOK_ALERT), self.json_decoder) + return self._read(self.resolve_object_to_filepath(name, self.TOK_DASHBOARD), self.json_decoder) def write_alert(self, name, alert): """Write an alert to this store.""" - return self._write(self.resolve_object_to_filepath(name, self.TOK_DASHBOARD), alert, self.json_encoder) + return self._write(self.resolve_object_to_filepath(name, self.TOK_ALERT), alert, self.json_encoder) def write_dashboard(self, name, dashboard): """Write an alert to this store."""