MySQL 8.4.0
Source Code Documentation
event_tracking_general_defs.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENT_SERVICES_DEFS_EVENT_TRACKING_GENERAL_DEFS_H
25#define COMPONENT_SERVICES_DEFS_EVENT_TRACKING_GENERAL_DEFS_H
26
28
29/**
30 @file mysql/components/services/defs/event_tracking_general_defs.h
31 Data for general event tracking.
32*/
33
34/** occurs before emitting to the general query log. */
35#define EVENT_TRACKING_GENERAL_LOG (1 << 0)
36/** occurs before transmitting errors to the user. */
37#define EVENT_TRACKING_GENERAL_ERROR (1 << 1)
38/** occurs after transmitting a resultset to the user. */
39#define EVENT_TRACKING_GENERAL_RESULT (1 << 2)
40/** occurs after transmitting a resultset or errors */
41#define EVENT_TRACKING_GENERAL_STATUS (1 << 3)
42
43#define EVENT_TRACKING_GENERAL_ALL \
44 EVENT_TRACKING_GENERAL_LOG | EVENT_TRACKING_GENERAL_ERROR | \
45 EVENT_TRACKING_GENERAL_RESULT | EVENT_TRACKING_GENERAL_STATUS
46
47/**
48 @typedef mysql_event_tracking_general_subclass_t
49
50 Events for the General event tracking.
51*/
53
54/**
55 @struct mysql_event_tracking_general_data
56
57 Structure for General event tracking.
58*/
60 /** Event subclass */
62 /** Error code if any*/
64 /** Connection ID */
66 /** User name of this connection */
68 /** Connection host */
70 /** Connection IP */
72};
73
74#endif // !COMPONENT_SERVICES_DEFS_EVENT_TRACKING_GENERAL_DEFS_H
Common data used for tracking various types of events.
unsigned long mysql_connection_id
Connection Identifier.
Definition: event_tracking_common_defs.h:46
unsigned long mysql_event_tracking_general_subclass_t
Events for the General event tracking.
Definition: event_tracking_general_defs.h:52
String with length information.
Definition: mysql_string_defs.h:33
Structure for General event tracking.
Definition: event_tracking_general_defs.h:59
mysql_connection_id connection_id
Connection ID.
Definition: event_tracking_general_defs.h:65
mysql_cstring_with_length user
User name of this connection.
Definition: event_tracking_general_defs.h:67
mysql_cstring_with_length ip
Connection IP.
Definition: event_tracking_general_defs.h:71
int error_code
Error code if any.
Definition: event_tracking_general_defs.h:63
mysql_event_tracking_general_subclass_t event_subclass
Event subclass.
Definition: event_tracking_general_defs.h:61
mysql_cstring_with_length host
Connection host.
Definition: event_tracking_general_defs.h:69