Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
!Deploy!
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Smith committed Jun 6, 2021
1 parent 91dcb9a commit 80fb199
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Format as below (Requires the '### Added' as a header or task fails)
...- Update ReadMe.MD

## [Unreleased]
### Added
- New-InsightStatusType and Set-InsightStatusType updated to use int for category.
- Raised page size on Find-InsightObject

## [1.17] - 2021-06-02
### Added
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Find-InsightObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Find-InsightObject {
[string]$IQL,
[string]$objectTypeId,
[int]$page = 1,
[int]$resultsPerPage = 500,
[int]$resultsPerPage = 2000,
[int]$orderByTypeAttrId,
[ValidateSet(0,1)]
[int]$asc = 1,
Expand Down
8 changes: 4 additions & 4 deletions JSM.Insight/Public/New-InsightStatusType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ function New-InsightStatusType {
$Headers = New-InsightHeaders

switch ($Category) {
"InActive\Red" { 0 }
"Active\Green" { 1 }
"Pending\Yellow" { 2 }
"InActive\Red" { $CategoryID = 0 }
"Active\Green" { $CategoryID = 1 }
"Pending\Yellow" { $CategoryID = 2 }
}

$RequestBody = @{
'name' = $Name
'category' = $Category
'category' = $CategoryID
}
if ($Description) {
$RequestBody.Add('description', $Description)
Expand Down
8 changes: 4 additions & 4 deletions JSM.Insight/Public/Set-InsightStatusType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ function Set-InsightStatusType {
$Headers = New-InsightHeaders

switch ($Category) {
"InActive\Red" { 0 }
"Active\Green" { 1 }
"Pending\Yellow" { 2 }
"InActive\Red" { $CategoryID = 0 }
"Active\Green" { $CategoryID = 1 }
"Pending\Yellow" { $CategoryID = 2 }
}

$RequestBody = @{
'name' = $Name
'category' = $Category
'category' = $CategoryID
}
if ($Description) {
$RequestBody.Add('description', $Description)
Expand Down

0 comments on commit 80fb199

Please sign in to comment.