{"id":20111505,"url":"https://github.com/openstack/monasca-api","last_synced_at":"2025-04-04T08:06:06.587Z","repository":{"id":18654452,"uuid":"21861570","full_name":"openstack/monasca-api","owner":"openstack","description":"Monasca REST API. Mirror of code maintained at opendev.org.","archived":false,"fork":false,"pushed_at":"2024-12-13T15:01:11.000Z","size":6296,"stargazers_count":81,"open_issues_count":0,"forks_count":78,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-28T07:05:33.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://opendev.org/openstack/monasca-api","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openstack.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-07-15T13:53:54.000Z","updated_at":"2025-03-18T11:29:04.000Z","dependencies_parsed_at":"2024-06-03T22:58:39.741Z","dependency_job_id":"ffc5b9ab-a081-4830-b182-195c675470a8","html_url":"https://github.com/openstack/monasca-api","commit_stats":{"total_commits":1586,"total_committers":154,"mean_commits":10.2987012987013,"dds":0.8366960907944514,"last_synced_commit":"c36c2c69a4227e0c1da04f3044bfa4b059a55781"},"previous_names":[],"tags_count":79,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fmonasca-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fmonasca-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fmonasca-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fmonasca-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openstack","download_url":"https://codeload.github.com/openstack/monasca-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142042,"owners_count":20890652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T18:16:20.742Z","updated_at":"2025-04-04T08:06:06.563Z","avatar_url":"https://github.com/openstack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Team and repository tags\n========================\n\n.. image:: https://governance.openstack.org/tc/badges/monasca-api.svg\n    :target: https://governance.openstack.org/tc/reference/tags/index.html\n\n.. Change things from this point on\n\nOverview\n========\n\n``monasca-api`` is a RESTful API server that is designed with a `layered\narchitecture`_.\n\nDocumentation\n-------------\n\nThe full API Specification can be found in `docs/monasca-api-spec.md`_\n\nPython Monasca API Implementation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo install the python api implementation, git clone the source and run\nthe following command:\n\n::\n\n   $ sudo python setup.py install\n\nIf it installs successfully, you will need to make changes to the\nfollowing two files to reflect your system settings, especially where\nkafka server is located:\n\n::\n\n   /etc/monasca/api-config.ini\n   /etc/monasca/monasca-api.conf\n   /etc/monasca/api-logging.conf\n\nOnce the configuration files are modified to match your environment, you\ncan start up the server by following the following instructions.\n\nTo start the server, run the following command:\n\n::\n\n   Running the server in foreground mode\n   $ gunicorn -k eventlet --worker-connections=2000 --backlog=1000 --paste /etc/monasca/api-config.ini\n\n   Running the server as daemons\n   $ gunicorn -k eventlet --worker-connections=2000 --backlog=1000 --paste /etc/monasca/api-config.ini -D\n\nTo check if the code follows python coding style, run the following\ncommand from the root directory of this project\n\n::\n\n   $ tox -e pep8\n\nTo run all the unit test cases, run the following command from the root\ndirectory of this project\n\n::\n\n   $ tox -e py36\n\nStart the Server - for Apache\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo start the server using Apache: create a modwsgi file, create a\nmodwsgi configuration file, and enable the wsgi module in Apache.\n\nThe modwsgi configuration file may look something like this, and the\nsite will need to be enabled:\n\n.. code:: apache\n\n       Listen 8070\n\n       \u003cVirtualHost *:8070\u003e\n\n           WSGIDaemonProcess monasca-api processes=4 threads=1 socket-timeout=120 user=mon-api group=monasca python-path=/usr/local/lib/python2.7/site-packages\n           WSGIProcessGroup monasca-api\n           WSGIApplicationGroup monasca-api\n           WSGIScriptAlias / /usr/local/lib/python2.7/site-packages/monasca_api/api/wsgi/monasca_api.py\n\n           WSGIPassAuthorization On\n\n           LogLevel info\n           ErrorLog /var/log/monasca-api/wsgi.log\n           CustomLog /var/log/monasca-api/wsgi-access.log combined\n\n           \u003cDirectory /usr/local/lib/python2.7/site-packages/monasca_api\u003e\n             Require all granted\n           \u003c/Directory\u003e\n\n           SetEnv no-gzip 1\n\n       \u003c/VirtualHost\u003e\n\nThe wsgi file may look something like this:\n\n.. code:: py\n\n\n       from monasca_api.api import server\n\n       application = server.get_wsgi_app(config_base_path='/etc/monasca')\n\nJava Implementation\n~~~~~~~~~~~~~~~~~~~\n\nDetails on usage can be found `here`_\n\nWARNING: The Java implementation of Monasca API is DEPRECATED and will\nbe removed in future release.\n\nLicense\n=======\n\nCopyright (c) 2014 Hewlett-Packard Development Company, L.P.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may\nnot use this file except in compliance with the License. You may obtain\na copy of the License at\n\n::\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n.. _layered architecture: https://en.wikipedia.org/wiki/Multilayered_architecture\n.. _docs/monasca-api-spec.md: docs/monasca-api-spec.md\n.. _here: /docs/java.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fmonasca-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenstack%2Fmonasca-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fmonasca-api/lists"}