Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Dec 23, 2024
1 parent cc17859 commit 641f901
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 108 deletions.
2 changes: 1 addition & 1 deletion docs/en-US/Connect-Kusto.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand Down
8 changes: 4 additions & 4 deletions docs/en-US/Invoke-KustoControlCommand.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Invokes management commands over an Azure Data Explorer Cluster.
```powershell
Invoke-KustoControlCommand
[-Command] <String>
[-Database <String>]
[[-OutputType] <OutputType>]
[[-Database] <String>]
[-OutputType <OutputType>]
[-RequestProperties <ClientRequestProperties>]
[<CommonParameters>]
```
Expand Down Expand Up @@ -101,7 +101,7 @@ Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -118,7 +118,7 @@ Aliases:
Accepted values: PSObject, Json, Csv, DataTable, Html
Required: False
Position: 1
Position: Named
Default value: PSObject
Accept pipeline input: False
Accept wildcard characters: False
Expand Down
8 changes: 4 additions & 4 deletions docs/en-US/Invoke-KustoQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Invokes a KQL or T-SQL query over an Azure Data Explorer Cluster.
```powershell
Invoke-KustoQuery
[-Query] <String>
[-Database <String>]
[[-OutputType] <OutputType>]
[[-Database] <String>]
[-OutputType <OutputType>]
[-RequestProperties <ClientRequestProperties>]
[<CommonParameters>]
```
Expand Down Expand Up @@ -74,7 +74,7 @@ Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -91,7 +91,7 @@ Aliases:
Accepted values: PSObject, Json, Csv, DataTable, Html
Required: False
Position: 1
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand Down
4 changes: 3 additions & 1 deletion docs/en-US/New-KustoClientRequestProperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ New-KustoClientRequestProperties
## DESCRIPTION

The `New-KustoClientRequestProperties` cmdlet can be used to create a new `ClientRequestProperties` object
to manage the interaction between client and service. This object can be later on passed as argument to the request cmdlets: [`Invoke-KustoControlCommand`](Invoke-KustoControlCommand.md) and [`Invoke-KustoQuery`](Invoke-KustoQuery.md).
to manage the interaction between client and service. This object can be later on passed as argument to the request cmdlets: [`Invoke-KustoControlCommand`](Invoke-KustoControlCommand.md), [`Invoke-KustoQuery`](Invoke-KustoQuery.md),
[`Set-KustoBatchingPolicy`](Set-KustoBatchingPolicy.md) and [`Set-KustoIngestionMapping`](Set-KustoIngestionMapping.md).

The object contains the following information:

