MySQL 9.0.0
Source Code Documentation
psi_metric_service.h
Go to the documentation of this file.
1/* Copyright (c) 2023, 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENTS_SERVICES_PSI_METRIC_SERVICE_H
25#define COMPONENTS_SERVICES_PSI_METRIC_SERVICE_H
26
30
32/** @sa register_meters_v1_t. */
33register_meters_v1_t register_meters;
34/** @sa unregister_meters_v1_t. */
35unregister_meters_v1_t unregister_meters;
36/** @sa register_change_notification_v1_t. */
37register_change_notification_v1_t register_change_notification;
38/** @sa unregister_change_notification_v1_t. */
39unregister_change_notification_v1_t unregister_change_notification;
40/** @sa send_change_notification_v1_t. */
41send_change_notification_v1_t send_change_notification;
43
44#endif /* COMPONENTS_SERVICES_PSI_METRIC_SERVICE_H */
void(* unregister_meters_v1_t)(PSI_meter_info_v1 *info, size_t count)
Unregister a batch of meters and their telemetry metric sources.
Definition: psi_metric_bits.h:170
void(* register_meters_v1_t)(PSI_meter_info_v1 *info, size_t count)
Register a batch of telemetry meters (metric groups), each with its metrics.
Definition: psi_metric_bits.h:162
void(* unregister_change_notification_v1_t)(meter_registration_changes_v1_t callback)
Unregister a notification callback to track changes in the set of registered meters.
Definition: psi_metric_bits.h:196
void(* register_change_notification_v1_t)(meter_registration_changes_v1_t callback)
Register a notification callback to track changes in the set of registered meters.
Definition: psi_metric_bits.h:187
void(* send_change_notification_v1_t)(const char *meter, MeterNotifyType change)
Send a notification of changes in the set of registered meters.
Definition: psi_metric_bits.h:205
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:91
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:86
Specifies macros to define Service Implementations.