watcher.api.controllers.v1.service module

watcher.api.controllers.v1.service module

Service mechanism provides ability to monitor Watcher services state.

service None

Bases: watcher.api.controllers.base.APIBase

API representation of a service.

This class enforces type checking and value constraints, and converts between the internal object model and the API representation of a service.

classmethod Service.sample(expand=True)
service None

Bases: watcher.api.controllers.v1.collection.Collection

API representation of a collection of services.

classmethod ServiceCollection.sample()
service None

Bases: pecan.rest.RestController

REST controller for Services.

ServicesController.detail(marker=None, limit=None, sort_key='id', sort_dir='asc')[source]

Retrieve a list of services with detail.

Parameters:
  • marker – pagination marker for large data sets.
  • limit – maximum number of resources to return in a single result.
  • sort_key – column to sort results by. Default: id.
  • sort_dir – direction to sort. “asc” or “desc”. Default: asc.
ServicesController.get_all(marker=None, limit=None, sort_key='id', sort_dir='asc')[source]

Retrieve a list of services.

Parameters:
  • marker – pagination marker for large data sets.
  • limit – maximum number of resources to return in a single result.
  • sort_key – column to sort results by. Default: id.
  • sort_dir – direction to sort. “asc” or “desc”. Default: asc.
ServicesController.get_one(service)[source]

Retrieve information about the given service.

Parameters:service – ID or name of the service.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.