code: def get_dev_alarms(devId):
      
      # checks to see if the imc credentials are already available
      if auth is None or url is None:
          set_imc_creds()
      global r
      get_dev_alarm_url = "/imcrs/fault/alarm?operatorName=admin&deviceId=" + \
                          str(devId) + "&desc=false"
      f_url = url + get_dev_alarm_url
      payload = None
      # creates the URL using the payload variable as the contents
      r = requests.get(f_url, auth=auth, headers=headers)
      if r.status_code == 200:
          dev_alarm = (json.loads(r.text))
          if 'alarm' in dev_alarm:
              return dev_alarm['alarm']
          else:
              return "Device has no alarms"
docs: function takes the devId of a specific device and issues a RESTFUL call to get the current alarms for the target
      device.
      :param devId: int or str value of the target device
      :return:list of dictionaries containing the alarms for this device