}
} while (marker != null);
}
static void printEvent(Event event)
{
if (event == null)
{
System.out.println("\nEvent object is null.");
return;
}
System.out.println("\nEvent metadata:\n");
System.out.format("SourceID: %s\n", event.getSourceIdentifier());
System.out.format("Type: %s\n", event.getSourceType());
System.out.format("Message: %s\n", event.getMessage());
System.out.format("Date: %s\n", event.getDate());
}
}
View Events Using Amazon Redshift CLI and
API
You an use the following Amazon Redshift CLI operations to manage events.
•
describe-events
Amazon Redshift provides following API to view events.
•
DescribeEvents
API Version 2012-12-01
66
Amazon Redshift Management Guide
View Events Using Amazon Redshift CLI and API