Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,13 @@
]
},
{
"filename": "**/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/SystemEvents.json",
"filename": "**/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/GeneratedSystemEvents.json",
"words": [
"whatsapp"
]
},
{
"filename": "**/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/GeneratedSystemEvents.json",
"words": [
"whatsapp"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import "@typespec/versioning";

using TypeSpec.Versioning;

/** Describes the schema of the Azure Communication Services events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents;

Expand Down Expand Up @@ -222,12 +226,15 @@ model AcsRecordingFileStatusUpdatedEventData {
recordingDurationMs?: int64;

/** The recording content type- AudioVideo, or Audio */
@madeRequired(ServiceApiVersions.v2024_01_01)
recordingContentType: recordingContentType;

/** The recording channel type - Mixed, Unmixed */
@madeRequired(ServiceApiVersions.v2024_01_01)
recordingChannelType: recordingChannelType;

/** The recording format type - Mp4, Mp3, Wav */
@madeRequired(ServiceApiVersions.v2024_01_01)
recordingFormatType: recordingFormatType;

/** The reason for ending recording session */
Expand All @@ -246,6 +253,7 @@ model AcsEmailDeliveryReportReceivedEventData {
messageId?: string;

/** The status of the email. Any value other than Delivered is considered failed. */
@madeRequired(ServiceApiVersions.v2024_01_01)
status: AcsEmailDeliveryReportStatus;

/** Detailed information about the status if any */
Expand Down Expand Up @@ -276,6 +284,7 @@ model AcsEmailEngagementTrackingReportReceivedEventData {
userAgent?: string;

/** The type of engagement user have with email */
@madeRequired(ServiceApiVersions.v2024_01_01)
engagementType: AcsUserEngagement;
}

Expand Down Expand Up @@ -369,6 +378,7 @@ model AcsRouterJobQueuedEventData extends AcsRouterJobEventData {
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models."
model AcsRouterJobReceivedEventData extends AcsRouterJobEventData {
/** Router Job Received Job Status */
@madeRequired(ServiceApiVersions.v2024_01_01)
jobStatus: AcsRouterJobStatus;

/** Router Job Classification Policy Id */
Expand Down Expand Up @@ -692,6 +702,7 @@ model AcsRouterWorkerSelector {
key?: string;

/** Router Job Worker Selector Label Operator */
@madeRequired(ServiceApiVersions.v2024_01_01)
labelOperator: AcsRouterLabelOperator;

/** Router Job Worker Selector Value */
Expand All @@ -702,6 +713,7 @@ model AcsRouterWorkerSelector {
ttlSeconds: float64;

/** Router Job Worker Selector State */
@madeRequired(ServiceApiVersions.v2024_01_01)
state: AcsRouterWorkerSelectorState;

/** Router Job Worker Selector Expiration Time */
Expand Down Expand Up @@ -1033,6 +1045,7 @@ union AcsUserEngagement {
/** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */
model CommunicationIdentifierModel {
/** The identifier kind. Only required in responses. */
@madeRequired(ServiceApiVersions.v2024_01_01)
kind: CommunicationIdentifierModelKind;

/** Raw Id of the identifier. Optional in requests, required in responses. */
Expand Down Expand Up @@ -1074,6 +1087,7 @@ model MicrosoftTeamsAppIdentifierModel {
appId: string;

/** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */
@madeRequired(ServiceApiVersions.v2024_01_01)
cloud: CommunicationCloudEnvironmentModel;
}

Expand All @@ -1086,6 +1100,7 @@ model MicrosoftTeamsUserIdentifierModel {
isAnonymous?: boolean;

/** The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. */
@madeRequired(ServiceApiVersions.v2024_01_01)
cloud: CommunicationCloudEnvironmentModel;
}

Expand Down Expand Up @@ -1132,9 +1147,11 @@ model AcsMessageDeliveryStatusUpdatedEventData extends AcsMessageEventData {
messageId?: string;

/** The updated message status */
@madeRequired(ServiceApiVersions.v2024_01_01)
status: AcsMessageDeliveryStatus;

/** The updated message channel type */
@madeRequired(ServiceApiVersions.v2024_01_01)
channelType: AcsMessageChannelKind;
}

Expand Down Expand Up @@ -1196,6 +1213,7 @@ model AcsMessageButtonContent {
/** Message Interactive Content */
model AcsMessageInteractiveContent {
/** The Message interactive reply type */
@madeRequired(ServiceApiVersions.v2024_01_01)
type: AcsInteractiveReplyKind;

/** The Message Sent when a customer clicks a button */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import "@typespec/versioning";

using TypeSpec.Versioning;

/** EG DataBox Data Model */
namespace Microsoft.EventGrid.SystemEvents {
/** Schema of the Data property of an EventGridEvent for a Microsoft.DataBox.CopyStarted event. */
Expand All @@ -20,6 +24,7 @@ namespace Microsoft.EventGrid.SystemEvents {
serialNumber?: string;

/** Name of the current Stage */
@madeRequired(ServiceApiVersions.v2024_01_01)
stageName: DataBoxStageName;

/** The time at which the stage happened. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import "@typespec/versioning";

using TypeSpec.Versioning;

/** Describes the schema of the Azure EventGrid events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents;

Expand Down Expand Up @@ -89,6 +93,7 @@ model SubscriptionDeletedEventData {
model EventGridMQTTClientCreatedOrUpdatedEventData
extends EventGridMQTTClientEventData {
/** Configured state of the client. The value could be Enabled or Disabled */
@madeRequired(ServiceApiVersions.v2024_01_01)
state: EventGridMQTTClientState;

/** Time the client resource is created based on the provider's UTC time. */
Expand Down Expand Up @@ -170,5 +175,6 @@ than the previous event.
Reason for the disconnection of the MQTT client's session. The value could be
one of the values in the disconnection reasons table.
*/
@madeRequired(ServiceApiVersions.v2024_01_01)
disconnectionReason: EventGridMQTTClientDisconnectionReason;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import "@typespec/versioning";

using TypeSpec.Versioning;

/** Describes the schema of the Azure HealthcareApis events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents {
// model HealthcareFhirResourceType is string {}
/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceCreated event. */
model HealthcareFhirResourceCreatedEventData {
/** Type of HL7 FHIR resource. */
@madeRequired(ServiceApiVersions.v2024_01_01)
resourceType: HealthcareFhirResourceType;

/** Domain name of FHIR account for this resource. */
Expand All @@ -19,6 +24,7 @@ namespace Microsoft.EventGrid.SystemEvents {
/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceUpdated event. */
model HealthcareFhirResourceUpdatedEventData {
/** Type of HL7 FHIR resource. */
@madeRequired(ServiceApiVersions.v2024_01_01)
resourceType: HealthcareFhirResourceType;

/** Domain name of FHIR account for this resource. */
Expand All @@ -34,6 +40,7 @@ namespace Microsoft.EventGrid.SystemEvents {
/** Schema of the Data property of an EventGridEvent for a Microsoft.HealthcareApis.FhirResourceDeleted event. */
model HealthcareFhirResourceDeletedEventData {
/** Type of HL7 FHIR resource. */
@madeRequired(ServiceApiVersions.v2024_01_01)
resourceType: HealthcareFhirResourceType;

/** Domain name of FHIR account for this resource. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import "@typespec/versioning";

using TypeSpec.Versioning;

/** Describes the schema of the Azure Media Services events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents {
/** State of a Media Job. */
Expand Down Expand Up @@ -101,9 +105,11 @@ namespace Microsoft.EventGrid.SystemEvents {
*/
model MediaJobStateChangeEventData {
/** The previous state of the Job. */
@madeRequired(ServiceApiVersions.v2024_01_01)
previousState: MediaJobState;

/** The new state of the Job. */
@madeRequired(ServiceApiVersions.v2024_01_01)
state: MediaJobState;

/** Gets the Job correlation data. */
Expand All @@ -113,15 +119,18 @@ namespace Microsoft.EventGrid.SystemEvents {
/** Details of JobOutput errors. */
model MediaJobError {
/** Error code describing the error. */
@madeRequired(ServiceApiVersions.v2024_01_01)
code: MediaJobErrorCode;

/** A human-readable language-dependent representation of the error. */
message?: string;

/** Helps with categorization of errors. */
@madeRequired(ServiceApiVersions.v2024_01_01)
category: MediaJobErrorCategory;

/** Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. */
@madeRequired(ServiceApiVersions.v2024_01_01)
retry: MediaJobRetry;

/** An array of details about specific errors that led to this reported error. */
Expand Down Expand Up @@ -155,6 +164,7 @@ namespace Microsoft.EventGrid.SystemEvents {
progress: int64;

/** Gets the Job output state. */
@madeRequired(ServiceApiVersions.v2024_01_01)
state: MediaJobState;
}

Expand Down Expand Up @@ -189,6 +199,7 @@ namespace Microsoft.EventGrid.SystemEvents {
*/
model MediaJobOutputStateChangeEventData {
/** The previous state of the Job. */
@madeRequired(ServiceApiVersions.v2024_01_01)
previousState: MediaJobState;

/** Gets the output. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import "@typespec/versioning";

using TypeSpec.Versioning;

/** Describes the schema of the Azure Storage events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents {
/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobCreated event. */
Expand Down Expand Up @@ -265,6 +269,7 @@ namespace Microsoft.EventGrid.SystemEvents {
/** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskCompleted event. */
model StorageTaskCompletedEventData {
/** The status for a storage task. */
@madeRequired(ServiceApiVersions.v2024_01_01)
status: StorageTaskCompletedStatus;

/** The time at which a storage task was completed. */
Expand Down Expand Up @@ -302,6 +307,7 @@ namespace Microsoft.EventGrid.SystemEvents {
/** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentCompleted event. */
model StorageTaskAssignmentCompletedEventData {
/** The status for a storage task. */
@madeRequired(ServiceApiVersions.v2024_01_01)
status: StorageTaskAssignmentCompletedStatus;

/** The time at which a storage task was completed. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import "@typespec/versioning";

using TypeSpec.Versioning;

/** Describes the schema of the Azure App Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents {
// /** sku of app service plan. */
/** Detail of action on the app. */
model AppEventTypeDetail {
/** Type of action of the operation. */
@madeRequired(ServiceApiVersions.v2024_01_01)
action: AppAction;
}

Expand Down Expand Up @@ -142,12 +147,15 @@ namespace Microsoft.EventGrid.SystemEvents {
/** Detail of action on the app service plan. */
model AppServicePlanEventTypeDetail {
/** Kind of environment where app service plan is. */
@madeRequired(ServiceApiVersions.v2024_01_01)
stampKind: StampKind;

/** Type of action on the app service plan. */
@madeRequired(ServiceApiVersions.v2024_01_01)
action: AppServicePlanAction;

/** Asynchronous operation status of the operation on the app service plan. */
@madeRequired(ServiceApiVersions.v2024_01_01)
status: AsyncStatus;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"id": "1fb6fa94-d965-4306-abeq-4810f0774e97",
"source": "/subscriptions/{subscription-id}",
"subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}",
"data": {
"resourceInfo": {
"id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}/providers/Microsoft.ResourceHealth/availabilityStatuses/{event-id}",
"name": "{event-id}",
"type": "Microsoft.ResourceHealth/availabilityStatuses",
"properties": {
"targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}",
"targetResourceType": "Microsoft.Compute/virtualMachines",
"occurredTime": "2023-07-24T19:20:37.9245071Z",
"previousAvailabilityState": "Unavailable",
"availabilityState": "Available"
}
},
"operationalInfo": {
"resourceEventTime": "2023-07-24T19:20:37.9245071Z"
},
"apiVersion": "2023-12-01"
},
"type": "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged",
"specversion": "1.0",
"time": "2023-07-24T19:20:37.9245071Z",
"operationId": "AvailabilityStatusChangedEventName",
"title": "AvailabilityStatusChanged"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"id": "8945cf9b-e220-496e-ab4f-f3a239318995",
"source": "/subscriptions/{subscription-id}",
"subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}",
"data": {
"resourceInfo": {
"id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}/providers/Microsoft.ResourceHealth/resourceAnnotations/{event-id}",
"name": "{event-id}",
"type": "Microsoft.ResourceHealth/resourceAnnotations",
"properties": {
"targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}",
"targetResourceType": "Microsoft.Compute/virtualMachines",
"occurredTime": "2023-07-24T19:20:37.9245071Z",
"annotationName": "VirtualMachineDeallocationInitiated",
"reason": "Stopping and deallocating",
"summary": "This virtual machine is stopped and deallocated as requested by an authorized user or process.",
"context": "Customer Initiated",
"category": "Not Applicable"
}
},
"operationalInfo": {
"resourceEventTime": "2023-07-24T19:20:37.9245071Z"
},
"apiVersion": "2022-08-01"
},
"type": "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated",
"specversion": "1.0",
"time": "2023-07-24T19:20:37.9245071Z",
"operationId": "ResourceAnnotatedEventName",
"title": "ResourceAnnotated"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"source": "/subscriptions/<subscription-id>/resourceGroups/<rg-name>/providers/Microsoft.Media/mediaservices/<account-name>",
"subject": "liveEvent/mle1",
"type": "Microsoft.Media.LiveEventChannelArchiveHeartbeat",
"time": "2021-05-14T23:50:00.3240000",
"id": "7f450938-491f-41e1-b06f-c6cd3965d786",
"data": {
"channelLatencyMs": "10",
"latencyResultCode": "S_OK"
},
"specversion": "1.0",
"operationId": "LiveEventChannelArchiveHeartbeatEventName",
"title": "LiveEventChannelArchiveHeartbeat"
}
Loading