Special Segmentation Format: os

The os value is made up of 3 granularity levels - platform, version, and edition. A particular level needs to be selected, and this is to be included in the property name such as os.version or os.edition. Different granularity levels can be requested for different segmentation levels. Therefore, it is possible to generate a 3-level hierarchical tree in which level 1 would show the OS platform, level 2 would show the version, and level 3 would show the full name including the OS edition or sub-version. For a description of the differences between the 3 granularity levels, refer to Special Filter: os.

The following example shows the levels object requesting 3 granularity levels as described above:

{

    "level1": {

        "property": "os.platform",

        "segments": [

            {

                "type": "regex",

                "value": ".*",

                "split": true

            }

        ]

    },

    "level2": {

        "property": "os.version",

        "segments": [

            {

                "type": "regex",

                "value": ".*",

                "split": true

            }

        ]

    },

    "level3": {

        "property": "os.edition",

        "segments": [

            {

                "type": "regex",

                "value": ".*",

                "split": true

            }

        ]

    }

}

In the above example, no filtering is being done, and instead, a regular expression to include everything is set as the value. This will result in all OS platforms, versions, and editions to be included in the hierarchy.