Implement CloudWatch get_metric_statistics (#1369)
* implement get_metric_statistics
This commit is contained in:
parent
796fa6647b
commit
97687d153a
5 changed files with 233 additions and 53 deletions
|
|
@ -1,7 +1,6 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import json
|
||||
import re
|
||||
|
||||
try:
|
||||
from urllib import unquote
|
||||
|
|
@ -198,7 +197,7 @@ class LambdaResponse(BaseResponse):
|
|||
return 404, {}, "{}"
|
||||
|
||||
def _get_aws_region(self, full_url):
|
||||
region = re.search(self.region_regex, full_url)
|
||||
region = self.region_regex.search(full_url)
|
||||
if region:
|
||||
return region.group(1)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue