This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 145
Event Query Examples
Tom Valine edited this page Oct 15, 2016
·
8 revisions
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();
}