Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Event Query Examples

Tom Valine edited this page Oct 15, 2016 · 8 revisions

Examples & Screencasts


Argus Web

Argus SDK

This simple example illustrates how to retrieve annotations.

int maxConnections = 10;
try (
    ArgusService service = ArgusService.getInstance(
      "https://argus.mycompany.com/argusws",
      maxConnections)
) {
    service.getAuthService().login("aUsername", "aPassword");
    List<String> expressions = Arrays.asList(
      new String[] {
        "-1d:TestScope:TestMetric{TestTag=TagValue}:TestType:TestUser"
    });
    List<Annotation> result = service.getAnnotationService().getAnnotations(expressions);
    service.getAuthService().logout();
}
Clone this wiki locally