29126ba9f8
Migration of Openstack Project is held in *.rst files and build with Sphinx. Following change provides: * technical documention * api guide * api ref * releasenotes Note: For now, generating codebase documentation is disabled. It caused gate failures because of, yet unnown, reasons. In order to pull this foundation, this part is skipped. Extra: * provided venvs descriptions to let user know what is the scope Story: 2001058 Task: 4665 Change-Id: Ieb2b58e165de1617748d97d997af368bd91d5c0e
55 lines
1.5 KiB
ReStructuredText
55 lines
1.5 KiB
ReStructuredText
.. -*- rst -*-
|
|
..
|
|
Copyright 2017 Fujitsu LIMITED
|
|
|
|
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.
|
|
|
|
===========
|
|
Healthcheck
|
|
===========
|
|
|
|
The *Monasca Log API* comes with a built-in health check mechanism.
|
|
It is available in two flavors (simple and complex).
|
|
|
|
Simple check
|
|
============
|
|
|
|
The simple check only returns response only if API is up
|
|
and running. It does not return any data because it is accessible only
|
|
for ```HEAD``` requests.
|
|
|
|
.. rest_method:: HEAD /healthcheck
|
|
|
|
.. rest_status_code:: success http_codes.yaml
|
|
|
|
- 204: la_up
|
|
|
|
Complex check
|
|
=============
|
|
|
|
# TODO(trebskit) add note to api-guide about peripheral checks
|
|
|
|
The complex check not only returns a response with success code if API
|
|
is up and running but it also verifies if peripheral components are
|
|
in expected condition.
|
|
|
|
.. rest_method:: GET /healthcheck
|
|
|
|
.. rest_status_code:: success http_codes.yaml
|
|
|
|
- 200: la_up
|
|
|
|
.. rest_status_code:: error http_codes.yaml
|
|
|
|
- 503: no_health
|