chunk-3bd33555.55b4159e.js 11 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3bd33555"],{"20a7":function(e,t,i){"use strict";var r=i("e0c0"),n=i.n(r);n.a},e0c0:function(e,t,i){},ec3e:function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex-v wrapper service-view",staticStyle:{"flex-grow":"1",height:"100%",overflow:"hidden"}},[i("ToolNav",{attrs:{rocketGlobal:e.rocketGlobal,rocketComps:Object.assign({},e.serviceViewComps,{current:e.rocketComps.current})}},[1===e.rocketComps.current?i("div",{staticClass:"tool-nav-comp"},[i("ToolBarSelect",{attrs:{title:this.$t("currentInstance"),current:e.stateDashboard.currentInstance,data:e.stateDashboard.instances,icon:"disk"},on:{onChoose:e.selectInstance}})],1):e._e(),2===e.rocketComps.current?i("div",{staticClass:"tool-nav-comp"},[i("ToolBarEndpointSelect",{attrs:{title:this.$t("currentEndpoint"),current:e.stateDashboard.currentEndpoint,data:e.stateDashboard.endpoints,icon:"code"},on:{onChoose:e.selectEndpoint}})],1):e._e(),i("div",{staticClass:"flex-h bar-time"},[i("RkFooterTime",{staticStyle:{"min-width":"280px"}})],1)]),i("div",{staticClass:"dashboard-container clear"},[0===e.rocketComps.current?i("div",{staticClass:"rk-dashboard-item",class:"g-sm-3",style:"height:100px;"},[e._m(0),i("div",{staticClass:"rk-dashboard-item-body"},[i("div",{staticStyle:{height:"100%"}},[e._v("\n "+e._s(e.stateDashboard.currentService.label)+"\n ")])])]):e._e(),e._l(e.getItems(),function(t,r){return i("DashboardItem",{key:r+t.title+t.width,attrs:{index:r,rocketGlobal:e.rocketGlobal,item:t,updateObjects:e.ObjectsType.UPDATE_DASHBOARD}})})],2)],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"rk-dashboard-item-title ell"},[i("span",[e._v("服务信息")])])}],a=(i("7f7f"),i("28a5"),i("f499")),c=i.n(a),o=i("d225"),s=i("b0b4"),p=i("308d"),d=i("6bb5"),l=i("4e2b"),m=(i("cadf"),i("551c"),i("f751"),i("097d"),i("9ab4")),h=i("2b0e"),y=i("e249"),u=i("7e09"),T=i("60a3"),_=i("4bb5"),v=[{name:"APM",type:"service",children:[{name:"Service",children:[{width:3,title:"Service Apdex",height:"100",entityType:"Service",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"service_apdex",queryMetricType:"readMetricsValue",chartType:"ChartNum",aggregation:"/",aggregationNum:"10000"},{width:3,title:"Service Load",height:"100",entityType:"Service",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"service_cpm",queryMetricType:"readMetricsValue",chartType:"ChartNum",unit:"CPM - calls per minute"},{width:3,title:"Successful Rate",height:"100",entityType:"Service",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"service_sla",queryMetricType:"readMetricsValue",chartType:"ChartNum",unit:"%",aggregation:"/",aggregationNum:"100"},{width:3,title:"Service Avg Response Time",height:"300",entityType:"Service",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"service_resp_time",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"ms"},{width:3,title:"Slow Service Instance",height:"300",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"service_instance_resp_time",queryMetricType:"sortMetrics",chartType:"ChartSlow",parentService:!0,unit:"ms"},{width:3,title:"Slow Endpoints in Current Service",height:"300",entityType:"Endpoint",independentSelector:!1,metricType:"REGULAR_VALUE",queryMetricType:"sortMetrics",chartType:"ChartSlow",metricName:"endpoint_avg",unit:"ms",parentService:!0},{width:3,title:"Endpoint Load in Current Service",height:"300",entityType:"Endpoint",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"endpoint_cpm",queryMetricType:"sortMetrics",chartType:"ChartSlow",parentService:!0,unit:"CPM - calls per minute"}]},{name:"Instance",children:[{width:"3",title:"Service Instance Load",height:"250",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"service_instance_cpm",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"CPM - calls per minute"},{width:"3",title:"Service Instance Successful Rate",height:"250",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"service_instance_sla",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"%",aggregation:"/",aggregationNum:"100"},{width:"3",title:"Service Instance Latency",height:"250",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"service_instance_resp_time",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"ms"},{width:3,title:"JVM CPU (Java Service)",height:"250",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"instance_jvm_cpu",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"%",aggregation:"+",aggregationNum:""},{width:3,title:"JVM Memory (Java Service)",height:"250",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"instance_jvm_memory_heap, instance_jvm_memory_heap_max,instance_jvm_memory_noheap, instance_jvm_memory_noheap_max",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"MB",aggregation:"/",aggregationNum:"1048576"},{width:3,title:"JVM GC Time",height:"250",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"instance_jvm_young_gc_time, instance_jvm_old_gc_time",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"ms"},{width:3,title:"JVM GC Count",height:"250",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",queryMetricType:"readMetricsValues",chartType:"ChartBar",metricName:"instance_jvm_young_gc_count, instance_jvm_old_gc_count"},{width:3,title:"JVM Thread Count (Java Service)",height:"250",entityType:"ServiceInstance",independentSelector:!1,metricType:"REGULAR_VALUE",queryMetricType:"readMetricsValues",chartType:"ChartLine",metricName:"instance_jvm_thread_live_count, instance_jvm_thread_daemon_count, instance_jvm_thread_peak_count"}]},{name:"Endpoint",children:[{width:"4",title:"Endpoint Load in Current Service",height:"300",entityType:"Endpoint",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"endpoint_cpm",queryMetricType:"sortMetrics",chartType:"ChartSlow",parentService:!0,unit:"CPM - calls per minute"},{width:"4",title:"Slow Endpoints in Current Service",height:"300",entityType:"Endpoint",independentSelector:!1,metricType:"REGULAR_VALUE",queryMetricType:"sortMetrics",chartType:"ChartSlow",metricName:"endpoint_avg",unit:"ms",parentService:!0},{width:"4",title:"Successful Rate in Current Service",height:"300",entityType:"Endpoint",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"endpoint_sla",queryMetricType:"sortMetrics",chartType:"ChartSlow",aggregation:"/",aggregationNum:"100",parentService:!0,unit:"%",sortOrder:"ASC"},{width:3,title:"Endpoint Load",height:350,entityType:"Endpoint",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"endpoint_cpm",queryMetricType:"readMetricsValues",chartType:"ChartLine"},{width:3,title:"Endpoint Avg Response Time",height:350,entityType:"Endpoint",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"endpoint_avg",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"ms"},{width:3,title:"Endpoint Response Time Percentile",height:350,entityType:"Endpoint",independentSelector:!1,metricType:"LABELED_VALUE",metricName:"endpoint_percentile",queryMetricType:"readLabeledMetricsValues",chartType:"ChartLine",metricLabels:"P50, P75, P90, P95, P99",labelsIndex:"0, 1, 2, 3, 4",unit:"ms"},{width:3,title:"Endpoint Successful Rate",height:350,entityType:"Endpoint",independentSelector:!1,metricType:"REGULAR_VALUE",metricName:"endpoint_sla",queryMetricType:"readMetricsValues",chartType:"ChartLine",unit:"%",aggregation:"/",aggregationNum:"100"}]}]}],E=i("adcc"),S=i("954a"),g=i("b7d9"),C=i("b2f8"),L=i("47af"),N=i("b7eb"),A=function(e){function t(){var e;return Object(o["a"])(this,t),e=Object(p["a"])(this,Object(d["a"])(t).apply(this,arguments)),e.loading=null,e.service="",e.name="",e.ObjectsType=S["a"],e.serviceViewComps={tree:v,group:0},e}return Object(l["a"])(t,e),Object(s["a"])(t,[{key:"watchRocketComps",value:function(e){this.$set(this.serviceViewComps,"current",e)}},{key:"selectEndpoint",value:function(e){this.SELECT_ENDPOINT({endpoint:e,duration:this.durationTime})}},{key:"selectInstance",value:function(e){this.SELECT_INSTANCE({instance:e,duration:this.durationTime})}},{key:"getItems",value:function(){return this.serviceViewComps.tree[this.serviceViewComps.group]&&this.serviceViewComps.tree[this.serviceViewComps.group].children[this.rocketComps.current]&&this.serviceViewComps.tree[this.serviceViewComps.group].children[this.rocketComps.current].children}},{key:"handleOption",value:function(){var e=this;this.MIXHANDLE_GET_OPTION({compType:"service",duration:this.durationTime,keywordServiceName:this.service}).then(function(){e.loading.close()})}},{key:"beforeMount",value:function(){this.loading=h["default"].prototype.$noty.info("正在加载服务信息",{timeout:0,modal:!0,layout:"center"}),window.localStorage.setItem("dashboard",c()(this.serviceViewComps.tree)),window.addEventListener("unload",function(){window.localStorage.removeItem("dashboard"),window.localStorage.removeItem("version")});var e=new Date;this.SET_DURATION(Object(L["a"])([new Date(e.getTime()-864e5),e]));var t=window.frameElement;if(!t)return this.loading.close(),void h["default"].prototype.$noty.error("加载服务信息失败",{timeout:0,modal:!0,layout:"center"});var i=Object(u["e"])("props-key",t.src.split("?")[1])||"",r=JSON.parse(sessionStorage.getItem(i)||"{}"),n=r.namespace,a=r.system,o=r.name,s=r.service;this.name=o,this.service=s,n&&a&&(this.rocketGlobal.currentSystem.key?(this.handleOption(),this.loading.close()):(this.$store.commit("SET_DEFAULT_NAMESPACE",n),this.$store.commit("SET_DEFAULT_SYSTEM",a),this.INIT_GLOBAL_NS({duration:this.durationTime}),this.SET_NS_CHANGE([this.handleOption])))}}]),t}(h["default"]);m["a"]([Object(_["d"])("rocketbot")],A.prototype,"rocketGlobal",void 0),m["a"]([Object(_["a"])("INIT_GLOBAL_NS")],A.prototype,"INIT_GLOBAL_NS",void 0),m["a"]([Object(_["a"])("MIXHANDLE_GET_OPTION")],A.prototype,"MIXHANDLE_GET_OPTION",void 0),m["a"]([Object(_["c"])("SET_NS_CHANGE")],A.prototype,"SET_NS_CHANGE",void 0),m["a"]([Object(_["b"])("durationTime")],A.prototype,"durationTime",void 0),m["a"]([Object(_["d"])("rocketData")],A.prototype,"rocketComps",void 0),m["a"]([Object(_["c"])("SET_CURRENT_COMPS")],A.prototype,"SET_CURRENT_COMPS",void 0),m["a"]([Object(_["d"])("rocketOption")],A.prototype,"stateDashboard",void 0),m["a"]([Object(_["a"])("SELECT_ENDPOINT")],A.prototype,"SELECT_ENDPOINT",void 0),m["a"]([Object(_["a"])("SELECT_INSTANCE")],A.prototype,"SELECT_INSTANCE",void 0),m["a"]([Object(_["a"])("SET_DURATION")],A.prototype,"SET_DURATION",void 0),m["a"]([Object(T["e"])("rocketComps.current")],A.prototype,"watchRocketComps",null),A=m["a"]([Object(T["a"])({components:{ToolNav:y["a"],DashboardItem:E["a"],ToolBarSelect:g["a"],ToolBarEndpointSelect:C["a"],RkFooterTime:N["a"]}})],A);var b=A,w=b,M=(i("20a7"),i("2877")),R=Object(M["a"])(w,r,n,!1,null,null,null);t["default"]=R.exports}}]);
  2. //# sourceMappingURL=chunk-3bd33555.55b4159e.js.map