Expand Down Expand Up @@ -58,6 +59,7 @@ $requestProps = New-KustoClientRequestProperties -Options @{
request_app_name = 'myApp'
norequesttimeout = $true
}
Invoke-KustoQuery 'SELECT top(10) * FROM MyTable' -RequestProperties $requestProps
```

> [!TIP]
Expand Down
53 changes: 30 additions & 23 deletions docs/en-US/New-KustoColumnMapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,44 @@ New-KustoColumnMapping

## DESCRIPTION

{{ Fill in the Description }}
The `New-KustoColumnMapping` cmdlet is used to create a new object of type `ColumnMapping`, this object can be later on passed as argument to the [`New-KustoIngestionMapping`](New-KustoIngestionMapping.md) cmdlet. See [__Ingestion mappings__](https://learn.microsoft.com/en-us/kusto/management/mappings?view=microsoft-fabric) for more details.

## EXAMPLES

### Example 1
### Example 1: CSV mapping

```powershell
PS C:\> {{ Add example code here }}
$columns = @(
New-KustoColumnMapping event_time -Properties @{ Ordinal = 0 }
New-KustoColumnMapping event_name -Properties @{ Ordinal = 1 }
New-KustoColumnMapping event_type -Properties @{ Ordinal = 2 }
New-KustoColumnMapping ingestion_time -Properties @{ ConstValue = '2023-01-01T10:32:00' }
New-KustoColumnMapping source_location -Properties @{ Transform = 'SourceLocation' })
```

{{ Add example description here }}
Demonstrates how to create columns for a new [__CSV mapping__](https://learn.microsoft.com/en-us/kusto/management/csv-mapping?view=microsoft-fabric).

### Example 2: JSON Mapping

```powershell
$columns = @(
New-KustoColumnMapping event_timestamp -Properties @{Path = '$.Timestamp' }
New-KustoColumnMapping event_name -Properties @{ Path = '$.Event.Name' }
New-KustoColumnMapping event_type -Properties @{ Path = '$.Event.Type' }
New-KustoColumnMapping source_uri -Properties @{ Transform = 'SourceLocation' }
New-KustoColumnMapping source_line -Properties @{ Transform = 'SourceLineNumber' }
New-KustoColumnMapping event_time -Properties @{ Path = '$.Timestamp'; Transform = 'DateTimeFromUnixMilliseconds' }
New-KustoColumnMapping ingestion_time -Properties @{ ConstValue = '2021-01-01T10:32:00' }
New-KustoColumnMapping full_record -Properties @{ Path = '$' })
```

Demonstrates how to create columns for a new [__JSON mapping__](https://learn.microsoft.com/en-us/kusto/management/json-mapping?view=microsoft-fabric).

## PARAMETERS

### -Name

{{ Fill Name Description }}
Specifies the Target column name in the table.

```yaml
Type: String
Expand All @@ -55,7 +76,7 @@ Accept wildcard characters: False
### -Properties
{{ Fill Properties Description }}
Property-bag containing properties specific for each mapping as described in each specific mapping type page.
```yaml
Type: Hashtable
Expand All @@ -71,7 +92,7 @@ Accept wildcard characters: False
### -Type
{{ Fill Type Description }}
Specifies the Datatype with which to create the mapped column if it doesn't already exist in the table.
```yaml
Type: ColumnType
Expand All @@ -86,22 +107,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters.
Expand All @@ -118,3 +123,5 @@ For more information, see [about_CommonParameters](http://go.microsoft.com/fwlin
## NOTES
## RELATED LINKS
[__Ingestion mappings__](https://learn.microsoft.com/en-us/kusto/management/mappings?view=microsoft-fabric)
49 changes: 20 additions & 29 deletions docs/en-US/New-KustoIngestionMapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,53 +9,56 @@ schema: 2.0.0

## SYNOPSIS

{{ Fill in the Synopsis }}
Creates a `IngestionMapping` object.

## SYNTAX

```powershell
New-KustoIngestionMapping
[-Kind <IngestionMappingKind>]
[[-Kind] <IngestionMappingKind>]
[-Reference <String>]
[-Columns <ColumnMapping[]>]
[[-Columns] <ColumnMapping[]>]
[<CommonParameters>]
```

## DESCRIPTION

{{ Fill in the Description }}
The `New-KustoIngestionMapping` is used to create a new object of type `IngestionMapping` that can be later on passed as argument to the [`Invoke-KustoIngestFromStorage`](Invoke-KustoIngestFromStorage.md), [`Invoke-KustoIngestFromStream`](Invoke-KustoIngestFromStream.md) and [`Set-KustoIngestionMapping`](Set-KustoIngestionMapping.md) commands.

## EXAMPLES

### Example 1
### Example 1: Create a new Ingestion Mapping object

```powershell
PS C:\> {{ Add example code here }}
```
$columns = @(
New-KustoColumnMapping ....
New-KustoColumnMapping ....
New-KustoColumnMapping ....)
{{ Add example description here }}
$mapping = New-KustoIngestionMapping -Columns $columns -Kind Json
```

## PARAMETERS

### -Columns

{{ Fill Columns Description }}
Specifies an array of `ColumnMapping` objects to be used with the ingestion mapping. See [`New-KustoColumnMapping`](New-KustoColumnMapping.md) for details on how to create new column mappings.

```yaml
Type: ColumnMapping[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Kind
{{ Fill Kind Description }}
Specifies the type of mapping. __Default value is `Unknown`__.

```yaml
Type: IngestionMappingKind
Expand All @@ -64,15 +67,15 @@ Aliases:
Accepted values: Unknown, Csv, Json, Avro, Parquet, SStream, Orc, ApacheAvro, W3CLogFile
Required: False
Position: Named
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Reference

{{ Fill Reference Description }}
A value that indicates how to map data from the source file to the actual columns in the table using a named mapping policy object.

```yaml
Type: String
Expand All @@ -86,22 +89,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters

This cmdlet supports the common parameters.
Expand All @@ -118,3 +105,7 @@ For more information, see [about_CommonParameters](http://go.microsoft.com/fwlin
## NOTES

## RELATED LINKS

[.create ingestion mapping command](https://learn.microsoft.com/en-us/kusto/management/create-ingestion-mapping-command?view=azure-data-explorer&preserve-view=true)

[Ingestion properties](https://learn.microsoft.com/en-us/kusto/ingestion-properties?view=microsoft-fabric#ingestion-properties)
24 changes: 4 additions & 20 deletions docs/en-US/Set-KustoBatchingPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ schema: 2.0.0
```powershell
Set-KustoBatchingPolicy
[-Table] <String>
[-Database <String>]
[[-Database] <String>]
[-MaximumBatchingTimeSpan <TimeSpan>]
[-MaximumNumberOfItems <Int32>]
[-MaximumRawDataSizeMB <Int32>]
[[-OutputType] <OutputType>]
[-OutputType <OutputType>]
[-RequestProperties <ClientRequestProperties>]
[<CommonParameters>]
```
Expand Down Expand Up @@ -51,7 +51,7 @@ Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand Down Expand Up @@ -116,7 +116,7 @@ Aliases:
Accepted values: PSObject, Json, Csv, DataTable, Html

Required: False
Position: 1
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand Down Expand Up @@ -154,22 +154,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters.
Expand Down
18 changes: 1 addition & 17 deletions docs/en-US/Set-KustoIngestionMapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Set-KustoIngestionMapping
[[-Database] <String>]
-IngestionMapping <IngestionMapping>
[-RemoveOldestIfRequired]
[[-OutputType] <OutputType>]
[-OutputType <OutputType>]
[-RequestProperties <ClientRequestProperties>]
[<CommonParameters>]
```
Expand Down Expand Up @@ -154,22 +154,6 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed class InvokeKustoControlCommandCommand : KustoReaderCommandBase
[Parameter(Mandatory = true, Position = 0)]
public string Command { get; set; } = null!;

[Parameter]
[Parameter(Position = 1)]
[ValidateNotNullOrEmpty]
public string? Database { get; set; }

Expand Down
Loading

0 comments on commit 641f901

Please sign in to comment.