MySQL 9.1.0
Source Code Documentation
event_tracking_message_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 COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_MESSAGE_DEFS_H
25#define COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_MESSAGE_DEFS_H
26
28
29/**
30 @file mysql/components/services/defs/event_tracking_message_defs.h
31 Data for message event tracking.
32*/
33
34/** Internally generated message. */
35#define EVENT_TRACKING_MESSAGE_INTERNAL (1 << 0)
36/** User generated message. */
37#define EVENT_TRACKING_MESSAGE_USER (1 << 1)
38
39#define EVENT_TRACKING_MESSAGE_ALL \
40 EVENT_TRACKING_MESSAGE_INTERNAL | EVENT_TRACKING_MESSAGE_USER
41
42/**
43 @typedef mysql_event_tracking_message_subclass_t
44
45 Events for Message event tracking.
46*/
48
49/** Value is of the string type. */
50#define EVENT_TRACKING_MESSAGE_VALUE_TYPE_STR (1 << 0)
51/** Value is of the numeric type. */
52#define EVENT_TRACKING_MESSAGE_VALUE_TYPE_NUM (1 << 1)
53
54/**
55 @typedef mysql_event_tracking_message_value_type_t
56
57 Type of the value element of the key-value pair.
58*/
59
61
62/**
63 @struct mysql_event_tracking_message_key_value_t
64
65 Structure that stores key-value pair of the Message event
66*/
68 /** Key element. */
70 /** Value element type. */
72 /** Value element. */
73 union {
74 /** String element. */
76 /** Numeric element. */
77 long long num;
79};
80
81/**
82 @struct mysql_event_tracking_message_data
83
84 Structure for Message event tracking.
85*/
87 /** Connection id. */
89 /** Event subclass. */
91 /** Component. */
93 /** Producer */
95 /** Message */
97 /** Key value map pointer. */
99 /** Key value map length. */
101};
102
103#endif // !COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_MESSAGE_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
int mysql_event_tracking_message_value_type_t
Type of the value element of the key-value pair.
Definition: event_tracking_message_defs.h:60
unsigned long mysql_event_tracking_message_subclass_t
Events for Message event tracking.
Definition: event_tracking_message_defs.h:47
String with length information.
Definition: mysql_string_defs.h:33
Structure for Message event tracking.
Definition: event_tracking_message_defs.h:86
mysql_cstring_with_length message
Message.
Definition: event_tracking_message_defs.h:96
mysql_connection_id connection_id
Connection id.
Definition: event_tracking_message_defs.h:88
mysql_cstring_with_length component
Component.
Definition: event_tracking_message_defs.h:92
mysql_event_tracking_message_key_value_t * key_value_map
Key value map pointer.
Definition: event_tracking_message_defs.h:98
mysql_cstring_with_length producer
Producer.
Definition: event_tracking_message_defs.h:94
mysql_event_tracking_message_subclass_t event_subclass
Event subclass.
Definition: event_tracking_message_defs.h:90
size_t key_value_map_length
Key value map length.
Definition: event_tracking_message_defs.h:100
Structure that stores key-value pair of the Message event.
Definition: event_tracking_message_defs.h:67
mysql_cstring_with_length str
String element.
Definition: event_tracking_message_defs.h:75
mysql_cstring_with_length key
Key element.
Definition: event_tracking_message_defs.h:69
mysql_event_tracking_message_value_type_t value_type
Value element type.
Definition: event_tracking_message_defs.h:71
long long num
Numeric element.
Definition: event_tracking_message_defs.h:77
union mysql_event_tracking_message_key_value_t::@4 value
Value element.