forked from ukparliament/Photo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds mime type handling to format parameter. Adds PDF output. Handles cache only request with no response body. Fixes downloading so it works with caching. New not found image is better aligned.
- Loading branch information
Showing
12 changed files
with
1,239 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
let formatEvents = customEvents | ||
| where cloud_RoleName contains "photo" | ||
| where isnotempty(customDimensions.["format"]) | ||
| extend format = customDimensions.["format"]; | ||
requests | ||
| where success == true | ||
| where url contains "/photo/" | ||
| join formatEvents on $left.operation_Id == $right.operation_Id | ||
| extend parameters = parseurl(url).["Query Parameters"] | ||
| project format = tostring(format), crop = tostring(parameters.["crop"]), width = toint(parameters.["width"]), height = toint(parameters.["height"]), quality = toint(parameters.["quality"]) | ||
| summarize total = count() by format, crop, width, height, quality | ||
| where total > 1000 | ||
| order by total desc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.