Add checks with Aodh states

Change-Id: I91f9ac433bdb1121b648bb3c407e6aa41108787e
Related-Prod: https://mirantis.jira.com/browse/PROD-24972
diff --git a/aodh/upgrade/verify/_api.sls b/aodh/upgrade/verify/_api.sls
index b8c9bbc..d2467a7 100644
--- a/aodh/upgrade/verify/_api.sls
+++ b/aodh/upgrade/verify/_api.sls
@@ -4,8 +4,21 @@
   test.show_notification:
     - text: "Running aodh.upgrade.verify.api"
 
-#TODO add states checks when they are available for Aodh
 {%- if server.get('role', 'primary') == 'primary' %}
+{% set Alarm_Name = 'testupgrade_alarm_name' %}
+{% set Random_Uuid = salt['cmd.run']('cat /proc/sys/kernel/random/uuid') %}
+
+aodhv2_alarm_present:
+  aodhv2.alarm_present:
+  - cloud_name: admin_identity
+  - name: {{ Alarm_Name }}
+  - type: gnocchi_resources_threshold
+  - gnocchi_resources_threshold_rule:
+      metric: cpu_util
+      aggregation_method: mean
+      threshold: '70.0'
+      resource_id: {{ Random_Uuid }}
+      resource_type: instance
 
 aodhv2_alarm_list:
   module.run:
@@ -13,4 +26,9 @@
     - kwargs:
         cloud_name: admin_identity
 
+aodhv2_alarm_absent:
+  aodhv2.alarm_absent:
+  - cloud_name: admin_identity
+  - name: {{ Alarm_Name }}
+
 {%- endif %}