// // MXDiagnostic.h // MetricKit // // Copyright (c) 2019 Apple Inc. // All rights reserved. #import #import #import NS_ASSUME_NONNULL_BEGIN /*! @class MXDiagnostic @abstract An abstract class that describes a diagnostic report vended by MetricKit. @discussion All supported diagnostics are subclasses of MXDiagnostic. */ API_AVAILABLE(ios(14.0), macos(12.0)) API_UNAVAILABLE(tvos, watchos) @interface MXDiagnostic : NSObject @property (readonly, strong, nonnull) MXMetaData* metaData; /*! @property applicationVersion @abstract An NSString representation of the application version from which this diagnostic was generated. */ @property (readonly, strong, nonnull) NSString *applicationVersion; /*! @method JSONRepresentation @abstract Convenience method to return a JSON representation of this diagnostic. @result An NSData object containing the JSON representation */ - (NSData *)JSONRepresentation; /*! @method dictionaryRepresentation @abstract Convenience method to return a NSDictionary representation of this diagnostic. @result An NSDictionary object containing the dictionary representation */ - (NSDictionary *)dictionaryRepresentation; @end NS_ASSUME_NONNULL_END