parameters: ()
docstring: Get the highest Rules priority
docstring_summary: Get the highest Rules priority
docstring_tokens: Get the highest Rules priority
function: def get_highest_priority():
      """Get the highest Rules priority"""
      try:
          rules_count = get_geofence_rules_count()
          rules_objs = get_geofence_rules(rules_count - 1)
          if len(rules_objs['rules']) > 0:
              highest_priority = rules_objs['rules'][0]['priority']
          else:
              highest_priority = 0
          return int(highest_priority)
      except Exception:
          tb = traceback.format_exc()
          logger.debug(tb)
          return -1
function_tokens: def get_highest_priority ( ) : try : rules_count = get_geofence_rules_count ( ) rules_objs = get_geofence_rules ( rules_count - 1 ) if len ( rules_objs [ 'rules' ] ) > 0 : highest_priority = rules_objs [ 'rules' ] [ 0 ] [ 'priority' ] else : highest_priority = 0 return int ( highest_priority ) except Exception : tb = traceback . format_exc ( ) logger . debug ( tb ) return - 1