Get Function

Updated 4 months ago by Shoreline

Get alarm

Returns the value of field_name inside of alarm_name which indicates the resource the alarm is monitoring.

Syntax: <alarm_name.field_name>
Example: op> cpu_alarm.fire_query

Get action

Returns the value of field_name inside of action_name which indicates the resource the action is monitoring.

Syntax: <action_name.field_name>
Example: op> cpu_info.command

Get bot

Returns the value of field_name inside of bot_name which indicates the alarm, action, or description that the bot is binding.

Syntax: <bot_name.field_name>
Examples:

  • op> cpu_bot.alarm
  • op> cpu_bot.action
  • p> cpu_bot.description


How did we do?