MetroCollect  2.3.4
MetricsDataArray.h
Go to the documentation of this file.
1 //
2 // MetricsDataArray.h
3 //
4 // Created on July 18th 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 "MetricsArray.h"
24 
25 
26 namespace MetroCollect {
30  class MetricsDataArray : public MetricsArray<DataValueType> {
31  public:
35  MetricsDataArray() noexcept;
36 
43 
44 
50  void updateData();
51  };
52 }
MetricsSource::SourceInterests sourceInterests() const noexcept
Returns the source interests.
Definition: MetricsArray.cc:57
std::shared_ptr< std::vector< MetricsSource::Interests > > SourceInterests
Type used to store and share interests of multiple sources.
void updateData()
Fetch new metric values from each source.
Generic class to store and manage metrics.
Definition: MetricsArray.h:40
MetricsDataArray() noexcept
Construct a new Metrics Data Array object.
Class to fetch metrics from the kernel and store them.