Initial commit for AAI-UI(sparky-backend)
[aai/sparky-be.git] / src / main / java / org / openecomp / sparky / analytics / ComponentStatistics.java
1 /**
2  * ============LICENSE_START===================================================
3  * SPARKY (AAI UI service)
4  * ============================================================================
5  * Copyright © 2017 AT&T Intellectual Property.
6  * Copyright © 2017 Amdocs
7  * All rights reserved.
8  * ============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * ============LICENSE_END=====================================================
21  *
22  * ECOMP and OpenECOMP are trademarks
23  * and service marks of AT&T Intellectual Property.
24  */
25
26 package org.openecomp.sparky.analytics;
27
28
29 /**
30  * The Interface ComponentStatistics.
31  */
32 public interface ComponentStatistics {
33
34   /**
35    * Adds the counter.
36    *
37    * @param key the key
38    */
39   public void addCounter(String key);
40
41   /**
42    * Peg counter.
43    *
44    * @param key the key
45    */
46   public void pegCounter(String key);
47
48   /**
49    * Increment counter.
50    *
51    * @param key the key
52    * @param value the value
53    */
54   public void incrementCounter(String key, int value);
55
56   /**
57    * Adds the histogram.
58    *
59    * @param key the key
60    * @param name the name
61    * @param maxYValue the max Y value
62    * @param numBins the num bins
63    * @param numDecimalPoints the num decimal points
64    */
65   public void addHistogram(String key, String name, long maxYValue, int numBins,
66       int numDecimalPoints);
67
68   /**
69    * Update histogram.
70    *
71    * @param key the key
72    * @param value the value
73    */
74   public void updateHistogram(String key, long value);
75
76   /**
77    * Reset.
78    */
79   public void reset();
80
81 }