Class MXDiagnosticPayload

  • All Implemented Interfaces:
    NSCoding, NSSecureCoding, NSObject

    public class MXDiagnosticPayload
    extends NSObject
    implements NSSecureCoding
    MXDiagnosticPayload A wrapper class which contains a diagnostic payload and associated properties of that payload. MXDiagnosticPayload encapsulates currently supported diagnostics that can be vended by MetricKit. Arrays of MXDiangostic subclasses on MXDiagnosticPayload are nullable. If an array of MXDiagnostic subclasses is nil, it indicates that the diagnostics are not available for this payload. MXDiagnosticPayload exposes a convenience function, JSONRepresentation, to convert the contents of the payload to a human readable JSON. This should be used in conjunction with other APIs that accept NSData. An MXDiagnosticPayload contains diagnostics that cover a 24 hour period of application usage. The properties timeStampBegin and timeStampEnd should be used to determine which time range the payload covers. It is possible for an MXDiagnosticPayload to cover regions of time where an application was updated, and thus each MXDiagnostic subclass will contain its own application version string. This is in contrast to MXMetricPayload, where only the latest application version string is included as metadata of the payload. Each MXDiagnostic subclass application version string should be inspected prior to processing.
    • Constructor Detail

      • MXDiagnosticPayload

        protected MXDiagnosticPayload​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • JSONRepresentation

        public NSData JSONRepresentation()
        JSONRepresentation Convenience method to return a JSON representation of this diagnostic payload.
        Returns:
        An NSData object containing the JSON representation
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • cpuExceptionDiagnostics

        public NSArray<? extends MXCPUExceptionDiagnostic> cpuExceptionDiagnostics()
        [@property] cpuExceptionDiagnostics An array containing CPU exception diagnostics for this application.
      • crashDiagnostics

        public NSArray<? extends MXCrashDiagnostic> crashDiagnostics()
        [@property] crashDiagnostics An array containing crash diagnostics for this application.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • dictionaryRepresentation

        public NSDictionary<?,​?> dictionaryRepresentation()
        dictionaryRepresentation Convenience method to return a NSDictionary representation of this diagnostic payload.
        Returns:
        An NSDictionary object containing the dictionary representation
      • diskWriteExceptionDiagnostics

        public NSArray<? extends MXDiskWriteExceptionDiagnostic> diskWriteExceptionDiagnostics()
        [@property] diskWriteExceptionDiagnostics An array containing disk write exception diagnostics for this application.
      • hangDiagnostics

        public NSArray<? extends MXHangDiagnostic> hangDiagnostics()
        [@property] hangDiagnostics An array containing hang diagnostics for this application.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • timeStampBegin

        public NSDate timeStampBegin()
        [@property] timeStampBegin An NSDate object that indicates the start time for which the payload was generated.
      • timeStampEnd

        public NSDate timeStampEnd()
        [@property] timeStampEnd An NSDate object that indicates the end time for which the payload was generated.
      • version_static

        public static long version_static()