Script

A Script element appears only in a GetScripts operation response. It represents a GSL script in the Dynatrace Portal for the account that has yet to be incorporated into a browser test.

Derived by

Restricting anyType

Attributes

Name Type Required? Default Description
agentType AgentType Yes The type of agent the script is intended to run as. For more information, see AgentType.
scriptId string No An identifier that uniquely identifies the Script in the system.
status MonitorStatusType No The status of the Script: ACTIVE or INACTIVE.
createDate dateTime Yes The date when the script was created.
modifyDate dateTime Yes The date when the script was modified. If the script was not modified, the modify date will be the same as the create date.

Content model

Contains elements as defined in the following table.

Component Type Occurs Nillable? Description
SEQUENCE 1..1
Description [element Script] string 0..1 No The Description names the script. It must be unique within an account. The description field is typically set by the Recorder. When the script is incorporated into a test, the description can be overwritten.
URL [element Script] string 0..1 No This element is no longer provided, because the Steps include the URL and Display name for each step in the Script.
Steps anyType (restriction) 0..1 No A Steps element is a collection of one to many Steps. Everywhere a Step may appear, it is enclosed in such a collection.

Referenced by

Example

<GetScriptsResponse xmlns="http://www.gomeznetworks.com/schemas/provisioning">
   <ResponseStatus>SUCCESS</ResponseStatus>
   <Scripts>
      <!-- 0 to many of these may appear in a response. -->
      <Script agentType="IE" scriptId="258277" status="Inactive"
         createDate="2012-06-11T20:19:41.353"
         modifyDate="2012-06-11T20:19:41.353">
         <Description>http://www.dynatrace.com</Description>
         <Steps>
            <Step stepSeqNum="0">
               <URL>http://www.dynatrace.com</URL>
               <DisplayName/>
            </Step>
         </Steps>
      </Script>
   </Scripts>
</GetScriptsResponse>