ClassFilters

Class Filters are the classes defined by the owner of the log which are used to classify events. Each Class Filter includes a key, color and match information.

Client implementers will want to retreive filter information to know how to color-code events with specific classes.

List All
List All By Log
List One

List All

Returns all class filters for the authenticated user across all the logs the user is associated with.

URL

GET /logs/classFilters

Request

No request data is sent

Response

Status: 200 OK

[
    {
        "key":"mytestlog",
        "classFilters":[
			{
				"key":"errors",
				"display":"Error Events",
				"color":"red",
				"tag":"error",
				"text":"",
				"link":""
				"source":"",
				"weight":0
			},
			{
				"key":"new",
				"display":"New Events",
				"color":"green",
				"tag":"new",
				"text":"",
				"link":""
				"source":"",
				"weight":0
			}
		]
    }
]
top

List All By Log

Returns all class filters for the authenticated user contained in the log identified by {logkey}.

URL

GET /logs/{logkey}/classFilters

Request

No request data is sent

Response

Status: 200 OK

[
	{
		"key":"errors",
		"display":"Error Events",
		"color":"red",
		"tag":"error",
		"text":"",
		"link":""
		"source":"",
		"weight":0
	},
	{
		"key":"new",
		"display":"New Events",
		"color":"green",
		"tag":"new",
		"text":"",
		"link":""
		"source":"",
		"weight":0
	}
]
top

List One

Returns a single class filter. This call will only work for class filters that are contained in the log identified by {logkey}.

URL

GET /logs/{logkey}/classFilters/{id}

Request

No request data is sent

Response

Status: 200 OK

{
	"key":"errors",
	"display":"Error Events",
	"color":"red",
	"tag":"error",
	"text":"",
	"link":""
	"source":"",
	"weight":0
}
top