---
title: Applying SLM Classes from TrafficScript
slug: ps/help/en_us/vtm/userguide/applying-slm-classes-from-trafficscript
docTags: 
createdAt: 2026-08-02T07:48:41.439Z
---

TrafficScript includes a number of functions that can be used to read current information from an SLM class, or change the SLM class for a connection.

These functions are documented in the TrafficScrip&#x74;**&#x20;Reference** (available through the Online Help).

Note in particular connection.setServiceLevelClass() which selects a particular SLM class for the request, overriding the virtual server's default SLM class. See also slm.conforming(), which returns the current conformance percentage value.
