public class PatternOperationsClient extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
PatternOperationsClient.ClientBuilder |
MindsphereAPIClient.Builder<T extends MindsphereAPIClient.Builder<T>>
credentials, restClientConfig, restTemplate
Constructor and Description |
---|
PatternOperationsClient(PatternOperationsClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static PatternOperationsClient.ClientBuilder |
builder() |
PatternMatchingOutput |
matchPatternsOverEvents(MatchPatternsOverEventsRequest requestObject)
Applies the patterns specified in body on a list of events
Finds all instances of the specified pattern(s) in a collection of events.
|
PatternMatchingOutput |
matchPatternsOverEvents(PatternMatchingInputDataModel data)
Applies the patterns specified in body on a list of events Finds all
instances of the specified pattern(s) in a collection of events.
|
public PatternOperationsClient(PatternOperationsClient.ClientBuilder builder)
public static PatternOperationsClient.ClientBuilder builder()
public PatternMatchingOutput matchPatternsOverEvents(MatchPatternsOverEventsRequest requestObject) throws MindsphereException
200 - OK
400 - Wrong parameters
403 - Not Authorized. Missing security scope \\\"as.ea.u\\\"
503 - Internal error
requestObject
- - Object of type MatchPatternsOverEventsRequest {Parameters are data*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic PatternMatchingOutput matchPatternsOverEvents(PatternMatchingInputDataModel data) throws MindsphereException
200 - OK
400 - Wrong parameters
403 - Not Authorized. Missing security scope \\\"as.ea.u\\\"
503 - Internal error
data
- Data structure with four parts -
<b>maxPatternInterval</b>,
<b>patternsList</b>, <b>nonEvents</b> and
<b>eventsInput</b>. <ul>
<li><b>maxPatternInterval </b> The maximum time
length (in milliseconds) of the sliding window where the pattern
occurs (Maximum difference allowed between the first event of the
pattern and the last one). </li> <li>
<b>patternsList</b> The patterns to be found in
events. The <b>eventText</b> can contain
<b>regular expressions</b>. The acceptable syntax for
the regular expressions is the java syntax.
<b>minRepetitions</b> and
<b>maxRepetitions</b> represent the minimum and
maximum number of events of the specified type that are allowed to
occur in order for the pattern to be matched on the
events.</li> <li> <b>nonEvents</b> A list
of events that is not allowed to be part of a pattern. Any pattern
which contains a non-event is excluded from the final
report.</li> <li> <b>eventsInput</b>
Metadata for the events list specifying the property name of the
item in the events list that contains the text of the event and
the list with the events that will be processed.</li>
</ul>MindsphereException
- if an error occurs while attempting to invoke the API