Measurements

Measurements

A component that contains statistical or measurement information for TARGET resources that are being monitored. The measurement should be based upon a defined metric (a method of measurement).

Property Type Required Description
result xs:any Yes The quantitative or qualitative result of a measurement from applying the associated metric
metric cadf:Metric Dependent The property describes the metric used in generating the measurement result. Required if not metricId
metricId cadf:Identifier Dependent This property identifies a CADF Metric by reference and whose definition exists elsewhere. Required if not metric
calculatedBy cadf:Resource No An optional description of the resource that calculated the measurement

Metrics

The Metric data type describes the rules and processes for measuring some activity or resource, resulting in the generation of some values (captured by the Measurement type).

Property Type Required Description
metricId cadf:identifier Yes The identifier for the metric.
unit xs:string Yes The metrics unit (e.g., “ms”, “Hz”, “GB”, etc.)
name xs:string No A descriptive name for metric
annotations cadf:map No User-defined metric information.

Serialisation

{
    "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/log",
    ...,
    "metrics": [
        {
            "metricId": "myuuid://metric.org/1234",
            "unit": "GB",
            "name": "Storage Capacity in Gigabytes"
        }
    ],
    ...,
    "events": [
        {
            "typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event",
            ...,
            "measurements": [
                {
                    "result": "10",
                    "metricId": "myuuid://metric.org/1234"
                }
            ]
        }
    ]
}
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.