NAME

gc_stat_status - Alarm levels of a connection statistic.

SYNOPSIS

#include <game-carrier/common.h>

enum gc_stat_status {
    GC_STAT_STATUS_OK = 0,
    GC_STAT_STATUS_YELLOW = 1,
    GC_STAT_STATUS_RED = 2,
    GC_STAT_STATUS_COUNT,
};

DESCRIPTION

The gc_stat_status enum is used to indicate the alarm level of a statistic.

Name Value Description
GC_STAT_STATUS_OK 0 For internal usage only.
GC_STAT_STATUS_YELLOW 1 Indicates the YELLOW zone limit. The on_issue event is triggered when a statistic enters this zone.
GC_STAT_STATUS_RED 2 Indicates the RED zone limit. The default action (typically connection dropping) is triggered when a statistic enters this zone.
GC_STAT_STATUS_COUNT 3 The total number of available alarm levels.

SEE ALSO

connectionSetLimit