From 149c425f536c6bf32b93b57859d82772c89d03ff Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 10 Nov 2020 06:06:04 +0100 Subject: [PATCH] Extended property check for service with host properties. --- src/fr/devinsy/statoolinfos/checker/PropertyChecker.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java index 81b3d88..81e5607 100644 --- a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java +++ b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java @@ -164,6 +164,13 @@ public class PropertyChecker this.serviceRules.add("software.version", STRING, PropertyMode.WISHED); this.serviceRules.add("software.source.url", URL, PropertyMode.WISHED); + this.serviceRules.add("host.name", STRING, PropertyMode.MANDATORY); + this.serviceRules.add("host.description", STRING, PropertyMode.WISHED); + this.serviceRules.add("host.server.type", "^(NANO|PHYSICAL|VIRTUAL|SHARED|CLOUD)$", PropertyMode.MANDATORY); + this.serviceRules.add("host.provider.type", "^(HOME|HOSTEDBAY|HOSTEDSERVER|OUTSOURCED)$", PropertyMode.MANDATORY); + this.serviceRules.add("host.country.name", STRING, PropertyMode.WISHED); + this.serviceRules.add("host.country.code", STRING, PropertyMode.WISHED); + // this.serviceRules.add(SUBS, URL, PropertyMode.MANDATORY); this.serviceRules.add(METRICS_NAME, STRING, PropertyMode.OPTIONAL); this.serviceRules.add(METRICS_DESCRIPTION, STRING, PropertyMode.OPTIONAL);