** Copyright (C) 2001-2023 Zabbix SIA
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"git.zabbix.com/ap/plugin-support/metric"
"git.zabbix.com/ap/plugin-support/plugin"
"git.zabbix.com/ap/plugin-support/uri"
keyArchive = "oracle.archive.info"
keyArchiveDiscovery = "oracle.archive.discovery"
keyASMDiskGroups = "oracle.diskgroups.stats"
keyASMDiskGroupsDiscovery = "oracle.diskgroups.discovery"
keyCDB = "oracle.cdb.info"
keyCustomQuery = "oracle.custom.query"
keyDatabasesDiscovery = "oracle.db.discovery"
keyDataFiles = "oracle.datafiles.stats"
keyFRA = "oracle.fra.stats"
keyInstance = "oracle.instance.info"
keyPDB = "oracle.pdb.info"
keyPDBDiscovery = "oracle.pdb.discovery"
keyPGA = "oracle.pga.stats"
keyProc = "oracle.proc.stats"
keyRedoLog = "oracle.redolog.info"
keySessions = "oracle.sessions.stats"
keySGA = "oracle.sga.stats"
keySysMetrics = "oracle.sys.metrics"
keySysParams = "oracle.sys.params"
keyTablespaces = "oracle.ts.stats"
keyTablespacesDiscovery = "oracle.ts.discovery"
keyUser = "oracle.user.info"
// handlerFunc defines an interface must be implemented by handlers.
ctx context.Context, conn OraClient, params map[string]string, extraParams ...string,
) (res interface{}, err error)
// getHandlerFunc returns a handlerFunc related to a given key.
func getHandlerFunc(key string) handlerFunc {