Documentation
¶
Index ¶
- Constants
- Variables
- func EnableNasMetrics()
- func GetNasHandlerMetrics(namespace string) []prometheus.Collector
- func IncrMetricsRcvNasMsg(msg *nas.Message, isStatusSuccess *bool, cause *string)
- func IncrMetricsSentNasMsgs(msgType string, isStatusSuccess *bool, cause5GMM uint8, otherCause *string)
- func IsNasMetricsEnabled() bool
- type IeFromGmmMessage
Constants ¶
View Source
const ( SUBSYSTEM_NAME = "nas" NAS_MSG_RCV_COUNTER_NAME = "msg_received_total" NAS_MSG_RCV_COUNTER_DESC = "Total number of received NAS message" NAS_MSG_SENT_COUNTER_NAME = "nas_msg_sent_total" NAS_MSG_SENT_COUNTER_DESC = "Total number of NAS message sent" )
View Source
const ( NAME_LABEL = "name" STATUS_LABEL = "status" CAUSE_LABEL = "cause" )
metric collectors label values
View Source
const ( AUTHENTICATION_REQUEST = "AuthenticationRequest" AUTHENTICATION_RESPONSE = "AuthenticationResponse" AUTHENTICATION_RESULT = "AuthenticationResult" AUTHENTICATION_FAILURE = "AuthenticationFailure" AUTHENTICATION_REJECT = "AuthenticationReject" REGISTRATION_REQUEST = "RegistrationRequest" REGISTRATION_ACCEPT = "RegistrationAccept" REGISTRATION_ACCEPT_TIMER = "RegistrationAcceptTimer" REGISTRATION_COMPLETE = "RegistrationComplete" REGISTRATION_REJECT = "RegistrationReject" UL_NAS_TRANSPORT = "ULNASTransport" DL_NAS_TRANSPORT = "DLNASTransport" DEREGISTRATION_REQUEST_UE_ORIGINATING_DEREGISTRATION = "DeregistrationRequestUEOriginatingDeregistration" DEREGISTRATION_ACCEPT_UE_ORIGINATING_DEREGISTRATION = "DeregistrationAcceptUEOriginatingDeregistration" DEREGISTRATION_REQUEST_UE_TERMINATED_DEREGISTRATION = "DeregistrationRequestUETerminatedDeregistration" DEREGISTRATION_ACCEPT_UE_TERMINATED_DEREGISTRATION = "DeregistrationAcceptUETerminatedDeregistration" SERVICE_REQUEST = "ServiceRequest" SERVICE_ACCEPT = "ServiceAccept" SERVICE_REJECT = "ServiceReject" CONFIGURATION_UPDATE_COMMAND = "ConfigurationUpdateCommand" CONFIGURATION_UPDATE_COMMAND_TIMER = "ConfigurationUpdateCommandTimer" CONFIGURATION_UPDATE_COMPLETE = "ConfigurationUpdateComplete" IDENTITY_REQUEST = "IdentityRequest" IDENTITY_RESPONSE = "IdentityResponse" NOTIFICATION = "Notification" NOTIFICATION_TIMER = "NotificationTimer" NOTIFICATION_RESPONSE = "NotificationResponse" SECURITY_MODE_COMMAND = "SecurityModeCommand" SECURITY_MODE_COMPLETE = "SecurityModeComplete" SECURITY_MODE_REJECT = "SecurityModeReject" SECURITY_PROTECTED_5GS_NAS_MESSAGE = "SecurityProtected5GSNASMessage" STATUS_5GMM = "Status5GMM" )
These values are tied to the metrics NAS message type
View Source
const ( RAN_UE_NIL_ERR = "RanUe is nil" AMF_UE_NIL_ERR = "AmfUe is nil" RAN_NIL_ERR = "Ran is nil" NAS_PDU_NIL_ERR = "nasPdu is nil" AUTH_CTX_UE_NIL_ERR = "Authentication Context of UE is nil" NAS_MSG_BUILD_ERR = "Could not build NAS message" DECODE_NAS_MSG_ERR = "Could not decode NAS message" AUSF_AUTH_ERR = "Ausf Authentication Failure" HRES_AUTH_ERR = "HRES* validation failure" )
Additional error causes
Variables ¶
View Source
var ( NasMsgRcvCounter *prometheus.CounterVec NasMsgSentCounter *prometheus.CounterVec )
Functions ¶
func EnableNasMetrics ¶
func EnableNasMetrics()
func GetNasHandlerMetrics ¶
func GetNasHandlerMetrics(namespace string) []prometheus.Collector
func IncrMetricsRcvNasMsg ¶
func IncrMetricsSentNasMsgs ¶
func IsNasMetricsEnabled ¶
func IsNasMetricsEnabled() bool
Types ¶
type IeFromGmmMessage ¶
type IeFromGmmMessage struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.