Diagnostic Logs - List
Bu hizmet için tanılama günlüklerinin listesini alın.
GET https://{service}dev.azure.com/{organization}/_apis/notification/diagnosticlogs/{source}/entries/{entryId}?api-version=7.1
GET https://{service}dev.azure.com/{organization}/_apis/notification/diagnosticlogs/{source}/entries/{entryId}?startTime={startTime}&endTime={endTime}&api-version=7.1
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
source
|
path | True |
string (uuid) |
Tanılamanın denetlenecek günlük türünü belirten kimlik. |
entry
|
path |
string (uuid) |
Sorgu için belirli bir günlüğün kimliği. |
|
organization
|
path |
string |
Azure DevOps kuruluşunun adı. |
|
service
|
path |
string |
Bu isteğin yönlendirildiği hizmet. |
|
api-version
|
query | True |
string |
Kullanılacak API'nin sürümü. Bu, API'nin bu sürümünü kullanmak için '7.1' olarak ayarlanmalıdır. |
end
|
query |
string (date-time) |
Sorgu için zaman aralığının bitiş saati. |
|
start
|
query |
string (date-time) |
Sorgulanması gereken zaman aralığı için başlangıç zamanı. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
başarılı işlem |
Güvenlik
oauth2
Tür:
oauth2
Akış:
accessCode
Yetkilendirme URL’si:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Belirteç URL'si:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
Kapsamlar
Name | Description |
---|---|
vso.notification_diagnostics | Bildirimle ilgili tanılama günlüklerine erişim sağlar ve tek tek abonelikler için tanılamayı etkinleştirme olanağı sağlar. |
Örnekler
Örnek isteği
GET https://dev.azure.com/_apis/notification/diagnosticlogs/{source}/entries?startTime=2019-08-08T10:56:23.7996492&endTime=2019-08-08T14:56:23.7996492&api-version=7.1
Örnek yanıt
{
"count": 1,
"value": [
{
"batches": [
{
"startTime": "14:24:03.2251514",
"endTime": "14:24:05.3593469",
"notificationIds": "8, 10",
"notificationCount": 2,
"problematicNotifications": []
}
],
"result": "Succeeded",
"stats": {
"timings": {
"NotificationSql": 7,
"PreDelivery": 1,
"Filter": 242,
"Identity": 0,
"NotificationDeliveryTimeAverage": 904,
"NotificationDeliveryTimeAttempts": 2
},
"All": {
"read": 2,
"attempted": 2,
"succeeded": 2,
"failed": 0,
"failedAlertable": 0,
"failedNonAlertable": 0,
"failedRetryable": 0,
"recipientCount": 2,
"Delivered": 2
},
"WorkItemChangedEvent": {
"read": 2,
"attempted": 2,
"succeeded": 2,
"failed": 0,
"failedAlertable": 0,
"failedNonAlertable": 0,
"failedRetryable": 0,
"recipientCount": 2,
"Delivered": 2
},
"EmailCounters": {
"emailProcessed": 2,
"emailStarted": 2,
"emailDelivered": 2,
"emailAttemptedMessages": 2,
"emailDeliveredMessages": 2,
"emailAttemptedRecipients": 2,
"emailDeliveredRecipients": 2
},
"EmailTimings": {
"AllSendMailAverage": 681,
"AllSendMailAttempts": 2,
"SucceededSendMailAverage": 681,
"SucceededSendMailAttempts": 2,
"FailedSendMailAverage": 0,
"FailedSendMailAttempts": 0,
"Subscriber": 67,
"TemplateFetch": 88,
"Transform": 240
}
},
"logType": "NotificationDelivery",
"source": "631f49b3-46e1-42ec-8fff-081bd176c18a",
"id": "cc8dcfb2-ee7d-4776-b0bb-df5b9b9bb797",
"startTime": "2019-08-08T14:24:03.1901508Z",
"endTime": "2019-08-08T14:24:05.3853457Z",
"description": "WorkItem User Delivery",
"warnings": 0,
"errors": 0,
"activityId": "dff0b99f-c7c2-4a30-b944-574c362ec15f",
"properties": {
"JobTimeSlice": "300000",
"JobTimeoutMultiple": "12",
"JobRestartDelay": "30",
"ProcessingJobDelaySeconds": "10",
"MaxConcurrentInstances": "5",
"InstancesExceededRescheduleDelaySeconds": "30000",
"RerunNotificationJobDelaySecs": "30000",
"ContributionFallbackModeRescheduleDelaySeconds": "60000",
"OrganizationAadTenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
"EventingEnabled": "True",
"FailedRetryInterval": "300",
"NotificationBatchSize": "100",
"NotificationStatFlushFrequency": "5",
"CoreDeliveryStartDelay": "10",
"EmailEnabled": "True",
"MaxMailSenders": "8",
"MaxMailRecipients": "90",
"AsciiOnlyEmailAddresses": "True",
"Feature: NotificationJob.DisablePlainTextEmail": "True",
"HostName": "fabrikam",
"SendingDomain": "dev.azure.com",
"NextProcessTime": "12/31/9999 11:59:59 PM"
},
"messages": [
{
"level": 3,
"time": "14:24:05.3803456",
"message": "Previous job run succeeded."
},
{
"level": 3,
"time": "14:24:05.3803456",
"message": "Current job run succeeded - consecutive successes: 1"
}
]
}
]
}
Tanımlar
Name | Description |
---|---|
INotification |
Tanılama günlüğü için soyutlama arabirimi. Öncelikle seri durumdan çıkarma için. |
Notification |
INotificationDiagnosticLog
Tanılama günlüğü için soyutlama arabirimi. Öncelikle seri durumdan çıkarma için.
Name | Tür | Description |
---|---|---|
activityId |
string (uuid) |
Başka bir yerde kaydedilmiş olabilecek diğer tanılamalarla bağıntı için kullanılan tanımlayıcı. |
description |
string |
Günlüğe kaydedilen aboneliğin veya bildirim işinin açıklaması. |
endTime |
string (date-time) |
Günlüğün sona erme zamanı. |
id |
string (uuid) |
Benzersiz örnek tanımlayıcısı. |
logType |
string |
Günlüğe kaydedilen bilgi türü. |
messages |
Günlük iletilerinin listesi. |
|
properties |
object |
İş için günlük özellikleri ve ayarları sözlüğü. |
source |
string (uuid) |
Bu tanımlayıcı logType'a bağlıdır. Bildirim işleri için bu, iş kimliği olacaktır. Abonelik izleme için bu, abonelik kimliği kodlanmış özel bir kök Guid olacaktır. |
startTime |
string (date-time) |
Günlüğün başlama zamanı. |
NotificationDiagnosticLogMessage
Name | Tür | Description |
---|---|---|
level |
integer (int32) |
.Net TraceLevel numaralandırmasına karşılık gelir |
message |
string |
|
time |
string (TimeSpan) |