class Config extends Serializable
utility class which provides all the default configuration
Kafka Topics example when rawTopic = mdx-raw, the prefix mdx- is used for rest of the topic name generation
alertsTopic = mdx-alerts
framesTopic = mdx-frames
behaviorTopic = mdx-behavior
behaviorPlusTopic = mdx-behavior-plus
tripwireTopic = mdx-tripwire
User can always override the above in the configuration
Also provides default configuration for various anomalies, this could be sensor specific or application wide
- Abnormal Movement
- Speeding anomaly
- unexpected stopping
other Cofiguration include
- Default Triton Inference Server host and port
- checkpoint directory
- threshold used for clustering
- Alphabetic
- By Inheritance
- Config
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Config(config: Map[String, String] = Map.empty)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
abnormalDistanceThreshold(implicit sensorId: String): Double
default is 60 meters
-
def
abnormalMinTrajectoryLen(implicit sensorId: String): Int
default is 40 points
-
def
abnormalRelativeDirectionChangeEnable(implicit sensorId: String): Boolean
default is true
-
def
abnormalRelativeMaxThreshold(implicit sensorId: String): Double
default is 20 meters
-
def
abnormalRelativeThreshold(implicit sensorId: String): Double
default is 2.5
-
def
abnormalTimeIntervalThreshold(implicit sensorId: String): Double
default is 6 seconds
-
def
abnormalUseLinearDistance(implicit sensorId: String): Boolean
default is true
-
lazy val
abnormal_filtered_list: List[String]
list of sensors to ignore while doing anomaly detection
- lazy val alertsTopic: String
- def anomalyDetectionCheck(implicit sensorId: String): Boolean
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val behaviorPlusTopic: String
- lazy val behaviorStateTimeout: Long
- lazy val behaviorTopic: String
- lazy val behaviorWatermark: Int
-
def
changeInDirectionDegree(implicit sensorId: String): Double
default is 30 degrees
-
def
changeInDirectionDistance(implicit sensorId: String): Int
default is 20 meters
-
def
changeInDirectionStep(implicit sensorId: String): Int
default is 5
-
val
checkpoint_dir: String
checkpoint_dir, default value "checkpoint"
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
clusterTimeIntervalThreshold(implicit sensorId: String): Double
default is 2 seconds, a behavior object will be assigned a cluster index if the time interval is > threshold, used for traffic pattern
- var config: Map[String, String]
-
val
dataType: String
input data type, default value "protobuf", other option is "json"
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- lazy val framesTopic: String
- def getBooleanValue(sensorId: String, key: String, dValue: Boolean): Boolean
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getDoubleValue(sensorId: String, key: String, dValue: Double): Double
- def getIntValue(sensorId: String, key: String, dValue: Int): Int
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
lazy val
inferenceTriggerInterval: String
default is "10 seconds", the enhance-behavior pipeline will be triggered based on this value
-
def
initConfig: Unit
to be invoked only when running locally
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
kafkaBrokers: String
kafka broker and topics, global to all sensors
- def localMode: Boolean
-
lazy val
log: Logger
init logger
init logger
- Annotations
- @transient()
- lazy val maxBehaviorPointsStored: Int
-
lazy val
milvusBboxAspectRatioMax: Double
milvus bboxAspectRatio min / max
-
lazy val
milvusBboxAspectRatioMin: Double
milvus bboxAspectRatio min / max
-
lazy val
milvusBboxConfidence: Double
milvus bboxConfidence
-
lazy val
milvusBboxSize: Int
milvus bboxSize
-
lazy val
milvusClusterThreshold: Double
milvus ClusterThreshold
-
lazy val
milvusCollection: String
milvus collection name
-
lazy val
milvusHost: String
milvus DB host
-
lazy val
milvusIndexParam: String
milvus indexParam
-
lazy val
milvusIndexType: String
milvus indexType
-
lazy val
milvusMetricType: String
milvus metricType
-
lazy val
milvusPartitioningStrategy: String
milvus PartitioningStrategy
-
lazy val
milvusPort: Int
milvus DB grpc port
-
lazy val
milvusSensorIdMaxLength: Int
milvus sensor id max length
-
lazy val
milvusTriggerInterval: String
default is "60 seconds", the milvus-insertion pipeline will be triggered based on this value
-
lazy val
milvusVectorDim: Int
milvus embedding vector dimension
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val notificationTopic: String
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def proximityDetectionThreshold(implicit sensorId: String): Double
- lazy val rawTopic: String
-
val
resetMilvus: Boolean
milvus reset flag
- lazy val sensorConfigMap: Map[String, Map[String, String]]
- def speedMphThreshold(implicit sensorId: String): Double
- def speedTimeIntervalThreshold(implicit sensorId: String): Double
- def stoppingMphThreshold(implicit sensorId: String): Double
- def stoppingTimeIntervalThreshold(implicit sensorId: String): Double
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
sys: String
configuration init
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- lazy val topic: String
- lazy val topicPrefix: String
-
def
tripwireMinPoints(implicit sensorId: String): Int
default is 5
- lazy val tripwireTopic: String
-
lazy val
tritonHost: String
triton inference server host
-
lazy val
tritonPort: Int
triton inference server grpc port
-
def
validBehaviorLength(implicit sensorId: String): Int
default is 10 i.e.
default is 10 i.e. at 10 object detections are needed to form a valid behavior object
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated