...
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Once At this point, you should have , designed the metering solution by creating,
meter types
meters
stream with meter processor (including guiding rules , and guiding rules has that have been tested using preview).
The next step is to execute the stream with a meter processor, as the . The processing of the usage data and updates on meters relies on the stream execution. If a stream containing a meter processor connected to a set of meters is not executed, the meters linked to that stream will not be updated, reset, or flushed.
To It is recommended that you run a stream more frequently than the meter type’s Reset schedule. This will ensure that the meters are calculating metering for the correct period and are being flushed as defined in Reset schedule, it is recommended to run the stream with a frequency higher than the meters are reset according to the meter types' Reset schedule. For As an example, if you have configured the meter type to reset the meters once a day, then the stream linked to your meter type should run at least once a day or more. See Meter Reset in Flushing Metered Records
The Inspect view , can be used to get an overview of the different meters associated with the meter Meter processor function and make sure that meters are being updated correctly after a stream execution, see Meter Inspector.
Stream A stream can be executed on regular basis regularly by using the stream scheduling Schedule. If the stream configuration is updated then then the stream must be rescheduled for any changes to take changes in effect.
Realtime vs Batch Stream Execution
...
When a stream is executed as a batch stream, the Meter Processor will start by scanning for meters whose period end has passed. If any meters whose period has ended are found, they Meters with an expired Period end will be flushed to the next processor in the stream and reset, starting . this will start a new metering period before processing additional incoming data.
If a stream is configured to flush by Period end, in the meter processor a scan to check the meter period end will also be performed at the end of the stream execution, but if a stream is configured to flush by Stream execution then all meters in your storage linked to that meter processor will be reset and flushed regardless of whether the meters period have ended or not.
...