MetroCollect  2.3.4
MetricTypes.h
Go to the documentation of this file.
1 //
2 // MetricTypes.h
3 //
4 // Created on July 23th 2018
5 //
6 // Copyright 2018 CFM (www.cfm.fr)
7 //
8 // Licensed under the Apache License, Version 2.0 (the "License");
9 // you may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at
11 //
12 // http://www.apache.org/licenses/LICENSE-2.0
13 //
14 // Unless required by applicable law or agreed to in writing, software
15 // distributed under the License is distributed on an "AS IS" BASIS,
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 // See the License for the specific language governing permissions and
18 // limitations under the License.
19 //
20 
21 #pragma once
22 
23 #include <cstdint>
24 #include <vector>
25 
26 
27 namespace MetroCollect {
28  using DataValueType = int64_t;
29  using DiffValueType = double;
30 
31  namespace MetricsSource {
35  namespace DataArray {
36  using Iterator = std::vector<DataValueType>::iterator;
37  using ConstIterator = std::vector<DataValueType>::const_iterator;
38  }
39 
43  namespace DiffArray {
44  using Iterator = std::vector<DiffValueType>::iterator;
45  using ConstIterator = std::vector<DiffValueType>::const_iterator;
46  }
47  }
48 }
std::vector< DataValueType >::const_iterator ConstIterator
Const iterator type of MetricsDataArray.
Definition: MetricTypes.h:37
int64_t DataValueType
Type of fetched raw metrics.
Definition: MetricTypes.h:28
std::vector< DiffValueType >::iterator Iterator
Iterator type of MetricsDiffArray.
Definition: MetricTypes.h:44
std::vector< DataValueType >::iterator Iterator
Iterator type of MetricsDataArray.
Definition: MetricTypes.h:36
std::vector< DiffValueType >::const_iterator ConstIterator
Const iterator type of MetricsDiffArray.
Definition: MetricTypes.h:45
double DiffValueType
Type of metric variation.
Definition: MetricTypes.h:29