Quick implementation of getting the application status.
The latest version of GetAppStatus requires Swift 6.0 and MacOS v14 or later. You can download this version of the Swift binaries by following this link.
Add the GetAppStatus
package to the dependencies within your application’s Package.swift
file. Substitute "x.x.x"
with the latest GetAppStatus
release.
.package(url: "https://github.com/LLCFreedom-Space/fs-get-app-status.git", from: "x.x.x")
Add GetAppStatus
to your target's dependencies:
.target(name: "GetAppStatus", dependencies: ["GetAppStatus"]),
import GetAppStatus
Add the GetAppStatus
package to the dependencies within your application’s Package.swift
file. Substitute "name branch"
with the latest GetAppStatus
release.
.package(url: "https://github.com/LLCFreedom-Space/fs-get-app-status.git", branch: "name branch")
Add FSGetAppStatus
to your target's dependencies:
.target(name: "GetAppStatus", dependencies: ["GetAppStatus"]),
import GetAppStatus
An example of a method call from this library
app.appStatus.getRedisStatus()
To access the methods that are in this library, you need to call the application, since this library is an extension to the application
There are functions that are used in a pair. Example:
func applicationLaunchTime vs func applicationLaunchDate
need use when you configuration your Application. In last line in configure.swift file. Because this function records the start time in the application. And the function where you need to understand how long the application has been running since it started.
func applicationUpTime vs func applicationUpDate
Depending on which value you want, you call one or the second function.