此内容没有您所选择的语言版本。

11.21. ceilometer alarm-update


usage: ceilometer alarm-update [--name <NAME>]
                               [--project-id <ALARM_PROJECT_ID>]
                               [--user-id <ALARM_USER_ID>]
                               [--description <DESCRIPTION>] [--state <STATE>]
                               [--severity <SEVERITY>]
                               [--enabled {True|False}]
                               [--alarm-action <Webhook URL>]
                               [--ok-action <Webhook URL>]
                               [--insufficient-data-action <Webhook URL>]
                               [--time-constraint <Time Constraint>]
                               [--repeat-actions {True|False}]
                               [--remove-time-constraint <Constraint names>]
                               [--period <PERIOD>]
                               [--evaluation-periods <COUNT>] [-m <METRIC>]
                               [--statistic <STATISTIC>]
                               [--comparison-operator <OPERATOR>]
                               [--threshold <THRESHOLD>]
                               [--matching-metadata <Matching Metadata>]
                               [<ALARM_ID>]
Update an existing alarm (Deprecated).

Positional arguments

<ALARM_ID>


        ID of the alarm to update.

Optional arguments

--name <NAME>


        Name of the alarm (must be unique per tenant).

--project-id <ALARM_PROJECT_ID>


      Tenant to associate with alarm (configurable
      by admin users only).

--user-id <ALARM_USER_ID>


        User to associate with alarm (configurable by
      admin users only).

--description <DESCRIPTION>


        Free text description of the alarm.

--state <STATE>


        State of the alarm, one of: ['ok', 'alarm',
      'insufficient data']

--severity <SEVERITY>


        Severity of the alarm, one of: ['low',
      'moderate', 'critical']

--enabled {True|False}


        True if alarm evaluation/actioning is enabled.

--alarm-action <Webhook URL> URL


        to invoke when state transitions to alarm.
      May be used multiple times. Defaults to None.

--ok-action <Webhook URL> URL


        to invoke when state transitions to OK.
      May be used multiple times. Defaults to None.

--insufficient-data-action <Webhook URL>


      URL to invoke when state transitions to
      insufficient data. May be used multiple times.
      Defaults to None.

--time-constraint <Time Constraint>


      Only evaluate the alarm if the time at
      evaluation is within this time constraint.
      Start point(s) of the constraint are specified
      with a cron expression, whereas its duration
      is given in seconds. Can be specified multiple
      times for multiple time constraints, format
      is: name=<CONSTRAINT_NAME>;start=<CRON>;durati
      on=<SECONDS>;[description=<DESCRIPTION>;[timez
      one=<IANA Timezone>]] Defaults to None.

--repeat-actions {True|False}


      True if actions should be repeatedly notified
      while alarm remains in target state.

--remove-time-constraint <Constraint names>


      Name or list of names of the time constraints
      to remove.

--period <PERIOD>


        Length of each period (seconds) to evaluate
      over.

--evaluation-periods <COUNT>


        Number of periods to evaluate over.

-m <METRIC>, --meter-name <METRIC>


      Metric to evaluate against.

--statistic <STATISTIC>


        Statistic to evaluate, one of: ['max', 'min',
      'avg', 'sum', 'count']

--comparison-operator <OPERATOR>


      Operator to compare with, one of: ['lt', 'le',
      'eq', 'ne', 'ge', 'gt'].

--threshold <THRESHOLD>


        Threshold to evaluate against.

--matching-metadata <Matching Metadata>


      A meter should match this resource metadata
      (key=value) additionally to the meter_name.
      Defaults to None.

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.