GetCountsAndDuration(CountsAndDurationGraphType,FilterType,Nullable<Int32>,FilterTimeUnit,Nullable<Int32>,Nullable<Int32>,Nullable<Int32>) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetCountsAndDuration() method returns a DataSet containing one row for each utilization state, reason group, or reason for the current entity. It has columns for the ID, description, count or duration, color (valid only for utilization states and reasons), and an active flag that is set true for the current utilization state, reason group, or reasonOEEExec.
'Declaration
Public Overloads Function GetCountsAndDuration( _
ByVal graphType As CountsAndDurationGraphType, _
ByVal filterType As FilterType, _
ByVal filterDuration As Nullable(Of Integer), _
ByVal filterTimeUnit As FilterTimeUnit, _
ByVal filterStartTime As Nullable(Of Integer), _
ByVal filterEndTime As Nullable(Of Integer), _
ByVal filterCode As Nullable(Of Integer) _
) As DataSet
public DataSet GetCountsAndDuration(
CountsAndDurationGraphType graphType,
FilterType filterType,
Nullable<int> filterDuration,
FilterTimeUnit filterTimeUnit,
Nullable<int> filterStartTime,
Nullable<int> filterEndTime,
Nullable<int> filterCode
)
Parameters
- graphType
Required. Holds the CountsAndDurationGraphType enumeration value that specifies the type of data that is shown in the Pareto graph of the KPI control.
- filterType
Required. Holds the FilterType enumeration value that specifies the type of data to filter.
- filterDuration
Optional. Holds the integer value that specifies the value of N if filterType is LastNHours.
- filterTimeUnit
Required. Holds the FilterTimeUnit enumeration value that specifies the time unit for the custom filter if filterType is Custom.
- filterStartTime
Optional. Holds the integer that specifies the start of the filter period relative to current period if filterType is Custom.
- filterEndTime
Optional. Holds the integer that specifies the end of the filter period relative to current period if filterType is Custom.
- filterCode
- Optional. Holds the fileter code. For the state code, drill down into the Util States graph to show the reason groups for the state. For the reason group ID, drill down into the util reason group graph to show the reasons that belong to that group.