Skip to content

Commit

Permalink
Microsoft.OperationalInsights: Adding table migrate. (Azure#17654)
Browse files Browse the repository at this point in the history
* Microsoft.OperationalInsights: Adding table migrate.

* Better description for migrate.
  • Loading branch information
dulikvor authored and FredericHeem committed Mar 7, 2022
1 parent cbacb71 commit 2b0849e
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,48 @@
"final-state-via": "azure-async-operation"
}
}
},
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate": {
"post": {
"tags": [
"Tables"
],
"x-ms-examples": {
"TablesGet": {
"$ref": "./examples/TablesMigrate.json"
}
},
"operationId": "Tables_Migrate",
"description": "Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to support of Data Collection Rule-based Custom Logs.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/TableNameParameter"
}
],
"responses": {
"200": {
"description": "OK response definition."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -532,7 +574,7 @@
},
"description": {
"type": "string",
"description": "Search results table's Description."
"description": "Search job Description."
},
"limit": {
"type": "integer",
Expand All @@ -552,7 +594,7 @@
"sourceTable": {
"readOnly": true,
"type": "string",
"description": "The table to search data from."
"description": "The table used in the search job."
}
},
"description": "Parameters of the search job that initiated this table."
Expand All @@ -571,7 +613,6 @@
"description": "The timestamp to end the restore by (UTC)."
},
"sourceTable": {
"readOnly": true,
"type": "string",
"description": "The table to restore data from."
}
Expand Down Expand Up @@ -604,14 +645,14 @@
"format": "int32",
"minimum": 4,
"maximum": 730,
"description": "The data table data retention in days, between 4 and 730. Setting this property to null will default to the workspace retention."
"description": "The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention."
},
"totalRetentionInDays": {
"type": "integer",
"format": "int32",
"minimum": 4,
"maximum": 2555,
"description": "The table data total retention in days, between 4 and 2555. Setting this property to null will default to table retention."
"description": "The table total retention in days, between 4 and 2555. Setting this property to -1 will default to table retention."
},
"archiveRetentionInDays": {
"readOnly": true,
Expand All @@ -633,7 +674,7 @@
},
"plan": {
"type": "string",
"description": "The table plan.",
"description": "Instruct the system how to handle and charge the logs ingested to this table.",
"enum": [
"Basic",
"Analytics"
Expand All @@ -644,11 +685,11 @@
"values": [
{
"value": "Basic",
"description": "Basic - logs that are adjusted to support high volume / low value verbose logs."
"description": "Logs that are adjusted to support high volume low value verbose logs."
},
{
"value": "Analytics",
"description": "Analytics - logs that allow monitoring and analytics."
"description": "Logs that allow monitoring and analytics."
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"resourceGroupName": "oiautorest6685",
"workspaceName": "oiautorest6685",
"api-version": "2021-12-01-preview",
"subscriptionId": "00000000-0000-0000-0000-00000000000",
"tableName": "table1_CL"
},
"responses": {
"200": {}
}
}

0 comments on commit 2b0849e

Please sign in to comment.