Skip to main content

1E 8.1 (on-premises)

Policy.GetStatistics

Method

GetStatistics

Module

Policy

Library

Core

Action

Returns a single row with policy-related statistics for the lifetime of the Tachyon Agent process.

Parameters

None

Return values

PolicyDownloads (integer): The number of times a policy document has been downloaded.

PolicyBytesDownloaded (integer): The total number of bytes downloaded across all policy documents.

PolicyFailedDownloads (integer): The number of times a policy document failed to download.

PolicyUpdateRequests (integer): The number of server-instigated requests for this Tachyon Agent to download a policy.

PolicyRuleEvaluations (integer): The total number of rule evaluations.

PolicyRuleEvaluationErrors (integer): The total number of rule evaluations which resulted in an error.

PolicySuccessfulFixes (integer): The total number of fixes applied following a non-compliant rule.

NotificationsGenerated (integer): The total number of policy status notifications generated.

NotificationsSent (integer): The total number of policy status notifications sent to the server.

EventsGenerated (integer): The total number of events generated for forwarding to the server (based on event subscriptions).

EventsSent (integer): The total number of events sent to the server.

Example

Policy.GetStatistics();

Platforms

  • Windows

  • Linux

  • MacOS

Notes

As per the description, these statistics are for the lifetime of the process (and are reset if the Tachyon Agent restarts).

If the policy engine has been disabled through configuration, this method returns no data.

This method will return example data (for testing) in TIMS, because TIMS uses an alternative policy engine