連続問合せの取得連続問合せ名に基づいて連続問合せの詳細を取得します。

get

/OracleBAMREST/api/projects/{projectname}/queries/businessqueries/continuousqueries/{continuousqueryname}

リクエスト

この操作にはリクエスト・パラメータはありません。

レスポンス

サポートされているメディア・タイプ

200 レスポンス

成功
本文
レスポンスの例(application/json)
{
    "query":{
        "simpleNorm":true,
        "systemManaged":false,
        "refreshTime":null,
        "internal":false,
        "deviationTimes":1,
        "timestampField":null,
        "aggregationFunction":null,
        "activeEnable":false,
        "normTimeUnit":"SQL_TSI_DAY",
        "normEveryTimeUnit":"day",
        "displayName":"removeme",
        "createdDate":"2015-05-08T09:54:09.885+0000",
        "measureField":null,
        "groupby":[
        ],
        "id":"/project/TimeSeries_DatetimeDrilling/continuousquery/removeme",
        "partitionByCalculatedField":{
        },
        "calculatedField":{
        },
        "createdBy":"testuser",
        "normFunction":"AVG",
        "rollingWindow":null,
        "name":"removeme",
        "outputs":[
        ],
        "mesureField":null,
        "percentDeviation":false,
        "simpleDeviation":true,
        "alertCondition":null,
        "opaque":false,
        "modifiedBy":"testuser",
        "templateName":"kpi_alert_template",
        "normValue":1,
        "filterString":null,
        "historicalNorm":false,
        "opaqueCql":null,
        "calDeviation":false,
        "CQLStatement":null,
        "modifiedDate":"2015-05-08T09:54:09.885+0000",
        "normEveryTime":1,
        "normTime":1,
        "deviationPercent":0.01,
        "normName":"simple",
        "projectList":null,
        "groupbyCalculatedField":{
            "entries":[
            ]
        },
        "deviationFunction":"STDDEV",
        "deviationValue":1,
        "description":null,
        "dataObject":null
    },
    "links":[
        {
            "rel":"self",
            "href":"http://example.com:7001/OracleBAMREST/api/projects/TimeSeries_DatetimeDrilling/queries/continuousqueries/removeme"
        }
    ]
}

次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、ID別に一括で項目を参照する方法を示しています。

curl -i -X GET https://<hostname>/content/management/api/v1/items/bulk/aggregate?ids= ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2

例: レスポンス・ヘッダー

次にレスポンス・ヘッダーの例を示します。

HTTP/1.1 200 OK
Cache-Control: max-age=0
Content-Length: 1750
Content-Type: application/json
Date: Tue, 03 Jan 2017 10:30:12 GMT
Etag: "ba12800a55d800aa095e45c5a7d8e6a5487b72727b4753febd81fd755757e8d7"
Server: Apache-Coyote/1.1
X-XSS-Protection: 1
x-content-type-options: nosniff

例: レスポンス本文

JSON形式で返されるレスポンスの例を次に示します。ID別に一括で項目を表示します: ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2

        {
        "items":
        {
            "ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef":
            {
                "id": "ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef",
                "type": "ModelType",
                "name": "BMW",
                "description": "BMW model description",
                "createdby": "userName",
                "createddate":
                {
                    "value": "2017-01-03T09:48:56.110Z",
                    "timezone": "UTC",
                    "description": ""
                },
                "updatedby": "userName",
                "updateddate":
                {
                    "value": "2017-01-03T10:02:21.360Z",
                    "timezone": "UTC",
                    "description": ""
                },
                "links": null,
                "Year": 2015,
                "Model": "BMW Z4"
            },
            "ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2":
            {
                "id": "ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
                "type": "ModelType",
                "name": "BMW",
                "description": "BMW model description",
                "createdby": "userName",
                "createddate":
                {
                    "value": "2017-01-03T10:28:28.690Z",
                    "timezone": "UTC",
                    "description": ""
                },
                "updatedby": "userName",
                "updateddate":
                {
                    "value": "2017-01-03T10:28:28.690Z",
                    "timezone": "UTC",
                    "description": ""
                },
                "links": null,
                "Year": 2016,
                "Model": "BMW 3-Series"
            }
        },
        "links":
        [
            {
                "href": "https://<hostname>/content/management/api/v1/items/bulk?ids=ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
                "rel": "self",
                "templated": false,
                "method": "GET",
                "profile": "",
                "mediaType": ""
            },
            {
                "href": "https://<hostname>/content/management/api/v1/items/bulk?ids=ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
                "rel": "canonical",
                "templated": false,
                "method": "GET",
                "profile": "",
                "mediaType": ""
            },
            {
                "href": "https://<hostname>/content/management/api/v1/metadata-catalog/items/bulk",
                "rel": "describedby",
                "templated": false,
                "method": "GET",
                "profile": "",
                "mediaType": "application/schema+json"
            }
        ]
    }