-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path__init__.py
More file actions
57 lines (52 loc) · 1.43 KB
/
__init__.py
File metadata and controls
57 lines (52 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""The models used for the SDK.
NOTE: this will be deleted in the future and will be replaced by
generated code from our GraphQL schema.
"""
from .base import BaseModel, GraphQLFragmentMixin
from .dimension import Dimension, DimensionType
from .entity import Entity, EntityType
from .environment import EnvironmentInfo, SqlDialect, SqlEngine
from .measure import AggregationType, Measure
from .metric import AsyncMetric, Metric, MetricType, SyncMetric
from .query import QueryResult
from .saved_query import (
Export,
ExportConfig,
ExportDestinationType,
SavedQuery,
SavedQueryGroupByParam,
SavedQueryMetricParam,
SavedQueryQueryParams,
SavedQueryWhereParam,
)
from .time import DatePart, TimeGranularity
# Only importing this so it registers aliases
_ = QueryResult
BaseModel._register_subclasses() # pyright: ignore[reportPrivateUsage]
GraphQLFragmentMixin._register_subclasses() # pyright: ignore[reportPrivateUsage]
__all__ = [
"AggregationType",
"AsyncMetric",
"DatePart",
"Dimension",
"DimensionType",
"Entity",
"EntityType",
"EnvironmentInfo",
"Export",
"ExportConfig",
"ExportDestinationType",
"Measure",
"Metric",
"MetricType",
"SavedQuery",
"SavedQuery",
"SavedQueryGroupByParam",
"SavedQueryMetricParam",
"SavedQueryQueryParams",
"SavedQueryWhereParam",
"SqlDialect",
"SqlEngine",
"SyncMetric",
"TimeGranularity",
]