"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docker/health_check.py" between
monasca-api-3.1.0.tar.gz and monasca-api-4.0.0.tar.gz

About: OpenStack Monasca API is a RESTful API server that is designed with a layered architecture and supports Monitoring as a Service (MONaaS).
The "Ussuri" series (latest release).

health_check.py  (monasca-api-3.1.0):health_check.py  (monasca-api-4.0.0)
skipping to change at line 21 skipping to change at line 21
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
"""Health check will returns 0 when service is working properly.""" """Health check will returns 0 when service is working properly."""
import logging import logging
from urllib import request
import os import os
import sys import sys
from urllib import request
LOG_LEVEL = logging.getLevelName(os.environ.get('LOG_LEVEL', 'INFO')) LOG_LEVEL = logging.getLevelName(os.environ.get('LOG_LEVEL', 'INFO'))
logging.basicConfig(level=LOG_LEVEL) logging.basicConfig(level=LOG_LEVEL)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
API_PORT = os.environ.get('MONASCA_CONTAINER_API_PORT', '8070') API_PORT = os.environ.get('MONASCA_CONTAINER_API_PORT', '8070')
url = "http://localhost:" + API_PORT + "/healthcheck" url = "http://localhost:" + API_PORT + "/healthcheck"
def main(): def main():
"""Send health check request to health check endpoint of Monasca API.""" """Send health check request to health check endpoint of Monasca API."""
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)