Sample
struct Sample : Codable
The Statistic.Sample
struct represents a single group of statistics,
with the raw stats being made available via the metrics
property.
-
The name of the sample, if applicable. For instance, if these are category stats, then this property will have the name of the category.
Declaration
Swift
public let name: String?
-
Initializes the struct.
Declaration
Parameters
metrics
The raw metrics for each email event type.
name
The name of the sample (e.g. the name of the category).
type
The dimension type these stats have been grouped by.