Example #1
0
def _get_key_net():
    """Returns an str with the next network key id."""
    return str(red.incr(_KEY_NET_ID))
Example #2
0
def _get_key_api():
    """Returns an str with the next api-key id."""
    return str(red.incr(_KEY_APIK_ID))
Example #3
0
def _get_key_entry():
    """Returns a str with the next entry key."""
    return str(red.incr(_KEY_ENTRY_ID))
Example #4
0
def _get_key_host():
    """Returns a str with the next host id."""
    return str(red.incr(_KEY_HOST_ID))
Example #5
0
def _get_key_event():
    """Returns an str with the next alert key id."""
    return str(red.incr(_KEY_EVENT_ID))