File tree Expand file tree Collapse file tree 4 files changed +16
-9
lines changed Expand file tree Collapse file tree 4 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 11# newer versions go on top
2+ - version : " 1.3.0"
3+ changes :
4+ - description : Aligned billing data pulls to calendar days
5+ type : enhancement
6+ link : https://github.com/elastic/integrations/pull/13020
27- version : " 1.2.0"
38 changes :
49 - description : Added Agentless deployment mode
Original file line number Diff line number Diff line change @@ -16,21 +16,23 @@ resource.timeout: {{http_client_timeout}}
1616resource.url: {{ url }} /api/v2/billing/organizations/{{ organization_id }} /costs/instances
1717state:
1818 api_key: {{ api_key }}
19- organization_id: " {{ organization_id }} "
20- lookbehind: " {{ lookbehind }} h"
19+ organization_id: {{ organization_id }}
20+ lookbehind: {{ lookbehind }}
2121redact:
2222 fields:
2323 - api_key
2424program: |
2525 state.with({
26- "from": has(state.?cursor.last_to) ?
26+ "from": ( has(state.?cursor.last_to) ?
2727 timestamp(state.cursor.last_to)
2828 :
29- (now().format(time_layout.DateOnly).parse_time(time_layout.DateOnly) - duration(state.lookbehind)),
30- "to": has(state.?cursor.last_to) ?
29+ (now() - duration(string(int(state.lookbehind)*24) + "h"))
30+ ).format(time_layout.DateOnly).parse_time(time_layout.DateOnly),
31+ "to": (has(state.?cursor.last_to) ?
3132 (timestamp(state.cursor.last_to) + duration("24h"))
3233 :
33- (now().format(time_layout.DateOnly).parse_time(time_layout.DateOnly) - duration(state.lookbehind) + duration("24h")),
34+ (now() - duration(string(int(state.lookbehind)*24) + "h") + duration("24h"))
35+ ).format(time_layout.DateOnly).parse_time(time_layout.DateOnly),
3436 }.as(req, (req.to > now()) ?
3537 // We would fetch data in the future, back off
3638 {
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ streams:
1313 - name : lookbehind
1414 type : integer
1515 title : Lookbehind
16- description : How far back to fetch data for the first run (in hours ), default to 8760 hours ( 1 year) .
17- default : 8760
16+ description : How far back to fetch data for the first run (in days ), default to 1 year.
17+ default : 365
1818 multi : false
1919 required : true
2020 show_user : true
Original file line number Diff line number Diff line change 11format_version : 3.3.2
22name : ess_billing
33title : " Elasticsearch Service Billing"
4- version : 1.2 .0
4+ version : 1.3 .0
55source :
66 license : " Elastic-2.0"
77description : " Collects billing metrics from Elasticsearch Service billing API"
You can’t perform that action at this time.
0 commit comments