config/sysinv/cgts-client/cgts-client/cgtsclient/v1/health.py
Dean Troyer 9b95aa0a35 StarlingX open source release updates
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-05-31 07:35:52 -07:00

23 lines
460 B
Python

# -*- encoding: utf-8 -*-
#
# Copyright (c) 2015-2016 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from cgtsclient.common import base
class HealthManager(base.Manager):
def get(self):
path = '/v1/health/'
resp, body = self.api.json_request('GET', path)
return body
def get_upgrade(self):
path = '/v1/health/upgrade'
resp, body = self.api.json_request('GET', path)
return body