Module: check_mk
Branch: master
Commit: 7b89bd7a2624a08c5028291891ecdd349af91053
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7b89bd7a2624a0…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jan 14 10:14:10 2019 +0100
agent_aws: Fixed interval of costs and usage section
Change-Id: Id6badb75fc21d75166dc56f6f8e6b8d33c549f33
---
agents/special/agent_aws | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agents/special/agent_aws b/agents/special/agent_aws
index b5eb18d..aac51c2 100755
--- a/agents/special/agent_aws
+++ b/agents/special/agent_aws
@@ -219,8 +219,8 @@ class CostsAndUsage(AWSSection):
now = time.time()
return self._client.get_cost_and_usage(
TimePeriod={
- 'Start': time.strftime(fmt, time.gmtime(now)),
- 'End': time.strftime(fmt, time.gmtime(now + self.period)),
+ 'Start': time.strftime(fmt, time.gmtime(now - self.period)),
+ 'End': time.strftime(fmt, time.gmtime(now)),
},
Granularity='DAILY',
Metrics=['UnblendedCost'],