forked from jaredweiss/numenta-apps
/
__init__.py
58 lines (42 loc) · 2.02 KB
/
__init__.py
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
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have purchased from
# Numenta, Inc. a separate commercial license for this software code, the
# following terms and conditions apply:
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses.
#
# http://numenta.org/licenses/
# ----------------------------------------------------------------------
from htmengine.adapters.datasource.datasource_adapter_iface import (
DatasourceAdapterIface)
import grok.app.adapters.datasource.autostack
import grok.app.adapters.datasource.cloudwatch
import htmengine.adapters.datasource.custom
from htmengine.adapters.datasource import (createCustomDatasourceAdapter,
createDatasourceAdapter,
listDatasourceNames)
def createAutostackDatasourceAdapter():
""" Convenience function for creating a datasource adapter for Grok Autostack
Metrics
:returns: datasource adapter for Grok Autostack Metrics
:rtype: grok.app.adapters.datasource.cloudwatch._AutostackDatasourceAdapter
"""
return createDatasourceAdapter("autostack")
def createCloudwatchDatasourceAdapter():
""" Convenience function for creating a datasource adapter for Cloudwatch
Metrics
:returns: datasource adapter for Cloudwatch Metrics
:rtype: grok.app.adapters.datasource.cloudwatch._CloudwatchDatasourceAdapter
"""
return createDatasourceAdapter("cloudwatch")