Enumerations

The following enumerations are available globally.

  • Undocumented

    See more

    Declaration

    Swift

    public enum CallbackError
    extension CallbackError: Equatable, Hashable
    extension CallbackError: Error
  • Undocumented

    See more

    Declaration

    Swift

    public enum ErrorType
    extension ErrorType: Equatable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum HistogramType
    extension HistogramType: Equatable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum LevelFilter
    extension LevelFilter: Equatable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum Lifetime
    extension Lifetime: Equatable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum MemoryUnit
    extension MemoryUnit: Equatable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum PingUploadTask
    extension PingUploadTask: Equatable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum TimeUnit
    extension TimeUnit: Equatable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum UploadResult
    extension UploadResult: Equatable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum UploadTaskAction
    extension 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 Ping can accept.

    See more

    Declaration

    Swift

    public enum NoReasonCodes : ReasonCodes