Support Forums
How to set up total report with different time frames other than hourly and monthly?

Hi,

In the Programmer's guide document, there is a "A 15-Minute Snapshot Report" section that show you can use the \SnapshotReport function to create a custom Snapshot Report. Is there an equivalent function for total report that also allow custom time frame?

Thanks

Hi, In the Programmer's guide document, there is a "A 15-Minute Snapshot Report" section that show you can use the **\SnapshotReport** function to create a custom Snapshot Report. Is there an equivalent function for total report that also allow custom time frame? Thanks

The last but one parameter of SnapshotReport, Mode, sets the report type.

For snapshot report types, set Mode to 4.
For total report types, set Mode to 11.

An example call for a 20 minute report:

\SnapshotReport(Reporter, Start, End, Tags, Vars, 20 * 60 { 20 minutes }, ReportName, 11 { Totals });

For Mode 11, SnapshotReport has an additional optional parameter, StaleTime that sets the maximum validity period for a value. See the documentation on GetTagHistory for more info.

The last but one parameter of SnapshotReport, **_Mode_**, sets the report type. For snapshot report types, set **_Mode_** to 4. For total report types, set **_Mode_** to 11. An example call for a 20 minute report: ```` \SnapshotReport(Reporter, Start, End, Tags, Vars, 20 * 60 { 20 minutes }, ReportName, 11 { Totals }); ```` For **_Mode_** 11, SnapshotReport has an additional optional parameter, **_StaleTime_** that sets the maximum validity period for a value. See the documentation on [GetTagHistory](https://www.trihedral.com/help/Content/Pro_Functions/GetTagHistory.htm?Highlight=GetTagHistory) for more info.

Software Developer with Trihedral

edited Jan 24 at 11:14 am
71
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft