Enumerations
The following enumerations are available globally.
-
Undocumented
See moreDeclaration
Swift
public enum CallbackError : Swift.Errorextension CallbackError: Equatable, Hashableextension CallbackError: Foundation.LocalizedError -
The type of dynamic label applied to a base metric. Used to help identify the necessary validation to be performed.
See moreDeclaration
Swift
public enum DynamicLabelTypeextension DynamicLabelType: Sendableextension DynamicLabelType: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum ErrorTypeextension ErrorType: Sendableextension ErrorType: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum HistogramTypeextension HistogramType: Sendableextension HistogramType: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum LabeledMetricDataextension LabeledMetricData: Sendableextension LabeledMetricData: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum LevelFilterextension LevelFilter: Sendableextension LevelFilter: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum Lifetimeextension Lifetime: Sendableextension Lifetime: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum MemoryUnitextension MemoryUnit: Sendableextension MemoryUnit: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum PingUploadTaskextension PingUploadTask: Sendableextension PingUploadTask: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum TimeUnitextension TimeUnit: Sendableextension TimeUnit: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum UploadResultextension UploadResult: Sendableextension UploadResult: Equatable, Hashable -
Undocumented
See moreDeclaration
Swift
public enum UploadTaskActionextension UploadTaskAction: Sendableextension UploadTaskAction: Equatable, Hashable -
Namespace for user metrics
This is extended by user code (generated by the
glean_parser).Example
extension GleanMetrics { enum Search { /// Running ping counter for this ping. This works as a sequence number to allow /// detecting for missing send_in_pings. static let counts = CounterMetricType( category: "search", name: "counts", sendInPings: ["metrics"], lifetime: .application, disabled: false ) } }This will be used by the user as following:
import Glean GleanMetrics.Search.counts.add(1)Declaration
Swift
public enum GleanMetrics -
Default of no reason codes for pings.
An enum with no values for convenient use as the default set of reason codes that an
See morePingcan accept.Declaration
Swift
public enum NoReasonCodes : ReasonCodes
View on GitHub
Enumerations Reference