In Splunk 4.1+, negative offsets are allowed and are added to the count to compute the absolute offset (for example, offset=-1 is the last available offset). Offsets in the results are always absolute and never negative. The default value is 0.
22 | -
23 | The index of the first result to return.
24 | ===
25 | # TODO: Improve docs: The referenced document does not actually document the enum constants.
26 | output_mode
27 | OutputMode
28 | OutputMode
29 | Sets the format of the output.
30 | -
31 | The output format.
32 | ===
33 | search
34 | Search
35 | String
36 | Sets the post-processing search to apply to results.
37 | -
38 | The post-processing search query.
39 | ===
40 |
--------------------------------------------------------------------------------
/CREDITS.md:
--------------------------------------------------------------------------------
1 | # Third-party software credits
2 |
3 | Some of the components included in the Splunk Enterprise SDK for Java are licensed under free or open source licenses. We wish to thank the contributors to those projects.
4 |
5 | | Contributor | Description | License |
6 | |:----------- |:----------- |:------- |
7 | | [opencsv](https://sourceforge.net/p/opencsv/source/ci/master/tree/) | For reading and writing CSV in Java | [Apache](https://github.com/splunk/splunk-sdk-java/blob/master/licenses/LICENSE-OPENCSV) |
8 | | [commons-cli](https://github.com/apache/commons-cli) | A package of Java utility classes for the classes that are in java.lang's hierarchy | [Apache](https://github.com/splunk/splunk-sdk-java/blob/master/licenses/LICENSE-COMMONS) |
9 | | [gson](https://github.com/google/gson) | Convert Java Objects into their JSON representation | [Apache](https://github.com/splunk/splunk-sdk-java/blob/master/licenses/LICENSE-GSON) |
10 | | [junit](https://github.com/junit-team/junit4) | Unit testing framework for Java | [Eclipse](https://github.com/splunk/splunk-sdk-java/blob/master/licenses/LICENSE-JUNIT) |
11 | | [jacoco](https://github.com/jacoco/jacoco) | JaCoCo runtime agent to your tests and allows basic report creation. | [Eclipse](https://github.com/splunk/splunk-sdk-java/blob/master/licenses/LICENSE-JACOCO) |
12 | | [netbeans-api](https://github.com/apache/netbeans) | OpenIDE Utilities | [Apache](https://github.com/splunk/splunk-sdk-java/blob/master/licenses/LICENSE-NETBEANS) |
--------------------------------------------------------------------------------
/examples/src/main/java/com/splunk/examples/explorer/EntityKids.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2011 Splunk, Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"): you may
5 | * not use this file except in compliance with the License. You may obtain
6 | * a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | package com.splunk.examples.explorer;
18 |
19 | import com.splunk.Entity;
20 | import com.splunk.EntityMetadata;
21 |
22 | import org.openide.nodes.Children;
23 | import org.openide.nodes.Node;
24 |
25 | class EntityKids extends Children.Keys
35 | * Note that any given result will contain a subset of these fields.
36 | */
37 | public Collection In Splunk 4.1+, negative offsets are allowed and are added to the count to compute the absolute offset (for example, offset=-1 is the last available offset). Offsets in the results are always absolute and never negative. The default value is 0.
26 | -
27 | The index of the first result to return.
28 | ===
29 | # TODO: Improve docs: The referenced document does not actually document the enum constants.
30 | output_mode
31 | OutputMode
32 | OutputMode
33 | Sets the format of the output.
34 | -
35 | The output format.
36 | ===
37 | search
38 | Search
39 | String
40 | Sets the post-processing search to apply to results.
41 | -
42 | The post-processing search query.
43 | ===
44 |
--------------------------------------------------------------------------------
/splunk/src/main/java/com/splunk/FiredAlertGroupCollection.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2012 Splunk, Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"): you may
5 | * not use this file except in compliance with the License. You may obtain
6 | * a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | package com.splunk;
18 | /**
19 | * The {@code FiredAlertGroupCollection} class represents a collection of fired
20 | * alert groups.
21 | */
22 | public class FiredAlertGroupCollection
23 | extends EntityCollection