Skip to content

Commit

Permalink
all alertdefinitions available from api
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Tief committed Jul 18, 2023
1 parent 3464cad commit 7c7c405
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inventory/Api.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def sddc_health_objects(target, iteration):
def alert_alertdefinitions(alert_id):
return self.builder.alertdefinitions.get(alert_id, {})

@app.route('/alertdefinitions', methods=['GET'])
def alert_alertdefinitions():
return self.builder.alertdefinitions, {})

@app.route('/iteration', methods=['GET'])
def iteration():
return_iteration = self.builder.successful_iteration_list[-1]
Expand Down

0 comments on commit 7c7c405

Please sign in to comment.