f26c427b4b
This endpoint will return all the dimension names for a given metric name. Added dimension-names for influx in python api and java api Added dimension-names for vertica in java api Depends-On: Id981dafd00778a6d4a376b9ceab011231e94c0c6 Change-Id: I0192ccb9276ea94103a477bd2ad7d10f21e64d31 Implements: blueprint dimensions-api
76 lines
2.2 KiB
Python
76 lines
2.2 KiB
Python
# Copyright 2014 IBM Corp
|
|
# (C) Copyright 2014,2016 Hewlett Packard Enterprise Development LP
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from oslo_log import log
|
|
|
|
LOG = log.getLogger(__name__)
|
|
|
|
|
|
class MetricsV2API(object):
|
|
def __init__(self):
|
|
super(MetricsV2API, self).__init__()
|
|
LOG.info('Initializing MetricsV2API!')
|
|
|
|
def on_get(self, req, res):
|
|
res.status = '501 Not Implemented'
|
|
|
|
def on_post(self, req, res):
|
|
res.status = '501 Not Implemented'
|
|
|
|
|
|
class MetricsMeasurementsV2API(object):
|
|
def __init__(self):
|
|
super(MetricsMeasurementsV2API, self).__init__()
|
|
LOG.info('Initializing MetricsMeasurementsV2API!')
|
|
|
|
def on_get(self, req, res):
|
|
res.status = '501 Not Implemented'
|
|
|
|
|
|
class MetricsStatisticsV2API(object):
|
|
def __init__(self):
|
|
super(MetricsStatisticsV2API, self).__init__()
|
|
LOG.info('Initializing MetricsStatisticsV2API!')
|
|
|
|
def on_get(self, req, res):
|
|
res.status = '501 Not Implemented'
|
|
|
|
|
|
class MetricsNamesV2API(object):
|
|
def __init__(self):
|
|
super(MetricsNamesV2API, self).__init__()
|
|
LOG.info('Initializing MetricsNamesV2API!')
|
|
|
|
def on_get(self, req, res):
|
|
res.status = '501 Not Implemented'
|
|
|
|
|
|
class DimensionValuesV2API(object):
|
|
def __init__(self):
|
|
super(DimensionValuesV2API, self).__init__()
|
|
LOG.info('Initializing DimensionValuesV2API!')
|
|
|
|
def on_get(self, req, res):
|
|
res.status = '501 Not Implemented'
|
|
|
|
|
|
class DimensionNamesV2API(object):
|
|
def __init__(self):
|
|
super(DimensionNamesV2API, self).__init__()
|
|
LOG.info('Initializing DimensionNamesV2API!')
|
|
|
|
def on_get(self, req, res):
|
|
res.status = '501 Not Implemented'
|