Skip to content

Commit 2dc1a73

Browse files
Merge pull request #293590 from sarkar-rajarshi/rsarkar/acsjobrouter/verify-ext-events-schema
[ACS JobRouter] Minor doc fixes
2 parents 0b62fcd + b447392 commit 2dc1a73

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

articles/communication-services/how-tos/router-sdk/subscribe-events.md

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ dotnet run
240240
"key": "string",
241241
"labelOperator": "equal",
242242
"value": 5,
243-
"ttl": "P3Y6M4DT12H30M5S"
243+
"ttlSeconds": 60.0
244244
}
245245
]
246246
},
@@ -260,8 +260,8 @@ dotnet run
260260
| channelReference | `string` ||
261261
|channelId | `string` ||
262262
| classificationPolicyId | `string` || |
263-
| queueId | `string` | ✔️ | | `null` when `classificationPolicy` is not used for queue selection
264-
| priority | `int` | ✔️ | | `null` when `classificationPolicy` is not used for applying priority on job
263+
| queueId | `string` | | |
264+
| priority | `int` | | |
265265
| labels | `Dictionary<string, object>` | ✔️ | | Based on user input
266266
| tags | `Dictionary<string, object>` | ✔️ | | Based on user input
267267
| attachedWorkerSelectors | `List<WorkerSelector>` | ✔️ | | List of worker selectors attached by a classification policy
@@ -296,15 +296,15 @@ dotnet run
296296
"key": "string",
297297
"labelOperator": "equal",
298298
"value": 5,
299-
"ttl": "P3Y6M4DT12H30M5S"
299+
"ttlSeconds": 60.0
300300
}
301301
],
302302
"attachedWorkerSelectors": [
303303
{
304304
"key": "string",
305305
"labelOperator": "equal",
306306
"value": 5,
307-
"ttl": "P3Y6M4DT12H30M5S"
307+
"ttlSeconds": 60.0
308308
}
309309
]
310310
},
@@ -594,20 +594,20 @@ dotnet run
594594
"Segment": "Enterprise",
595595
"Token": "FooToken"
596596
},
597-
"requestedWorkerSelectorsExpired": [
597+
"expiredRequestedWorkerSelectors": [
598598
{
599599
"key": "string",
600600
"labelOperator": "equal",
601601
"value": 5,
602-
"ttl": "P3Y6M4DT12H30M5S"
602+
"ttlSeconds": 60.0
603603
}
604604
],
605-
"attachedWorkerSelectorsExpired": [
605+
"expiredAttachedWorkerSelectors": [
606606
{
607607
"key": "string",
608608
"labelOperator": "equal",
609609
"value": 5,
610-
"ttl": "P3Y6M4DT12H30M5S"
610+
"ttlSeconds": 60.0
611611
}
612612
]
613613
},
@@ -628,8 +628,8 @@ dotnet run
628628
| channelId | `string` ||
629629
| labels | `Dictionary<string, object>` | ✔️ | | Based on user input
630630
| tags | `Dictionary<string, object>` | ✔️ | | Based on user input
631-
| requestedWorkerSelectorsExpired | `List<WorkerSelector>` | ✔️ | | Based on user input while creating a job
632-
| attachedWorkerSelectorsExpired | `List<WorkerSelector>` | ✔️ | | List of worker selectors attached by a classification policy
631+
| expiredRequestedWorkerSelectors | `List<WorkerSelector>` | ✔️ | | Based on user input while creating a job
632+
| expiredAttachedWorkerSelectors | `List<WorkerSelector>` | ✔️ | | List of worker selectors attached by a classification policy
633633

634634
### Microsoft.Communication.RouterJobUnassigned
635635

@@ -708,15 +708,15 @@ dotnet run
708708
"key": "string",
709709
"labelOperator": "equal",
710710
"value": 5,
711-
"ttl": "P3Y6M4DT12H30M5S"
711+
"ttlSeconds": 60.0
712712
}
713713
],
714714
"attachedWorkerSelectors": [
715715
{
716716
"key": "string",
717717
"labelOperator": "equal",
718718
"value": 5,
719-
"ttl": "P3Y6M4DT12H30M5S"
719+
"ttlSeconds": 60.0
720720
}
721721
],
722722
"scheduledOn": "2022-02-17T00:55:25.1736293Z",
@@ -775,15 +775,15 @@ dotnet run
775775
"key": "string",
776776
"labelOperator": "equal",
777777
"value": 5,
778-
"ttl": "P3Y6M4DT12H30M5S"
778+
"ttlSeconds": 60.0
779779
}
780780
],
781781
"attachedWorkerSelectors": [
782782
{
783783
"key": "string",
784784
"labelOperator": "equal",
785785
"value": 5,
786-
"ttl": "P3Y6M4DT12H30M5S"
786+
"ttlSeconds": 60.0
787787
}
788788
],
789789
"scheduledOn": "2022-02-17T00:55:25.1736293Z",
@@ -890,6 +890,16 @@ dotnet run
890890
"Segment": "Enterprise",
891891
"Token": "FooToken"
892892
},
893+
"workerLabels": {
894+
"Locale": "en-us",
895+
"Segment": "Enterprise",
896+
"Token": "FooToken"
897+
},
898+
"workerTags": {
899+
"Locale": "en-us",
900+
"Segment": "Enterprise",
901+
"Token": "FooToken"
902+
},
893903
"channelReference": "test-abc",
894904
"channelId": "FooVoiceChannelId",
895905
"queueId": "625fec06-ab81-4e60-b780-f364ed96ade1",
@@ -912,6 +922,8 @@ dotnet run
912922
| jobPriority| `int` ||
913923
| jobLabels | `Dictionary<string, object>` | ✔️ | | Based on user input
914924
| jobTags | `Dictionary<string, object>` | ✔️ | | Based on user input
925+
| workerLabels | `Dictionary<string, object>` | ✔️ | | Based on user input
926+
| workerTags | `Dictionary<string, object>` | ✔️ | | Based on user input
915927
| channelReference | `string` ||
916928
|channelId | `string` ||
917929
| queueId | `string` ||
@@ -1235,7 +1247,7 @@ public class WorkerSelector
12351247
public object Value { get; set; }
12361248
public double? TTLSeconds { get; set; }
12371249
public WorkerSelectorState State { get; set; }
1238-
public DateTimeOffset? ExpireTime { get; set; }
1250+
public DateTimeOffset? ExpirationTime { get; set; }
12391251
}
12401252

12411253
public enum WorkerSelectorState

0 commit comments

Comments
 (0)