Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

Difference between revisions of "GOCDB/PI/get downtime method"

From EGIWiki
< GOCDB‎ | PI
Jump to navigation Jump to search
(change goc.gridops.org to goc.egi.eu)
Line 29: Line 29:
|- valign="top"
|- valign="top"
| windowstart/windowend || limit results to current time window (including downtimes that<br> appear in this window, even if they start before or end after) || date in YYY-MM-DD format || 1970-01-01/2024-12-31 || ?method=get_downtime&windowstart=2008-12-08&windowend=2008-12-15  
| windowstart/windowend || limit results to current time window (including downtimes that<br> appear in this window, even if they start before or end after) || date in YYY-MM-DD format || 1970-01-01/2024-12-31 || ?method=get_downtime&windowstart=2008-12-08&windowend=2008-12-15  
|-
| scope(=Local) || Show only downtimes that affect service endpoints in the passed scope (Local is currently the only scope available) || "Local" || all || ?method=get_downtime&scope=Local
|}
|}



Revision as of 11:31, 10 November 2011

Main EGI.eu operations services Support Documentation Tools Activities Performance Technology Catch-all Services Resource Allocation Security


Tools menu: Main page Instructions for developers AAI Proxy Accounting Portal Accounting Repository AppDB ARGO GGUS GOCDB
Message brokers Licenses OTAGs Operations Portal Perun EGI Collaboration tools LToS EGI Workload Manager



Method: get_downtime

Description Returns a list of EGI downtimes for sites and service endpoints
Protection Level Public (level 1)

Entry point

https://goc.egi.eu/gocdbpi/public/?method=get_downtime

parameters

parameter effect format/value(s) default example
topentity Limit results to downtimes below given entity any NGI (ROC), country, sitename or node hostname EGEE ?method=get_downtime&topentity=SouthEasternEurope
?method=get_downtime&topentity=Portugal
?method=get_downtime&topentity=RAL-LCG2
?method=get_downtime&topentity=ce.mysite.com
ongoing_only Limit results to current ongoing downtimes yes/no no ?method=get_downtime&ongoing_only=yes
startdate Limit results to downtimes that start after specified date date in YYY-MM-DD format 1970-01-01 ?method=get_downtime&startdate=2008-12-08
enddate limit results to downtimes that end before specified date date in YYY-MM-DD format 2024-12-31 ?method=get_downtime&enddate=2008-12-14
windowstart/windowend limit results to current time window (including downtimes that
appear in this window, even if they start before or end after)
date in YYY-MM-DD format 1970-01-01/2024-12-31 ?method=get_downtime&windowstart=2008-12-08&windowend=2008-12-15
scope(=Local) Show only downtimes that affect service endpoints in the passed scope (Local is currently the only scope available) "Local" all ?method=get_downtime&scope=Local

XML schema

https://goc.egi.eu/gocdbpi/public/?method=get_downtime&output=xmlschema

Output Example

<?xml version="1.0"?>
<results>
 <DOWNTIME ID="1505021" PRIMARY_KEY="13941G0" CLASSIFICATION="SCHEDULED">
  <PRIMARY_KEY>13941G0</PRIMARY_KEY>
  <SITENAME>
   AEGIS01-PHY-SCL
  </SITENAME>
  <HOSTNAME/>
  <ENDPOINT/>
  <SERVICE_TYPE/>
  <HOSTED_BY/>
  <SEVERITY>OUTAGE</SEVERITY>
  <DESCRIPTION>
   downtime at site level
  </DESCRIPTION>
  <GOCDB_PORTAL_URL>
   https://next.gocdb.eu/portal/index.php?Page_Type=View_Object&object_id=1133&grid_id=0
  </GOCDB_PORTAL_URL>
  <INSERT_DATE>
   1248271578
  </INSERT_DATE>
  <START_DATE>
   1248275962
  </START_DATE>
  <END_DATE>
   1248278400
  </END_DATE>
  <FORMATED_START_DATE>
   2009-07-22 15:19
  </FORMATED_START_DATE>
  <FORMATED_END_DATE>
   2009-07-22 16:00
  </FORMATED_END_DATE>
 </DOWNTIME>
 <DOWNTIME ID="1505022" PRIMARY_KEY="14421G0" CLASSIFICATION="SCHEDULED">
  <PRIMARY_KEY>14421G0</PRIMARY_KEY>
  <SITENAME/>
  <HOSTNAME>
   ce.phy.bg.ac.yu
  </HOSTNAME>
  <SERVICE_TYPE>CE</SERVICE_TYPE>
  <ENDPOINT>
   ce.phy.bg.ac.yuCE
  </ENDPOINT>
  <HOSTED_BY>
   AEGIS01-PHY-SCL
  </HOSTED_BY>
  <SEVERITY>AT RISK</SEVERITY>
  <DESCRIPTION>
   downtime at node level
  </DESCRIPTION>
  <INSERT_DATE>
   1181800100
  </INSERT_DATE>
  <START_DATE>
   1181809800
  </START_DATE>
  <END_DATE>
   1181820600
  </END_DATE>
  <FORMATED_START_DATE>
   2007-06-14 08:30
  </FORMATED_START_DATE>
  <FORMATED_END_DATE>
   2007-06-14 11:30
  </FORMATED_END_DATE>
 </DOWNTIME>
</results>

Back to GOCDB technical Documentation main page