-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial setup of Personalizer SDK * Add readme.md * fix some comments * Fix readme.md * fix enums and examples, work in progress * handle error codes * fix typos * resolve comments * using UTF-8 encoding * checking formatted Personalizer.json * use ASCII * use parameter names * remove example from definitions * Update examples * update operation names to noun_verb format * update generated swagger * deleting earlier example files * add back application/octet-stream * Change model type back to file * Update readonly properties * Update readonly properties * remove IActionResult
- Loading branch information
Showing
19 changed files
with
1,539 additions
and
0 deletions.
There are no files selected for viewing
1,052 changes: 1,052 additions & 0 deletions
1,052
specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/Personalizer.json
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
...n/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Evaluations_Create.json
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,38 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"evaluation": { | ||
"enableOfflineExperimentation": true, | ||
"name": "myFirstEvaluation", | ||
"startTime": "2018-12-19T00:00:00Z", | ||
"endTime": "2019-01-19T00:00:00Z", | ||
"policies": [ | ||
{ | ||
"name": "Custom Policy 1", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5" | ||
} | ||
] | ||
}, | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a", | ||
"name": "myFirstEvaluation", | ||
"startTime": "2018-12-19T00:00:00Z", | ||
"endTime": "2019-01-19T00:00:00Z", | ||
"status": "completed", | ||
"policyResults": [ | ||
{ | ||
"name": "Custom Policy 1", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5" | ||
} | ||
] | ||
}, | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...n/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Evaluations_Delete.json
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,15 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"evaluationId": "id", | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"204": { | ||
"body": "", | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...tion/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Evaluations_Get.json
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,59 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"evaluationId": "id", | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a", | ||
"name": "myFirstEvaluation", | ||
"startTime": "2018-12-19T00:00:00Z", | ||
"endTime": "2019-01-19T00:00:00Z", | ||
"status": "completed", | ||
"policyResults": [ | ||
{ | ||
"name": "Custom Policy 1", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5", | ||
"summary": [ | ||
{ | ||
"timeStamp": "2018-12-19T00:00:00Z", | ||
"ipsEstimatorNumerator": 0.0, | ||
"ipsEstimatorDenominator": 170.0, | ||
"snipsEstimatorDenominator": 308.25, | ||
"aggregateTimeWindow": "00:00:00", | ||
"nonZeroProbability": 64.0, | ||
"confidenceInterval": 0.0, | ||
"sumOfSquares": 0.0 | ||
}, | ||
{ | ||
"timeStamp": "2018-12-19T00:05:00Z", | ||
"ipsEstimatorNumerator": 2.2, | ||
"ipsEstimatorDenominator": 196.0, | ||
"snipsEstimatorDenominator": 193.761, | ||
"aggregateTimeWindow": "00:00:00", | ||
"nonZeroProbability": 68.0, | ||
"confidenceInterval": 1.1009, | ||
"sumOfSquares": 2.424 | ||
} | ||
], | ||
"totalSummary": { | ||
"timeStamp": "2019-01-19T00:00:00Z", | ||
"ipsEstimatorNumerator": 22.2, | ||
"ipsEstimatorDenominator": 1906.0, | ||
"snipsEstimatorDenominator": 1993.761, | ||
"aggregateTimeWindow": "00:00:00", | ||
"nonZeroProbability": 68.0, | ||
"confidenceInterval": 1.1209, | ||
"sumOfSquares": 2.484 | ||
} | ||
} | ||
] | ||
}, | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...ion/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Evaluations_List.json
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,38 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": [ | ||
{ | ||
"id": "b58c6d92-b727-48c1-9487-4be2782c9e0a", | ||
"name": "myFirstEvaluation", | ||
"startTime": "2018-11-19T00:00:00Z", | ||
"endTime": "2018-12-19T00:00:00Z", | ||
"status": "pending", | ||
"policyResults": [ | ||
{ | ||
"name": "Custom Policy 1", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "21d03972-9130-4be9-8c8b-8ac3ec9b9dd1", | ||
"name": "mySecondEvaluation", | ||
"startTime": "2018-12-19T00:00:00Z", | ||
"endTime": "2019-01-19T00:00:00Z", | ||
"status": "pending", | ||
"policyResults": [ | ||
|
||
] | ||
} | ||
], | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...tion/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Activate.json
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,15 @@ | ||
{ | ||
"parameters": { | ||
"eventId": "id", | ||
"Endpoint": "{Endpoint}", | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"204": { | ||
"body": "", | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...fication/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Rank.json
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,69 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"rankRequest": { | ||
"contextFeatures": [ | ||
{ | ||
"timeOfDay": "Morning" | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"id": "NewsArticle", | ||
"features": [ | ||
{ | ||
"type": "News" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "SportsArticle", | ||
"features": [ | ||
{ | ||
"type": "Sports" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "EntertainmentArticle", | ||
"features": [ | ||
{ | ||
"type": "Entertainment" | ||
} | ||
] | ||
} | ||
], | ||
"excludedActions": [ | ||
"SportsArticle" | ||
], | ||
"eventId": "75269AD0-BFEE-4598-8196-C57383D38E10", | ||
"deferActivation": false | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"ranking": [ | ||
{ | ||
"id": "EntertainmentArticle", | ||
"probability": 0.8 | ||
}, | ||
{ | ||
"id": "SportsArticle", | ||
"probability": 0.0 | ||
}, | ||
{ | ||
"id": "NewsArticle", | ||
"probability": 0.2 | ||
} | ||
], | ||
"eventId": "75269AD0-BFEE-4598-8196-C57383D38E10", | ||
"rewardActionId": "EntertainmentArticle" | ||
}, | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...cation/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Events_Reward.json
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,18 @@ | ||
{ | ||
"parameters": { | ||
"eventId": "id", | ||
"Endpoint": "{Endpoint}", | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"reward": { | ||
"value": 1.0 | ||
} | ||
}, | ||
"responses": { | ||
"204": { | ||
"body": "", | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Log_Delete.json
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,14 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"204": { | ||
"body": "", | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...on/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Log_GetProperties.json
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,19 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"dateRange": { | ||
"from": "2019-01-18T16:00:00-08:00", | ||
"to": "2019-02-18T16:00:00-08:00" | ||
} | ||
}, | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ication/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Model_Delete.json
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,14 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"204": { | ||
"body": "", | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
specification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Model_Get.json
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,14 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": "", | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
.../cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Model_GetProperties.json
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,17 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"creationTime": "2019-01-18T16:00:00-08:00", | ||
"lastModifiedTime": "2019-01-18T16:00:00-08:00" | ||
}, | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...cation/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Policy_Delete.json
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,17 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "myPersonalizer", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5" | ||
}, | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ification/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Policy_Get.json
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,17 @@ | ||
{ | ||
"parameters": { | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"Endpoint": "{Endpoint}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "myPersonalizer", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5" | ||
}, | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...cation/cognitiveservices/data-plane/Personalizer/preview/v1.0/examples/Policy_Update.json
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,21 @@ | ||
{ | ||
"parameters": { | ||
"Endpoint": "{Endpoint}", | ||
"policy": { | ||
"name": "myPersonalizer", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5" | ||
}, | ||
"Ocp-Apim-Subscription-Key": "{API key}" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "myPersonalizer", | ||
"arguments": "--cb_explore_adf --epsilon 0.2 --dsjson --cb_type ips -l 0.5 --l1 1E-07 --power_t 0.5" | ||
}, | ||
"header": { | ||
|
||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.