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
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import "@typespec/versioning";
using TypeSpec.Versioning;
/** Describes the schema of the Redis Cache events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents {
alias RedisBaseEventData = {
/** The time at which the event occurred. */
@madeRequired(ServiceApiVersions.v2024_01_01)
timestamp: utcDateTime;

/** The name of this event. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
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 @@ -55,6 +53,7 @@ model AcsChatMessageEditedEventData extends AcsChatMessageEventBaseProperties {
...AcsChatMessageBaseEventData;

/** The time at which the message was edited */
@madeRequired(ServiceApiVersions.v2024_01_01)
editTime: utcDateTime;
}

Expand All @@ -65,13 +64,15 @@ model AcsChatMessageEditedInThreadEventData
...AcsChatMessageBaseEventData;

/** The time at which the message was edited */
@madeRequired(ServiceApiVersions.v2024_01_01)
editTime: utcDateTime;
}

/** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeleted event. */
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models."
model AcsChatMessageDeletedEventData extends AcsChatMessageEventBaseProperties {
/** The time at which the message was deleted */
@madeRequired(ServiceApiVersions.v2024_01_01)
deleteTime: utcDateTime;
}

Expand All @@ -80,6 +81,7 @@ model AcsChatMessageDeletedEventData extends AcsChatMessageEventBaseProperties {
model AcsChatMessageDeletedInThreadEventData
extends AcsChatMessageEventInThreadBaseProperties {
/** The time at which the message was deleted */
@madeRequired(ServiceApiVersions.v2024_01_01)
deleteTime: utcDateTime;
}

Expand Down Expand Up @@ -119,6 +121,7 @@ model AcsChatThreadPropertiesUpdatedPerUserEventData
editedByCommunicationIdentifier: CommunicationIdentifierModel;

/** The time at which the properties of the thread were updated */
@madeRequired(ServiceApiVersions.v2024_01_01)
editTime: utcDateTime;

/** The thread metadata */
Expand Down Expand Up @@ -148,6 +151,7 @@ model AcsChatParticipantAddedToThreadWithUserEventData
model AcsChatParticipantRemovedFromThreadWithUserEventData
extends AcsChatThreadEventBaseProperties {
/** The time at which the user was removed to the thread */
@madeRequired(ServiceApiVersions.v2024_01_01)
time: utcDateTime;

/** The communication identifier of the user who removed the user */
Expand All @@ -172,6 +176,7 @@ model AcsChatParticipantAddedToThreadEventData
model AcsChatParticipantRemovedFromThreadEventData
extends AcsChatEventInThreadBaseProperties {
/** The time at which the user was removed to the thread */
@madeRequired(ServiceApiVersions.v2024_01_01)
time: utcDateTime;

/** The communication identifier of the user who removed the user */
Expand All @@ -197,6 +202,7 @@ model AcsSmsDeliveryReportReceivedEventData extends AcsSmsEventBaseProperties {
deliveryAttempts: AcsSmsDeliveryAttemptProperties[];

/** The time at which the SMS delivery report was received */
@madeRequired(ServiceApiVersions.v2024_01_01)
receivedTimestamp: utcDateTime;

/** Customer Content */
Expand All @@ -210,6 +216,7 @@ model AcsSmsReceivedEventData extends AcsSmsEventBaseProperties {
message?: string;

/** The time at which the SMS was received */
@madeRequired(ServiceApiVersions.v2024_01_01)
receivedTimestamp: utcDateTime;
}

Expand All @@ -220,6 +227,7 @@ model AcsRecordingFileStatusUpdatedEventData {
recordingStorageInfo: AcsRecordingStorageInfoProperties;

/** The time at which the recording started */
@madeRequired(ServiceApiVersions.v2024_01_01)
recordingStartTime: utcDateTime;

/** The recording duration in milliseconds */
Expand Down Expand Up @@ -260,6 +268,7 @@ model AcsEmailDeliveryReportReceivedEventData {
deliveryStatusDetails: AcsEmailDeliveryReportStatusDetails;

/** The time at which the email delivery report received timestamp */
@madeRequired(ServiceApiVersions.v2024_01_01)
deliveryAttemptTimestamp: utcDateTime;
}

Expand All @@ -275,6 +284,7 @@ model AcsEmailEngagementTrackingReportReceivedEventData {
messageId?: string;

/** The time at which the user interacted with the email */
@madeRequired(ServiceApiVersions.v2024_01_01)
userActionTimestamp: utcDateTime;

/** The context of the type of engagement user had with email */
Expand Down Expand Up @@ -391,6 +401,7 @@ model AcsRouterJobReceivedEventData extends AcsRouterJobEventData {
requestedWorkerSelectors: AcsRouterWorkerSelector[];

/** Router Job Received Scheduled Time in UTC */
@madeRequired(ServiceApiVersions.v2024_01_01)
scheduledOn: utcDateTime;

/** Unavailable For Matching for Router Job Received */
Expand Down Expand Up @@ -452,6 +463,7 @@ model AcsRouterJobSchedulingFailedEventData extends AcsRouterJobEventData {

/** Router Job Scheduling Failed Scheduled Time in UTC */
// FIXME: (utcDateTime) Please double check that this is the correct type for your scenario.
@madeRequired(ServiceApiVersions.v2024_01_01)
scheduledOn: utcDateTime;

/** Router Job Scheduling Failed Reason */
Expand Down Expand Up @@ -482,6 +494,7 @@ model AcsRouterJobWaitingForActivationEventData extends AcsRouterJobEventData {

/** Router Job Waiting For Activation Scheduled Time in UTC */
// FIXME: (utcDateTime) Please double check that this is the correct type for your scenario.
@madeRequired(ServiceApiVersions.v2024_01_01)
scheduledOn: utcDateTime;

/** Router Job Waiting For Activation Unavailable For Matching */
Expand Down Expand Up @@ -574,10 +587,12 @@ model AcsRouterWorkerOfferIssuedEventData extends AcsRouterWorkerEventData {

/** Router Worker Offer Issued Time in UTC */
// FIXME: (utcDateTime) Please double check that this is the correct type for your scenario.
@madeRequired(ServiceApiVersions.v2024_01_01)
offeredOn: utcDateTime;

/** Router Worker Offer Issued Expiration Time in UTC */
// FIXME: (utcDateTime) Please double check that this is the correct type for your scenario.
@madeRequired(ServiceApiVersions.v2024_01_01)
expiresOn: utcDateTime;

/** Router Worker Offer Issued Worker Tags */
Expand Down Expand Up @@ -717,6 +732,7 @@ model AcsRouterWorkerSelector {
state: AcsRouterWorkerSelectorState;

/** Router Job Worker Selector Expiration Time */
@madeRequired(ServiceApiVersions.v2024_01_01)
expirationTime: utcDateTime;
}

Expand Down Expand Up @@ -748,6 +764,7 @@ alias AcsChatThreadDeletedBaseEventData = {
deletedByCommunicationIdentifier: CommunicationIdentifierModel;

/** The deletion time of the thread */
@madeRequired(ServiceApiVersions.v2024_01_01)
deleteTime: utcDateTime;
};

Expand All @@ -756,6 +773,7 @@ alias AcsChatThreadPropertiesBaseEventData = {
editedByCommunicationIdentifier: CommunicationIdentifierModel;

/** The time at which the properties of the thread were updated */
@madeRequired(ServiceApiVersions.v2024_01_01)
editTime: utcDateTime;

/** The updated thread properties */
Expand All @@ -768,6 +786,7 @@ alias AcsChatThreadPropertiesBaseEventData = {

alias AcsChatParticipantBaseEventData = {
/** The time at which the user was added to the thread */
@madeRequired(ServiceApiVersions.v2024_01_01)
time: utcDateTime;

/** The communication identifier of the user who added the user */
Expand Down Expand Up @@ -880,6 +899,7 @@ model AcsEmailDeliveryReportStatusDetails {
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models."
model AcsChatThreadEventBaseProperties extends AcsChatEventBaseProperties {
/** The original creation time of the thread */
@madeRequired(ServiceApiVersions.v2024_01_01)
createTime: utcDateTime;

/** The version of the thread */
Expand All @@ -891,6 +911,7 @@ model AcsChatThreadEventBaseProperties extends AcsChatEventBaseProperties {
model AcsChatThreadEventInThreadBaseProperties
extends AcsChatEventInThreadBaseProperties {
/** The original creation time of the thread */
@madeRequired(ServiceApiVersions.v2024_01_01)
createTime: utcDateTime;

/** The version of the thread */
Expand All @@ -910,6 +931,7 @@ model AcsChatMessageEventBaseProperties extends AcsChatEventBaseProperties {
senderDisplayName?: string;

/** The original compose time of the message */
@madeRequired(ServiceApiVersions.v2024_01_01)
composeTime: utcDateTime;

/** The type of the message */
Expand All @@ -933,6 +955,7 @@ model AcsChatMessageEventInThreadBaseProperties
senderDisplayName?: string;

/** The original compose time of the message */
@madeRequired(ServiceApiVersions.v2024_01_01)
composeTime: utcDateTime;

/** The type of the message */
Expand Down Expand Up @@ -986,6 +1009,7 @@ model AcsSmsEventBaseProperties {
/** Schema for details of a delivery attempt */
model AcsSmsDeliveryAttemptProperties {
/** TimeStamp when delivery was attempted */
@madeRequired(ServiceApiVersions.v2024_01_01)
timestamp: utcDateTime;

/** Number of segments that were successfully delivered */
Expand Down Expand Up @@ -1253,6 +1277,7 @@ model AcsMessageEventData {
to?: string;

/** The time message was received */
@madeRequired(ServiceApiVersions.v2024_01_01)
receivedTimeStamp: utcDateTime;

/** The channel event error */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@typespec/versioning";
using TypeSpec.Versioning;
/** Describes the schema of the Azure Container Registry events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents;

Expand Down Expand Up @@ -26,6 +28,7 @@ alias ContainerRegistryBaseEventData = {
id?: string;

/** The time at which the event occurred. */
@madeRequired(ServiceApiVersions.v2024_01_01)
timestamp: utcDateTime;

/** The action that encompasses the provided event. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
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 @@ -28,6 +26,7 @@ namespace Microsoft.EventGrid.SystemEvents {
stageName: DataBoxStageName;

/** The time at which the stage happened. */
@madeRequired(ServiceApiVersions.v2024_01_01)
stageTime: utcDateTime;
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
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 @@ -98,13 +96,15 @@ model EventGridMQTTClientCreatedOrUpdatedEventData

/** Time the client resource is created based on the provider's UTC time. */
// FIXME: (utcDateTime) Please double check that this is the correct type for your scenario.
@madeRequired(ServiceApiVersions.v2024_01_01)
createdOn: utcDateTime;

/**
Time the client resource is last updated based on the provider's UTC time. If
the client resource was never updated, this value is identical to the value of
the 'createdOn' property.
*/
@madeRequired(ServiceApiVersions.v2024_01_01)
updatedOn: utcDateTime;

/** The key-value attributes that are assigned to the client resource. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@typespec/versioning";
using TypeSpec.Versioning;
/** Describes the schema of the Azure EventHub events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents;

Expand Down Expand Up @@ -25,8 +27,10 @@ model EventHubCaptureFileCreatedEventData {
lastSequenceNumber?: int32;

/** The first time from the queue. */
@madeRequired(ServiceApiVersions.v2024_01_01)
firstEnqueueTime: utcDateTime;

/** The last time from the queue. */
@madeRequired(ServiceApiVersions.v2024_01_01)
lastEnqueueTime: utcDateTime;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@typespec/versioning";
using TypeSpec.Versioning;
/** Describes the schema of the Azure Machine Learning Services events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
namespace Microsoft.EventGrid.SystemEvents;

Expand Down Expand Up @@ -82,9 +84,11 @@ model MachineLearningServicesDatasetDriftDetectedEventData {
driftCoefficient?: float64;

/** The start time of the target dataset time series that resulted in drift detection. */
@madeRequired(ServiceApiVersions.v2024_01_01)
startTime: utcDateTime;

/** The end time of the target dataset time series that resulted in drift detection. */
@madeRequired(ServiceApiVersions.v2024_01_01)
endTime: utcDateTime;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@typespec/versioning";
using TypeSpec.Versioning;
/** Describes the schema of the Azure Policy 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.PolicyInsights.PolicyStateCreated event. */
Expand All @@ -17,6 +19,7 @@ namespace Microsoft.EventGrid.SystemEvents {

alias PolicyInsightsBaseEventData = {
/** The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. */
@madeRequired(ServiceApiVersions.v2024_01_01)
timestamp: utcDateTime;

/** The resource ID of the policy assignment. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@typespec/versioning";
using TypeSpec.Versioning;
/**
Describes the schema of the Health Resources events published to Azure Event
Grid. This corresponds to the Data property of an EventGridEvent.
Expand Down Expand Up @@ -54,6 +56,7 @@ model ResourceNotificationsResourceUpdatedDetails {
model ResourceNotificationsOperationalDetails {
/** Date and Time when resource was updated */
// FIXME: (utcDateTime) Please double check that this is the correct type for your scenario.
@madeRequired(ServiceApiVersions.v2024_01_01)
resourceEventTime: utcDateTime;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@typespec/versioning";
using TypeSpec.Versioning;
/** Describes the schema of the Azure SignalR Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "Modeling after service swagger."
namespace Microsoft.EventGrid.SystemEvents {
Expand All @@ -18,6 +20,7 @@ namespace Microsoft.EventGrid.SystemEvents {

alias SignalRServiceBaseEventdata = {
/** The time at which the event occurred. */
@madeRequired(ServiceApiVersions.v2024_01_01)
timestamp: utcDateTime;

/** The hub of connected client connection. */
Expand Down
Loading