Documentation Vision Report+ Documentation

Vision Report+ / Reference

Service Defaults

This chapter lists the fixed intervals and the configurable defaults of the Vision Report+ service.

Overview

This chapter lists the fixed intervals and the configurable defaults of the Vision Report+ service.

Loops and leases

ItemValueRuns on
Telemetry, heartbeat and leader electionEvery 1 minuteEvery node
License checkEvery 1 hourEvery node
Configuration refresh from AFEvery 1 minuteEvery node
Pending report executionsEvery 5 seconds, 5 in parallelLeader
Display printsEvery 5 seconds, 5 in parallelLeader
Trigger evaluation (new executions)Every 10 secondsLeader
Cleanup of expired executions and printsEvery 10 minutesLeader
Failure and silence alertsEvery 1 minuteLeader
Node diagnostics (System_Status\Nodes)Every 1 minute, with the heartbeatEvery node
Removal of node entries not updated for 7 daysEvery 1 hourLeader
Support bundlesWith the display prints (every 5 seconds)Leader
Execution lease30 minutes, renewed every 5 minutesLeader
Maximum run time60 minutes (Service:MaxExecutionMinutes); a report run or display print still working then is stopped and closed as failedLeader
Stalled run loopA Critical log entry when a run loop has not finished a round 15 minutes after the maximum run timeLeader
Retry after a loop error2, 4, 8 ... up to 256 secondsEvery node
Retry of the AF connection at startup2, 4, 8 ... up to 256 seconds, until connectedEvery node

Retention

ItemValue
Display printsDeleted after 7 days
Unfinished display print requestsClosed as failed after 15 minutes
Support bundlesRequest and zip deleted after 24 hours
Report executionsDeleted only when Auto Delete is on, after the set Hours, Days, Months or Years (default 12 months)
Service log filesDaily and at 10 MB; up to 14 files, at most 14 days

High availability

ItemValue
Leader timeoutAnother node takes over when the leader's heartbeat is older than 3 minutes
Telemetry offEvery node acts as a standalone leader
System Status Online / Degraded / OfflineHeartbeat up to 1.5 minutes / up to 3.5 minutes / older
Node entriesElement System_Status\Nodes (AF migration 15), one String attribute per node named after the node, JSON: Node, Role, UpdatedUtc, LastLeaderHeartbeatUtc, ServiceVersion, ProcessStartUtc, ProcessId, MemoryMb, LoopProgressUtc, StalledLoops, QueueDepth (null when unknown), QueueDepthReadUtc, ChromiumState, ChromiumVersion, ChromiumBundledVersion, ChromiumActiveRenders, ChromiumRendersSinceLaunch, ChromiumLastError, LicenseStatus, LicenseMessage, LicenseExpiration, AfReachable, AfLastSuccessUtc, AfLastError, AfLastErrorUtc, LastError, LastErrorUtc. The leader deletes entries not updated for 7 days, never its own; administrators can delete an offline node's entry on the System Status page

Support bundle

ItemValue
RequestManualExecution event frame named SupportBundle~<time>~<user> with the attribute SupportBundleRequest (AF migration 15), JSON LogDays (3, 1 to 14), ExecutionCount (50, 1 to 500), ToolbarVersion
Required rightThe requesting user needs Admin on the Configuration element; otherwise the request ends Failed
Built byThe leader node; it attaches VisionReport-SupportBundle-<node>-<time>.zip to the request event frame
Filesmanifest.json, versions.json, configuration.json, appsettings.json, system-status.json, nodes.json, license.json, executions.json, logs/VisionReport.Service-*.log (newest first, at most 40 MB)
RemovedConfiguration attributes PIVisionUserPassword, MailSmtpUserPassword, AlertTeamsWebhookUrls and every attribute or appsettings.json key whose name contains password, secret, token, webhook, apikey, credential or license; LogoImage as its length
Reduced to countsAlertRecipients, DefaultApprovalNotificationRecipients
Never includedlicense.dat, decrypted or stored passwords, client secrets, report and alert webhook URLs
Secret checkEvery known secret value (configuration passwords stored and decrypted, alert and report webhook URLs, PI Web API password and client secret, secret appsettings.json values, the license file) is replaced in logs and texts, and the finished zip is searched for each value (as is, JSON-escaped, URL-encoded, HTML-encoded, in UTF-8 and UTF-16). A finding discards the zip; values shorter than 4 characters are not searched

appsettings.json

KeyDefaultWhat it controls
Serilog:MinimumLevelInformationLog level until AF configuration has loaded (then DebugLoggingEnabled applies)
Puppeteer:NavigationTimeout600000Display load timeout in milliseconds
Puppeteer:HeadlesstrueRuns Chromium without a window
Puppeteer:MaxConcurrentInstancesTwice the number of processors, at least 2, at most 20Maximum concurrent browser renders (not in the shipped file). A higher value than the server can handle makes simultaneous reports fail with navigation timeouts
Puppeteer:RecycleBrowserAfterRenders100Restarts the bundled Chromium after this many renders, once no render uses it; 0 turns it off (not in the shipped file)
Service:PrintTimeoutSeconds60Timeout of one print job
Service:MaxConcurrentPrintJobs1Print jobs sent at the same time
Service:LicenseReadFailureGraceHours24How long a known-good license stays valid while license.dat cannot be read
Service:LicenseFilePath%ProgramData%\Software Athlete\Vision Report+\license.datLicense file path
Service:MaxExecutionMinutes60Maximum run time of one report run or display print (not in the shipped file)
Service:AllowedDisplayHostsemptyHosts the service may open besides PIVisionHostName and, in Bearer mode, the host of PIConnection:Bearer:TokenEndpoint. Host names only, for example ["pivision2.contoso.com"]. It applies to each service node separately
Service:AllowedPrintMailDomainsemptyDomains that prints from the Print pane and the print button may be mailed to, for example ["contoso.com"]. Exact domains only; empty allows every recipient. A recipient outside the list stops that mail. Report mail, alerts and approval notifications are not limited. It applies to each service node separately
Service:ConditionSettleSeconds60How far behind real time Condition triggers check the data, because PI data arrives late. Each condition trigger reads its inputs at most once a minute (not in the shipped file)
Service:ConditionMaxPeriodHours24Longest condition period a Condition period ends trigger waits for; a longer period gives one run at this limit. A check reads this far back only while a period is still open; a long limit then costs more PI Data Archive reads (not in the shipped file)
Service:ConditionMaxValuesPerInput100000Most recorded values one condition input may have in the time a check reads; more fails the trigger with a message in the log and the System Status error log (not in the shipped file)
Service:AllowUntrustedCertificatesfalse in the shipped file; true when missingtrue accepts a PI Vision certificate this node does not trust. A missing setting counts as true, so an upgrade keeps working; new installations get false

The bundled Chromium closes after 5 minutes without renders and starts again on the next one. It is also restarted after Puppeteer:RecycleBrowserAfterRenders renders, and right away when a render finds its page or the browser connection dead.