Diffusion Apple API  6.8.8
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
PTDiffusionSessionMetricCollectorBuilder Class Reference

Introduction

A session metric collector builder.

Since
6.7
Inheritance diagram for PTDiffusionSessionMetricCollectorBuilder:
PTDiffusionMetricCollectorBuilder

Instance Methods

(instancetype) - groupByProperty:
 
(instancetype) - groupByProperties:
 
(instancetype) - removeMetricsWithNoMatches:
 
(PTDiffusionSessionMetricCollector *) - createCollectorWithName:andSessionFilter:
 Create a new PTDiffusionSessionMetricCollector 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

- (PTDiffusionSessionMetricCollector *) createCollectorWithName: (NSString *const)  name
andSessionFilter: (NSString *const)  sessionFilter 

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

Parameters
namethe name of the PTDiffusionSessionMetricCollector
sessionFilterthe session filter indicating the sessions this filter should apply to. The format of a session property filter is documented in PTDiffusionSession
Returns
a new PTDiffusionSessionMetricCollector with all of the current settings of this builder.
Since
6.7
- (instancetype) groupByProperties: (NSArray< NSString * > *)  propertyNames

Specifies a list of session property names to group by, replacing any current list known to this builder.

Parameters
propertyNamesa list of session property names. See Session for details of session properties.
Returns
the builder
Since
6.7
- (instancetype) groupByProperty: (NSString *)  propertyName

Adds the name of a session property to group by to the list known to this builder.

Parameters
propertyNamethe name of the session property. See Session for details of session properties.
Returns
the builder
Since
6.7
- (instancetype) removeMetricsWithNoMatches: (BOOL)  remove

Specifies whether the metric collector should remove any metrics that have no matches.

The default is that the metric collector will not remove metrics with no matches.

Parameters
removetrue to indicate that metrics with no matches should be removed.
Returns
the builder
Since
6.7