Kinetic C/C++ Client
 All Classes Functions Variables Pages
drive_log.h
1 /*
2  * kinetic-cpp-client
3  * Copyright (C) 2014 Seagate Technology.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  */
20 
21 #ifndef KINETIC_CPP_CLIENT_DRIVE_LOG_H_
22 #define KINETIC_CPP_CLIENT_DRIVE_LOG_H_
23 
24 #include <list>
25 
26 namespace kinetic {
27 
28 typedef struct {
29  uint64_t nominal_capacity_in_bytes;
30  float portion_full;
31 } Capacity;
32 
33 typedef struct {
34  std::string name;
35  uint64_t count;
36  uint64_t bytes;
38 
39 typedef struct {
40  std::string name;
41  float percent;
42 } Utilization;
43 
44 typedef struct {
45  std::string name;
46  float current_degc;
47  float min_degc;
48  float max_degc;
49  float target_degc;
50 } Temperature;
51 
52 typedef struct {
53  std::string vendor;
54  std::string model;
55  std::string serial_number;
56  std::string version;
57  int port;
58  int tls_port;
59  std::string compilation_date;
60  std::string source_hash;
62 
63 typedef struct {
64  uint32_t max_key_size;
65  uint32_t max_value_size;
66  uint32_t max_version_size;
67  uint32_t max_tag_size;
68  uint32_t max_connections;
69  uint32_t max_outstanding_read_requests;
70  uint32_t max_outstanding_write_requests;
71  uint32_t max_message_size;
72 } Limits;
73 
74 
75 typedef struct {
76  Configuration configuration;
77  Capacity capacity;
78  std::list<OperationStatistic> operation_statistics;
79  std::list<Utilization> utilizations;
80  std::list<Temperature> temperatures;
81  Limits limits;
82  std::string messages;
83 } DriveLog;
84 
85 
86 } // namespace kinetic
87 
88 #endif // KINETIC_CPP_CLIENT_DRIVE_LOG_H_