Skip to content

Commit

Permalink
Updated schema to support run summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-mohammedali committed Oct 31, 2024
1 parent 20b3f44 commit 9c4673e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ namespace Microsoft.EventGrid.SystemEvents {
/** The time the policy task was scheduled. */
scheduleTime?: string;

/** Policy execution summary which shows the completion status of a LCM run" */
policyRunSummary: StorageLifecyclePolicyRunSummary;

/** Execution statistics of a specific policy action in a Blob Management cycle. */
deleteSummary: StorageLifecyclePolicyActionSummaryDetail;

Expand All @@ -208,6 +211,12 @@ namespace Microsoft.EventGrid.SystemEvents {
errorList?: string;
}

/** Policy run status of an account in a Blob Management cycle. */
model StorageLifecyclePolicyRunSummary {
/** Policy status can be Completed/CompletedWithError/Incomplete. */
completionStatus?: string;
}

/** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobTierChanged event. */
model StorageBlobTierChangedEventData {
/** The name of the API/operation that triggered this event. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8526,6 +8526,10 @@
"type": "string",
"description": "The time the policy task was scheduled."
},
"policyRunSummary": {
"$ref": "#/definitions/StorageLifecyclePolicyRunSummary",
"description": "Policy execution summary which shows the completion status of a LCM run\""
},
"deleteSummary": {
"$ref": "#/definitions/StorageLifecyclePolicyActionSummaryDetail",
"description": "Execution statistics of a specific policy action in a Blob Management cycle."
Expand All @@ -8544,12 +8548,23 @@
}
},
"required": [
"policyRunSummary",
"deleteSummary",
"tierToCoolSummary",
"tierToArchiveSummary",
"tierToColdSummary"
]
},
"StorageLifecyclePolicyRunSummary": {
"type": "object",
"description": "Policy run status of an account in a Blob Management cycle.",
"properties": {
"completionStatus": {
"type": "string",
"description": "Policy status can be Completed/CompletedWithError/Incomplete."
}
}
},
"StorageTaskAssignmentCompletedEventData": {
"type": "object",
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentCompleted event.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8670,6 +8670,10 @@
"type": "string",
"description": "The time the policy task was scheduled."
},
"policyRunSummary": {
"$ref": "#/definitions/StorageLifecyclePolicyRunSummary",
"description": "Policy execution summary which shows the completion status of a LCM run\""
},
"deleteSummary": {
"$ref": "#/definitions/StorageLifecyclePolicyActionSummaryDetail",
"description": "Execution statistics of a specific policy action in a Blob Management cycle."
Expand All @@ -8688,12 +8692,23 @@
}
},
"required": [
"policyRunSummary",
"deleteSummary",
"tierToCoolSummary",
"tierToArchiveSummary",
"tierToColdSummary"
]
},
"StorageLifecyclePolicyRunSummary": {
"type": "object",
"description": "Policy run status of an account in a Blob Management cycle.",
"properties": {
"completionStatus": {
"type": "string",
"description": "Policy status can be Completed/CompletedWithError/Incomplete."
}
}
},
"StorageTaskAssignmentCompletedEventData": {
"type": "object",
"description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.StorageTaskAssignmentCompleted event.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@
"description": "The time the policy task was scheduled.",
"type": "string"
},
"policyRunSummary": {
"$ref": "#/definitions/StorageLifecyclePolicyRunSummary"
},
"deleteSummary": {
"$ref": "#/definitions/StorageLifecyclePolicyActionSummaryDetail"
},
Expand Down

0 comments on commit 9c4673e

Please sign in to comment.