status-page.js.app.46dce1eb.js Maven / Gradle / Ivy
(function(t){function e(e){for(var r,s,a=e[0],c=e[1],l=e[2],d=0,p=[];d0?n("v-col",{staticClass:"mb-5 js-metrics",attrs:{cols:"12"}},[n("metric-list",{attrs:{metrics:t.metrics}})],1):t._e()],1)],1)},V=[],S=n("1b15"),P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"w-100"},[n("status-section",{attrs:{title:"Reporters"},scopedSlots:t._u([{key:"title",fn:function(e){var r=e.title;return[n("div",{staticClass:"d-flex align-center"},[n("h3",[t._v(t._s(r))]),t.noReportersStarted?n("v-tooltip",{attrs:{bottom:"","content-class":"white dark1--text"},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on,i=e.attrs;return[n("v-avatar",t._g(t._b({staticClass:"ml-2 c-pointer",attrs:{size:"26",color:"error"}},"v-avatar",i,!1),r),[n("v-icon",{attrs:{size:"13",color:"white"}},[t._v("fa-times")])],1)]}}],null,!0)},[t._v("\n\n No reporters have been started yet!\n ")]):t._e()],1)]}}])},[t._l(t.reporterModules,(function(e){return n("module-status-card",{key:e.name,attrs:{module:e,"is-missing-key":t.isMisconfiguredApmModule(e)},on:{"show:api-key":function(e){return t.$emit("show:api-key")}}})})),t.hasApmModule?t._e():n("div",{staticClass:"apm-suggestion"},[n("a",{attrs:{href:"https://kamon.io/apm/?utm_source=kamon&utm_medium=status-page&utm_campaign=kamon-status",target:"_blank"}},[n("module-status-card",{attrs:{isSuggestion:!0,module:t.apmModuleSuggestion}})],1)])],2),t.plainModules.length>0?n("status-section",{attrs:{title:"Modules"}},t._l(t.plainModules,(function(t){return n("module-status-card",{key:t.name,attrs:{module:t}})})),1):t._e()],1)},H=[],R=n("bc3a"),E=n.n(R);(function(t){t["Combined"]="combined",t["Metric"]="metric",t["Span"]="span",t["Plain"]="plain",t["Unknown"]="unknown"})(_||(_={}));var I=function(){function t(){}return t.settings=function(){return E.a.get("/status/settings").then((function(t){var e=JSON.parse(t.data.config);return{version:t.data.version,environment:t.data.environment,config:e}}))},t.moduleRegistryStatus=function(){return E.a.get("/status/modules").then((function(t){return t.data}))},t.metricRegistryStatus=function(){return E.a.get("/status/metrics").then((function(t){var e=t.data,n=function(t,e){return t+":"+e+" "};return e.metrics.forEach((function(t){"rangeSampler"===t.type&&(t.type="Range Sampler");var e="";t.instruments.forEach((function(t){Object.keys(t).forEach((function(r){e+=n(r,t[r])}))})),t.search=n("name",t.name.toLowerCase())+n("type",t.type.toLowerCase())+e})),e}))},t.instrumentationStatus=function(){return E.a.get("/status/instrumentation").then((function(t){var e={present:t.data.present,modules:[],errors:t.data.errors},n=t.data.modules;return Object.keys(n).forEach((function(t){var r=n[t];e.modules.push(Object(s["a"])({name:t},r))})),e}))},t}(),L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("status-card",{attrs:{"indicator-text":t.runStatus.message,"indicator-icon":t.runStatus.icon,"indicator-background-color":t.runStatus.color,"indicator-color":t.runStatus.indicatorColor,"content-class":{"suggestion-card":t.isSuggestion,"misconfigured-card":t.isMissingKey}},scopedSlots:t._u([{key:"default",fn:function(){return[n("div",[n("div",{staticClass:"text-label dark1--text"},[t._v("\n "+t._s(t.module.name)+"\n ")]),n("div",{staticClass:"text-sublabel mt-1 dark3--text"},[t.isMissingKey?n("span",[t._v("\n Setting "),n("strong",[t._v("kamon.apm.api-key")]),t._v(" in "),n("strong",[t._v("application.conf")]),t._v(" invalid or missing\n ")]):n("span",[t._v("\n "+t._s(t.module.description)+"\n ")])])])]},proxy:!0},t.isSuggestion||t.isMissingKey?null:{key:"status",fn:function(){return[n("div",{staticClass:"module-status text-indicator px-2 py-1 rounded",class:t.chipClasses},[t._v("\n "+t._s(t.status)+"\n ")])]},proxy:!0},t.isSuggestion?{key:"action",fn:function(){return[n("v-btn",{staticClass:"px-4 font-weight-bold",attrs:{depressed:"",color:"primary"},on:{click:function(t){}}},[t._v("\n Connect APM\n ")])]},proxy:!0}:t.isMissingKey?{key:"action",fn:function(){return[n("v-btn",{staticClass:"px-4 font-weight-bold",attrs:{depressed:"",color:"warning"},on:{click:t.showApmApiKey}},[t._v("\n Configure API Key\n ")])]},proxy:!0}:null],null,!0)})},A=[],z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("v-card",{staticClass:"pa-2 mb-1",class:t.contentClass,attrs:{elevation:"0"}},[n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{staticClass:"mr-2",attrs:{cols:"auto"}},[t._t("status-indicator",[n("v-avatar",{attrs:{size:"32",color:t.indicatorBackgroundColor}},[n("v-icon",{attrs:{size:"16",color:t.indicatorColor}},[t._v(t._s(t.indicatorIcon))])],1)],null,{indicatorBackgroundColor:t.indicatorBackgroundColor,indicatorColor:t.indicatorColor,indicatorIcon:t.indicatorIcon})],2),n("v-col",{staticClass:"mr-2",staticStyle:{"max-width":"70%"},attrs:{cols:"auto"}},[t._t("default")],2),n("v-spacer"),n("v-col",{attrs:{cols:"auto"}},[t._t("status")],2),t.$scopedSlots.action?n("v-col",{staticClass:"ml-3",attrs:{cols:"auto"}},[t._t("action")],2):t._e()],1)],1),t._t("append")],2)},T=[],Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"indicatorStyle",{get:function(){return{color:this.indicatorColor,backgroundColor:this.indicatorBackgroundColor}},enumerable:!1,configurable:!0}),Object(s["b"])([Object(a["b"])({default:"white"})],e.prototype,"indicatorColor",void 0),Object(s["b"])([Object(a["b"])({default:"#989898"})],e.prototype,"indicatorBackgroundColor",void 0),Object(s["b"])([Object(a["b"])({default:"fa-question"})],e.prototype,"indicatorIcon",void 0),Object(s["b"])([Object(a["b"])({default:"Unknown"})],e.prototype,"indicatorText",void 0),Object(s["b"])([Object(a["b"])()],e.prototype,"contentClass",void 0),e=Object(s["b"])([Object(a["a"])({})],e),e}(a["c"]),$=Z,F=$,K=n("8212"),B=n("b0af"),D=n("62ad"),U=n("132d"),N=n("0fd9"),q=Object(u["a"])(F,z,T,!1,null,null,null),J=q.exports;g()(q,{VAvatar:K["a"],VCard:B["a"],VCol:D["a"],VIcon:U["a"],VRow:N["a"],VSpacer:x["a"]});var Y=function(t){return null!=t&&null!=t.active},G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"started",{get:function(){return Y(this.module)?this.module.active:this.module.started},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.isMissingKey?"Not Configured":this.started?"Enabled":this.module.enabled?"Present":"Disabled"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"runStatus",{get:function(){return this.isSuggestion?{message:"suggested",color:"primary",icon:"fa-plug",indicatorColor:"white"}:this.module.enabled?this.isMissingKey?{message:"not configured",color:"warning",icon:"fa-plug",indicatorColor:"white"}:this.started?{message:"active",color:"primary",icon:"fa-check",indicatorColor:"white"}:{message:"available",color:"light2",icon:"fa-power-off",indicatorColor:"dark4"}:{message:"disabled",color:"error",icon:"fa-stop-circle",indicatorColor:"white"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chipClasses",{get:function(){return this.started?this.module.enabled?"green4 primary--text":"red4 error--text":"light2 dark3--text"},enumerable:!1,configurable:!0}),e.prototype.showApmApiKey=function(){this.$emit("show:api-key")},Object(s["b"])([Object(a["b"])({default:!1})],e.prototype,"isSuggestion",void 0),Object(s["b"])([Object(a["b"])({default:!1})],e.prototype,"isMissingKey",void 0),Object(s["b"])([Object(a["b"])()],e.prototype,"module",void 0),e=Object(s["b"])([Object(a["a"])({components:{StatusCard:J}})],e),e}(a["c"]),Q=G,W=Q,X=(n("3178"),n("8336")),tt=Object(u["a"])(W,L,A,!1,null,null,null),et=tt.exports;g()(tt,{VBtn:X["a"]});var nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"d-flex align-center justify-space-between py-0 dark1--text",attrs:{cols:"12"}},[t._t("title",[n("h3",[t._v(t._s(t.title))])],{title:t.title}),t._t("actions")],2),n("v-col",{staticClass:"my-2",attrs:{cols:"12"}},[t._t("default")],2)],1)},rt=[],it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(e,t),Object(s["b"])([Object(a["b"])()],e.prototype,"title",void 0),e=Object(s["b"])([a["a"]],e),e}(a["c"]),ot=it,st=ot,at=Object(u["a"])(st,nt,rt,!1,null,null,null),ct=at.exports;g()(at,{VCol:D["a"],VRow:N["a"]});var lt=/^[a-zA-Z0-9]{26}$/,ut=["kamon.apm.KamonApm"],dt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.apmModuleSuggestion={name:"Kamon APM Reporter",description:"See your metrics and trace data for free with a Starter account.",kind:_.Combined,programmaticallyRegistered:!1,enabled:!1,started:!1,clazz:""},e}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"sortedModules",{get:function(){return this.modules.sort((function(t,e){return t.started===e.started?t.name.localeCompare(e.name):t.started?-1:1}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reporterModules",{get:function(){return this.sortedModules.filter(this.isReporter)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"noReportersStarted",{get:function(){return this.reporterModules.every((function(t){return!t.started}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"plainModules",{get:function(){var t=this;return this.sortedModules.filter((function(e){return!t.isReporter(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasApmModule",{get:function(){return this.modules.some((function(t){return ut.includes(t.clazz)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"missingApmApiKey",{get:function(){var t,e,n;if(this.config.isEmpty)return!1;if(!this.hasApmModule)return!1;var r=null===(n=null===(e=null===(t=this.config.get)||void 0===t?void 0:t.kamon)||void 0===e?void 0:e.apm)||void 0===n?void 0:n["api-key"];return null==r||!lt.test(r)},enumerable:!1,configurable:!0}),e.prototype.isReporter=function(t){return[_.Combined,_.Span,_.Metric].includes(t.kind)},e.prototype.isMisconfiguredApmModule=function(t){return ut.includes(t.clazz)&&this.missingApmApiKey},Object(s["b"])([Object(a["b"])()],e.prototype,"modules",void 0),Object(s["b"])([Object(a["b"])({required:!0})],e.prototype,"config",void 0),e=Object(s["b"])([Object(a["a"])({components:{StatusSection:ct,ModuleStatusCard:et}})],e),e}(a["c"]),pt=dt,ft=pt,mt=n("3a2f"),Ct=Object(u["a"])(ft,P,H,!1,null,null,null),bt=Ct.exports;g()(Ct,{VAvatar:K["a"],VIcon:U["a"],VTooltip:mt["a"]});var vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.modules.length>0?n("status-section",{attrs:{title:"Instrumentation Modules"}},t._l(t.sortedModules,(function(t){return n("module-status-card",{key:t.name,attrs:{module:t}})})),1):t._e()},gt=[],ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"sortedModules",{get:function(){return this.modules.sort((function(t,e){return t.active===e.active?t.name.localeCompare(e.name):t.active?-1:1}))},enumerable:!1,configurable:!0}),Object(s["b"])([Object(a["b"])()],e.prototype,"modules",void 0),e=Object(s["b"])([Object(a["a"])({components:{StatusSection:ct,ModuleStatusCard:et}})],e),e}(a["c"]),yt=ht,Ot=yt,xt=Object(u["a"])(Ot,vt,gt,!1,null,null,null),kt=xt.exports,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("status-section",{attrs:{title:"Metrics"},scopedSlots:t._u([{key:"title",fn:function(e){var r=e.title;return[n("div",[n("div",{staticClass:"d-flex align-center"},[n("h3",[t._v(t._s(r))]),t.hasPotentialCardinalityIssues?n("v-tooltip",{attrs:{bottom:"","content-class":"white dark1--text"},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on,i=e.attrs;return[n("v-avatar",t._g(t._b({staticClass:"ml-2 c-pointer",attrs:{size:"26",color:"warning"}},"v-avatar",i,!1),r),[n("v-icon",{attrs:{size:"13",color:"white"}},[t._v("fa-exclamation")])],1)]}}],null,!0)},[t._v("\n\n Some of your metrics may have a cardinality issue!\n ")]):t._e()],1),n("div",{staticClass:"text-note dark3--text",staticStyle:{"margin-top":"4px"}},[t._v("\n "+t._s(t.matchedMetrics.length)+" metrics found\n ")])])]}},{key:"actions",fn:function(){return[n("div",{staticStyle:{"max-width":"240px"}},[n("v-text-field",{staticClass:"search-field",attrs:{placeholder:"Search...","hide-details":"",flat:"",solo:"","background-color":"white",color:"dark3"},scopedSlots:t._u([{key:"prepend-inner",fn:function(){return[n("v-icon",{staticClass:"mr-1",attrs:{color:"dark3",size:"20"}},[t._v("fa-search")])]},proxy:!0}]),model:{value:t.filterPattern,callback:function(e){t.filterPattern=e},expression:"filterPattern"}})],1)]},proxy:!0}])},t._l(t.matchedMetrics,(function(t){return n("metric-list-item",{key:t.name,attrs:{metric:t}})})),1)},_t=[],wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("status-card",{class:{"c-pointer":t.metric.instruments.length>0},attrs:{"indicator-background-color":t.backgroundColor,"indicator-color":t.textColor},nativeOn:{click:function(e){return t.onCardClick(e)}},scopedSlots:t._u([{key:"status-indicator",fn:function(e){var r=e.indicatorBackgroundColor,i=e.indicatorColor;return[n("v-tooltip",{attrs:{bottom:"","content-class":"white dark1--text",disabled:t.metric.instruments.length<=300},scopedSlots:t._u([{key:"activator",fn:function(e){var o=e.on;return[n("v-avatar",t._g({attrs:{size:"32",color:r}},o),[n("span",t._g({staticClass:"text-indicator",class:i+"--text"},o),[t._v("\n "+t._s(t.metric.instruments.length)+"\n ")])])]}}],null,!0)},[t._v("\n\n This metric might have cardinality issues\n ")])]}},{key:"default",fn:function(){return[n("div",[n("div",{staticClass:"text-label dark1--text"},[t._v("\n "+t._s(t.metric.name)+"\n ")]),n("div",{staticClass:"text-sublabel mt-1 dark3--text"},[t._v("\n "+t._s(t.metric.description)+"\n ")])])]},proxy:!0},{key:"status",fn:function(){return[n("div",{staticClass:"d-flex"},[n("div",{staticClass:"text-indicator light2 dark3--text px-2 py-1 rounded text-capitalized"},[t._v("\n "+t._s(t.metric.instrumentType)+"\n ")]),"none"!==t.metric.unitDimension?n("div",{staticClass:"text-indicator light2 dark3--text px-2 py-1 rounded ml-1 text-capitalized"},[t._v("\n "+t._s(t.metric.unitMagnitude)+"\n ")]):t._e()])]},proxy:!0},{key:"action",fn:function(){return[n("v-icon",{staticClass:"metric-toggle",class:{disabled:0===t.metric.instruments.length},attrs:{color:"dark4",size:"16"}},[t._v(t._s(t.expansionIcon))])]},proxy:!0},t.expanded?{key:"append",fn:function(){return[n("div",{staticClass:"white rounded mb-2 ml-2",on:{click:function(t){t.stopPropagation()}}},[t._l(t.visibleInstruments,(function(e,r){return n("div",{key:e.key,staticClass:"pa-2 instrument"},[n("v-row",{attrs:{align:"center"}},[n("v-col",{attrs:{cols:"3"}},[n("span",{staticClass:"text-label dark1--text"},[t._v("Instrument #"+t._s(r+1))])]),n("v-col",{staticClass:"text-right d-flex justify-end flex-wrap",attrs:{cols:"9"}},t._l(e.tags,(function(e){return n("div",{staticClass:"text-sublabel light2 dark3--text px-2 py-1 ml-1 mb",staticStyle:{"margin-top":"2px","margin-bottom":"2px"}},[t._v("\n "+t._s(e[0])+" "),n("strong",{staticClass:"dark1--text"},[t._v(t._s(e[1]))])])})),0)],1)],1)})),t.canShowMore?n("div",{staticClass:"mb-2 text-decoration-underline text-sublabel primary--text font-weight-bold text-uppercase text-center w-100 pa-1",on:{click:function(e){return e.stopPropagation(),t.onShowMore(e)}}},[t._v("\n View More\n ")]):t._e()],2)]},proxy:!0}:null],null,!0)})},Mt=[],Vt=25,St=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expanded=!1,e.visibleInstrumentIndex=Vt,e}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this.metric.instruments.length>300?"warning":0===this.metric.instruments.length?"light2":"primary"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this.metric.instruments.length>0?"white":"dark4"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expansionIcon",{get:function(){return this.expanded?"fa-chevron-up":"fa-chevron-down"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleInstruments",{get:function(){return this.metric.instruments.slice(0,this.visibleInstrumentIndex).map((function(t){var e=Object.keys(t).map((function(e){return[e,t[e]]})),n=e.map((function(t){return t.join("-")})).join(":");return{tags:e,key:n}}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canShowMore",{get:function(){return this.metric.instruments.length>this.visibleInstrumentIndex},enumerable:!1,configurable:!0}),e.prototype.onShowMore=function(){this.visibleInstrumentIndex+=Vt},e.prototype.onCardClick=function(){0!==this.metric.instruments.length&&(this.expanded=!this.expanded,this.expanded||(this.visibleInstrumentIndex=Vt))},Object(s["b"])([Object(a["b"])({default:null})],e.prototype,"metric",void 0),e=Object(s["b"])([Object(a["a"])({components:{StatusCard:J}})],e),e}(a["c"]),Pt=St,Ht=Pt,Rt=(n("ad9d"),Object(u["a"])(Ht,wt,Mt,!1,null,null,null)),Et=Rt.exports;g()(Rt,{VAvatar:K["a"],VCol:D["a"],VIcon:U["a"],VRow:N["a"],VTooltip:mt["a"]});var It=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.filterPattern="",e}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"filterRegex",{get:function(){return new RegExp(this.filterPattern)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sortedMetrics",{get:function(){return this.metrics.sort((function(t,e){return 0===t.instruments.length&&e.instruments.length>0?1:t.instruments.length>0&&0===e.instruments.length?-1:t.name.localeCompare(e.name)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPotentialCardinalityIssues",{get:function(){return this.metrics.some((function(t){return t.instruments.length>300}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matchedMetrics",{get:function(){var t=this;return this.filterPattern.length>0?this.sortedMetrics.filter((function(e){return null!=e.search.match(t.filterRegex)})):this.sortedMetrics},enumerable:!1,configurable:!0}),Object(s["b"])([Object(a["b"])({default:[]})],e.prototype,"metrics",void 0),e=Object(s["b"])([Object(a["a"])({components:{StatusSection:ct,MetricListItem:Et}})],e),e}(a["c"]),Lt=It,At=Lt,zt=(n("ca31"),n("8654")),Tt=Object(u["a"])(At,jt,_t,!1,null,null,null),Zt=Tt.exports;g()(Tt,{VAvatar:K["a"],VIcon:U["a"],VTextField:zt["a"],VTooltip:mt["a"]});var $t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("status-section",{attrs:{title:"Environment"}},[n("v-card",{staticClass:"pa-0",attrs:{elevation:"0"}},[n("div",{staticClass:"w-100 d-flex px-4 py-3"},[n("div",{staticClass:"flex-grow-1"},[n("div",{staticClass:"text-label text-uppercase dark1--text"},[t._v("\n Service\n ")]),n("div",{staticClass:"text-sublabel dark3--text mt-1"},[t._v("\n "+t._s(t.service)+"\n ")])]),n("div",{staticClass:"flex-grow-1"},[n("div",{staticClass:"text-label text-uppercase dark1--text"},[t._v("\n Host\n ")]),n("div",{staticClass:"text-sublabel dark3--text mt-1"},[t._v("\n "+t._s(t.host)+"\n ")])]),n("div",{staticClass:"flex-grow-1"},[n("div",{staticClass:"text-label text-uppercase dark1--text"},[t._v("\n Instance\n ")]),n("div",{staticClass:"text-sublabel dark3--text mt-1"},[t._v("\n "+t._s(t.instance)+"\n ")])])]),n("div",{staticClass:"w-100 tags-container px-4 py-3"},[n("div",{staticClass:"text-label text-uppercase dark1--text"},[t._v("\n Tags\n ")]),n("div",{staticClass:"tags"},[t.tags.length>0?t._l(t.tags,(function(e){return n("div",{key:e,staticClass:"kamon-tag d-inline-block rounded mt-2 mr-2 pa-1 light2 dark3--text text-sublabel"},[t._v("\n "+t._s(e)+" "),n("strong",{staticClass:"dark1--text"},[t._v(t._s(t.environmentTags[e]))])])})):n("div",{staticClass:"mt-1 dark3--text"},[t._v("\n None\n ")])],2)])])],1)},Ft=[],Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this.environment.map((function(t){return t.instance})).getOrElse("Unknown")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"host",{get:function(){return this.environment.map((function(t){return t.host})).getOrElse("Unknown")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"service",{get:function(){return this.environment.map((function(t){return t.service})).getOrElse("Unknown")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"environmentTags",{get:function(){return this.environment.map((function(t){return t.tags})).getOrElse({})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tags",{get:function(){return Object.keys(this.environmentTags)},enumerable:!1,configurable:!0}),Object(s["b"])([Object(a["b"])({required:!0})],e.prototype,"environment",void 0),e=Object(s["b"])([Object(a["a"])({components:{StatusSection:ct}})],e),e}(a["c"]),Bt=Kt,Dt=Bt,Ut=(n("8b00"),Object(u["a"])(Dt,$t,Ft,!1,null,"44544ef2",null)),Nt=Ut.exports;g()(Ut,{VCard:B["a"]});var qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{directives:[{name:"scroll",rawName:"v-scroll",value:t.onScroll,expression:"onScroll"}],attrs:{elevation:t.elevation,color:"white"}},[n("v-row",{staticClass:"text-center",attrs:{"no-gutters":""}},[n("v-col",{staticClass:"py-5 px-4 d-flex flex-column position-relative overview-col",attrs:{cols:"4"},on:{click:function(e){return t.$emit("click:instrumentation")}}},[t.enabledInstruments>0?n("h2",{staticClass:"dark1--text"},[t._v("\n "+t._s(t.activeInstruments)+"/"+t._s(t.enabledInstruments)+" Active\n "),t.disabledInstruments>0?n("span",[n("v-divider",{staticClass:"mx-1",attrs:{vertical:""}}),t._v(" "+t._s(t.disabledInstruments)+" Disabled\n ")],1):t._e()]):n("h2",{staticClass:"dark1--text"},[t._v("\n Not Connected\n ")]),n("div",{staticClass:"mt-1 subtitle dark3--text subtitle"},[t._v("Instrumentation")]),n("v-avatar",{staticClass:"overview-status-indicator",class:"elevation-"+this.elevation,attrs:{size:"40",color:t.instrumentsOk?"primary":"error"}},[n("v-icon",{attrs:{size:"18",color:"white"}},[t._v(t._s(t.instrumentsOk?"fa-check":"fa-times"))])],1)],1),n("v-col",{staticClass:"py-5 px-4 d-flex flex-column position-relative overview-col",attrs:{cols:"4"},on:{click:function(e){return t.$emit("click:reporters")}}},[n("h2",{staticClass:"dark1--text"},[t._v(t._s(t.activeReporters.length)+" Started")]),n("div",{staticClass:"mt-1 subtitle dark3--text subtitle"},[t._v("Reporters")]),n("v-avatar",{staticClass:"overview-status-indicator",class:"elevation-"+this.elevation,attrs:{size:"40",color:t.reportersOk?"primary":"error"}},[n("v-icon",{attrs:{size:"18",color:"white"}},[t._v(t._s(t.reportersOk?"fa-check":"fa-times"))])],1)],1),n("v-col",{staticClass:"py-5 px-4 d-flex flex-column position-relative overview-col",attrs:{cols:"4"},on:{click:function(e){return t.$emit("click:metrics")}}},[n("h2",{staticClass:"dark1--text"},[t._v(t._s(t.trackedMetrics)+" Metrics")]),n("div",{staticClass:"mt-1 subtitle dark3--text subtitle"},[t._v("Metrics")]),n("v-avatar",{staticClass:"overview-status-indicator",class:"elevation-"+this.elevation,attrs:{size:"40",color:t.metricsOk?"primary":"warning"}},[n("v-icon",{attrs:{size:"18",color:"white"}},[t._v(t._s(t.metricsOk?"fa-check":"fa-exclamation"))])],1)],1)],1)],1)},Jt=[],Yt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.elevation=0,e}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"reporterModules",{get:function(){var t=this;return this.moduleRegistry.map((function(e){return e.modules.filter(t.isReporter)})).getOrElse([])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeReporters",{get:function(){return this.reporterModules.filter(this.isStarted)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reportersOk",{get:function(){return this.moduleRegistry.isEmpty||this.activeReporters.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackedMetrics",{get:function(){return this.metricRegistry.map((function(t){return t.metrics.length})).getOrElse(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metricsOk",{get:function(){return!!this.metricRegistry.isEmpty||this.metricRegistry.map((function(t){return t.metrics.length>0})).getOrElse(!1)&&this.metricRegistry.map((function(t){return t.metrics.every((function(t){return t.instruments.length<300}))})).getOrElse(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instrumentsOk",{get:function(){return this.instrumentation.map((function(t){return 0===Object.keys(t.errors).length})).getOrElse(!0)&&this.enabledInstruments>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enabledInstruments",{get:function(){return this.instrumentation.map((function(t){return t.modules.filter((function(t){return t.enabled})).length})).getOrElse(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeInstruments",{get:function(){return this.instrumentation.map((function(t){return t.modules.filter((function(t){return t.active})).length})).getOrElse(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabledInstruments",{get:function(){return this.instrumentation.map((function(t){return t.modules.filter((function(t){return!t.enabled})).length})).getOrElse(0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instrumentationStatusMessage",{get:function(){return this.instrumentation.map((function(t){return t.present?"Active":"Disabled"})).getOrElse("Unknown")},enumerable:!1,configurable:!0}),e.prototype.onScroll=function(){this.elevation=window.scrollY>0?3:0},e.prototype.isReporter=function(t){return[_.Combined,_.Span,_.Metric].includes(t.kind)},e.prototype.isStarted=function(t){return t.started},Object(s["b"])([Object(a["b"])({required:!0})],e.prototype,"moduleRegistry",void 0),Object(s["b"])([Object(a["b"])({required:!0})],e.prototype,"metricRegistry",void 0),Object(s["b"])([Object(a["b"])({required:!0})],e.prototype,"instrumentation",void 0),e=Object(s["b"])([Object(a["a"])({components:{StatusSection:ct}})],e),e}(a["c"]),Gt=Yt,Qt=Gt,Wt=(n("3d7e"),n("ce7e")),Xt=n("269a"),te=n.n(Xt),ee=n("f977"),ne=Object(u["a"])(Qt,qt,Jt,!1,null,null,null),re=ne.exports;g()(ne,{VAvatar:K["a"],VCard:B["a"],VCol:D["a"],VDivider:Wt["a"],VIcon:U["a"],VRow:N["a"]}),te()(ne,{Scroll:ee["b"]});var ie=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.settings=S["none"],e.moduleRegistry=S["none"],e.metricRegistry=S["none"],e.instrumentation=S["none"],e}return Object(s["c"])(e,t),Object.defineProperty(e.prototype,"reporterModules",{get:function(){var t=this;return this.moduleRegistry.map((function(e){return e.modules.filter(t.isReporter)})).getOrElse([])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeReporters",{get:function(){return this.reporterModules.filter(this.isStarted)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"plainModules",{get:function(){var t=this;return this.moduleRegistry.map((function(e){return e.modules.filter((function(e){return!t.isReporter(e)}))})).getOrElse([])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackedMetrics",{get:function(){return this.metricRegistry.map((function(t){return t.metrics.length}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instrumentationStatusMessage",{get:function(){return this.instrumentation.map((function(t){return t.present?"Active":"Disabled"})).getOrElse("Unknown")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metricsStatusMessage",{get:function(){return this.trackedMetrics.map((function(t){return t+" Tracked"})).getOrElse("Unknown")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metrics",{get:function(){return this.metricRegistry.map((function(t){return t.metrics})).getOrElse([])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modules",{get:function(){return this.moduleRegistry.map((function(t){return t.modules})).getOrElse([])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instrumentationModules",{get:function(){return this.instrumentation.map((function(t){return t.modules})).getOrElse([])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"environment",{get:function(){return this.settings.map((function(t){return t.environment}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this.settings.map((function(t){return t.config}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"redirectInfo",{get:function(){var t=this.config.map((function(t){var e,n;return null===(n=null===(e=null===t||void 0===t?void 0:t.kamon)||void 0===e?void 0:e.environment)||void 0===n?void 0:n.service})).orNull,e=this.instrumentationModules.filter((function(t){return t.enabled&&t.active})),n=function(){return e.some((function(t){return t.name.toLocaleLowerCase().includes("play")}))?"play":e.some((function(t){return t.name.toLocaleLowerCase().includes("akka")}))?"akka":e.some((function(t){return t.name.toLocaleLowerCase().includes("spring")}))?"spring":"plain"}(),r=new URLSearchParams;return r.set("continueOnboarding","true"),r.set("framework",n),r.set("serviceName",t),"https://apm.kamon.io?"+r.toString()},enumerable:!1,configurable:!0}),e.prototype.mounted=function(){this.refreshData()},e.prototype.goToInstrumentation=function(){this.$vuetify.goTo(".js-instrumentation",{offset:80})},e.prototype.goToReporters=function(){this.$vuetify.goTo(".js-reporters",{offset:80})},e.prototype.goToMetrics=function(){this.$vuetify.goTo(".js-metrics",{offset:80})},e.prototype.showApmApiKey=function(){window.open(this.redirectInfo)},e.prototype.refreshData=function(){var t=this;I.settings().then((function(e){t.settings=Object(S["some"])(e)})),I.metricRegistryStatus().then((function(e){t.metricRegistry=Object(S["some"])(e)})),I.moduleRegistryStatus().then((function(e){t.moduleRegistry=Object(S["some"])(e)})),I.instrumentationStatus().then((function(e){t.instrumentation=Object(S["some"])(e)}))},e.prototype.isReporter=function(t){return[_.Combined,_.Span,_.Metric].includes(t.kind)},e.prototype.isStarted=function(t){return t.started},e=Object(s["b"])([Object(a["a"])({components:{"overview-card":re,"module-list":bt,"instrumentation-module-list":kt,"metric-list":Zt,"environment-card":Nt}})],e),e}(a["c"]),oe=ie,se=oe,ae=(n("c4a3"),n("a523")),ce=Object(u["a"])(se,M,V,!1,null,null,null),le=ce.exports;g()(ce,{VCol:D["a"],VContainer:ae["a"],VRow:N["a"]}),r["default"].use(w["a"]);var ue=new w["a"]({routes:[{path:"/",name:"overview",component:le}]}),de=(n("becf"),n("fb98"),n("f309"));r["default"].use(de["a"]);var pe=new de["a"]({icons:{iconfont:"fa"},theme:{dark:!1,themes:{light:{primary:"#3BC882",dark:"#1C1C28",background:"#E5E5E5",warning:"#FFCC00",error:"#FF3B3B",red4:"#FFE5E5",green4:"#E3FFF1",dark1:"#28293D",dark3:"#8F90A6",dark4:"#C7C9D9",light2:"#F2F2F5"}}}});r["default"].config.productionTip=!1,new r["default"]({router:ue,vuetify:pe,render:function(t){return t(j)}}).$mount("#app")},fb93:function(t,e,n){},fb98:function(t,e,n){}});
© 2015 - 2024 Weber Informatics LLC | Privacy Policy