import{a as w}from"./chunk-KMX5PVQZ.js";import{a}from"./chunk-IVW2C32D.js";import{c as x}from"./chunk-OBT56KUD.js";import{Ba as S,Bc as d,Cc as D,Dc as v,F as n,Jc as b,bc as p,cc as c,g as u,ha as h,ka as f,pa as m,sb as l,ua as g,v as s}from"./chunk-IYD54RT7.js";var L=(()=>{let r=class r{constructor(){this.icon="",this.name="",this.description=""}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=S({type:r,selectors:[["osee-server-health-page-header"]],inputs:{icon:"icon",name:"name",description:"description"},standalone:!0,features:[b],decls:9,vars:3,consts:[[1,"tw-flex","tw-w-full","tw-basis-20","tw-items-center","tw-p-8"],[1,"tw-pr-4"],[1,"tw-flex","tw-flex-col"],[1,"tw-text-2xl"],[1,"tw-text-base"]],template:function(t,o){t&1&&(p(0,"div",0)(1,"div",1)(2,"mat-icon"),d(3),c()(),p(4,"div",2)(5,"div",3),d(6),c(),p(7,"div",4),d(8),c()()()),t&2&&(l(3),v(" ",o.icon," "),l(3),D(o.name),l(2),v(" ",o.description," "))},dependencies:[w],encapsulation:2});let i=r;return i})();var y={healthDetails:{uri:"",startTime:"",upTime:"",authScheme:"",authSchemeSupported:[],heapMemAlloc:"",heapMemMax:"",heapMemUsed:"",nonHeapMemAlloc:"",nonHeapMemMax:"",nonHeapMemUsed:"",codeLocation:"",systemLoad:"",supportedVersions:[],serverId:"",binaryDataPath:"",threadStats:[],garbageCollectorStats:[],serverWithHealthInfo:""},errorMsg:""};var I=(()=>{let r=class r{constructor(){this._remoteDetails=new u(y),this._remoteServerName=new u("")}setRemoteDetails(e,t){this._remoteDetails.next(e),this._remoteServerName.next(t)}getRemoteDetails(){return this._remoteDetails.asObservable()}getRemoteServerName(){return this._remoteServerName.asObservable()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();var z=(()=>{let r=class r{constructor(e,t){this.http=e,this.healthDetailsService=t}get Status(){return this.http.get(a+"/health/status")}getRemoteDetails(e){return this.http.get(a+"/health/details/remote",{params:{remoteServerName:e}}).pipe(f(t=>this.healthDetailsService.setRemoteDetails(t,t.healthDetails.serverWithHealthInfo)))}get RemoteLog(){return s([this.healthDetailsService.getRemoteDetails(),this.healthDetailsService.getRemoteServerName()]).pipe(n(([e,t])=>t!==""&&e.healthDetails.codeLocation!==""&&e.healthDetails.uri!==""),h(([e,t])=>this.http.get(a+"/health/log/remote",{params:{remoteServerName:t,appServerDir:e.healthDetails.codeLocation,serverUri:e.healthDetails.uri}})))}get RemoteJava(){return s([this.healthDetailsService.getRemoteServerName()]).pipe(n(([e])=>e!==""),h(([e])=>this.http.get(a+"/health/java/remote",{params:{remoteServerName:e}})))}get RemoteTop(){return s([this.healthDetailsService.getRemoteServerName()]).pipe(n(([e])=>e!==""),h(([e])=>this.http.get(a+"/health/top/remote",{params:{remoteServerName:e}})))}get Balancers(){return this.http.get(a+"/health/balancers")}get PrometheusUrl(){return this.http.get(a+"/health/prometheus",{responseType:"text"})}get HttpHeaders(){return this.http.get(a+"/health/http/headers")}get ActiveMq(){return this.http.get(a+"/health/activemq")}get Usage(){return this.http.get(a+"/health/usage")}getSql(e,t,o,M){return this.http.get(a+"/health/db/sql",{params:{pageNum:e,pageSize:t,orderByName:o,orderByDirection:M}})}get SqlSize(){return this.http.get(a+"/health/db/sql/size")}getTablespace(e,t){return this.http.get(a+"/health/db/tablespace",{params:{orderByName:e,orderByDirection:t}})}};r.\u0275fac=function(t){return new(t||r)(g(x),g(I))},r.\u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();export{L as a,z as b};
