Fixed the Vitrage CLI help
Change-Id: If4d0c7982fdbef7c51ace840be414ada8fc9ca16
This commit is contained in:
parent
5df6ff462d
commit
717fdc551e
@ -17,7 +17,7 @@ from vitrageclient.common import utils
|
||||
|
||||
|
||||
class AlarmList(lister.Lister):
|
||||
"""List alarms on entity"""
|
||||
"""List all alarms"""
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(AlarmList, self).get_parser(prog_name)
|
||||
|
@ -23,7 +23,7 @@ from iso8601 import ParseError
|
||||
|
||||
# noinspection PyAbstractClass
|
||||
class EventPost(command.Command):
|
||||
"""Show the event of the system"""
|
||||
"""Post an event to Vitrage"""
|
||||
|
||||
@staticmethod
|
||||
def iso8601(argument_value):
|
||||
|
@ -16,7 +16,7 @@ from vitrageclient.common import utils
|
||||
|
||||
# noinspection PyAbstractClass
|
||||
class RcaShow(show.ShowOne):
|
||||
"""Show an RCA"""
|
||||
"""Show the Root Cause Analysis for a certain alarm"""
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(RcaShow, self).get_parser(prog_name)
|
||||
|
@ -21,6 +21,7 @@ from vitrageclient.common import utils
|
||||
|
||||
# noinspection PyAbstractClass
|
||||
class TemplateValidate(show.ShowOne):
|
||||
"""Validate a template file"""
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(TemplateValidate, self).get_parser(prog_name)
|
||||
@ -48,7 +49,7 @@ class TemplateValidate(show.ShowOne):
|
||||
|
||||
|
||||
class TemplateList(lister.Lister):
|
||||
"""Template list"""
|
||||
"""List all templates"""
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(TemplateList, self).get_parser(prog_name)
|
||||
@ -68,7 +69,7 @@ class TemplateList(lister.Lister):
|
||||
|
||||
|
||||
class TemplateShow(show.ShowOne):
|
||||
"""Template show"""
|
||||
"""Show a template"""
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(TemplateShow, self).get_parser(prog_name)
|
||||
@ -86,7 +87,7 @@ class TemplateShow(show.ShowOne):
|
||||
|
||||
|
||||
class TemplateAdd(lister.Lister):
|
||||
"""Template add
|
||||
"""Add a template
|
||||
|
||||
support 3 types of templates:
|
||||
standard, definition, equivalence
|
||||
@ -121,7 +122,7 @@ class TemplateAdd(lister.Lister):
|
||||
|
||||
|
||||
class TemplateDelete(command.Command):
|
||||
"""Template delete"""
|
||||
"""Delete a template"""
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(TemplateDelete, self).get_parser(prog_name)
|
||||
|
@ -32,7 +32,7 @@ class WebhookShow(show.ShowOne):
|
||||
|
||||
|
||||
class WebhookList(lister.Lister):
|
||||
"""List all webhooks in DB"""
|
||||
"""List all webhooks in the database"""
|
||||
|
||||
POST_PROPS = \
|
||||
(
|
||||
@ -61,7 +61,7 @@ class WebhookList(lister.Lister):
|
||||
|
||||
|
||||
class WebhookAdd(show.ShowOne):
|
||||
"""Add a new webhook to DB"""
|
||||
"""Add a new webhook to the database"""
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(WebhookAdd, self).get_parser(prog_name)
|
||||
parser.add_argument('--url',
|
||||
|
Loading…
Reference in New Issue
Block a user