Usage Guideline + Authenticati...
Analytics
3min
functions the analytics library supports a variety of functions for listing, creating, updating, and deleting analytics components list all groups gets all groups in the analytics service analytics prometheus metrics gets an unformatted string of the prometheus service metrics list all processors get all processors in the analytics service list all functions get all functions in the analytics service create processor create a processor in a group with specified properties connect processor connect a list of analytics processors together by values or events list all in processor library list all known processors in the internal library get single processor from library lookup processor by name from the internal library remove all processors remove a list of processors from all groups enable processor enable a specified processor by id update processor update parameters of a processor delete processor delete specified processor by id get processor lookup parameters of processor by id get processor last value lookup last processor value by id processor library the sdk provides a processor library accessible from litmussdk analytics processors which lists a set of processors and default parameters to aid in the creation of analytics these can be accessed either directly via import e g processors generator or via name lookup get single processor from library("generator") examples creating processor from library from litmussdk analytics import processors from litmussdk import analytics generator = processors generator result = analytics create processor( "my processor", generator internal function name, generator parameters, true, "default" )