krn.GetCounter

This job manages counters in the table oscounters. When called, the counter value is incremented (except when resetting). Resetting occurs automatically or manually depending on the counter type.

Counter types:
0 = manually reset (via job parameter)
1 = daily reset
2 = monthly reset
3 = yearly reset

Counters are identified by GUID and type.

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

Currently not supported — pass 0.

CounterGUID

STRING

Yes

GUID of the counter

CounterType

INT

Yes

Type of the counter (03, see above)

Reset

BOOLEAN

Yes

1 = counter is reset (only for CounterType=0); 0 = do not reset

Initial

INT

Yes

Value with which the counter is initialized if it does not exist or is reset

2. Output Parameters

Name Type Dependency Description

Counter

INT

Current value of the counter

3. Return Value

(INT): 0 = Job successful, otherwise error code.