app center;增加發送ping的秒
This commit is contained in:
1 parent
1bd1ffdb5a
commit
d754ff3b15
719 files changed
+34172
-2875
No files matched your search
@@ -0,0 +1,39 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.AppCenter.Unity.Crashes
|
||||
{
|
||||
public class ErrorAttachmentLog
|
||||
{
|
||||
public string Text { get; private set; }
|
||||
public byte[] Data { get; private set; }
|
||||
public string FileName { get; private set; }
|
||||
public string ContentType { get; private set; }
|
||||
public AttachmentType Type { get; private set; }
|
||||
|
||||
public static ErrorAttachmentLog AttachmentWithText(string text, string fileName)
|
||||
{
|
||||
return new ErrorAttachmentLog
|
||||
{
|
||||
Text = text,
|
||||
FileName = fileName,
|
||||
Type = AttachmentType.Text
|
||||
};
|
||||
}
|
||||
|
||||
public static ErrorAttachmentLog AttachmentWithBinary(byte[] data, string fileName, string contentType)
|
||||
{
|
||||
return new ErrorAttachmentLog
|
||||
{
|
||||
Data = data,
|
||||
FileName = fileName,
|
||||
ContentType = contentType,
|
||||
Type = AttachmentType.Binary
|
||||
};
|
||||
}
|
||||
|
||||
public enum AttachmentType { Text, Binary }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 77bffd8d50b4648c4b9b1ae1553c31fe
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,102 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.AppCenter.Unity.Crashes
|
||||
{
|
||||
public class ErrorReport
|
||||
{
|
||||
public ErrorReport(string id, DateTimeOffset appStartTime, DateTimeOffset appErrorTime, Models.Exception exception, Device device, string threadName)
|
||||
{
|
||||
Id = id;
|
||||
AppStartTime = appStartTime;
|
||||
AppErrorTime = appErrorTime;
|
||||
Exception = exception;
|
||||
Device = device;
|
||||
ThreadName = threadName;
|
||||
IsCrash = true;
|
||||
}
|
||||
|
||||
public ErrorReport(string id, DateTimeOffset appStartTime, DateTimeOffset appErrorTime, Models.Exception exception, int processId, string reporterKey,
|
||||
string reporterSignal, bool isAppKill, Device device)
|
||||
{
|
||||
Id = id;
|
||||
AppStartTime = appStartTime;
|
||||
AppErrorTime = appErrorTime;
|
||||
Exception = exception;
|
||||
ProcessId = processId;
|
||||
ReporterKey = reporterKey;
|
||||
ReporterSignal = reporterSignal;
|
||||
IsAppKill = isAppKill;
|
||||
Device = device;
|
||||
IsCrash = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the report identifier.
|
||||
/// </summary>
|
||||
/// <value>UUID for the report.</value>
|
||||
public string Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the app start time.
|
||||
/// </summary>
|
||||
/// <value>Date and time the app started</value>
|
||||
public DateTimeOffset AppStartTime { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the app error time.
|
||||
/// </summary>
|
||||
/// <value>Date and time the error occured</value>
|
||||
public DateTimeOffset AppErrorTime { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the device that the crashed app was being run on.
|
||||
/// </summary>
|
||||
/// <value>Device information at the crash time.</value>
|
||||
public Device Device { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the model exception associated with the error.
|
||||
/// </summary>
|
||||
/// <value>The exception.</value>
|
||||
public Models.Exception Exception { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the thread name.
|
||||
/// </summary>
|
||||
/// <value>The thread name.</value>
|
||||
public string ThreadName { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the process identifier.
|
||||
/// </summary>
|
||||
/// <value>Process Id.</value>
|
||||
public int ProcessId { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the reporter key.
|
||||
/// </summary>
|
||||
/// <value>Reporter Key.</value>
|
||||
public string ReporterKey { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the reporter signal.
|
||||
/// </summary>
|
||||
/// <value>Reporter Signal.</value>
|
||||
public string ReporterSignal { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// True if the details represent an app kill instead of a crash.
|
||||
/// </summary>
|
||||
/// <value>True if the details represent an app kill instead of a crash.</value>
|
||||
public bool IsAppKill { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether this error report reprents a true app crash.
|
||||
/// </summary>
|
||||
/// <value>True if the unhandled error actually resulted in app termination.</value>
|
||||
public bool IsCrash { get; internal set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bced6ecefb6eb43a9b879a75795ac5b6
|
||||
timeCreated: 1500410905
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
namespace Microsoft.AppCenter.Unity.Crashes.Models
|
||||
{
|
||||
public class Exception
|
||||
{
|
||||
public string Message { get; private set; }
|
||||
public string StackTrace { get; private set; }
|
||||
|
||||
public Exception(string message, string stackTrace)
|
||||
{
|
||||
Message = message;
|
||||
StackTrace = stackTrace;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83ddd846fbadea1458aa9f6fc7e86522
|
||||
timeCreated: 1499796418
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in new issue
Block a user