Diffusion Apple API  6.9.0
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
Instance Methods | List of all members
PTDiffusionMetricCollectorBuilder Class Reference

Introduction

The common base interface for metric collectors.

Since
6.7
Inheritance diagram for PTDiffusionMetricCollectorBuilder:
PTDiffusionSessionMetricCollectorBuilder PTDiffusionTopicMetricCollectorBuilder

Instance Methods

(instancetype) - reset
 Resets the builder. More...
 
(instancetype) - exportToPrometheus:
 Specifies whether the metric collector should export metrics to Prometheus or not. More...
 
(instancetype) - maximumGroups:
 Set the maximum number of groups maintained by the metric collector. More...
 

Method Documentation

- (instancetype) exportToPrometheus: (BOOL)  export

Specifies whether the metric collector should export metrics to Prometheus or not.

The default is that metrics are not exported to Prometheus.

Parameters
exporttrue to export metrics to Prometheus.
Returns
the builder
- (instancetype) maximumGroups: (NSInteger)  limit

Set the maximum number of groups maintained by the metric collector.

By default, the number of groups is not limited.

Parameters
limita positive integer
Returns
the builder
- (instancetype) reset

Resets the builder.

Returns
the builder