403Webshell
Server IP : 138.197.107.151  /  Your IP : 216.73.217.120
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : wpbetasites_mrakzqskir ( 1022)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/bsd-crawler-parser/aws/dist/awscli/examples/networkmonitor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/bsd-crawler-parser/aws/dist/awscli/examples/networkmonitor/list-monitors.rst
**Example 1: To list all monitors (single monitor)**

The following ``list-monitors`` example returns a list of only a single monitor. The monitor's ``state`` is ``ACTIVE`` and it has an ``aggregationPeriod`` of 60 seconds. ::

    aws networkmonitor list-monitors

Output::

    {
        "monitors": [{
                "monitorArn": "arn:aws:networkmonitor:region:012345678910:monitor/Example_NetworkMonitor",
                "monitorName": "Example_NetworkMonitor",
                "state": "ACTIVE",
                "aggregationPeriod": 60,
                "tags": {
                    "Monitor": "Monitor1"
                }
            }
        ]
    }

For more information, see `How Amazon CloudWatch Network Monitor Works <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/nw-monitor-how-it-works.html>`__ in the *Amazon CloudWatch User Guide*.

**Example 2: To list all monitors (multiple monitors)**

The following ``list-monitors`` example returns a list of three monitors. The ``state`` of one monitor is ``ACTIVE`` and generating CloudWatch metrics. The states of the other two monitors are ``INACTIVE`` and not generating CloudWatch metrics. All three monitors use an ``aggregationPeriod`` of 60 seconds. ::

    aws networkmonitor list-monitors

Output::

    {
        "monitors": [
            {
                "monitorArn": "arn:aws:networkmonitor:us-east-1:111122223333:monitor/Example_NetworkMonitor",
                "monitorName": "Example_NetworkMonitor",
                "state": "INACTIVE",
                "aggregationPeriod": 60,
                "tags": {}
            },
            {
                "monitorArn": "arn:aws:networkmonitor:us-east-1:111122223333:monitor/Example_NetworkMonitor2",
                "monitorName": "Example_NetworkMonitor2",
                "state": "ACTIVE",
                "aggregationPeriod": 60,
                "tags": {
                    "Monitor": "Monitor1"
                }
            },
            {
                "monitorArn": "arn:aws:networkmonitor:us-east-1:111122223333:monitor/TestNetworkMonitor_CLI",
                "monitorName": "TestNetworkMonitor_CLI",
                "state": "INACTIVE",
                "aggregationPeriod": 60,
                "tags": {}
            }
        ]
    }

For more information, see `How Amazon CloudWatch Network Monitor Works <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/nw-monitor-how-it-works.html>`__ in the *Amazon CloudWatch User Guide*.

Youez - 2016 - github.com/yon3zu
LinuXploit