Skip to content

Commit

Permalink
Commit build changes [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuBuisson committed May 7, 2017
1 parent 05ad384 commit 7b7068a
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PSCodeHealth/PSCodeHealth.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = '.\PSCodeHealth.psm1'

# Version number of this module.
ModuleVersion = '0.1.83'
ModuleVersion = '0.1.84'

# ID used to uniquely identify this module
GUID = 'ca22dabd-bbb6-4805-9c90-a8aad6dbbfd3'
Expand Down
93 changes: 93 additions & 0 deletions docs/Functions/Get-PSCodeHealthSetting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Get-PSCodeHealthSetting

## SYNOPSIS
Get the PSCodeHealth settings (metrics thresholds, etc...) which are currently in effect.

## SYNTAX

```
Get-PSCodeHealthSetting [[-CustomSettingsPath] <String>] [[-SettingsGroup] <String>] [[-MetricName] <String>]
```

## DESCRIPTION
Get the PSCodeHealth settings (metrics thresholds, etc...) which are currently in effect.

By default, all the settings are coming from the file PSCodeHealthSettings.json in the module root.


Custom settings can be specified in JSON format in a file, via the parameter CustomSettingsPath.

In this case, any setting specified in the custom settings file override the default, and settings not specified in the custom settings file will use the defaults from PSCodeHealthSettings.json.

## EXAMPLES

### Example 1
```
PS C:\> {{ Add example code here }}
```

{{ Add example description here }}

## PARAMETERS

### -CustomSettingsPath
To specify the path of a file containing user-defined settings (metrics thresholds, etc...) in JSON format.

Any setting specified in this file override the default, and settings not specified in this file will use the default from PSCodeHealthSettings.json.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SettingsGroup
To filter the output settings to only the settings located in the specified group.

There 2 settings group in PSCodeHealthSettings.json, so there are 2 possible values for this parameter : 'FunctionHealthRecordMetricsRules' and 'OverallHealthReportMetricsRules'.

If not specified, all the settings are output.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MetricName
{{Fill MetricName Description}}

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

## INPUTS

## OUTPUTS

### System.Management.Automation.PSCustomObject

## NOTES

## RELATED LINKS

1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ pages:
- Home: index.md
- Metrics collected by PSCodeHealth: Metrics.md
- Public Functions:
- Get-PSCodeHealthSetting: Functions/Get-PSCodeHealthSetting.md
- Invoke-PSCodeHealth: Functions/Invoke-PSCodeHealth.md

0 comments on commit 7b7068a

Please sign in to comment.