/** * Returns a group of fired alerts for a given saved search. * * @return The fired alerts in the group. */ public EntityCollection<FiredAlert> getAlerts() { return new EntityCollection<FiredAlert>( service, this.path, FiredAlert.class); } }
/** * Returns the collection of applications. * * @return The application collection. */ public EntityCollection<Application> getApplications() { return new EntityCollection<Application>( this, "/services/apps/local", Application.class); }
/** * Returns a collection of Splunk user roles. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of user roles. */ public EntityCollection<Role> getRoles(Args args) { return new EntityCollection<Role>( this, "authorization/roles", Role.class, args); }
/** * Returns a collection of licenses for this service. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of licenses. */ public EntityCollection<License> getLicenses(Args args) { return new EntityCollection<License>( this, "licenser/licenses", License.class, args); }
/** * Returns a collection of license group configurations. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of license group configurations. */ public EntityCollection<LicenseGroup> getLicenseGroups(Args args) { return new EntityCollection<LicenseGroup>( this, "licenser/groups", LicenseGroup.class, args); }
/** * Returns a collection of slaves reporting to this license master. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of licenser slaves. */ public EntityCollection<LicenseSlave> getLicenseSlaves(Args args) { return new EntityCollection<LicenseSlave>( this, "licenser/slaves", LicenseSlave.class, args); }
/** * Returns a collection of service logging categories and their status. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of logging categories. */ public EntityCollection<Logger> getLoggers(Args args) { return new EntityCollection<Logger>( this, "server/logger", Logger.class, args); }
/** * Returns a collection of in-progress oneshot uploads. * * @param namespace This collection's namespace; there are no other * optional arguments for this endpoint. * @return A collection of in-progress oneshot uploads */ public EntityCollection<Upload> getUploads(Args namespace) { return new EntityCollection<Upload>( this, "data/inputs/oneshot", Upload.class, namespace); }
/** * Returns a collection of messages from the licenser. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of licenser messages. */ public EntityCollection<LicenseMessage> getLicenseMessages(Args args) { return new EntityCollection<LicenseMessage>( this, "licenser/messages", LicenseMessage.class, args); }
/** * Returns a collection of output group configurations. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of output group configurations. */ public EntityCollection<OutputGroup> getOutputGroups(Args args) { return new EntityCollection<OutputGroup>( this, "data/outputs/tcp/group", OutputGroup.class, args); }
/** * Returns a collection of configurations for forwarding data in standard * syslog format. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of syslog forwarders. */ public EntityCollection<OutputSyslog> getOutputSyslogs(Args args) { return new EntityCollection<OutputSyslog>( this, "data/outputs/tcp/syslog", OutputSyslog.class, args); }
/** * Returns a collection of multi-tenant configurations. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of multi-tenant configurations. */ public EntityCollection<DeploymentTenant> getDeploymentTenants(Args args) { return new EntityCollection<DeploymentTenant>( this, "deployment/tenants", DeploymentTenant.class, args); }
/** * Returns a collection of license stack configurations. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of license stack configurations. */ public EntityCollection<LicenseStack> getLicenseStacks(Args args) { return new EntityCollection<LicenseStack>( this, "licenser/stacks", LicenseStack.class, args); }
/** * Returns a collection of data-forwarding configurations. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of data-forwarding configurations. */ public EntityCollection<OutputServer> getOutputServers(Args args) { return new EntityCollection<OutputServer>( this, "data/outputs/tcp/server", OutputServer.class, args); }
/** * Returns a collection of distributed search peers. A <i>search peer</i> * is a Splunk server to which another Splunk server distributes searches. * The Splunk server where the search originates is referred to as the * <i>search head</i>. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of search peers. */ public EntityCollection<DistributedPeer> getDistributedPeers(Args args) { return new EntityCollection<DistributedPeer>( this, "search/distributed/peers", DistributedPeer.class, args); }
/** * Returns the collection of deployment servers. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return The configuration of deployment servers. */ public EntityCollection<DeploymentServer> getDeploymentServers(Args args) { String path; if (versionIsEarlierThan("6.0.0")) { path = "deployment/server"; } else { path = ""; // TODO: Find out what this should be and fix it. } return new EntityCollection<DeploymentServer>( this, "deployment/server", DeploymentServer.class, args); }
/** * Returns a collection of class configurations for a deployment server. * * @param args Collection arguments that specify the number of entities to * return and how to sort them. See {@link CollectionArgs}. * @return A collection of server class configurations. */ public EntityCollection<DeploymentServerClass> getDeploymentServerClasses( Args args) { String path; if (versionIsEarlierThan("6.0.0")) { path = "deployment/serverclass"; } else { path = "deployment/server/serverclasses"; } return new EntityCollection<DeploymentServerClass>( this, path, DeploymentServerClass.class, args); }