addRule('ping', [ 'type' => self::TYPE_INTEGER, 'description' => 'Duration in milliseconds how long the health check took.', 'default' => 0, 'example' => 128, ]) ->addRule('status', [ 'type' => self::TYPE_STRING, 'description' => 'Service status. Possible values can are: `pass`, `fail`', 'default' => '', 'example' => 'pass', ]) ; } /** * Get Name * * @return string */ public function getName(): string { return 'Health Status'; } /** * Get Type * * @return string */ public function getType(): string { return Response::MODEL_HEALTH_STATUS; } }