Was this helpful?

 

Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

/reports

Description: Generates metadata for an Analytics report

Verb: POST
Auth: Basic Auth
Media types:
application/json
Sample Request:
$ curl -H "Content-type:application/json" -X POST -d \
' {
    "displayName": "Weather API Performance",
    "sortbyCols": [
        "size",
        "length"
    ],
    "sortOrder": "DESC",
    "limit": "1000",
    "timeUnit": "minute",
    "timeDuration": "today",
    "dimensions": [
        "hour",
        "second"
    ],
    "chartType": "histogram",
    "tags": [
        "performance",
        "weather"
    ],
    "filter":"(apiproxy in \"weatherapi\") or (iserror eq 1)",
    "metrics": [
        {
            "function": "SUM",
            "name": "messagecount"
        },
        {
            "function": "SUM",
            "name": "error_count"
        }
    ],
    "properties": [
        {
            "property": "someProperty1",
            "value": [
                {
                    "name": "name1",
                    "value": "function1"
                },
                {
                    "name": "name2",
                    "value": "function2"
                }
            ]
        },
        {
            "property": "someProperty2",
            "value": [
                {
                    "name": "name1",
                    "value": "value1"
                },
                {
                    "name": "name2",
                    "value": "value2"
                }
            ]
        }
    ],
    "comments": [
        "contact operations with issues"
    ],
    "environment": "test"
}' \
https://api.enterprise.apigee.com/v1/o/{org_name}/reports \
-u myname:mypass
Sample Response:
{
  "chartType" : "histogram",
  "comments" : [ "contact operations with issues" ],
  "createdAt" : 1370513888930,
  "createdBy" : "admin@apigee.com",
  "dimensions" : [ "hour", "second" ],
  "displayName" : "Weather API Performance",
  "environment" : "test",
  "filter" : "(apiproxy in \"weatherapi\") or (iserror eq 1)",
  "lastModifiedAt" : 1370513888930,
  "lastModifiedBy" : "admin@apigee.com",
  "lastViewedAt" : 1370513888930,
  "limit" : "1000",
  "metrics" : [ {
    "function" : "SUM",
    "name" : "messagecount"
  }, {
    "function" : "SUM",
    "name" : "error_count"
  } ],
  "name" : "2c8fb876-d6ac-463e-8e94-0865e39e43c6",
  "organization" : "{org_name}",
  "properties" : [ {
    "property" : "someProperty2",
    "value" : [ {
      "name" : "name1",
      "value" : "value1"
    }, {
      "name" : "name2",
      "value" : "value2"
    } ]
  }, {
    "property" : "someProperty1",
    "value" : [ {
      "name" : "name1",
      "value" : "function1"
    }, {
      "name" : "name2",
      "value" : "function2"
    } ]
  } ],
  "sortOrder" : "DESC",
  "sortbyCols" : [ "size", "length" ],
  "tags" : [ "performance", "weather" ],
  "timeDuration" : "today",
  "timeUnit" : "minute"
}

 

コメントを追加

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.