grafana -> notification-provider -> mattermost | see https://gitlab.fedy95.com/dev/notification-provider
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.1 KiB
68 lines
1.1 KiB
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Model\Alertmanager;
|
|
|
|
use OpenApi\Annotations as OA;
|
|
|
|
/**
|
|
* @OA\Schema(
|
|
* required={
|
|
* "state",
|
|
* "silencedBy",
|
|
* "inhibitedBy"
|
|
* }
|
|
* )
|
|
*/
|
|
class Status
|
|
{
|
|
/**
|
|
* @OA\Property(description="", example="active")
|
|
*/
|
|
protected string $state;
|
|
/**
|
|
* @OA\Property(description="")
|
|
*/
|
|
protected ?string $silencedBy;
|
|
/**
|
|
* @OA\Property(description="")
|
|
*/
|
|
protected ?string $inhibitedBy;
|
|
|
|
public function getState(): string
|
|
{
|
|
return $this->state;
|
|
}
|
|
|
|
public function setState(string $state): self
|
|
{
|
|
$this->state = $state;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getSilencedBy(): ?string
|
|
{
|
|
return $this->silencedBy;
|
|
}
|
|
|
|
public function setSilencedBy(?string $silencedBy): self
|
|
{
|
|
$this->silencedBy = $silencedBy;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getInhibitedBy(): ?string
|
|
{
|
|
return $this->inhibitedBy;
|
|
}
|
|
|
|
public function setInhibitedBy(?string $inhibitedBy): self
|
|
{
|
|
$this->inhibitedBy = $inhibitedBy;
|
|
|
|
return $this;
|
|
}
|
|
}
|