@@ -90,9 +90,14 @@ Use the **Tables - Update** API to create the table with the following PowerShel
90
90
"description": "Additional message properties"
91
91
},
92
92
{
93
- "name": "ExtendedColumn ",
93
+ "name": "CounterName ",
94
94
"type": "string",
95
- "description": "An additional column extended at ingestion time"
95
+ "description": "Name of the counter"
96
+ },
97
+ {
98
+ "name": "CounterName",
99
+ "type": "string",
100
+ "description": "Value collected for the counter"
96
101
}
97
102
]
98
103
}
@@ -214,12 +219,6 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines the schema of
214
219
},
215
220
"location": {
216
221
"type": "string",
217
- "defaultValue": "westus2",
218
- "allowedValues": [
219
- "westus2",
220
- "eastus2",
221
- "eastus2euap"
222
- ],
223
222
"metadata": {
224
223
"description": "Specifies the location in which to create the Data Collection Rule."
225
224
}
@@ -279,7 +278,7 @@ The [DCR](../essentials/data-collection-rule-overview.md) defines the schema of
279
278
"destinations": [
280
279
"clv2ws1"
281
280
],
282
- "transformKql": "source | extend jsonContext = parse_json(AdditionalContext) | project TimeGenerated = Time, Computer, AdditionalContext = jsonContext, ExtendedColumn =tostring(jsonContext.CounterName)",
281
+ "transformKql": "source | extend jsonContext = parse_json(AdditionalContext) | project TimeGenerated = Time, Computer, AdditionalContext = jsonContext, CounterName =tostring(jsonContext.CounterName), CounterValue=jsonContext.CounterValue ",
283
282
"outputStream": "Custom-MyTable_CL"
284
283
}
285
284
]
@@ -405,7 +404,7 @@ The following PowerShell code sends data to the endpoint by using HTTP REST fund
405
404
##################
406
405
$body = $staticData;
407
406
$headers = @{"Authorization"="Bearer $bearerToken";"Content-Type"="application/json"};
408
- $uri = "$dceEndpoint/dataCollectionRules/$dcrImmutableId/streams/$streamName?api-version=2021-11-01-preview"
407
+ $uri = "$dceEndpoint/dataCollectionRules/$dcrImmutableId/streams/$($ streamName) ?api-version=2021-11-01-preview"
409
408
410
409
$uploadResponse = Invoke-RestMethod -Uri $uri -Method "Post" -Body $body -Headers $headers
411
410
```
0 commit comments