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
PTDiffusionTopicMetricCollectorBuilder Class Reference

Introduction

A topic metric collector builder.

Since
6.7
Inheritance diagram for PTDiffusionTopicMetricCollectorBuilder:
PTDiffusionMetricCollectorBuilder

Instance Methods

(instancetype) - groupByTopicType:
 
(instancetype) - groupByTopicView:
 
(instancetype) - groupByPathPrefixParts:
 
(PTDiffusionTopicMetricCollector *) - createCollectorWithName:andTopicSelector:
 Create a new PTDiffusionTopicMetricCollector using the values currently known to this builder. More...
 
- Instance Methods inherited from PTDiffusionMetricCollectorBuilder
(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

- (PTDiffusionTopicMetricCollector *) createCollectorWithName: (NSString *const)  name
andTopicSelector: (NSString *const)  topicSelector 

Create a new PTDiffusionTopicMetricCollector using the values currently known to this builder.

Parameters
namethe name of the PTDiffusionTopicMetricCollector
topicSelectorthe selector pattern that specifies the topics for which metrics are to be collected.
Returns
a new PTDiffusionTopicMetricCollector with all of the current settings of this builder.
Since
6.7
- (instancetype) groupByPathPrefixParts: (NSInteger)  parts

Specified the number of leading parts of the topic path the metric collector should use to group results.

By default a topic metric collector does not group by the topic path prefix. If a positive number of parts is specified, it will enable grouping.

Parameters
partsthe number of leading parts of the topic path to group by; set to 0 to disable grouping by path
Returns
the builder
Since
6.8
- (instancetype) groupByTopicType: (BOOL)  groupByTopicType

Specifies whether the metric collector should group by topic type.

By default, a topic metric collector does not group by topic type.

Parameters
groupByTopicTypetrue to indicate that the collector should group by topic type
Returns
the builder
Since
6.7
- (instancetype) groupByTopicView: (BOOL)  groupByTopicView

Specifies whether the metric collector should group by topic view.

By default, a topic metric collector does not group by topic view.

Parameters
groupByTopicViewtrue to indicate that the collector should group by topic view
Returns
the builder
Since
6.9