Supported output formats

The Threshold Service supports the returning time series data in the following format.

  • JSON

Standard JSON format

JSON sample for standard metric data.
{
  "groups": [
    {
      "tenantID": "TNCP",
      "timestamp": 1662536700000,
      "resourceID": "e7da672b-27e7-41b7-8bf0-3875de231e77-noi-analytics-batch-0-basecamp-analytics-batch",
      "metrics": {
        "kubernetesContainer_CPUUsageCoreNanoseconds_nanoseconds": 858724519430
      },
      "attributes": {
        "node": "e7da672b-27e7-41b7-8bf0-3875de231e77-noi-analytics-batch-0",
        "group": "kubernetesContainer",
        "group_name": "kubernetesContainer"
      }
    },
    {
      "tenantID": "TNCP",
      "timestamp": 1662536701000,
      "resourceID": "e7da672b-27e7-41b7-8bf0-3875de231e77-noi-analytics-batch-0-basecamp-analytics-batch",
      "metrics": {
        "kubernetesContainer_restartsTotal_number": 0
      },
      "attributes": {
        "node": "e7da672b-27e7-41b7-8bf0-3875de231e77-noi-analytics-batch-0",
        "group": "kubernetesContainer",
        "group_name": "kubernetesContainer"
      }
    }
  ]
}

IBM Operations Analytics - Predictive Insights compatible format

The IBM® Operations Analytics - Predictive Insights compatible sample to send metric data to IBM Operations Analytics - Predictive Insights.

Use this JSON format file to load data into IBM Operations Analytics - Predictive Insights for use with the REST Mediation service.
{
    "groups": [
        {
            "tenantID": "TNCP",
            "timestamp": 1543861808339,
            "resourceID": "Agent235.ibm.com-0",
            "metrics": {
                "Network_Inbound_Errors_Count": 0,
                "Network_Inbound_Broadcast_pps": 0,
                "Network_Outbound_Errors_Count": 0,
                "Network_Inbound_Discards_Count": 246624,
                "Network_Inbound_Packets_Count": 0,
                "Network_Inbound_Utilization_Percent": 0,
                "Network_Outbound_Utilization_Percent": 7.999120096789353e-8,
                "Network_Inbound_Non-Unicast_pps": 0
            },
            "attributes": {
                "node": "Agent235.ibm.com",
                "group": "interface",
                "group_name": "interface"
            }
        },
        {
            "tenantID": "NPI",
            "timestamp": 1543861802927,
            "resourceID": "Agent219.ibm.com-Mu1",
            "metrics": {
                "Network_Inbound_Unicast_pps": 215.01959450759514,
                "Network_Unknown_Protocols_Dropped_Count": 44180
            },
            "attributes": {
                "node": "Agent219.ibm.com",
                "group": "interface",
                "group_name": "interface"
            }
        }]}