Craig Bryant 6a67fecc80 Add Last function
Add the LAST function to the Java parser and its associated classes.
It will save the last value received by its timestamp

Update SubAlarmDb to have a state field. This will be used in the
Threshold Engine for the new LAST function

Add a force argument to SubAlarmStats.addValue() because the
Threshold Engine will always need to add the values for the alarm
because they are only sent once

The changes to Java Monasca API and Monasca Thresh for this last-value
will require these changes, first

Also, remove all trailing spaces from AlarmExpression.g4

Change-Id: Ie3192370057676e89bfebbc5ce4243b1a3ecf0ea
Implements: Blueprint last-value
2016-07-27 12:44:09 -06:00

36 lines
1.2 KiB
XML

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>monasca-common</groupId>
<artifactId>monasca-common</artifactId>
<version>${computedVersion}</version>
</parent>
<artifactId>monasca-common-hibernate</artifactId>
<packaging>jar</packaging>
<properties>
<hibernate-core.version>5.0.1.Final</hibernate-core.version>
</properties>
<dependencies>
<dependency>
<groupId>monasca-common</groupId>
<artifactId>monasca-common-model</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate-core.version}</version>
</dependency>
<dependency>
<groupId>monasca-common</groupId>
<artifactId>monasca-common-testing</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>