New-StatusimoEvent Not Creating Incident JSON inside of Specified Folder

オープン
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
powershell
領域
devops

調査の方向性

Start with Examples/Add-Incident2.ps1 and run the provided New-StatusimoEvent splat using the same paths as the working maintenance example. Compare the event command's behavior with New-StatusimoMaintenance, then verify that a JSON file is created under the specified incidents folder and remains usable by New-StatusimoPage.

索引モデルが issue の本文から書いたものです。

説明

I'm following the examples provided in the \Examples\Add-Incident2.ps1 file, and I cannot replicate/get my JSON file to create in the folder I've specified.

I tried New-StatusimoMaintenance and it created the file just fine and added into the statusimo status page. I've included both of my Splat's and Examples that I'm using below. Both Incident and Maintenance Examples provided are taken straight from the \Examples folder and modified to fit my test environment. All Variables point to the same folder, and Incidents/Maintenance are sub folders. Variables are populated with data. Just installed Statusimo today from the PSGallery

Get-Module Statusimo

ModuleType Version    Name                                ExportedCommands                                                                                                                                                                                  
---------- -------    ----                                ----------------                                                                                                                                                                                  
Script     0.6        Statusimo                           {New-StatusimoEvent, New-StatusimoMaintenance, New-StatusimoPage, Remove-StatusimoMaintenance...}    
$dashboard = "Path\To\page.html"
$incidents = "Path\To\Incidents\"
$maintenance = "Path\To\Maintenance\"

$incidentSplat = @{
    Date       = (Get-Date)
    Overview   = "Test"
    Title      = 'Test'
    Status     = 'Operational'
    Service    = 'Test'
    FolderPath = $incidents
}

New-StatusimoEvent @incidentSplat

$newStatusimoMaintenanceSplat = @{
    Title = 'Test'
    DateStart = (Get-Date).AddDays(5)
    DateEnd = (Get-Date).AddDays(6).AddHours(2)
    Service = 'Test'
    Overview = "Test"
    FolderPath = $maintenance
}
New-StatusimoMaintenance @newStatusimoMaintenanceSplat 
New-StatusimoPage -FilePath $dashboard -IncidentsPath $incidents -MaintenancePath $maintenance

I then go to my folder specified in $incidents and there is nothing there, but if I would check maintenance. There would be a valid JSON with a similar name to Test_CURRENT_DATE_random_string.json.

主要言語
PowerShell
スター
110
フォーク
13
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EvotecIT/Statusimo のほかの issue

EvotecIT/Statusimo の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。