Ingest metadata query implementation

Ingest metadata query - 
expose maxIngestedEventTime
Check for datasource null to enforce rule