< Summary

Class:Microsoft.Azure.EventGrid.SystemEventTypeMappings
Assembly:Microsoft.Azure.EventGrid
File(s):C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Customization\SystemEventTypeMappings.cs
Covered lines:108
Uncovered lines:0
Coverable lines:108
Total lines:122
Line coverage:100% (108 of 108)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.cctor()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\eventgrid\Microsoft.Azure.EventGrid\src\Customization\SystemEventTypeMappings.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License. See License.txt in the project root for
 3// license information.
 4
 5using Microsoft.Azure.EventGrid.Models;
 6using System;
 7using System.Collections.Generic;
 8
 9namespace Microsoft.Azure.EventGrid
 10{
 11    internal static class SystemEventTypeMappings
 12    {
 113        public static readonly IReadOnlyDictionary<String, Type> SystemEventMappings = new Dictionary<string, Type>(Stri
 114        {
 115            // KEEP THIS SORTED BY THE NAME OF THE PUBLISHING SERVICE
 116            // Add handling for additional event types here.
 117            // NOTE: If any of the event data fields is polymorphic, remember to add an entry for the discriminator/Base
 118            // in EventGridSubscriber.GetJsonSerializerWithPolymorphicSupport()
 119            // Example: jsonSerializer.Converters.Add(new PolymorphicDeserializeJsonConverter<JobOutput>("@odata.type"))
 120
 121            // AppConfiguration events
 122            { EventTypes.AppConfigurationKeyValueDeletedEvent, typeof(AppConfigurationKeyValueDeletedEventData) },
 123            { EventTypes.AppConfigurationKeyValueModifiedEvent, typeof(AppConfigurationKeyValueModifiedEventData) },
 124
 125            // ContainerRegistry events
 126            { EventTypes.ContainerRegistryImagePushedEvent, typeof(ContainerRegistryImagePushedEventData) },
 127            { EventTypes.ContainerRegistryImageDeletedEvent, typeof(ContainerRegistryImageDeletedEventData) },
 128            { EventTypes.ContainerRegistryChartDeletedEvent, typeof(ContainerRegistryChartDeletedEventData) },
 129            { EventTypes.ContainerRegistryChartPushedEvent, typeof(ContainerRegistryChartPushedEventData) },
 130
 131            // IoTHub Device events
 132            { EventTypes.IoTHubDeviceCreatedEvent, typeof(IotHubDeviceCreatedEventData) },
 133            { EventTypes.IoTHubDeviceDeletedEvent, typeof(IotHubDeviceDeletedEventData) },
 134            { EventTypes.IoTHubDeviceConnectedEvent, typeof(IotHubDeviceConnectedEventData) },
 135            { EventTypes.IoTHubDeviceDisconnectedEvent, typeof(IotHubDeviceDisconnectedEventData) },
 136            { EventTypes.IotHubDeviceTelemetryEvent, typeof(IotHubDeviceTelemetryEventData) },
 137
 138            // EventGrid events
 139            { EventTypes.EventGridSubscriptionValidationEvent, typeof(SubscriptionValidationEventData) },
 140            { EventTypes.EventGridSubscriptionDeletedEvent, typeof(SubscriptionDeletedEventData) },
 141
 142            // Event Hub events
 143            { EventTypes.EventHubCaptureFileCreatedEvent, typeof(EventHubCaptureFileCreatedEventData) },
 144
 145            // MachineLearningServices events
 146            { EventTypes.MachineLearningServicesDatasetDriftDetectedEvent, typeof(MachineLearningServicesDatasetDriftDet
 147            { EventTypes.MachineLearningServicesModelDeployedEvent, typeof(MachineLearningServicesModelDeployedEventData
 148            { EventTypes.MachineLearningServicesModelRegisteredEvent, typeof(MachineLearningServicesModelRegisteredEvent
 149            { EventTypes.MachineLearningServicesRunCompletedEvent, typeof(MachineLearningServicesRunCompletedEventData) 
 150            { EventTypes.MachineLearningServicesRunStatusChangedEvent, typeof(MachineLearningServicesRunStatusChangedEve
 151
 152            // Maps events
 153            { EventTypes.MapsGeofenceEnteredEvent, typeof(MapsGeofenceEnteredEventData) },
 154            { EventTypes.MapsGeofenceExitedEvent, typeof(MapsGeofenceExitedEventData) },
 155            { EventTypes.MapsGeofenceResultEvent, typeof(MapsGeofenceResultEventData) },
 156
 157            // Media Services events
 158            { EventTypes.MediaJobStateChangeEvent, typeof(MediaJobStateChangeEventData) },
 159            { EventTypes.MediaJobOutputStateChangeEvent, typeof(MediaJobOutputStateChangeEventData) },
 160            { EventTypes.MediaJobScheduledEvent, typeof(MediaJobScheduledEventData) },
 161            { EventTypes.MediaJobProcessingEvent, typeof(MediaJobProcessingEventData) },
 162            { EventTypes.MediaJobCancelingEvent, typeof(MediaJobCancelingEventData) },
 163            { EventTypes.MediaJobFinishedEvent, typeof(MediaJobFinishedEventData) },
 164            { EventTypes.MediaJobCanceledEvent, typeof(MediaJobCanceledEventData) },
 165            { EventTypes.MediaJobErroredEvent, typeof(MediaJobErroredEventData) },
 166            { EventTypes.MediaJobOutputCanceledEvent, typeof(MediaJobOutputCanceledEventData) },
 167            { EventTypes.MediaJobOutputCancelingEvent, typeof(MediaJobOutputCancelingEventData) },
 168            { EventTypes.MediaJobOutputErroredEvent, typeof(MediaJobOutputErroredEventData) },
 169            { EventTypes.MediaJobOutputFinishedEvent, typeof(MediaJobOutputFinishedEventData) },
 170            { EventTypes.MediaJobOutputProcessingEvent, typeof(MediaJobOutputProcessingEventData) },
 171            { EventTypes.MediaJobOutputScheduledEvent, typeof(MediaJobOutputScheduledEventData) },
 172            { EventTypes.MediaJobOutputProgressEvent, typeof(MediaJobOutputProgressEventData) },
 173            { EventTypes.MediaLiveEventEncoderConnectedEvent, typeof(MediaLiveEventEncoderConnectedEventData) },
 174            { EventTypes.MediaLiveEventConnectionRejectedEvent, typeof(MediaLiveEventConnectionRejectedEventData) },
 175            { EventTypes.MediaLiveEventEncoderDisconnectedEvent, typeof(MediaLiveEventEncoderDisconnectedEventData) },
 176            { EventTypes.MediaLiveEventIncomingStreamReceivedEvent, typeof(MediaLiveEventIncomingStreamReceivedEventData
 177            { EventTypes.MediaLiveEventIncomingStreamsOutOfSyncEvent, typeof(MediaLiveEventIncomingStreamsOutOfSyncEvent
 178            { EventTypes.MediaLiveEventIncomingVideoStreamsOutOfSyncEvent, typeof(MediaLiveEventIncomingVideoStreamsOutO
 179            { EventTypes.MediaLiveEventIncomingChunkDroppedEvent, typeof(MediaLiveEventIncomingDataChunkDroppedEventData
 180            { EventTypes.MediaLiveEventIngestHeartbeatEvent, typeof(MediaLiveEventIngestHeartbeatEventData) },
 181            { EventTypes.MediaLiveEventTrackDiscontinuityDetectedEvent, typeof(MediaLiveEventTrackDiscontinuityDetectedE
 182
 183            // Resource Manager (Azure Subscription/Resource Group) events
 184            { EventTypes.ResourceWriteSuccessEvent, typeof(ResourceWriteSuccessData) },
 185            { EventTypes.ResourceWriteFailureEvent, typeof(ResourceWriteFailureData) },
 186            { EventTypes.ResourceWriteCancelEvent, typeof(ResourceWriteCancelData) },
 187            { EventTypes.ResourceDeleteSuccessEvent, typeof(ResourceDeleteSuccessData) },
 188            { EventTypes.ResourceDeleteFailureEvent, typeof(ResourceDeleteFailureData) },
 189            { EventTypes.ResourceDeleteCancelEvent, typeof(ResourceDeleteCancelData) },
 190            { EventTypes.ResourceActionSuccessEvent, typeof(ResourceActionSuccessData) },
 191            { EventTypes.ResourceActionFailureEvent, typeof(ResourceActionFailureData) },
 192            { EventTypes.ResourceActionCancelEvent, typeof(ResourceActionCancelData) },
 193
 194            // ServiceBus events
 195            { EventTypes.ServiceBusActiveMessagesAvailableWithNoListenersEvent, typeof(ServiceBusActiveMessagesAvailable
 196            { EventTypes.ServiceBusDeadletterMessagesAvailableWithNoListenerEvent, typeof(ServiceBusDeadletterMessagesAv
 197
 198            // Storage events
 199            { EventTypes.StorageBlobCreatedEvent, typeof(StorageBlobCreatedEventData) },
 1100            { EventTypes.StorageBlobDeletedEvent, typeof(StorageBlobDeletedEventData) },
 1101            { EventTypes.StorageBlobRenamedEvent, typeof(StorageBlobRenamedEventData) },
 1102            { EventTypes.StorageDirectoryCreatedEvent, typeof(StorageDirectoryCreatedEventData) },
 1103            { EventTypes.StorageDirectoryDeletedEvent, typeof(StorageDirectoryDeletedEventData) },
 1104            { EventTypes.StorageDirectoryRenamedEvent, typeof(StorageDirectoryRenamedEventData) },
 1105
 1106            // App Service
 1107            { EventTypes.WebAppUpdated, typeof(WebAppUpdatedEventData) },
 1108            { EventTypes.WebBackupOperationStarted, typeof(WebBackupOperationStartedEventData) },
 1109            { EventTypes.WebBackupOperationCompleted, typeof(WebBackupOperationCompletedEventData) },
 1110            { EventTypes.WebBackupOperationFailed, typeof(WebBackupOperationFailedEventData) },
 1111            { EventTypes.WebRestoreOperationStarted, typeof(WebRestoreOperationStartedEventData) },
 1112            { EventTypes.WebRestoreOperationCompleted, typeof(WebRestoreOperationCompletedEventData) },
 1113            { EventTypes.WebRestoreOperationFailed, typeof(WebRestoreOperationFailedEventData) },
 1114            { EventTypes.WebSlotSwapStarted, typeof(WebSlotSwapStartedEventData) },
 1115            { EventTypes.WebSlotSwapCompleted, typeof(WebSlotSwapCompletedEventData) },
 1116            { EventTypes.WebSlotSwapFailed, typeof(WebSlotSwapFailedEventData) },
 1117            { EventTypes.WebSlotSwapWithPreviewStarted, typeof(WebSlotSwapWithPreviewStartedEventData) },
 1118            { EventTypes.WebSlotSwapWithPreviewCancelled, typeof(WebSlotSwapWithPreviewCancelledEventData) },
 1119            { EventTypes.WebAppServicePlanUpdated, typeof(WebAppServicePlanUpdatedEventData) }
 1120        };
 121    }
 122}

Methods/Properties

.cctor()