Skip to main content
Solved

Pipeline Metrics Using REST API

  • February 17, 2023
  • 3 replies
  • 51 views

Hello All,

May I know what is correct parameter to use below REST API  as I am unable to use this REST Call

 

Basically I need correct values for PARAM1 and PARAM2

 

Returns all Pipelines created by users in a group between a start and end time GET https://cloud.streamsets.com/pipelinestore/rest/v1/metrics/pipelines?startTime=<PARAM1>&endTime=<PARAM2>

Best answer by Bikram

 

 

@yogesh0590 

 

I tried with below date and time , it returned me the output as given below. 

 

https://na01.hub.streamsets.com/pipelinestore/rest/v1/metrics/pipelines?orderBy=VERSION&startTime=20230217202735&endTime=20230217202749

 

 

output :

 

{
    "totalCount": 0,
    "offset": 0,
    "len": -1,
    "data": []
}
View original
Did this topic help you find an answer to your question?

3 replies

  • Author
  • 11 replies
  • February 17, 2023
yogesh0590 wrote:

Hello All,

May I know what is correct parameter to use below REST API  as I am unable to use this REST Call

 

Basically I need correct values for PARAM1 and PARAM2

 

Returns all Pipelines created by users in a group between a start and end time GET https://cloud.streamsets.com/pipelinestore/rest/v1/metrics/pipelines?startTime=<PARAM1>&endTime=<PARAM2>

@Bikram ,

@Rishi 
@Ranjith P 


Maria Vila
StreamSets Employee
  • StreamSets Employee
  • 1 reply
  • February 17, 2023

Hi @yogesh0590! You need to enter the dates you want to filter between in the UNIX timestamp. For instance 1676629729 is the current timestamp (at the time of writing)


Bikram
Headliner
Forum|alt.badge.img+1
  • Headliner
  • 486 replies
  • Answer
  • February 17, 2023

 

 

@yogesh0590 

 

I tried with below date and time , it returned me the output as given below. 

 

https://na01.hub.streamsets.com/pipelinestore/rest/v1/metrics/pipelines?orderBy=VERSION&startTime=20230217202735&endTime=20230217202749

 

 

output :

 

{
    "totalCount": 0,
    "offset": 0,
    "len": -1,
    "data": []
}

Reply