Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

fetch metric data from aws boto3

response = client.get_metric_data(
    MetricDataQueries=[
        {
            'Id': 'string',
            'MetricStat': {
                'Metric': {
                    'Namespace': 'string',
                    'MetricName': 'string',
                    'Dimensions': [
                        {
                            'Name': 'string',
                            'Value': 'string'
                        },
                    ]
                },
                'Period': 123,
                'Stat': 'string',
                'Unit': 'Seconds'|'Microseconds'|'Milliseconds'|'Bytes'|'Kilobytes'|'Megabytes'|'Gigabytes'|'Terabytes'|'Bits'|'Kilobits'|'Megabits'|'Gigabits'|'Terabits'|'Percent'|'Count'|'Bytes/Second'|'Kilobytes/Second'|'Megabytes/Second'|'Gigabytes/Second'|'Terabytes/Second'|'Bits/Second'|'Kilobits/Second'|'Megabits/Second'|'Gigabits/Second'|'Terabits/Second'|'Count/Second'|'None'
            },
            'Expression': 'string',
            'Label': 'string',
            'ReturnData': True|False,
            'Period': 123,
            'AccountId': 'string'
        },
    ],
    StartTime=datetime(2015, 1, 1),
    EndTime=datetime(2015, 1, 1),
    NextToken='string',
    ScanBy='TimestampDescending'|'TimestampAscending',
    MaxDatapoints=123,
    LabelOptions={
        'Timezone': 'string'
    }
)
Comment

PREVIOUS NEXT
Code Example
Python :: apropos, help 
Python :: ax text not placed correclty 
Python :: How to find text of h2 tag in python requests-html 
Python :: python run docker interactively subprocess 
Python :: Broadcasting with NumPy Arrays Single dimension array Example 
Python :: Python NumPy atleast_1d Function Example 02 
Python :: Python NumPy ravel function example Showing ordering manipulation 
Python :: Django merge duplicate rows 
Python :: how to make dinamic table in jinja python 
Python :: 123bum123 
Python :: codeforces problem 200B 
Python :: Python NumPy dstack Function Example 01 
Python :: button to redirect to another tree view in odoo 
Python :: tf idf vectorizer regression -logistic 
Python :: codeforces problem 580A 
Python :: object at being output python 
Python :: simpy 
Python :: NumPy bitwise_xor Code When inputs are arrays 
Python :: tikzplotlib set figure 
Python :: lambda to redshift python 
Python :: selenium send text in p html tag 
Python :: how to swap a lowercase character to uppercase in python 
Python :: finding-the-largest-three-digits-number-within-a-number 
Python :: Simple GUI 
Python :: block-all-mixed-content csp bypass python 
Python :: How to query one to many on same page 
Python :: jupyter lab move tabs 
Python :: self.stdout.write django 
Python :: ring write the key and the IV directly using strings 
Python :: vue django delimiters 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =