Skip to content

Commit 7a0df21

Browse files
authored
Add testing link to new KPIs (#1302)
1 parent 68d9a7f commit 7a0df21

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/commands/newFile.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,16 @@ XData RuleDefinition [ XMLNamespace = "http://www.intersystems.com/rule" ]
816816
${typeof desc == "string" ? "/// " + desc.replace(/\n/g, "\n/// ") : ""}
817817
Class ${cls} Extends %DeepSee.KPI
818818
{
819-
819+
${
820+
api
821+
? `
822+
/*
823+
You can test this KPI by pasting the following URL into your web browser.
824+
${api.config.https ? "https" : "http"}://${api.config.host}:${api.config.port}${
825+
api.config.pathPrefix
826+
}/csp/${api.config.ns.toLowerCase()}/${cls}.cls\n*/\n`
827+
: ""
828+
}
820829
Parameter DOMAIN = "${kpiDomain}";
821830
822831
Parameter RESOURCE = "${kpiResource == "No Resource" ? "" : kpiResource}";

0 commit comments

Comments
 (0)