Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
aabb04b
Adding Online Experimentation data plane API.
smichtch Mar 11, 2025
cbace4f
Use @visibility(Lifecycle.Read) instead of @visibility("read").
smichtch Mar 11, 2025
57d1e95
Use examples-dir instead of examples-directory
smichtch Mar 11, 2025
2553f44
Fix tsp format.
smichtch Mar 11, 2025
4a6c846
Fix tspconfig.
smichtch Mar 11, 2025
045fd33
Add Swagger to SDK section in readme.md
smichtch Mar 12, 2025
b0a9470
Sync 2025-05-31-preview API version.
smichtch Mar 12, 2025
7ecfc5a
Fix tsv errors.
smichtch Mar 12, 2025
b3c120b
Update readme for SDK generation.
smichtch Mar 12, 2025
c2d67bb
Update endpoint URL.
smichtch Mar 12, 2025
004b546
Update SDK generation parameters.
smichtch Mar 13, 2025
2668932
Update @azure-tools/typespec-go configuration.
smichtch Mar 14, 2025
a8990dd
Fix @azure-tools/typespec-java parameters.
smichtch Mar 15, 2025
ba27bcf
Add default tag in readme.md
smichtch Mar 15, 2025
9a85684
Fix REST API examples: time format in HTTP caching headers.
smichtch Mar 15, 2025
6545bd7
Update configuration for Python SDK
msyyc Mar 19, 2025
60b3ada
Updates based on SDK review feedback, plus fix warnings.
smichtch Mar 20, 2025
0de29fc
Update @doc() comments.
smichtch Mar 27, 2025
3e5d940
Fix warnings in examples.
smichtch Mar 27, 2025
d1dd441
Merge branch 'main' into feature/online-experimentation
smichtch Mar 31, 2025
921f6d0
Add "analytics" prefix to TypeScript package name.
smichtch Apr 9, 2025
9739743
Merge branch 'main' into feature/online-experimentation
smichtch Apr 9, 2025
06ad942
Remove parameters/dependencies from tspconfig.yaml
smichtch Apr 9, 2025
fc3150b
Disable SDK generation from OpenAPI specs per https://aka.ms/azsdk/sp…
smichtch Apr 9, 2025
8bf69ce
Revert https://aka.ms/autorest to bare URL to fix `NOT_AUTOREST_MARKD…
smichtch Apr 9, 2025
e69ddd0
Fix TypeScript package-dir.
smichtch Apr 10, 2025
30eb35d
Enable extensible enums feature in TypeScript SDK.
smichtch Apr 10, 2025
adbc526
Change validateMetric to a ResourceCollectionAction
smichtch Apr 11, 2025
94b4b75
Java SDK set partial-update: true
smichtch Apr 14, 2025
152e731
Cleanup.
smichtch Apr 15, 2025
87cbd37
Disable generate-samples and generate-test for python.
smichtch Apr 15, 2025
b5d4817
Merge branch 'main' into feature/online-experimentation
smichtch Apr 16, 2025
0f7c49f
Enable generate-metadata: true for @azure-tools/typespec-ts (needed u…
smichtch Apr 16, 2025
5dd9df1
Change percentile from int32 to float64.
smichtch Apr 16, 2025
f29d05c
Remove "analytics" grouping from python package name.
smichtch Apr 17, 2025
4641d78
Merge branch 'main' into feature/online-experimentation
smichtch Apr 17, 2025
cf7651f
Fix cspell.yaml syntax
smichtch Apr 17, 2025
d9aa329
Revert "Remove "analytics" grouping from python package name."
smichtch Apr 18, 2025
d1fdd0e
Replace ValidationResult with boolean.
smichtch Apr 18, 2025
9cc22b4
Merge branch 'main' into feature/online-experimentation
smichtch Apr 19, 2025
e1a7980
Update specification/onlineexperimentation/Azure.Analytics.OnlineExpe…
smichtch Apr 21, 2025
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
@@ -0,0 +1,10 @@
import "@azure-tools/typespec-client-generator-core";
import "./main.tsp";

using Azure.ClientGenerator.Core;

// @typespec/http-client-csharp: Convenience method is not supported for PATCH method.
@@convenientAPI(Azure.Analytics.OnlineExperimentation.createOrUpdateMetric,
false,
"csharp"
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"title": "CreateOrUpdateMetric_Average",
"operationId": "CreateOrUpdateMetric",
"parameters": {
"experimentMetricId": "avg_purchase_revenue",
"api-version": "2025-05-31-preview",
"If-Match": "vxexdn",
"If-None-Match": "ijchzdh",
"If-Unmodified-Since": "Thu, 22 Aug 2024 02:02:11 GMT",
"If-Modified-Since": "Thu, 22 Aug 2024 02:02:11 GMT",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000",
"resource": {
"displayName": "Average revenue per purchase [USD]",
"description": "The average revenue per purchase transaction in USD. Refund transactions are excluded from this metric. The total revenue might increase while this metric decreases if the number of purchases increases.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Increase",
"definition": {
"type": "Average",
"value": {
"eventName": "Transaction",
"eventProperty": "Revenue",
"filter": "Revenue > 0"
}
}
}
},
"responses": {
"200": {
"headers": {
"ETag": "ETag",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"body": {
"id": "avg_purchase_revenue",
"displayName": "Average revenue per purchase [USD]",
"description": "The average revenue per purchase transaction in USD. Refund transactions are excluded from this metric. The total revenue might increase while this metric decreases if the number of purchases increases.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Increase",
"definition": {
"type": "Average",
"value": {
"eventName": "Transaction",
"eventProperty": "Revenue",
"filter": "Revenue > 0"
}
},
"eTag": "ckswkavwgassdlocwuzxz",
"lastModifiedAt": "2024-08-28T20:27:13.652Z"
}
},
"201": {
"headers": {
"ETag": "ETag",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"body": {
"id": "avg_purchase_revenue",
"displayName": "Average revenue per purchase [USD]",
"description": "The average revenue per purchase transaction in USD. Refund transactions are excluded from this metric. The total revenue might increase while this metric decreases if the number of purchases increases.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Increase",
"definition": {
"type": "Average",
"value": {
"eventName": "Transaction",
"eventProperty": "Revenue",
"filter": "Revenue > 0"
}
},
"eTag": "ckswkavwgassdlocwuzxz",
"lastModifiedAt": "2024-08-28T20:27:13.652Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"title": "CreateOrUpdateMetric_EventCount",
"operationId": "CreateOrUpdateMetric",
"parameters": {
"experimentMetricId": "events_purchase_creditcard",
"api-version": "2025-05-31-preview",
"If-Match": "vxexdn",
"If-None-Match": "ijchzdh",
"If-Unmodified-Since": "Thu, 22 Aug 2024 02:02:11 GMT",
"If-Modified-Since": "Thu, 22 Aug 2024 02:02:11 GMT",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000",
"resource": {
"displayName": "Number of purchases (credit card)",
"description": "The number of purchase transactions made with credit card. Refund transactions are excluded from this metric.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Increase",
"definition": {
"type": "EventCount",
"event": {
"eventName": "Transaction",
"filter": "Revenue > 0 and ['payment.method'] == 'credit_card'"
}
}
}
},
"responses": {
"200": {
"headers": {
"ETag": "ETag",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"body": {
"id": "events_purchase_creditcard",
"displayName": "Number of purchases (credit card)",
"description": "The number of purchase transactions made with credit card. Refund transactions are excluded from this metric.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Increase",
"definition": {
"type": "EventCount",
"event": {
"eventName": "Transaction",
"filter": "Revenue > 0 and ['payment.method'] == 'credit_card'"
}
},
"eTag": "ckswkavwgassdlocwuzxz",
"lastModifiedAt": "2024-08-28T20:27:13.652Z"
}
},
"201": {
"headers": {
"ETag": "ETag",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"body": {
"id": "events_purchase_creditcard",
"displayName": "Number of purchases (credit card)",
"description": "The number of purchase transactions made with credit card. Refund transactions are excluded from this metric.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Increase",
"definition": {
"type": "EventCount",
"event": {
"eventName": "Transaction",
"filter": "Revenue > 0 and ['payment.method'] == 'credit_card'"
}
},
"eTag": "ckswkavwgassdlocwuzxz",
"lastModifiedAt": "2024-08-28T20:27:13.652Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"title": "CreateOrUpdateMetric_EventRate",
"operationId": "CreateOrUpdateMetric",
"parameters": {
"experimentMetricId": "rate_refund",
"api-version": "2025-05-31-preview",
"If-Match": "vxexdn",
"If-None-Match": "ijchzdh",
"If-Unmodified-Since": "Thu, 22 Aug 2024 02:02:11 GMT",
"If-Modified-Since": "Thu, 22 Aug 2024 02:02:11 GMT",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000",
"resource": {
"displayName": "Refund rate",
"description": "The percentage of transactions that are refunds. This metric is calculated as the number of refund transactions divided by the total number of transactions.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Neutral",
"definition": {
"type": "EventRate",
"event": {
"eventName": "Transaction"
},
"rateCondition": "Revenue < 0"
}
}
},
"responses": {
"200": {
"headers": {
"ETag": "ETag",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"body": {
"id": "rate_refund",
"displayName": "Refund rate",
"description": "The percentage of transactions that are refunds. This metric is calculated as the number of refund transactions divided by the total number of transactions.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Neutral",
"definition": {
"type": "EventRate",
"event": {
"eventName": "Transaction"
},
"rateCondition": "Revenue < 0"
},
"eTag": "ckswkavwgassdlocwuzxz",
"lastModifiedAt": "2024-08-28T20:27:13.652Z"
}
},
"201": {
"headers": {
"ETag": "ETag",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"body": {
"id": "rate_refund",
"displayName": "Refund rate",
"description": "The percentage of transactions that are refunds. This metric is calculated as the number of refund transactions divided by the total number of transactions.",
"lifecycle": "Active",
"categories": [
"Monetization"
],
"desiredDirection": "Neutral",
"definition": {
"type": "EventRate",
"event": {
"eventName": "Transaction"
},
"rateCondition": "Revenue < 0"
},
"eTag": "ckswkavwgassdlocwuzxz",
"lastModifiedAt": "2024-08-28T20:27:13.652Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"title": "CreateOrUpdateMetric_Percentile",
"operationId": "CreateOrUpdateMetric",
"parameters": {
"experimentMetricId": "p95_page_load_time",
"api-version": "2025-05-31-preview",
"If-Match": "vxexdn",
"If-None-Match": "ijchzdh",
"If-Unmodified-Since": "Thu, 22 Aug 2024 02:02:11 GMT",
"If-Modified-Since": "Thu, 22 Aug 2024 02:02:11 GMT",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000",
"resource": {
"displayName": "95th percentile of page load time [ms]",
"description": "The 95th percentile of the page load time for all pages. Measured in milliseconds. Review page-specific metric results to identify pages that need optimization.",
"lifecycle": "Active",
"categories": [
"Performance",
"Important"
],
"desiredDirection": "Decrease",
"definition": {
"type": "Percentile",
"value": {
"eventName": "PageLoad",
"eventProperty": "LoadTime_ms"
},
"percentile": 95
}
}
},
"responses": {
"200": {
"headers": {
"ETag": "ETag",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"body": {
"id": "p95_page_load_time",
"displayName": "95th percentile of page load time [ms]",
"description": "The 95th percentile of the page load time for all pages. Measured in milliseconds. Review page-specific metric results to identify pages that need optimization.",
"lifecycle": "Active",
"categories": [
"Performance",
"Important"
],
"desiredDirection": "Decrease",
"definition": {
"type": "Percentile",
"value": {
"eventName": "PageLoad",
"eventProperty": "LoadTime_ms"
},
"percentile": 95
},
"eTag": "ckswkavwgassdlocwuzxz",
"lastModifiedAt": "2024-08-28T20:27:13.652Z"
}
},
"201": {
"headers": {
"ETag": "ETag",
"x-ms-client-request-id": "00000000-0000-0000-0000-000000000000"
},
"body": {
"id": "p95_page_load_time",
"displayName": "95th percentile of page load time [ms]",
"description": "The 95th percentile of the page load time for all pages. Measured in milliseconds. Review page-specific metric results to identify pages that need optimization.",
"lifecycle": "Active",
"categories": [
"Performance",
"Important"
],
"desiredDirection": "Decrease",
"definition": {
"type": "Percentile",
"value": {
"eventName": "PageLoad",
"eventProperty": "LoadTime_ms"
},
"percentile": 95
},
"eTag": "ckswkavwgassdlocwuzxz",
"lastModifiedAt": "2024-08-28T20:27:13.652Z"
}
}
}
}
Loading
Loading