NVIDIA DeepStream SDK API Reference

9.2 Release
includes/opentelemetry/sdk/metrics/view/view_factory.h
Go to the documentation of this file.
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #include <memory>
7 #include <string>
8 
9 #include "opentelemetry/sdk/metrics/aggregation/aggregation_config.h"
10 #include "opentelemetry/sdk/metrics/instruments.h"
11 #include "opentelemetry/sdk/metrics/view/attributes_processor.h"
12 #include "opentelemetry/sdk/metrics/view/view.h"
13 #include "opentelemetry/version.h"
14 
16 namespace sdk
17 {
18 namespace metrics
19 {
20 
25 {
26 public:
27  static std::unique_ptr<View> Create(const std::string &name);
28 
29  static std::unique_ptr<View> Create(const std::string &name, const std::string &description);
30 
31  static std::unique_ptr<View> Create(const std::string &name,
32  const std::string &description,
33  AggregationType aggregation_type);
34 
35  static std::unique_ptr<View> Create(const std::string &name,
36  const std::string &description,
37  AggregationType aggregation_type,
38  std::shared_ptr<AggregationConfig> aggregation_config);
39 
40  static std::unique_ptr<View> Create(const std::string &name,
41  const std::string &description,
42  AggregationType aggregation_type,
43  std::shared_ptr<AggregationConfig> aggregation_config,
44  std::unique_ptr<AttributesProcessor> attributes_processor);
45 };
46 
47 } // namespace metrics
48 } // namespace sdk
sdk::metrics::AggregationType
AggregationType
Definition: includes/opentelemetry/sdk/metrics/instruments.h:44
OPENTELEMETRY_EXPORT
#define OPENTELEMETRY_EXPORT
Definition: includes/opentelemetry/common/macros.h:386
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition: includes/opentelemetry/version.h:21
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition: includes/opentelemetry/version.h:24
sdk::metrics::ViewFactory
Factory class for View.
Definition: includes/opentelemetry/sdk/metrics/view/view_factory.h:24
sdk
Definition: includes/opentelemetry/sdk/common/atomic_shared_ptr.h:13
metrics
Definition: includes/opentelemetry/metrics/async_instruments.h:10