CmdID

CmdID / aws / aws networkmonitor

aws networkmonitor update-monitor

Updates the aggregationPeriod for a monitor. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update a monitor

The following update-monitor example changes a monitor's aggregationPeriod from 60 seconds to 30 seconds.

aws networkmonitor update-monitor --monitor-name Example_NetworkMonitor --aggregation-period 30Identify
--monitor-nameThe name of the monitor to update.
--aggregation-periodThe aggregation time, in seconds, to change to.
Its output
{
    "monitorArn": "arn:aws:networkmonitor:region:123456789012:monitor/Example_NetworkMonitor",
    "monitorName": "Example_NetworkMonitor",
    "state": "PENDING",
    "aggregationPeriod": 30,
    "tags": {
        "Monitor": "Monitor1"
    }
}

For more information, see How Amazon CloudWatch Network Monitor Works in the Amazon CloudWatch User Guide.

Options

2 in the AWS CLI reference
--aggregation-periodThe aggregation time, in seconds, to change to.
--monitor-nameThe name of the monitor to update.