The watcher.api.controllers.v1.service Module

Service mechanism provides ability to monitor Watcher services state.

class watcher.api.controllers.v1.service.Service(**kwargs)[source]

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 sample(expand=True)[source]
class watcher.api.controllers.v1.service.ServiceCollection(**kwargs)[source]

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

API representation of a collection of services.

classmethod sample()[source]
class watcher.api.controllers.v1.service.ServicesController[source]

Bases: pecan.rest.RestController

REST controller for Services.

detail(*args, **kwargs)[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.
get_all(*args, **kwargs)[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.
get_one(*args, **kwargs)[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.