Show a patch.

GET /api/patches/44729/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 44729,
    "url": "http://patches.dpdk.org/api/patches/44729/",
    "web_url": "http://patches.dpdk.org/patch/44729/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<20180914135406.52190-9-david.hunt@intel.com>",
    "date": "2018-09-14T13:54:06",
    "name": "[v3,8/8] examples/power: add json example files",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "74700afd58a6dcfae752a6a1226393ffdf8f27af",
    "submitter": {
        "id": 342,
        "url": "http://patches.dpdk.org/api/people/342/",
        "name": "David Hunt",
        "email": "david.hunt@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/patch/44729/mbox/",
    "series": [
        {
            "id": 1322,
            "url": "http://patches.dpdk.org/api/series/1322/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1322",
            "date": "2018-09-14T13:53:58",
            "name": "add json power policy interface for containers",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/1322/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44729/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44729/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "X-ExtLoop1": "1",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Mailer": "git-send-email 2.17.1",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4B4BA695D;\n\tFri, 14 Sep 2018 15:54:30 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id 09A4A5F2B\n\tfor <dev@dpdk.org>; Fri, 14 Sep 2018 15:54:24 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Sep 2018 06:54:24 -0700",
            "from silpixa00399952.ir.intel.com (HELO\n\tsilpixa00399952.ger.corp.intel.com) ([10.237.223.64])\n\tby orsmga005.jf.intel.com with ESMTP; 14 Sep 2018 06:54:22 -0700"
        ],
        "References": "<20180912144930.50578-1-david.hunt@intel.com>\n\t<20180914135406.52190-1-david.hunt@intel.com>",
        "X-Amp-File-Uploaded": "False",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<20180914135406.52190-9-david.hunt@intel.com>",
        "X-IronPort-AV": "E=Sophos;i=\"5.53,373,1531810800\"; d=\"scan'208\";a=\"257257243\"",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Precedence": "list",
        "From": "David Hunt <david.hunt@intel.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "In-Reply-To": "<20180914135406.52190-1-david.hunt@intel.com>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Fri, 14 Sep 2018 14:54:06 +0100",
        "Cc": "john.mcnamara@intel.com, stephen@networkplumber.org, lei.a.yao@intel.com,\n\tbruce.richardson@intel.com, David Hunt <david.hunt@intel.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v3 8/8] examples/power: add json example files"
    },
    "content": "This patch provides some example files in the json_examples sub-directory\nfor sending to the fifo.\n\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n examples/vm_power_manager/json_examples/README            | 6 ++++++\n examples/vm_power_manager/json_examples/create.json       | 8 ++++++++\n examples/vm_power_manager/json_examples/destroy.json      | 4 ++++\n examples/vm_power_manager/json_examples/set_core_max.json | 6 ++++++\n examples/vm_power_manager/json_examples/set_core_min.json | 6 ++++++\n 5 files changed, 30 insertions(+)\n create mode 100644 examples/vm_power_manager/json_examples/README\n create mode 100644 examples/vm_power_manager/json_examples/create.json\n create mode 100644 examples/vm_power_manager/json_examples/destroy.json\n create mode 100644 examples/vm_power_manager/json_examples/set_core_max.json\n create mode 100644 examples/vm_power_manager/json_examples/set_core_min.json",
    "diff": "diff --git a/examples/vm_power_manager/json_examples/README b/examples/vm_power_manager/json_examples/README\nnew file mode 100644\nindex 000000000..a94c6b14b\n--- /dev/null\n+++ b/examples/vm_power_manager/json_examples/README\n@@ -0,0 +1,6 @@\n+Sample files for sending to the vm_power_manager through the fifo.\n+\n+Simply cat the file to /tmp/powermonitor/fifo.0 when the vm_power_manager\n+application is running.\n+\n+E.g. cat create.json >/tmp/powermonitor/fifo.0\ndiff --git a/examples/vm_power_manager/json_examples/create.json b/examples/vm_power_manager/json_examples/create.json\nnew file mode 100644\nindex 000000000..a7133d9a1\n--- /dev/null\n+++ b/examples/vm_power_manager/json_examples/create.json\n@@ -0,0 +1,8 @@\n+{\"policy\": {\n+  \"name\": \"policy-1\",\n+  \"command\": \"create\",\n+  \"policy_type\": \"TIME\",\n+  \"busy_hours\":[ 17, 18, 19, 20, 21, 22, 23 ],\n+  \"quiet_hours\":[ 2, 3, 4, 5, 6 ],\n+  \"core_list\":[ 11, 12 ]\n+}}\ndiff --git a/examples/vm_power_manager/json_examples/destroy.json b/examples/vm_power_manager/json_examples/destroy.json\nnew file mode 100644\nindex 000000000..587c9e7e9\n--- /dev/null\n+++ b/examples/vm_power_manager/json_examples/destroy.json\n@@ -0,0 +1,4 @@\n+{\"policy\": {\n+  \"name\": \"policy-1\",\n+  \"command\": \"destroy\"\n+}}\ndiff --git a/examples/vm_power_manager/json_examples/set_core_max.json b/examples/vm_power_manager/json_examples/set_core_max.json\nnew file mode 100644\nindex 000000000..497030a44\n--- /dev/null\n+++ b/examples/vm_power_manager/json_examples/set_core_max.json\n@@ -0,0 +1,6 @@\n+{\"instruction\": {\n+  \"name\": \"set_power\",\n+  \"command\": \"power\",\n+  \"unit\": \"SCALE_MAX\",\n+  \"resource_id\": 10\n+}}\ndiff --git a/examples/vm_power_manager/json_examples/set_core_min.json b/examples/vm_power_manager/json_examples/set_core_min.json\nnew file mode 100644\nindex 000000000..76d934fd8\n--- /dev/null\n+++ b/examples/vm_power_manager/json_examples/set_core_min.json\n@@ -0,0 +1,6 @@\n+{\"instruction\": {\n+  \"name\": \"set_power\",\n+  \"command\": \"power\",\n+  \"unit\": \"SCALE_MIN\",\n+  \"resource_id\": 10\n+}}\n",
    "prefixes": [
        "v3",
        "8/8"
    ]
}