Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

11.11. ceilometer alarm-gnocchi-aggregation-by-resources-threshold-update

usage: ceilometer alarm-gnocchi-aggregation-by-resources-threshold-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}]
       [--granularity <GRANULARITY>] [--evaluation-periods <COUNT>]
       [--aggregation-method <AGGREATION>] [--comparison-operator <OPERATOR>]
       [--threshold <THRESHOLD>] [-m <METRIC>]
       [--resource-type <RESOURCE_TYPE>] [--query <QUERY>]
       [--remove-time-constraint <Constraint names>]
       [<ALARM_ID>]
Update an existing alarm based on computed statistics.

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.

--granularity <GRANULARITY>


        Length of each period (seconds) to evaluate
      over.

--evaluation-periods <COUNT>


        Number of periods to evaluate over.

--aggregation-method <AGGREATION>


      Aggregation method to use, one of: ['last',
      'min', 'median', 'sum', 'std', 'first',
      'mean', 'count', 'moving-average', 'max',
      '1pct', '2pct', '3pct', '4pct', '5pct',
      '6pct', '7pct', '8pct', '9pct', '10pct',
      '11pct', '12pct', '13pct', '14pct', '15pct',
      '16pct', '17pct', '18pct', '19pct', '20pct',
      '21pct', '22pct', '23pct', '24pct', '25pct',
      '26pct', '27pct', '28pct', '29pct', '30pct',
      '31pct', '32pct', '33pct', '34pct', '35pct',
      '36pct', '37pct', '38pct', '39pct', '40pct',
      '41pct', '42pct', '43pct', '44pct', '45pct',
      '46pct', '47pct', '48pct', '49pct', '50pct',
      '51pct', '52pct', '53pct', '54pct', '55pct',
      '56pct', '57pct', '58pct', '59pct', '60pct',
      '61pct', '62pct', '63pct', '64pct', '65pct',
      '66pct', '67pct', '68pct', '69pct', '70pct',
      '71pct', '72pct', '73pct', '74pct', '75pct',
      '76pct', '77pct', '78pct', '79pct', '80pct',
      '81pct', '82pct', '83pct', '84pct', '85pct',
      '86pct', '87pct', '88pct', '89pct', '90pct',
      '91pct', '92pct', '93pct', '94pct', '95pct',
      '96pct', '97pct', '98pct', '99pct'].

--comparison-operator <OPERATOR>


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

--threshold <THRESHOLD>


        Threshold to evaluate against.

-m <METRIC>, --metric <METRIC>


      Metric to evaluate against.

--resource-type <RESOURCE_TYPE>


      Resource_type to evaluate against.

--query <QUERY>


        Gnocchi resources search query filter

--remove-time-constraint <Constraint names>


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