Software Development Kit (SDK) and API Discussions

EMS Messege Java

jsv

I want to see all EMS messages that are at severity "warning" or higher. At the moment my code recives all messages, it's about 8000 of them, and selects the ones I want. It takes about 3 minutes to gather. Is there a way to filter this in the NetApp to speed up the process?

 

EmsMessageGetIterRequest emsReq = new EmsMessageGetIterRequest();
Iterator<EmsMessageInfo> emsResp = runner.iterate(emsReq,10);
EmsMessageInfo ems;

while (emsResp.hasNext()) {
    ems = emsResp.next();

    if (!(ems.getEmsSeverity().equals("debug") || ems.getSeverity().equals("debug") || ems.getSeverity().equals("notice") || ems.getSeverity().equals("informational"))) {
        getEmsList().add(new NAEms(ems));
    }

}



0 REPLIES 0
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

Public