public final class MonitorMethods extends Object
Modifier and Type | Method and Description |
---|---|
static void |
deleteMonitorRule(String name)
Deletes the Monitor Rule of a given name.
|
static void |
disableMonitorRule(String name)
Disables the Monitor Rule of a given name.
|
static void |
enableMonitorRule(String name)
Enables the Monitor Rule of a given name.
|
static io.toro.gloop.object.property.GloopModel |
getMonetizationBill(io.toro.gloop.object.property.GloopModel query)
Gets the monetization bill for the specified query of the invoke documents.
|
static io.toro.gloop.object.property.GloopModel |
getMonitorRule(String name)
Gets the Monitor Rule with a given name.
|
static io.toro.gloop.object.property.GloopModel |
getMonitorRules()
Gets the list of all the Monitor Rules.
|
static io.toro.gloop.object.property.GloopModel |
getMonitorRules(boolean enabled)
Gets the list of all the Monitor Rules.
|
static io.toro.gloop.object.property.GloopModel |
getMonitorRules(int page,
int size,
Boolean enabled)
Gets the list of matching Monitor Rules.
|
static void |
saveMonitorRule(io.toro.gloop.object.property.GloopModel rule)
Saves the given Monitor Rule.
|
static io.toro.gloop.object.property.GloopModel |
searchMonitor(String query,
String[] id,
String[] trackerId,
String[] packageName,
String[] serviceName,
String[] user,
String[] userGroups,
String[] endpointName,
String[] endpointType,
String[] url,
String[] remoteAddress,
String[] country,
String[] location,
Boolean success,
Long fromResponseTime,
Long toResponseTime,
Date fromDate,
Date toDate,
Double minCost,
Double maxCost,
int pageSize,
int page)
Search for indexed monitor documents based on the given query and search parameters.
|
@GloopObjectParameter(value="monitorRuleMetadata{\nmonitorRuleMetadata#io.toro.martini.monitor.MonitorRuleMetadata{\n}\n}") public static io.toro.gloop.object.property.GloopModel getMonitorRule(@GloopParameter(allowNull=false) String name)
name
- the Monitor Rule's name@GloopObjectParameter(value="monitorRulesMetadata{\nmonitorRulesMetadata#io.toro.martini.monitor.MonitorRuleMetadata[]{\n}\n}") public static io.toro.gloop.object.property.GloopModel getMonitorRules()
@GloopObjectParameter(value="monitorRulesMetadata{\nmonitorRulesMetadata#io.toro.martini.monitor.MonitorRuleMetadata[]{\n}\n}") public static io.toro.gloop.object.property.GloopModel getMonitorRules(boolean enabled)
enabled
- if true then it will get all enabled monitor rules@GloopObjectParameter(value="monitorRulesMetadata{\nmonitorRulesMetadata#io.toro.martini.monitor.MonitorRuleMetadata[]{\n}\n}") public static io.toro.gloop.object.property.GloopModel getMonitorRules(@GloopParameter(defaultValue="1") int page, @GloopParameter(defaultValue="25") int size, Boolean enabled)
page
- the starting pagesize
- the maximum number of Monitor Rules per pageenabled
- if set to null it will attempt to
get all rules regardless whether it's enabled or disabled.
If set to true then all enabled rule are returnedpublic static void enableMonitorRule(@GloopParameter(allowNull=false) String name)
name
- the name of the Monitor Rule to enablepublic static void disableMonitorRule(@GloopParameter(allowNull=false) String name)
name
- the name of the Monitor Rule to disablepublic static void saveMonitorRule(@GloopObjectParameter(value="MonitorRuleMetadata#io.toro.martini.monitor.MonitorRuleMetadata{\n}") @GloopParameter(allowNull=false) io.toro.gloop.object.property.GloopModel rule)
rule
- the Monitor Rule to savepublic static void deleteMonitorRule(@GloopParameter(allowNull=false) String name)
name
- the name of thte Monitor Rule to delete@GloopObjectParameter(value="monetizationBill{\nmonetizationBill#io.toro.martini.monitor.MonetizationBill{\n}\n}") public static io.toro.gloop.object.property.GloopModel getMonetizationBill(@GloopObjectParameter(value="invokeDocumentQuery#io.toro.martini.monitor.InvokeDocumentQuery{\n}") @GloopParameter(allowNull=false) io.toro.gloop.object.property.GloopModel query)
query
- the invoke documents' query where the given monetization bill will be based upon@GloopObjectParameter(value="output{\nsearchResult#io.toro.martini.monitor.SearchResult{\n}\n}") @GloopComment(value="Search for indexed monitor documents based on the given query and search parameters.") public static io.toro.gloop.object.property.GloopModel searchMonitor(@GloopParameter(defaultValue="*:*",allowNull=false) String query, String[] id, String[] trackerId, String[] packageName, String[] serviceName, String[] user, String[] userGroups, String[] endpointName, String[] endpointType, String[] url, String[] remoteAddress, String[] country, String[] location, Boolean success, Long fromResponseTime, Long toResponseTime, Date fromDate, Date toDate, Double minCost, Double maxCost, @GloopParameter(defaultValue="10",allowNull=false) int pageSize, @GloopParameter(defaultValue="1",allowNull=false) int page)
query
- solr query to be performedid
- id of documents to findtrackerId
- trackerId of documents to findpackageName
- packageName of documents to findserviceName
- serviceName of documents to finduser
- user of documents to finduserGroups
- userGroups of documents to findendpointName
- endpointName of documents to findendpointType
- endpointType of documents to findurl
- url of documents to findremoteAddress
- remoteAddress of documents to findcountry
- country of documents to findlocation
- location of documents to findsuccess
- boolean value whether operation has been successfulfromResponseTime
- display documents containing response time
from this long value. The long value is represented in milliseconds.toResponseTime
- display documents containing response time
till this long value. The long value is represented in milliseconds.fromDate
- display documents containing timestamp from this datetoDate
- display documents containing timestamps till this dateminCost
- minCost of documents to findmaxCost
- maxCost of documents to findpageSize
- number of results to display in a pagepage
- page number of results to displayCopyright © 2019. All rights reserved.