Infoblox::Grid::Discovery::StatusInfo - the discovery status information.


NAME

Infoblox::Grid::Discovery::StatusInfo - the discovery status information.


DESCRIPTION

The object provides information about the discovery status.


CONSTRUCTOR

 my $object = Infoblox::Grid::Discovery::StatusInfo->new(
    'message'   => $string,                                 # Required
    'status'    => 'OK' | 'ERROR' | 'NON_REACHABLE',        # Required
    'timestamp' => $epoch,                                  # Required
 );


SESSION METHODS

The object does not support any session methods.


METHODS

This section describes all the methods that you can use to set or retrieve the attribute values of the object.

message( )

Use this method to set or retrieve the detailed message.

Parameter

The detailed message in string format.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 # Get attribute value
 my $value = $object->message();
 # Modify attribute value
 $object->message('text');

status( )

Use this method to set or retrieve the status of the device.

Parameter

Valid value is 'OK', 'ERROR' or 'NON_REACHABLE'.

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 # Get attribute value
 my $value = $object->status();
 # Modify attribute value
 $object->status('OK');

timestamp( )

Use this method to set or retrieve the timestamp when status was generated.

Parameter

The date and time in the ISO 8601 extended format (e.g. 2008-10-21T10:56:33Z or 2008-10-21T10:56:33.001Z).

Returns

If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.

If you did not specify a parameter, the method returns the attribute value.

Example
 # Get attribute value
 my $value = $object->timestamp();
 # Modify attribute value
 $object->timestamp('2008-10-21T10:56:33Z');


AUTHOR

Infoblox Inc. http://www.infoblox.com/


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.