Does Apigee analytics url give us correct data or latency or which clock they follow?

Not applicable

Good morning,

I am building my personal report for daily basis. I am using following urls to get data but, I am not receiving any data through that URLs but, I can see the traffic in my edge management ui.

1) https://api.enterprise.apigee.com/v1/o/{org-name}/...

2) https://api.enterprise.apigee.com/v1/o/{org-name}/...

3) https://api.enterprise.apigee.com/v1/o/{org-name}/...=day

Please guid me what is wrong? Because since last week , I was receiving traffic and get data. But, I am still in testing phase as, I need to verify that data is correct through these URLs too.

But, not getting data now.

Please guide me.

Thank you.

Regards,

Dhwani.

0 6 319
6 REPLIES 6

What is the response from the API calls you have listed for your org? Can you paste it in here?

Thank you @Carlos Eberhardt. Here is urls with its responses:

URL : 1) https://api.enterprise.apigee.com/v1/o/{org-name}/environments/prod/stats/apps?select=sum(message_co...

response:

{
  "environments" : [ {
    "dimensions" : [ {
      "metrics" : [ {
        "name" : "sum(message_count)",
        "values" : [ {
          "timestamp" : 1443398400000,
          "value" : "62.0"
        } ]
      } ],
      "name" : "vzhackteam_01"
    } ],
    "name" : "prod"
  } ],
  "metaData" : {
    "errors" : [ ],
    "notices" : [ "source pg30d2cf39-3804-4212-a11b-0b64e1cbe306", "query served by:5b020383-d774-4bf9-9dd3-fdf281033fea", "Table used: verizonventures.prod.agg_app" ]
  }
}

URL: 2) https://api.enterprise.apigee.com/v1/o/{org-name}/...

{
  "environments" : [ {
    "dimensions" : [ {
      "metrics" : [ {
        "name" : "message_count",
        "values" : [ {
          "timestamp" : 1443398400000,
          "value" : "62.0"
        } ]
      } ],
      "name" : "Street Maps and Satellite Imagery"
    } ],
    "name" : "prod"
  } ],
  "metaData" : {
    "errors" : [ ],
    "notices" : [ "source pg30d2cf39-3804-4212-a11b-0b64e1cbe306", "query served by:1e99d593-0288-4f80-8033-6a481f68e436", "Table used: verizonventures.prod.agg_app" ]
  }
}

URL: 3) https://api.enterprise.apigee.com/v1/o/{org-name}/...

{
  "environments" : [ {
    "dimensions" : [ {
      "metrics" : [ {
        "name" : "app_count",
        "values" : [ {
          "timestamp" : 1443398400000,
          "value" : "1.0"
        } ]
      } ],
      "name" : "Street Maps and Satellite Imagery"
    } ],
    "name" : "prod"
  } ],
  "metaData" : {
    "errors" : [ ],
    "notices" : [ "source pg30d2cf39-3804-4212-a11b-0b64e1cbe306", "query served by:5b020383-d774-4bf9-9dd3-fdf281033fea", "Table used: verizonventures.prod.agg_app" ]
  }
}

Ok, and is that data wrong? Not matching up to what you see in the management UI?

@Carlos Eberhardt , Yes data is not matching with edge ui data and my excel data doc. There is some trouble with this urls. I am not getting data and also getting wrong data too.

When you look in the UI are you looking at the same environment used for the API requests (prod vs test, e.g.)? If so, how different is the data?

Are you saying that sometimes the API calls return data and sometimes they don't? What do the responses look like when they don't return data?

Thanks!

Hello @Carlos Eberhardt Yes. I am looking into same environment as well as same org. But, not getting right data.

what should I do to get correct data in my python script?

Thank you.