URL: http://teamcity:8111/httpAuth/app/rest/projects/
Method: POST
Accept: application/xml
| Function Get-DirHash { | |
| [Cmdletbinding()] | |
| Param( | |
| [Parameter(Mandatory=$true)] | |
| [ValidateScript({ | |
| if(Test-Path -Path $_ -ErrorAction SilentlyContinue) | |
| { | |
| return $true | |
| } | |
| else |
URL: http://teamcity:8111/httpAuth/app/rest/projects/
Method: POST
Accept: application/xml
Reference:
sudo fdisk -l
telegram.message{{ define "alert_list" }}{{ range . }}{{ .Labels.alertname }}
{{ range .Annotations.SortedPairs }}<strong>{{ .Name }}</strong>: {{ .Value }}
{{ end }}| {{ if gt (len .GeneratorURL) 0 }}<a href="{{ .GeneratorURL }}">source</a> | {{ end }}{{ if gt (len .SilenceURL) 0 }}<a href="{{ .SilenceURL }}">silence</a> | {{ end }}{{ if gt (len .DashboardURL) 0 }}<a href="{{ .DashboardURL }}">dashboard</a> | {{ end }}{{ if gt (len .PanelURL) 0 }}<a href="{{ .PanelURL }}">panel</a> |{{ end }}
—
{{ end }}{{ end }}
{{ define "telegram.message" }}
{{ if gt (len .Alerts.Firing) 0 }}FIRING!!!