Skip to content

Commit

Permalink
Add testing link to new KPIs (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano authored Jan 22, 2024
1 parent 68d9a7f commit 7a0df21
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/commands/newFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,16 @@ XData RuleDefinition [ XMLNamespace = "http://www.intersystems.com/rule" ]
${typeof desc == "string" ? "/// " + desc.replace(/\n/g, "\n/// ") : ""}
Class ${cls} Extends %DeepSee.KPI
{
${
api
? `
/*
You can test this KPI by pasting the following URL into your web browser.
${api.config.https ? "https" : "http"}://${api.config.host}:${api.config.port}${
api.config.pathPrefix
}/csp/${api.config.ns.toLowerCase()}/${cls}.cls\n*/\n`
: ""
}
Parameter DOMAIN = "${kpiDomain}";
Parameter RESOURCE = "${kpiResource == "No Resource" ? "" : kpiResource}";
Expand Down

0 comments on commit 7a0df21

Please sign in to comment.