点击或拖拽改变大小

LogStatisticsBaseT

一个按照实际进行数据分割的辅助基类,可以用于实现对某个的API按照每天进行调用次数统计,也可以实现对某个设备数据按照天进行最大最小值均值分析,这些都是需要继承实现。
An auxiliary base class that divides the data according to the actual data can be used to implement statistics on the number of calls per day for a certain API, and it can also implement the maximum and minimum average analysis of a certain device data according to the day. These all need to be inherited. .
继承层次
SystemObject
  HslCommunication.LogNetLogStatisticsBaseT
    HslCommunication.LogNetLogStatistics
    HslCommunication.LogNetLogValueLimit

命名空间:  HslCommunication.LogNet
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public class LogStatisticsBase<T>

类型参数

T
统计的数据类型

LogStatisticsBaseT 类型公开以下成员。

构造函数
  名称说明
公共方法LogStatisticsBaseT
实例化一个新的数据统计内容,需要指定当前的时间统计方式,按小时,按天,按月等等,还需要指定统计的数据数量,比如按天统计30天。
To instantiate a new data statistics content, you need to specify the current time statistics method, by hour, by day, by month, etc., and also need to specify the number of statistics, such as 30 days by day.
Top
属性
  名称说明
公共属性ArrayLength
获取当前的统计类信息的数据总量
Get the total amount of current statistical information
公共属性GenerateMode
获取当前的统计类信息时间统计规则
Get the current statistical information time statistics rule
Top
方法
  名称说明
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetDataMarkFromDateTime
根据指定的时间,获取到该时间指定的数据标记信息
According to the specified time, get the data mark information specified at that time
公共方法GetDataMarkFromTimeNow
根据当前数据统计的时间模式,获取最新的数据标记信息
Obtain the latest data mark information according to the time mode of current data statistics
公共方法GetHashCode (继承自 Object。)
公共方法GetStatisticsSnapAndDataMark
获取当前的统计信息的数据快照,这是数据的副本,修改了里面的值不影响
Get a data snapshot of the current statistics. This is a copy of the data. Modifying the value inside does not affect
公共方法GetStatisticsSnapshot
获取当前的统计信息的数据快照,这是数据的副本,修改了里面的值不影响
Get a data snapshot of the current statistics. This is a copy of the data. Modifying the value inside does not affect
公共方法GetStatisticsSnapshotByTime
根据指定的时间范围来获取统计的数据信息快照,包含起始时间,包含结束时间,这是数据的副本,修改了里面的值不影响
Get a snapshot of statistical data information according to the specified time range, including the start time, also the end time. This is a copy of the data. Modifying the value inside does not affect
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法Reset
重置当前的统计信息,需要指定统计的数据内容,最后一个数据的标记信息,本方法主要用于还原统计信息
To reset the current statistical information, you need to specify the content of the statistical data, and the tag information of the last data. This method is mainly used to restore statistical information
受保护的方法StatisticsCustomAction(FuncT, T)
新增一个统计信息,将会根据当前的时间来决定插入数据位置,如果数据位置发生了变化,则数据向左发送移动。如果没有移动或是移动完成后,最后一个数进行自定义的数据操作
Adding a new statistical information will determine the position to insert the data according to the current time. If the data position changes, the data will be sent to the left. If there is no movement or after the movement is completed, Custom data operations on the last number
受保护的方法StatisticsCustomAction(FuncT, T, DateTime)
新增一个统计信息,将会根据当前的时间来决定插入数据位置,如果数据位置发生了变化,则数据向左发送移动。如果没有移动或是移动完成后,最后一个数进行自定义的数据操作
Adding a new statistical information will determine the position to insert the data according to the current time. If the data position changes, the data will be sent to the left. If there is no movement or after the movement is completed, Custom data operations on the last number
公共方法ToString (继承自 Object。)
Top
字段
  名称说明
受保护的字段generateMode
当前的实际模式
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见