awsc.resource_cloudwatch.MetricViewer
- class awsc.resource_cloudwatch.MetricViewer(*args, caller, metric=None, **kwargs)
Metric display control. Displays the selected metric as a bar graph.
- Attributes:
borderReturns the border of the control.
colspaceRead-only property representing the amount of displayable columns.
cornersRead-only property for calculating the four corners of the block.
data_points_behaviourProperty representing the data points behaviour of this bar graph.
heightRead-only property for the height of the block.
innerRead-only property for calculating the four inner corners of the block.
w_inRead-only property for the inner width of the block.
widthRead-only property for the width of the block.
Methods
Autohotkey(key[, tooltip, is_validated, ...])Decorator that automatically assigns a hotkey to a function upon instantiation.
add_block(block)Adds a new child block to this block.
add_datapoint(timestamp, datapoint)Inserts a new datapoint into the bar graph.
add_hotkey(hotkey, action[, tooltip, ...])Adds a new hotkey to the control.
autohotkey_condition(hotkey)Autohotkey condition callback.
before_paint()Hook function for acting on the block before any blocks are painted for the current frame.
bottomright()Returns the coordinates of the bottom right corner of the block.
clear_blocks([tag])Removes all blocks with the matching tag from the child blocks of this block.
end(*args)Hotkey callback for KEY_END.
home(*args)Hotkey callback for KEY_HOME.
input(key)Input handler hook function.
load_data()Loads time series into the bar graph based on the metric name, namespace and dimension provided.
opener(*args, **kwargs)Session-aware initializer for this class.
paint()Hook function for painting the block.
remove_block(block)Removes a specific block from this block.
reparent()Shorthand function for removing a Block from its parent and re-adding it.
scroll_left(*args)Hotkey callback for KEY_LEFT.
scroll_right(*args)Hotkey callback for KEY_RIGHT.
title_info()Title information callback.
topleft()Returns the coordinates of the top left corner of the block.
validate_hotkey(key)Validates whether a hotkey can be used based on the state of the control.
on_become_frame
- __init__(*args, caller, metric=None, **kwargs)
Initializes a HotkeyControl object.
Methods
__init__(*args, caller[, metric])Initializes a HotkeyControl object.
add_block(block)Adds a new child block to this block.
add_datapoint(timestamp, datapoint)Inserts a new datapoint into the bar graph.
add_hotkey(hotkey, action[, tooltip, ...])Adds a new hotkey to the control.
autohotkey_condition(hotkey)Autohotkey condition callback.
before_paint()Hook function for acting on the block before any blocks are painted for the current frame.
bottomright()Returns the coordinates of the bottom right corner of the block.
clear_blocks([tag])Removes all blocks with the matching tag from the child blocks of this block.
end(*args)Hotkey callback for KEY_END.
home(*args)Hotkey callback for KEY_HOME.
input(key)Input handler hook function.
load_data()Loads time series into the bar graph based on the metric name, namespace and dimension provided.
on_become_frame()opener(*args, **kwargs)Session-aware initializer for this class.
paint()Hook function for painting the block.
remove_block(block)Removes a specific block from this block.
reparent()Shorthand function for removing a Block from its parent and re-adding it.
scroll_left(*args)Hotkey callback for KEY_LEFT.
scroll_right(*args)Hotkey callback for KEY_RIGHT.
title_info()Title information callback.
topleft()Returns the coordinates of the top left corner of the block.
validate_hotkey(key)Validates whether a hotkey can be used based on the state of the control.
Attributes
DPB_MinToMaxDPB_ZeroOrLessToMaxDPB_ZeroToMaxborderReturns the border of the control.
colspaceRead-only property representing the amount of displayable columns.
cornersRead-only property for calculating the four corners of the block.
data_points_behaviourProperty representing the data points behaviour of this bar graph.
heightRead-only property for the height of the block.
innerRead-only property for calculating the four inner corners of the block.
prefixtitlew_inRead-only property for the inner width of the block.
widthRead-only property for the width of the block.