blob: cfc411fdd25f8a5277f7255c3c6811bb8a05709a [file] [log] [blame]
yro00698da2017-09-15 10:06:40 -07001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Yang Lu3eba6212017-10-25 19:54:45 -070016
17#pragma once
yro00698da2017-09-15 10:06:40 -070018
Yao Chend5aa01b32017-12-19 16:46:36 -080019#include "HashableDimensionKey.h"
yro00698da2017-09-15 10:06:40 -070020
Yang Lu3eba6212017-10-25 19:54:45 -070021#include <unordered_map>
22
Yao Chen44cf27c2017-09-14 22:32:50 -070023namespace android {
24namespace os {
25namespace statsd {
yro00698da2017-09-15 10:06:40 -070026
Yangster-mac20877162017-12-22 17:19:39 -080027const HashableDimensionKey DEFAULT_DIMENSION_KEY = HashableDimensionKey();
Yangster-mac93694462018-01-22 20:49:31 -080028const MetricDimensionKey DEFAULT_METRIC_DIMENSION_KEY = MetricDimensionKey();
Yao Chen729093d2017-10-16 10:33:26 -070029
Yangster13fb7e42018-03-07 17:30:49 -080030typedef std::map<int64_t, HashableDimensionKey> ConditionKey;
Yao Chen5154a3792017-10-30 22:57:06 -070031
Yangster-mac93694462018-01-22 20:49:31 -080032typedef std::unordered_map<MetricDimensionKey, int64_t> DimToValMap;
Yang Lu3eba6212017-10-25 19:54:45 -070033
Yao Chen44cf27c2017-09-14 22:32:50 -070034} // namespace statsd
35} // namespace os
36} // namespace android