getEventsAnalyserConfig

A Graze API GET request that returns the details of the Events Analyser configuration, including the priority words and stop words.

Back to Graze API EndPoint Reference.

Request arguments

Endpoint getEventsAnalyserConfig takes the following request argument:

Endpoint getEventsAnalyserConfig takes no other arguments.

Response

Endpoint getEventsAnalyserConfig returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

priority_words

Examples

The following examples demonstrate typical use of endpoint getEventsAnalyserConfig:

Request example

Example cURL request to return the details of the Events Analyser configuration:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getEventsAnalyserConfig"

Response examples

Example response returning an Events Analyser configuration that does not use partitioning:

{
    "priority_words": false,
    "partition_by": "",
    "stop_word_length": 0,
    "stemming_language": "english",
    "partition_overrides": null,
    "priority_words_list": [],
    "stop_words": true,
    "stop_words_list": [
        "%",
        ":",
        "=",
        ".",
        "|",
        "-",
        "~",
        "&",
        "a",
        "able",
        "about",
        "across",
        "after",
        "all",
        "almost",
        "also",
        "am",
        "among",
        "an",
        "and",
        "any",
        "are",
        "as",
        "at",
        "be",
        "because",
        "been",
        "but",
        "by",
        "can",
        "cannot",
        "could",
        "dear",
        "did",
        "do",
        "does",
        "either",
        "else",
        "ever",
        "every",
        "for",
        "from",
        "get",
        "got",
        "had",
        "has",
        "have",
        "he",
        "her",
        "hers",
        "him",
        "his",
        "how",
        "however",
        "i",
        "if",
        "in",
        "into",
        "is",
        "it",
        "its",
        "just",
        "least",
        "let",
        "like",
        "likely",
        "may",
        "me",
        "might",
        "most",
        "must",
        "my",
        "neither",
        "no",
        "nor",
        "not",
        "of",
        "off",
        "often",
        "on",
        "only",
        "or",
        "other",
        "our",
        "own",
        "rather",
        "said",
        "say",
        "says", 
       "she",
        "should",
        "since",
        "so",
        "some",
        "than",
        "that",
        "the",
        "their",
        "them",
        "then",
        "there",
        "these",
        "they",
        "this",
        "tis",
        "to",
        "too",
        "twas",
        "us",
        "wants",
        "was",
        "we",
        "were",
        "what",
        "when",
        "where",
        "which",
        "while",
        "who",
        "whom",
        "why",
        "will",
        "with",
        "would",
        "yet",
        "you",
        "your"
    ],
    "stemming": false,
    "id": 1,
    "casefold": true,
    "fields": [
        "description"
    ],
    "mask": {
        "path": false,
        "number": true,
        "date_time": true,
        "mac_address": false,
        "guid": false,
        "hex": false,
        "oid": false,
        "ip_address": false,
        "stop_word": false,
        "word": false,
        "url": false,
        "email": false
    }
}

Example response returning an Events Analyser configuration that uses partitioning:

{
    "priority_words": true,
    "partition_by": "source",
    "stop_word_length": 0,
    "stemming_language": "english",
    "partition_overrides": {
        "SOURCE11": {
            "stop_words": false,
            "priority_words": false,
            "fields": [
                "description"
            ],
            "casefold": true,
            "stop_word_length": 5
        },
        "SOURCE22": {
            "priority_words_list": [
                "reboot",
                "shutdown"
            ],
            "stop_words": true,
            "stop_words_list": [
                "france",
                "germany",
                "italy",
                "peru",
                "india",
                "japan",
                "korea"
            ],
            "stemming": true,
            "priority_words": true,
            "stop_word_length": 1,
            "mask": {
                "date_time": false,
                "ip_address": true
            }
        }
    },
    "priority_words_list": [
        "down",
        "fail",
        "loss",
        "low"
    ],
    "stop_words": true,
    "stop_words_list": [
        "%",
        ":",
        "=",
        ".",
        "|",
        "-",
        "~",
        "&",
        "a",
        "able",
        "about",
        "across",
        "after",
        "all",
        "almost",
        "also",
        "am",
        "among",
        "an",
        "and",
        "any",
        "are",
        "as",
        "at",
        "be",
        "because",
        "been",
        "but",
        "by",
        "can",
        "cannot",
        "could",
        "dear",
        "did",
        "do",
        "does",
        "either",
        "else",
        "ever",
        "every",
        "for",
        "from",
        "get",
        "got",
        "had",
        "has",
        "have",
        "he",
        "her",
        "hers",
        "him",
        "his",
        "how",
        "however",
        "i",
        "if",
        "in",
        "into",
        "is",
        "it",
        "its",
        "just",
        "least",
        "let",
        "like",
        "likely",
        "may",
        "maybe",
        "me",
        "might",
        "most",
        "must",
        "my",
        "neither",
        "no",
        "nor",
        "not",
        "of",
        "off",
        "often",
        "on",
        "only",
        "or",
        "other",
        "our",
        "own",
        "rather",
        "said",
        "say",
        "says", 
        "she",
        "should",
        "since",
        "so",
        "some",
        "than",
        "that",
        "the",
        "their",
        "them",
        "then",
        "there",
        "these",
        "they",
        "this",
        "tis",
        "to",
        "too",
        "twas",
        "us",
        "wants",
        "was",
        "we",
        "were",
        "what",
        "when",
        "where",
        "which",
        "while",
        "who",
        "whom",
        "why",
        "will",
        "with",
        "would",
        "yet",
        "you",
        "your"
    ],
    "stemming": false,
    "id": 1,
    "casefold": true,
    "fields": [
        "description"
    ],
    "mask": {
        "path": false,
        "number": true,
        "date_time": true,
        "mac_address": false,
        "guid": false,
        "hex": false,
        "oid": false,
        "ip_address": false,
        "stop_word": false,
        "word": false,
        "url": false,
        "email": false
    }
}