~ K    A     L    I ~
UNAME : Linux web62.extendcp.co.uk 4.18.0-553.58.1.el8_10.x86_64 #1 SMP Wed Jun 25 06:37:46 EDT 2025 x86_64
SERVER IP : 10.0.187.62 -________- CLIENT IP : 216.73.216.199
PATH :/usr/share/maxscale/gui/js/
UP FILE :
MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/monitor-detail~7d33e2e2.75f66892.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["monitor-detail~7d33e2e2"],{"652d":function(t,e,s){},"6beb":function(t,e,s){"use strict";s.r(e);var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("page-wrapper",[t.$helpers.lodash.isEmpty(t.current_monitor)?t._e():s("v-sheet",{staticClass:"pl-6"},[s("monitor-page-header",{attrs:{targetMonitor:t.current_monitor,successCb:t.successCb},on:{"on-count-done":t.recurringFetch,"is-calling-op":function(e){t.isCallingOp=e}},scopedSlots:t._u([{key:"page-title",fn:function(e){var r=e.pageId;return[s("router-link",{staticClass:"rsrc-link",attrs:{to:"/visualization/clusters/"+r}},[t._v(" "+t._s(r)+" ")])]}}],null,!1,2284793167)}),s("overview-header",{staticClass:"pb-3",attrs:{currentMonitor:t.current_monitor},on:{"switch-over":t.handleSwitchover}}),s("v-row",[s("v-col",{attrs:{cols:"6"}},[s("details-parameters-table",{attrs:{resourceId:t.current_monitor.id,parameters:t.current_monitor.attributes.parameters,updateResourceParameters:t.updateMonitorParameters,onEditSucceeded:t.fetchMonitor}})],1),s("v-col",{attrs:{cols:"6"}},[s("v-row",[s("v-col",{attrs:{cols:"12"}},[s("relationship-table",{attrs:{relationshipType:"servers",addable:"",removable:"",tableRows:t.serverStateTableRow,getRelationshipData:t.fetchAllServers,selectItems:t.unmonitoredServers},on:{"on-relationship-update":t.dispatchRelationshipUpdate}})],1),t.isColumnStoreCluster&&t.isAdmin?s("v-col",{attrs:{cols:"12"}},[s("details-readonly-table",{attrs:{title:""+t.$mxs_t("csStatus"),tableData:t.curr_cs_status,isTree:"",expandAll:"",noDataText:t.cs_no_data_txt||t.$mxs_t("$vuetify.noDataText"),isLoadingData:t.isFirstFetch&&t.is_loading_cs_status}})],1):t._e()],1)],1)],1)],1)],1)},i=[],a=(s("ddb0"),s("2f62")),o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-sheet",{staticClass:"d-flex mb-2"},[t._l(t.getTopOverviewInfo,(function(e,r){return s("outlined-overview-card",{key:r,attrs:{wrapperClass:"mt-0",cardClass:"card-"+r+" px-10",hoverableCard:"master"===r},on:{"card-hover":function(e){t.showEditBtn=e}},scopedSlots:t._u([{key:"card-body",fn:function(){return[s("span",{staticClass:"text-caption text-uppercase font-weight-bold mxs-color-helper text-deep-ocean"},[t._v(" "+t._s(r.replace("_"," "))+" ")]),"master"===r?["undefined"!==e?s("router-link",{staticClass:"text-no-wrap text-body-2 rsrc-link",attrs:{to:"/dashboard/servers/"+e}},[s("span",[t._v(t._s(e)+" ")])]):s("span",{staticClass:"text-no-wrap text-body-2"},[t._v(" "+t._s(e)+" ")]),s("v-btn",{directives:[{name:"show",rawName:"v-show",value:t.showEditBtn,expression:"showEditBtn"}],staticClass:"switchover-edit-btn",attrs:{icon:""},on:{click:function(){return t.onEdit(t.switchoverOp.type)}}},[s("v-icon",{attrs:{size:"18",color:"primary"}},[t._v(" $vuetify.icons.mxs_edit ")])],1),s("v-tooltip",{attrs:{bottom:"",transition:"slide-y-transition","content-class":"shadow-drop mxs-color-helper text-navigation py-1 px-4",activator:".switchover-edit-btn"}},[s("span",[t._v(t._s(t.switchoverOp.text)+" ")])])]:s("span",{staticClass:"text-no-wrap text-body-2"},[t._v(" "+t._s(e)+" ")])]},proxy:!0}],null,!0)})})),s("mxs-sel-dlg",{attrs:{title:t.dialogTitle,saveText:"swap",entityName:t.targetSelectItemType,itemsList:t.itemsList,defaultItems:t.defaultItems,onSave:t.confirmChange},on:{"selected-items":function(e){t.targetItem=e},"on-open":t.getAllEntities},scopedSlots:t._u([t.smallInfo?{key:"body-append",fn:function(){return[s("small",{staticClass:"d-inline-block mt-4"},[t._v(" "+t._s(t.$mxs_t(t.smallInfo))+" ")])]},proxy:!0}:null],null,!0),model:{value:t.isSelectDlgOpened,callback:function(e){t.isSelectDlgOpened=e},expression:"isSelectDlgOpened"}})],2)},n=[],c={name:"overview-header",props:{currentMonitor:{type:Object,required:!0}},data(){return{showEditBtn:!1,dialogTitle:"",targetItem:[],isSelectDlgOpened:!1,targetSelectItemType:"servers",itemsList:[],defaultItems:{},smallInfo:""}},computed:{...Object(a["e"])({MONITOR_OP_TYPES:t=>t.app_config.MONITOR_OP_TYPES}),...Object(a["c"])({getMonitorOps:"monitor/getMonitorOps"}),getTopOverviewInfo(){const{attributes:{monitor_diagnostics:{master:t,master_gtid_domain_id:e,state:s,primary:r}={}}={}}=this.currentMonitor,i={master:t,master_gtid_domain_id:e,state:s,primary:r};return Object.keys(i).forEach(t=>i[t]=this.$helpers.convertType(i[t])),i},serverIds:function(){const{relationships:{servers:{data:t=[]}={}}={}}=this.currentMonitor;return t.map(t=>({id:t.id,type:t.type}))},switchoverOp(){return this.getMonitorOps({scope:this})[this.MONITOR_OP_TYPES.SWITCHOVER]}},methods:{async getAllEntities(){switch(this.targetSelectItemType){case"servers":this.itemsList=await this.serverIds,this.defaultItems={id:this.getTopOverviewInfo.master,type:"servers"};break}},onEdit(t){switch(t){case this.MONITOR_OP_TYPES.SWITCHOVER:this.dialogTitle=this.switchoverOp.text,this.smallInfo="info.switchover",this.targetSelectItemType="servers";break}this.isSelectDlgOpened=!0},async confirmChange(){switch(this.targetSelectItemType){case"servers":{const{id:t}=this.targetItem[0];this.$emit("switch-over",t)}break}}}},l=c,d=(s("dee5"),s("2877")),h=s("6544"),u=s.n(h),p=s("8336"),m=s("132d"),_=s("8dd9"),v=s("3a2f"),f=Object(d["a"])(l,o,n,!1,null,"04437bde",null),w=f.exports;u()(f,{VBtn:p["a"],VIcon:m["a"],VSheet:_["a"],VTooltip:v["a"]});var y={components:{OverviewHeader:w},data(){return{serverStateTableRow:[],unmonitoredServers:[],isFirstFetch:!0,isCallingOp:!1}},computed:{...Object(a["e"])({should_refresh_resource:"should_refresh_resource",current_monitor:t=>t.monitor.current_monitor,curr_cs_status:t=>t.monitor.curr_cs_status,is_loading_cs_status:t=>t.monitor.is_loading_cs_status,cs_no_data_txt:t=>t.monitor.cs_no_data_txt,all_servers:t=>t.server.all_servers,MONITOR_OP_TYPES:t=>t.app_config.MONITOR_OP_TYPES}),...Object(a["c"])({isAdmin:"user/isAdmin"}),monitorId(){return this.current_monitor.id},monitorModule(){return this.$typy(this.current_monitor,"attributes.module").safeString},monitorState(){return this.$typy(this.current_monitor,"attributes.state").safeString},isColumnStoreCluster(){return Boolean(this.$typy(this.current_monitor,"attributes.parameters.cs_admin_api_key").safeString)}},watch:{all_servers(){let t=[];this.all_servers.forEach(e=>{this.$helpers.lodash.isEmpty(e.relationships.monitors)&&t.push({id:e.id,state:e.attributes.state,type:e.type})}),this.unmonitoredServers=t},should_refresh_resource:async function(t){t&&(this.SET_REFRESH_RESOURCE(!1),await this.initialFetch())},$route:async function(){await this.initialFetch()}},async created(){await this.initialFetch()},methods:{...Object(a["d"])({SET_REFRESH_RESOURCE:"SET_REFRESH_RESOURCE"}),...Object(a["b"])({fetchModuleParameters:"fetchModuleParameters",getResourceState:"getResourceState",fetchMonitorById:"monitor/fetchMonitorById",updateMonitorParameters:"monitor/updateMonitorParameters",updateMonitorRelationship:"monitor/updateMonitorRelationship",manipulateMonitor:"monitor/manipulateMonitor",handleFetchCsStatus:"monitor/handleFetchCsStatus",fetchAllServers:"server/fetchAllServers"}),async initialFetch(){await this.recurringFetch();const{attributes:{module:t=null}={}}=this.current_monitor;t&&await this.fetchModuleParameters(t)},async successCb(){await this.fetchMonitor(),await this.serverTableRowProcessing()},async recurringFetch(){await this.fetchMonitor(),await this.serverTableRowProcessing(),this.isCallingOp||await this.handleFetchCsStatus({monitorId:this.monitorId,monitorModule:this.monitorModule,isCsCluster:this.isColumnStoreCluster,monitorState:this.monitorState,successCb:()=>this.isFirstFetch=!1,pollingResInterval:1e3})},async fetchMonitor(){await this.fetchMonitorById(this.$route.params.id)},async serverTableRowProcessing(){const{relationships:{servers:{data:t=[]}={}}={}}=this.current_monitor;let e=[];for(const s of t){const t=await this.getResourceState({resourceId:s.id,resourceType:"servers",caller:"monitor-detail-page-getRelationshipData"}),{id:r,type:i,attributes:{state:a=null}={}}=t;e.push({id:r,state:a,type:i})}this.serverStateTableRow=e},async dispatchRelationshipUpdate({type:t,data:e}){await this.updateMonitorRelationship({id:this.current_monitor.id,[t]:e,callback:this.fetchMonitor}),await this.serverTableRowProcessing()},async handleSwitchover(t){await this.manipulateMonitor({id:this.monitorId,type:this.MONITOR_OP_TYPES.SWITCHOVER,opParams:{moduleType:this.monitorModule,params:"&"+t},successCb:this.fetchMonitor})}}},b=y,g=s("62ad"),S=s("0fd9"),O=Object(d["a"])(b,r,i,!1,null,null,null);e["default"]=O.exports;u()(O,{VCol:g["a"],VRow:S["a"],VSheet:_["a"]})},dee5:function(t,e,s){"use strict";s("652d")}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com