Update dependency
This commit is contained in:
parent
0cdae05f68
commit
8a5de0acd0
@ -8,7 +8,7 @@ let package = Package(
|
|||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
.package(url: "https://github.com/vapor/vapor", from: "4.0.0"),
|
.package(url: "https://github.com/vapor/vapor", from: "4.0.0"),
|
||||||
.package(url: "https://github.com/christophhagen/Clairvoyant", from: "0.1.0"),
|
.package(url: "https://github.com/christophhagen/Clairvoyant", from: "0.2.0"),
|
||||||
],
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(name: "App",
|
.target(name: "App",
|
||||||
|
@ -343,16 +343,18 @@ final class CapServer: ServerOwner {
|
|||||||
|
|
||||||
// MARK: Monitoring
|
// MARK: Monitoring
|
||||||
|
|
||||||
private let capCountPropertyId = PropertyId(name: "caps", uniqueId: 1)
|
public let name = "caps"
|
||||||
|
|
||||||
private let imageCountPropertyId = PropertyId(name: "images", uniqueId: 2)
|
private let capCountPropertyId = PropertyId(owner: "caps", uniqueId: 2)
|
||||||
|
|
||||||
private let classifierVersionPropertyId = PropertyId(name: "classifier", uniqueId: 3)
|
private let imageCountPropertyId = PropertyId(owner: "caps", uniqueId: 3)
|
||||||
|
|
||||||
|
private let classifierVersionPropertyId = PropertyId(owner: "caps", uniqueId: 4)
|
||||||
|
|
||||||
func registerProperties(with monitor: PropertyManager) {
|
func registerProperties(with monitor: PropertyManager) {
|
||||||
let capCountProperty = PropertyRegistration(
|
let capCountProperty = PropertyRegistration(
|
||||||
uniqueId: capCountPropertyId.uniqueId,
|
uniqueId: capCountPropertyId.uniqueId,
|
||||||
name: capCountPropertyId.name,
|
name: "caps",
|
||||||
updates: .continuous,
|
updates: .continuous,
|
||||||
isLogged: true,
|
isLogged: true,
|
||||||
allowsManualUpdate: false,
|
allowsManualUpdate: false,
|
||||||
@ -363,7 +365,7 @@ final class CapServer: ServerOwner {
|
|||||||
|
|
||||||
let imageCountProperty = PropertyRegistration(
|
let imageCountProperty = PropertyRegistration(
|
||||||
uniqueId: imageCountPropertyId.uniqueId,
|
uniqueId: imageCountPropertyId.uniqueId,
|
||||||
name: imageCountPropertyId.name,
|
name: "images",
|
||||||
updates: .continuous,
|
updates: .continuous,
|
||||||
isLogged: true,
|
isLogged: true,
|
||||||
allowsManualUpdate: false,
|
allowsManualUpdate: false,
|
||||||
@ -374,7 +376,7 @@ final class CapServer: ServerOwner {
|
|||||||
|
|
||||||
let classifierVersionProperty = PropertyRegistration(
|
let classifierVersionProperty = PropertyRegistration(
|
||||||
uniqueId: classifierVersionPropertyId.uniqueId,
|
uniqueId: classifierVersionPropertyId.uniqueId,
|
||||||
name: classifierVersionPropertyId.name,
|
name: "classifier",
|
||||||
updates: .continuous,
|
updates: .continuous,
|
||||||
isLogged: true,
|
isLogged: true,
|
||||||
allowsManualUpdate: false,
|
allowsManualUpdate: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user