This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: 1.2.0. Co-authored-by: Ryan Wang <[email protected]> Co-authored-by: John Niang <[email protected]>
- Loading branch information
Showing
83 changed files
with
8,584 additions
and
8,789 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/node_modules/* | ||
/.idea/* | ||
/.git/* | ||
/.github/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import service from '@/utils/service' | ||
|
||
const baseUrl = '/api/admin/actuator' | ||
|
||
const actuatorApi = {} | ||
|
||
actuatorApi.logfile = () => { | ||
return service({ | ||
url: `${baseUrl}/logfile`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.env = () => { | ||
return service({ | ||
url: `${baseUrl}/env`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getSystemCpuCount = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/system.cpu.count`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getSystemCpuUsage = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/system.cpu.usage`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getProcessUptime = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/process.uptime`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getProcessStartTime = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/process.start.time`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getProcessCpuUsage = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/process.cpu.usage`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getJvmMemoryMax = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/jvm.memory.max`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getJvmMemoryCommitted = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/jvm.memory.committed`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getJvmMemoryUsed = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/jvm.memory.used`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
actuatorApi.getJvmGcPause = () => { | ||
return service({ | ||
url: `${baseUrl}/metrics/jvm.gc.pause`, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
export default actuatorApi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.