-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Adding iperf APIs #14714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Adding iperf APIs #14714
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7b43103
Adding iperf APIs
dsgouda c8840ba
Addressing review comments
dsgouda cf7097d
Addressing PR comments
dsgouda f2ffaf1
Removing APIs unimplemented in Sterling
dsgouda e7742c9
Fixing resource schemas
dsgouda 7a3eeb8
Fixing linting errors
dsgouda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
341 changes: 341 additions & 0 deletions
341
...-manager/Microsoft.DBforPostgreSQL/preview/2021-06-01-preview/IntelligentPerformance.json
This file contains hidden or 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,341 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "PostgreSQLServerManagementClient", | ||
| "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.", | ||
| "version": "2021-06-01-preview" | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advisors/{advisorName}": { | ||
| "get": { | ||
| "tags": [ | ||
| "Advisors" | ||
| ], | ||
| "operationId": "Advisors_Get", | ||
| "x-ms-examples": { | ||
| "AdvisorsGet": { | ||
| "$ref": "./examples/AdvisorsGet.json" | ||
| } | ||
| }, | ||
| "description": "Get a recommendation action advisor.", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ServerNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/AdvisorNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/Advisor" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advisors": { | ||
| "get": { | ||
| "tags": [ | ||
| "Advisors" | ||
| ], | ||
| "operationId": "Advisors_ListByServer", | ||
| "x-ms-examples": { | ||
| "AdvisorsListByServer": { | ||
| "$ref": "./examples/AdvisorsListByServer.json" | ||
| } | ||
| }, | ||
| "description": "List recommendation action advisors.", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ServerNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/AdvisorsResultList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/advisors/{advisorName}/recommendedActions": { | ||
| "get": { | ||
| "tags": [ | ||
| "RecommendedActions" | ||
| ], | ||
| "operationId": "RecommendedActions_ListByServer", | ||
| "x-ms-examples": { | ||
| "RecommendedActionsListByServer": { | ||
| "$ref": "./examples/RecommendedActionsListByServer.json" | ||
| } | ||
| }, | ||
| "description": "Retrieve recommended actions from the advisor.", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ServerNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/AdvisorNameParameter" | ||
| }, | ||
| { | ||
| "name": "sessionId", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "string", | ||
| "description": "The recommendation action session identifier." | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "OK", | ||
| "schema": { | ||
| "$ref": "#/definitions/RecommendationActionsResultList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "AdvisorProperties": { | ||
| "type": "object", | ||
| "properties": {}, | ||
| "description": "The properties of a recommendation action advisor." | ||
| }, | ||
| "Advisor": { | ||
dsgouda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "object", | ||
| "properties": { | ||
| "properties": { | ||
| "$ref": "#/definitions/AdvisorProperties", | ||
| "x-ms-client-flatten": true, | ||
| "description": "The properties of a recommendation action advisor." | ||
| } | ||
| }, | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" | ||
| } | ||
| ], | ||
| "readOnly": true, | ||
| "description": "Represents a recommendation action advisor." | ||
| }, | ||
| "AdvisorsResultList": { | ||
| "description": "A list of query statistics.", | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "description": "The list of recommendation action advisors.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/Advisor" | ||
| }, | ||
| "readOnly": true | ||
| }, | ||
| "nextLink": { | ||
| "description": "Link to retrieve next page of results.", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "RecommendationActionProperties": { | ||
| "type": "object", | ||
| "properties": { | ||
| "advisorName": { | ||
| "type": "string", | ||
| "description": "Advisor name." | ||
| }, | ||
| "sessionId": { | ||
| "type": "string", | ||
| "description": "Recommendation action session identifier." | ||
| }, | ||
| "actionId": { | ||
| "type": "integer", | ||
| "format": "int32", | ||
| "description": "Recommendation action identifier." | ||
| }, | ||
| "createdTime": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "Recommendation action creation time." | ||
| }, | ||
| "expirationTime": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "Recommendation action expiration time." | ||
| }, | ||
| "reason": { | ||
| "type": "string", | ||
| "description": "Recommendation action reason." | ||
| }, | ||
| "recommendationType": { | ||
| "type": "string", | ||
| "description": "Recommendation action type." | ||
| }, | ||
| "details": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| }, | ||
| "description": "Recommendation action details." | ||
| } | ||
| }, | ||
| "description": "The properties of a recommendation action." | ||
| }, | ||
| "RecommendationAction": { | ||
dsgouda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "object", | ||
| "properties": { | ||
| "properties": { | ||
| "$ref": "#/definitions/RecommendationActionProperties", | ||
| "x-ms-client-flatten": true, | ||
| "description": "The properties of a recommendation action." | ||
| } | ||
| }, | ||
| "allOf": [ | ||
| { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" | ||
| } | ||
| ], | ||
| "readOnly": true, | ||
| "description": "Represents a Recommendation Action." | ||
| }, | ||
| "RecommendationActionsResultList": { | ||
| "description": "A list of recommendation actions.", | ||
| "type": "object", | ||
| "properties": { | ||
| "value": { | ||
| "description": "The list of recommendation action advisors.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/RecommendationAction" | ||
| }, | ||
| "readOnly": true | ||
| }, | ||
| "nextLink": { | ||
| "description": "Link to retrieve next page of results.", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "CloudError": { | ||
| "x-ms-external": true, | ||
| "properties": { | ||
| "error": { | ||
| "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" | ||
| } | ||
| }, | ||
| "description": "An error response from the Batch service." | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "ServerNameParameter": { | ||
| "name": "serverName", | ||
| "in": "path", | ||
| "description": "The name of the server.", | ||
| "required": true, | ||
| "type": "string", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "AdvisorNameParameter": { | ||
| "name": "advisorName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The advisor name for recommendation action.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "RecommendedActionNameParameter": { | ||
| "name": "recommendedActionName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The recommended action name.", | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.