diff --git a/library/Icingadb/Model/AcknowledgementHistory.php b/library/Icingadb/Model/AcknowledgementHistory.php index 50d194bbe..edbcc8378 100644 --- a/library/Icingadb/Model/AcknowledgementHistory.php +++ b/library/Icingadb/Model/AcknowledgementHistory.php @@ -28,7 +28,7 @@ * @property ?DateTime $clear_time * @property ?string $author * @property ?string $cleared_by - * @property ?int $comment + * @property ?string $comment * @property ?DateTime $expire_time * @property ?bool $is_sticky * @property ?bool $is_persistent diff --git a/library/Icingadb/Model/Checkcommand.php b/library/Icingadb/Model/Checkcommand.php index 692c86843..7f55c0dd9 100644 --- a/library/Icingadb/Model/Checkcommand.php +++ b/library/Icingadb/Model/Checkcommand.php @@ -12,7 +12,7 @@ /** * @property string $id - * @property string $zone_id + * @property ?string $zone_id * @property string $environment_id * @property string $name_checksum * @property string $properties_checksum diff --git a/library/Icingadb/Model/CheckcommandArgument.php b/library/Icingadb/Model/CheckcommandArgument.php index 4a24b138a..155f6dacf 100644 --- a/library/Icingadb/Model/CheckcommandArgument.php +++ b/library/Icingadb/Model/CheckcommandArgument.php @@ -22,6 +22,7 @@ * @property string $repeat_key * @property string $required * @property ?string $set_if + * @property ?string $separator * @property string $skip_key */ class CheckcommandArgument extends Model @@ -50,6 +51,7 @@ public function getColumns() 'repeat_key', 'required', 'set_if', + 'separator', 'skip_key' ]; } diff --git a/library/Icingadb/Model/CustomvarFlat.php b/library/Icingadb/Model/CustomvarFlat.php index db2434b07..f9f3c5a8f 100644 --- a/library/Icingadb/Model/CustomvarFlat.php +++ b/library/Icingadb/Model/CustomvarFlat.php @@ -17,7 +17,7 @@ * @property string $customvar_id * @property string $flatname_checksum * @property string $flatname - * @property string $flatvalue + * @property ?string $flatvalue */ class CustomvarFlat extends Model { diff --git a/library/Icingadb/Model/DowntimeHistory.php b/library/Icingadb/Model/DowntimeHistory.php index ca04441b7..b69a0979b 100644 --- a/library/Icingadb/Model/DowntimeHistory.php +++ b/library/Icingadb/Model/DowntimeHistory.php @@ -36,7 +36,8 @@ * @property DateTime $scheduled_end_time * @property DateTime $start_time * @property DateTime $end_time - * @property string $has_been_cancelled + * @property ?string $scheduled_by + * @property bool $has_been_cancelled * @property DateTime $trigger_time * @property ?DateTime $cancel_time */ @@ -72,6 +73,7 @@ public function getColumns() 'scheduled_end_time', 'start_time', 'end_time', + 'scheduled_by', 'has_been_cancelled', 'trigger_time', 'cancel_time' diff --git a/library/Icingadb/Model/Eventcommand.php b/library/Icingadb/Model/Eventcommand.php index 4b62354cb..68c1c065a 100644 --- a/library/Icingadb/Model/Eventcommand.php +++ b/library/Icingadb/Model/Eventcommand.php @@ -19,7 +19,7 @@ * @property string $name * @property string $name_ci * @property string $command - * @property string $timeout + * @property int $timeout */ class Eventcommand extends Model { diff --git a/library/Icingadb/Model/EventcommandArgument.php b/library/Icingadb/Model/EventcommandArgument.php index 46f2956bb..1f60ac25c 100644 --- a/library/Icingadb/Model/EventcommandArgument.php +++ b/library/Icingadb/Model/EventcommandArgument.php @@ -16,12 +16,13 @@ * @property string $environment_id * @property string $properties_checksum * @property ?string $argument_value - * @property ?string $argument_order + * @property ?int $argument_order * @property ?string $description * @property ?string $argument_key_override * @property string $repeat_key * @property string $required * @property ?string $set_if + * @property ?string $separator * @property string $skip_key */ class EventcommandArgument extends Model @@ -50,6 +51,7 @@ public function getColumns() 'repeat_key', 'required', 'set_if', + 'separator', 'skip_key' ]; } diff --git a/library/Icingadb/Model/HostState.php b/library/Icingadb/Model/HostState.php index eb594a846..efa275285 100644 --- a/library/Icingadb/Model/HostState.php +++ b/library/Icingadb/Model/HostState.php @@ -9,8 +9,6 @@ /** * Host state model. - * - * @property string $id */ class HostState extends State { diff --git a/library/Icingadb/Model/Hostgroup.php b/library/Icingadb/Model/Hostgroup.php index 61f7aa2d4..1ff6f0fba 100644 --- a/library/Icingadb/Model/Hostgroup.php +++ b/library/Icingadb/Model/Hostgroup.php @@ -18,7 +18,7 @@ * @property string $name * @property string $name_ci * @property string $display_name - * @property string $zone_id + * @property ?string $zone_id */ class Hostgroup extends Model { diff --git a/library/Icingadb/Model/Notification.php b/library/Icingadb/Model/Notification.php index 968abca4b..4c15d2eeb 100644 --- a/library/Icingadb/Model/Notification.php +++ b/library/Icingadb/Model/Notification.php @@ -23,10 +23,10 @@ * @property string $notificationcommand_id * @property ?int $times_begin * @property ?int $times_end - * @property string $notification_interval + * @property int $notification_interval * @property ?string $timeperiod_id - * @property array $states - * @property array $types + * @property string[] $states + * @property string[] $types * @property ?string $zone_id */ class Notification extends Model diff --git a/library/Icingadb/Model/NotificationcommandArgument.php b/library/Icingadb/Model/NotificationcommandArgument.php index 63a8c209e..e3a5e6757 100644 --- a/library/Icingadb/Model/NotificationcommandArgument.php +++ b/library/Icingadb/Model/NotificationcommandArgument.php @@ -16,12 +16,13 @@ * @property string $environment_id * @property string $properties_checksum * @property ?string $argument_value - * @property ?string $argument_order + * @property ?int $argument_order * @property ?string $description * @property ?string $argument_key_override * @property string $repeat_key * @property string $required * @property ?string $set_if + * @property ?string $separator * @property string $skip_key */ class NotificationcommandArgument extends Model @@ -50,6 +51,7 @@ public function getColumns() 'repeat_key', 'required', 'set_if', + 'separator', 'skip_key' ]; } diff --git a/library/Icingadb/Model/ServiceState.php b/library/Icingadb/Model/ServiceState.php index c5daa08cf..1d7dc31cd 100644 --- a/library/Icingadb/Model/ServiceState.php +++ b/library/Icingadb/Model/ServiceState.php @@ -7,6 +7,11 @@ use Icinga\Module\Icingadb\Common\ServiceStates; use ipl\Orm\Relations; +/** + * Service state model. + * + * @property string $service_id + */ class ServiceState extends State { public function getTableName() diff --git a/library/Icingadb/Model/State.php b/library/Icingadb/Model/State.php index 2d242a855..4529c9b10 100644 --- a/library/Icingadb/Model/State.php +++ b/library/Icingadb/Model/State.php @@ -16,6 +16,7 @@ /** * Base class for the {@link HostState} and {@link ServiceState} models providing common columns. * + * @property string $id * @property string $environment_id The environment id * @property string $state_type The state type (hard or soft) * @property int $soft_state The current soft state code (0 = OK, 1 = WARNING, 2 = CRITICAL, 3 = UNKNOWN) @@ -44,9 +45,9 @@ * @property ?string $check_source The name of the node that executes the check * @property ?string $scheduling_source The name of the node that schedules the check * @property ?DateTime $last_update The time when the node was last updated - * @property ?DateTime $last_state_change The time when the node last got a status change - * @property ?DateTime $next_check The time when the node will execute the next check - * @property ?DateTime $next_update The time when the next check of the node is expected to end + * @property DateTime $last_state_change The time when the node last got a status change + * @property DateTime $next_check The time when the node will execute the next check + * @property DateTime $next_update The time when the next check of the node is expected to end */ abstract class State extends Model { diff --git a/library/Icingadb/Model/User.php b/library/Icingadb/Model/User.php index cdff22f88..1218de9e7 100644 --- a/library/Icingadb/Model/User.php +++ b/library/Icingadb/Model/User.php @@ -23,8 +23,8 @@ * @property string $pager * @property string $notifications_enabled * @property ?string $timeperiod_id - * @property array $states - * @property array $types + * @property string[] $states + * @property string[] $types * @property ?string $zone_id */ class User extends Model diff --git a/library/Icingadb/Model/UserCustomvar.php b/library/Icingadb/Model/UserCustomvar.php index efbe1ac32..883858bfb 100644 --- a/library/Icingadb/Model/UserCustomvar.php +++ b/library/Icingadb/Model/UserCustomvar.php @@ -12,6 +12,7 @@ /** * @property string $id * @property string $customvar_id + * @property string $user_id * @property string $environment_id */ class UserCustomvar extends Model diff --git a/library/Icingadb/Model/UsergroupMember.php b/library/Icingadb/Model/UsergroupMember.php index be7608a97..7abd5c820 100644 --- a/library/Icingadb/Model/UsergroupMember.php +++ b/library/Icingadb/Model/UsergroupMember.php @@ -12,6 +12,7 @@ /** * @property string $id * @property string $usergroup_id + * @property string $user_id * @property string $environment_id */ class UsergroupMember extends Model diff --git a/library/Icingadb/Model/Zone.php b/library/Icingadb/Model/Zone.php index 6d2391613..04d63ce9d 100644 --- a/library/Icingadb/Model/Zone.php +++ b/library/Icingadb/Model/Zone.php @@ -18,7 +18,7 @@ * @property string $name_ci * @property string $is_global * @property ?string $parent_id - * @property string $depth + * @property int $depth */ class Zone extends Model {