Diffusion Apple API
6.10.0
Unified Client Library for iOS, tvOS and OS X / macOS
|
A session metric collector builder.
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... | |
- (PTDiffusionSessionMetricCollector *) createCollectorWithName: | (NSString *const) | name | |
andSessionFilter: | (NSString *const) | sessionFilter | |
Create a new PTDiffusionSessionMetricCollector using the values currently known to this builder.
name | the name of the PTDiffusionSessionMetricCollector |
sessionFilter | the session filter indicating the sessions this filter should apply to. The format of a session property filter is documented in PTDiffusionSession |
- (instancetype) groupByProperties: | (NSArray< NSString * > *) | propertyNames |
Specifies a list of session property names to group by, replacing any current list known to this builder.
propertyNames | a list of session property names. See Session for details of session properties. |
- (instancetype) groupByProperty: | (NSString *) | propertyName |
Adds the name of a session property to group by to the list known to this builder.
propertyName | the name of the session property. See Session for details of session properties. |
- (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.
remove | true to indicate that metrics with no matches should be removed. |