-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add new system events #39202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new system events #39202
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| namespace Azure.Messaging.EventGrid.SystemEvents | ||
| { | ||
| internal partial class AcsRouterCommunicationError | ||
| { | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Text.Json; | ||
| using Azure.Core; | ||
|
|
||
| namespace Azure.Messaging.EventGrid.SystemEvents | ||
| { | ||
| /// <summary> Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RouterJobClassificationFailed event. </summary> | ||
| public partial class AcsRouterJobClassificationFailedEventData | ||
| { | ||
| /// <summary> List of Router Communication Errors. </summary> | ||
| [CodeGenMember("Errors")] | ||
| internal IReadOnlyList<AcsRouterCommunicationError> ErrorsInternal { get; } | ||
|
|
||
| /// <summary> List of Router Communication Errors. </summary> | ||
| public IReadOnlyList<ResponseError> Errors | ||
| { | ||
| get | ||
| { | ||
| if (_errors == null) | ||
| { | ||
| // Need to re-serialize to be able to deserialize as ResponseError with the internal properties populated. | ||
| var serialized = JsonSerializer.Serialize( | ||
| ErrorsInternal, | ||
| new JsonSerializerOptions | ||
| { | ||
| PropertyNamingPolicy = JsonNamingPolicy.CamelCase | ||
| }); | ||
| _errors = JsonSerializer.Deserialize<List<ResponseError>>(serialized); | ||
|
JoshLove-msft marked this conversation as resolved.
|
||
| } | ||
|
|
||
| return _errors; | ||
| } | ||
| } | ||
|
|
||
| private List<ResponseError> _errors; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
| using Azure.Core; | ||
|
|
||
| namespace Azure.Messaging.EventGrid.SystemEvents | ||
| { | ||
| /// <summary> Router Job Worker Selector. </summary> | ||
| public partial class AcsRouterWorkerSelector | ||
| { | ||
| internal float? TtlSeconds { get; } | ||
|
|
||
| /// <summary> Router Job Worker Selector TTL. </summary> | ||
| public TimeSpan? TimeToLive => TtlSeconds.HasValue ? TimeSpan.FromSeconds(TtlSeconds.Value) : null; | ||
|
JoshLove-msft marked this conversation as resolved.
|
||
| } | ||
| } | ||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.