https://github.com/awslabs/internetmonitor-client-python

https://github.com/awslabs/internetmonitor-client-python

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.6%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: awslabs
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 16.6 KB
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Amazon CloudWatch Internet Monitor Client Library for Python

A high-level client representing Amazon CloudWatch Internet Monitor.

Getting Started

  • Minimum requirements -- Python 3.11 (or later) and pip
  • Download -- Download the latest preview release or pick it up from pip: pip install internetmonitor-client-python

Using the CloudWatch Internet Monitor Client

```python

from internetmonitorclient import CloudWatchInternetMonitorClient monitorname = 'MyVPCMonitor' client = CloudWatchInternetMonitorClient(monitor_name)

Get routing suggestions for AS 12345

routingsuggestions = client.getroutingsuggestions( filterparameters=[ {"Field": "dnsresolverasn", "Operator": "EQUALS", "Values": ["12345"]}, ] ) next(routingsuggestions) {'dnsresolverip': '162.158.197.82', 'dnsresolverasn': 12345, 'dnsresolverisp': 'isp name', 'ipv4prefixes': ['71.134.0.0/15'], 'currentawslocation': 'us-west-2', 'currentlatency': 93.4, 'proposedawslocation': 'us-east-1', 'proposedlatency': 36.2}

Get suggestions to reduce latency for top locations

toplocations = client.gettoplocations() next(toplocations) {'awslocation': 'us-west-2', 'city': 'Berlin', 'metro': 'N/A', 'subdivision': 'Land Berlin', 'country': 'Germany', 'asn': 1234, 'availability': 100.0, 'minavailability': 100.0, 'performance': 100.0, 'minperformance': 100.0, 'bytesin': 34443600, 'bytesout': 96288120, 'percentageoftotaltraffic': 0.32, 'currentfbl': 209, 'minfbl': 206, 'maxfbl': 214, 'bestec2': 47, 'bestec2region': 'eu-central-1', 'bestcffbl': 34}

Get overall traffic suggestions details for us-west-2

trafficsuggestions = client.getoveralltrafficsuggestionsdetails( filterparameters=[ {"Field": "currentawslocation", "Operator": "EQUALS", "Values": ["us-west-2"]}, ] ) next(trafficsuggestions) {'city': 'Las Vegas', 'metro': 'Las Vegas', 'subdivision': 'Nevada', 'country': 'United States', 'asn': 1234, 'traffic': 74499564, 'currentawslocation': 'us-west-2', 'fbldata': {'ap-south-2': 328, 'ap-south-1': 316, 'eu-south-1': 200, 'eu-south-2': 202, 'us-east-1-dfw-2a': 60, 'me-central-1': 307, 'il-central-1': 236, 'ca-central-1': 96, 'us-east-1-atl-2a': 77, 'eu-central-1': 191, 'eu-central-2': 197, 'us-west-1': 34, 'us-west-2': 47, 'af-south-1': 339, 'eu-west-3': 182, 'eu-north-1': 190, 'eu-west-2': 184, 'eu-west-1': 190, 'us-west-2-lax-1b': 33, 'us-west-2-lax-1a': 33, 'ap-northeast-3': 140, 'ap-northeast-2': 159, 'ap-northeast-1': 139, 'me-south-1': 277, 'af-south-1-los-1a': 337, 'sa-east-1': 189, 'us-east-1-qro-1a': 80, 'ap-east-1': 188, 'us-east-1-lim-1a': 171, 'CloudFront': 14, 'ca-west-1': 76, 'ap-southeast-1': 188, 'us-east-1-bue-1a': 228, 'ap-southeast-2': 170, 'ap-southeast-3': 203, 'ap-southeast-4': 182, 'us-east-1': 78, 'ap-southeast-5': 208, 'us-east-2': 72, 'us-east-1-mci-1a': 80, 'us-east-1-mia-2a': 102}} ```

To learn more, visit the Cloud Watch Internet Monitor user guide documentation.

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Owner

  • Name: Amazon Web Services - Labs
  • Login: awslabs
  • Kind: organization
  • Location: Seattle, WA

AWS Labs

GitHub Events

Total
  • Watch event: 2
  • Public event: 1
  • Push event: 1
Last Year
  • Watch event: 2
  • Public event: 1
  • Push event: 1

Dependencies

pyproject.toml pypi
  • boto3 ~= 1.35.60