/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.uptime_bundle_jsonpfunction=window.uptime_bundle_jsonpfunction||[]).push([[6],{229:function(t,e,n){"use strict";n.r(e),n.d(e,"UptimeDataHelper",(function(){return d}));var a=n(40),i=n.n(a),o=n(65),u=n(66);async function r({absoluteTime:t,relativeTime:e,intervalString:n,timeZone:a}){const u=new Date(t.start).toISOString(),r=new Date(t.end).toISOString(),d=await Object(o.i)({dateRangeStart:u,dateRangeEnd:r}),s=await Object(o.g)({dateStart:u,dateEnd:r,bucketSize:n,timeZone:null!=a?a:i.a.tz.guess()});return{appLink:`/app/uptime?dateRangeStart=${e.start}&dateRangeEnd=${e.end}`,stats:{monitors:{type:"number",value:d.total},up:{type:"number",value:d.up},down:{type:"number",value:d.down}},series:{up:{coordinates:s.histogram.map((t=>({x:t.x,y:t.upCount||0})))},down:{coordinates:s.histogram.map((t=>({x:t.x,y:t.downCount||0})))}}}}function d(t){return u.a.core=t,{indexStatus:o.a,overviewData:r}}}}]);