Simon Kelley | c8e8f5c | 2021-01-24 21:59:37 +0000 | [diff] [blame] | 1 | /* dnsmasq is Copyright (c) 2000-2021 Simon Kelley |
Simon Kelley | 8c1b6a5 | 2018-07-21 22:12:32 +0100 | [diff] [blame] | 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 as published by |
| 5 | the Free Software Foundation; version 2 dated June, 1991, or |
| 6 | (at your option) version 3 dated 29 June, 2007. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU General Public License for more details. |
| 12 | |
| 13 | You should have received a copy of the GNU General Public License |
| 14 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #include "dnsmasq.h" |
| 18 | |
| 19 | const char * metric_names[] = { |
| 20 | "dns_cache_inserted", |
| 21 | "dns_cache_live_freed", |
| 22 | "dns_queries_forwarded", |
| 23 | "dns_auth_answered", |
| 24 | "dns_local_answered", |
| 25 | "bootp", |
| 26 | "pxe", |
| 27 | "dhcp_ack", |
| 28 | "dhcp_decline", |
| 29 | "dhcp_discover", |
| 30 | "dhcp_inform", |
| 31 | "dhcp_nak", |
| 32 | "dhcp_offer", |
| 33 | "dhcp_release", |
| 34 | "dhcp_request", |
| 35 | "noanswer", |
| 36 | "leases_allocated_4", |
| 37 | "leases_pruned_4", |
| 38 | "leases_allocated_6", |
| 39 | "leases_pruned_6", |
| 40 | }; |
| 41 | |
| 42 | const char* get_metric_name(int i) { |
| 43 | return metric_names[i]; |
| 44 | } |