ApmSyntheticClient a client for ApmSynthetic
type ApmSyntheticClient struct { common.BaseClient // contains filtered or unexported fields }
func NewApmSyntheticClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ApmSyntheticClient, err error)
NewApmSyntheticClientWithConfigurationProvider Creates a new default ApmSynthetic client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewApmSyntheticClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ApmSyntheticClient, err error)
NewApmSyntheticClientWithOboToken Creates a new default ApmSynthetic client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client *ApmSyntheticClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client ApmSyntheticClient) CreateMonitor(ctx context.Context, request CreateMonitorRequest) (response CreateMonitorResponse, err error)
CreateMonitor Creates a new monitor.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/CreateMonitor.go.html to see an example of how to use CreateMonitor API.
func (client ApmSyntheticClient) CreateScript(ctx context.Context, request CreateScriptRequest) (response CreateScriptResponse, err error)
CreateScript Creates a new script.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/CreateScript.go.html to see an example of how to use CreateScript API.
func (client ApmSyntheticClient) DeleteMonitor(ctx context.Context, request DeleteMonitorRequest) (response DeleteMonitorResponse, err error)
DeleteMonitor Deletes the specified monitor.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/DeleteMonitor.go.html to see an example of how to use DeleteMonitor API.
func (client ApmSyntheticClient) DeleteScript(ctx context.Context, request DeleteScriptRequest) (response DeleteScriptResponse, err error)
DeleteScript Deletes the specified script.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/DeleteScript.go.html to see an example of how to use DeleteScript API.
func (client ApmSyntheticClient) GetMonitor(ctx context.Context, request GetMonitorRequest) (response GetMonitorResponse, err error)
GetMonitor Gets the configuration of the monitor identified by the OCID.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/GetMonitor.go.html to see an example of how to use GetMonitor API.
func (client ApmSyntheticClient) GetMonitorResult(ctx context.Context, request GetMonitorResultRequest) (response GetMonitorResultResponse, err error)
GetMonitorResult Gets the results for a specific execution of a monitor identified by OCID. The results are in a HAR file, Screenshot, or Console Log.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/GetMonitorResult.go.html to see an example of how to use GetMonitorResult API.
func (client ApmSyntheticClient) GetScript(ctx context.Context, request GetScriptRequest) (response GetScriptResponse, err error)
GetScript Gets the configuration of the script identified by the OCID.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/GetScript.go.html to see an example of how to use GetScript API.
func (client ApmSyntheticClient) ListMonitors(ctx context.Context, request ListMonitorsRequest) (response ListMonitorsResponse, err error)
ListMonitors Returns a list of monitors.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/ListMonitors.go.html to see an example of how to use ListMonitors API.
func (client ApmSyntheticClient) ListPublicVantagePoints(ctx context.Context, request ListPublicVantagePointsRequest) (response ListPublicVantagePointsResponse, err error)
ListPublicVantagePoints Returns a list of public vantage points.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/ListPublicVantagePoints.go.html to see an example of how to use ListPublicVantagePoints API.
func (client ApmSyntheticClient) ListScripts(ctx context.Context, request ListScriptsRequest) (response ListScriptsResponse, err error)
ListScripts Returns a list of scripts.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/ListScripts.go.html to see an example of how to use ListScripts API.
func (client *ApmSyntheticClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client ApmSyntheticClient) UpdateMonitor(ctx context.Context, request UpdateMonitorRequest) (response UpdateMonitorResponse, err error)
UpdateMonitor Updates the monitor.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/UpdateMonitor.go.html to see an example of how to use UpdateMonitor API.
func (client ApmSyntheticClient) UpdateScript(ctx context.Context, request UpdateScriptRequest) (response UpdateScriptResponse, err error)
UpdateScript Updates the script.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/UpdateScript.go.html to see an example of how to use UpdateScript API.
BrowserMonitorConfiguration Configuration details for the BROWSER monitor type.
type BrowserMonitorConfiguration struct { // If isFailureRetried is enabled, then a failed call will be retried. IsFailureRetried *bool `mandatory:"false" json:"isFailureRetried"` // If certificate validation is enabled, then the call will fail in case of certification errors. IsCertificateValidationEnabled *bool `mandatory:"false" json:"isCertificateValidationEnabled"` // Verify all the search strings present in response. // If any search string is not present in the response, then it will be considered as a failure. VerifyTexts []VerifyText `mandatory:"false" json:"verifyTexts"` }
func (m BrowserMonitorConfiguration) GetIsFailureRetried() *bool
GetIsFailureRetried returns IsFailureRetried
func (m BrowserMonitorConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m BrowserMonitorConfiguration) String() string
ContentTypesEnum Enum with underlying type: string
type ContentTypesEnum string
Set of constants representing the allowable values for ContentTypesEnum
const ( ContentTypesSide ContentTypesEnum = "SIDE" ContentTypesJs ContentTypesEnum = "JS" )
func GetContentTypesEnumValues() []ContentTypesEnum
GetContentTypesEnumValues Enumerates the set of values for ContentTypesEnum
CreateMonitorDetails Details of the request body used to create a new monitor.
type CreateMonitorDetails struct { // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // Type of monitor. MonitorType MonitorTypesEnum `mandatory:"true" json:"monitorType"` // A list of vantage points from which to execute the monitor. // Use /publicVantagePoints to fetch public vantage points. VantagePoints []string `mandatory:"true" json:"vantagePoints"` // Interval in seconds after the start time when the job should be repeated. // Minimum repeatIntervalInSeconds should be 300 seconds. RepeatIntervalInSeconds *int `mandatory:"true" json:"repeatIntervalInSeconds"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the script. // scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. ScriptId *string `mandatory:"false" json:"scriptId"` // Enables or disables the monitor. Status MonitorStatusEnum `mandatory:"false" json:"status,omitempty"` // Timeout in seconds. Timeout cannot be more than 30% of repeatIntervalInSeconds time for monitors. // Also, timeoutInSeconds should be a multiple of 60. Monitor will be allowed to run only for timeoutInSeconds time. It would be terminated after that. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // Specify the endpoint on which to run the monitor. // For BROWSER and REST monitor types, target is mandatory. // If target is specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. // If target is not specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script as it is. Target *string `mandatory:"false" json:"target"` // List of script parameters in the monitor. // This is valid only for SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. // Example: `[{"paramName": "userid", "paramValue":"testuser"}]` ScriptParameters []MonitorScriptParameter `mandatory:"false" json:"scriptParameters"` Configuration MonitorConfiguration `mandatory:"false" json:"configuration"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateMonitorDetails) String() string
func (m *CreateMonitorDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
CreateMonitorRequest wrapper for the CreateMonitor operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/CreateMonitor.go.html to see an example of how to use CreateMonitorRequest.
type CreateMonitorRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The configuration details for creating a monitor. CreateMonitorDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateMonitorRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateMonitorRequest) String() string
CreateMonitorResponse wrapper for the CreateMonitor operation
type CreateMonitorResponse struct { // The underlying http response RawResponse *http.Response // The Monitor instance Monitor `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CreateMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateMonitorResponse) String() string
CreateScriptDetails Details of the request body used to create a new script. Only Side or JavaScript content types are supported and content should be in Side or JavaScript formats only.
type CreateScriptDetails struct { // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // Content type of script. ContentType ContentTypesEnum `mandatory:"true" json:"contentType"` // The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. // The format to set dynamic parameters is: `<ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>`. // Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. // Examples: // With mandatory param name : `<ORAP><ON>param name</ON></ORAP>` // With parameter name and value : `<ORAP><ON>param name</ON><OV>param value</OV></ORAP>` // Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format. Content *string `mandatory:"true" json:"content"` // File name of uploaded script content. ContentFileName *string `mandatory:"false" json:"contentFileName"` // List of script parameters. Example: `[{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]` Parameters []ScriptParameter `mandatory:"false" json:"parameters"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateScriptDetails) String() string
CreateScriptRequest wrapper for the CreateScript operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/CreateScript.go.html to see an example of how to use CreateScriptRequest.
type CreateScriptRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The configuration details for creating a script. CreateScriptDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateScriptRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateScriptRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateScriptRequest) String() string
CreateScriptResponse wrapper for the CreateScript operation
type CreateScriptResponse struct { // The underlying http response RawResponse *http.Response // The Script instance Script `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CreateScriptResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateScriptResponse) String() string
DeleteMonitorRequest wrapper for the DeleteMonitor operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/DeleteMonitor.go.html to see an example of how to use DeleteMonitorRequest.
type DeleteMonitorRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The OCID of the monitor. MonitorId *string `mandatory:"true" contributesTo:"path" name:"monitorId"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteMonitorRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteMonitorRequest) String() string
DeleteMonitorResponse wrapper for the DeleteMonitor operation
type DeleteMonitorResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteMonitorResponse) String() string
DeleteScriptRequest wrapper for the DeleteScript operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/DeleteScript.go.html to see an example of how to use DeleteScriptRequest.
type DeleteScriptRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The OCID of the script. ScriptId *string `mandatory:"true" contributesTo:"path" name:"scriptId"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteScriptRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteScriptRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteScriptRequest) String() string
DeleteScriptResponse wrapper for the DeleteScript operation
type DeleteScriptResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteScriptResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteScriptResponse) String() string
GeoSummary Geographic summary about a vantage point.
type GeoSummary struct { // The ISO 3166-2 code for this location's first-level administrative division, either a US state or Canadian province. // Only included for locations in the US or Canada. For a list of codes, see Country Codes. AdminDivCode *string `mandatory:"false" json:"adminDivCode"` // Common English-language name for the city. CityName *string `mandatory:"false" json:"cityName"` // The ISO 3166-1 alpha-2 country code. For a list of codes, see Country Codes. CountryCode *string `mandatory:"false" json:"countryCode"` // The common English-language name for the country. CountryName *string `mandatory:"false" json:"countryName"` // Degrees north of the Equator. Latitude *float64 `mandatory:"false" json:"latitude"` // Degrees east of the prime meridian. Longitude *float64 `mandatory:"false" json:"longitude"` }
func (m GeoSummary) String() string
GetMonitorRequest wrapper for the GetMonitor operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/GetMonitor.go.html to see an example of how to use GetMonitorRequest.
type GetMonitorRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The OCID of the monitor. MonitorId *string `mandatory:"true" contributesTo:"path" name:"monitorId"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetMonitorRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetMonitorRequest) String() string
GetMonitorResponse wrapper for the GetMonitor operation
type GetMonitorResponse struct { // The underlying http response RawResponse *http.Response // The Monitor instance Monitor `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetMonitorResponse) String() string
GetMonitorResultRequest wrapper for the GetMonitorResult operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/GetMonitorResult.go.html to see an example of how to use GetMonitorResultRequest.
type GetMonitorResultRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The OCID of the monitor. MonitorId *string `mandatory:"true" contributesTo:"path" name:"monitorId"` // The vantagePoint name. VantagePoint *string `mandatory:"true" contributesTo:"query" name:"vantagePoint"` // The result type har or screenshot or log. ResultType *string `mandatory:"true" contributesTo:"query" name:"resultType"` // The result content type zip or raw. ResultContentType *string `mandatory:"true" contributesTo:"query" name:"resultContentType"` // The time the object was posted. ExecutionTime *string `mandatory:"true" contributesTo:"path" name:"executionTime"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetMonitorResultRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetMonitorResultRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetMonitorResultRequest) String() string
GetMonitorResultResponse wrapper for the GetMonitorResult operation
type GetMonitorResultResponse struct { // The underlying http response RawResponse *http.Response // The MonitorResult instance MonitorResult `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetMonitorResultResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetMonitorResultResponse) String() string
GetScriptRequest wrapper for the GetScript operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/GetScript.go.html to see an example of how to use GetScriptRequest.
type GetScriptRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The OCID of the script. ScriptId *string `mandatory:"true" contributesTo:"path" name:"scriptId"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetScriptRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetScriptRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetScriptRequest) String() string
GetScriptResponse wrapper for the GetScript operation
type GetScriptResponse struct { // The underlying http response RawResponse *http.Response // The Script instance Script `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetScriptResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetScriptResponse) String() string
Header Details of the header.
type Header struct { // Name of the header. HeaderName *string `mandatory:"true" json:"headerName"` // Value of the header. HeaderValue *string `mandatory:"false" json:"headerValue"` }
func (m Header) String() string
ListMonitorsRequest wrapper for the ListMonitors operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/ListMonitors.go.html to see an example of how to use ListMonitorsRequest.
type ListMonitorsRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // A filter to return only monitors using scriptId. ScriptId *string `mandatory:"false" contributesTo:"query" name:"scriptId"` // A filter to return only monitors that match the given monitor type. // Supported values are SCRIPTED_BROWSER, BROWSER, SCRIPTED_REST and REST. MonitorType *string `mandatory:"false" contributesTo:"query" name:"monitorType"` // A filter to return only monitors that match the status given. Status ListMonitorsStatusEnum `mandatory:"false" contributesTo:"query" name:"status" omitEmpty:"true"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The maximum number of results per page, or items to return in a paginated // "List" call. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `50` Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). Default sort order is ascending. SortOrder ListMonitorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort by. Only one sort order may be provided. // Default order of displayName is ascending. // Default order of timeCreated and timeUpdated is descending. // The displayName sort by is case insensitive. SortBy ListMonitorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListMonitorsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListMonitorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListMonitorsRequest) String() string
ListMonitorsResponse wrapper for the ListMonitors operation
type ListMonitorsResponse struct { // The underlying http response RawResponse *http.Response // A list of MonitorCollection instances MonitorCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListMonitorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListMonitorsResponse) String() string
ListMonitorsSortByEnum Enum with underlying type: string
type ListMonitorsSortByEnum string
Set of constants representing the allowable values for ListMonitorsSortByEnum
const ( ListMonitorsSortByDisplayname ListMonitorsSortByEnum = "displayName" ListMonitorsSortByTimecreated ListMonitorsSortByEnum = "timeCreated" ListMonitorsSortByTimeupdated ListMonitorsSortByEnum = "timeUpdated" ListMonitorsSortByStatus ListMonitorsSortByEnum = "status" ListMonitorsSortByMonitortype ListMonitorsSortByEnum = "monitorType" )
func GetListMonitorsSortByEnumValues() []ListMonitorsSortByEnum
GetListMonitorsSortByEnumValues Enumerates the set of values for ListMonitorsSortByEnum
ListMonitorsSortOrderEnum Enum with underlying type: string
type ListMonitorsSortOrderEnum string
Set of constants representing the allowable values for ListMonitorsSortOrderEnum
const ( ListMonitorsSortOrderAsc ListMonitorsSortOrderEnum = "ASC" ListMonitorsSortOrderDesc ListMonitorsSortOrderEnum = "DESC" )
func GetListMonitorsSortOrderEnumValues() []ListMonitorsSortOrderEnum
GetListMonitorsSortOrderEnumValues Enumerates the set of values for ListMonitorsSortOrderEnum
ListMonitorsStatusEnum Enum with underlying type: string
type ListMonitorsStatusEnum string
Set of constants representing the allowable values for ListMonitorsStatusEnum
const ( ListMonitorsStatusEnabled ListMonitorsStatusEnum = "ENABLED" ListMonitorsStatusDisabled ListMonitorsStatusEnum = "DISABLED" ListMonitorsStatusInvalid ListMonitorsStatusEnum = "INVALID" )
func GetListMonitorsStatusEnumValues() []ListMonitorsStatusEnum
GetListMonitorsStatusEnumValues Enumerates the set of values for ListMonitorsStatusEnum
ListPublicVantagePointsRequest wrapper for the ListPublicVantagePoints operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/ListPublicVantagePoints.go.html to see an example of how to use ListPublicVantagePointsRequest.
type ListPublicVantagePointsRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The maximum number of results per page, or items to return in a paginated // "List" call. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `50` Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). Default sort order is ascending. SortOrder ListPublicVantagePointsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort by. You can provide one sort by (`sortBy`). Default order for displayName or name is ascending. The displayName or name // sort by is case insensitive. SortBy ListPublicVantagePointsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // A filter to return only resources that match the entire name given. Name *string `mandatory:"false" contributesTo:"query" name:"name"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListPublicVantagePointsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListPublicVantagePointsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListPublicVantagePointsRequest) String() string
ListPublicVantagePointsResponse wrapper for the ListPublicVantagePoints operation
type ListPublicVantagePointsResponse struct { // The underlying http response RawResponse *http.Response // A list of PublicVantagePointCollection instances PublicVantagePointCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListPublicVantagePointsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListPublicVantagePointsResponse) String() string
ListPublicVantagePointsSortByEnum Enum with underlying type: string
type ListPublicVantagePointsSortByEnum string
Set of constants representing the allowable values for ListPublicVantagePointsSortByEnum
const ( ListPublicVantagePointsSortByName ListPublicVantagePointsSortByEnum = "name" ListPublicVantagePointsSortByDisplayname ListPublicVantagePointsSortByEnum = "displayName" )
func GetListPublicVantagePointsSortByEnumValues() []ListPublicVantagePointsSortByEnum
GetListPublicVantagePointsSortByEnumValues Enumerates the set of values for ListPublicVantagePointsSortByEnum
ListPublicVantagePointsSortOrderEnum Enum with underlying type: string
type ListPublicVantagePointsSortOrderEnum string
Set of constants representing the allowable values for ListPublicVantagePointsSortOrderEnum
const ( ListPublicVantagePointsSortOrderAsc ListPublicVantagePointsSortOrderEnum = "ASC" ListPublicVantagePointsSortOrderDesc ListPublicVantagePointsSortOrderEnum = "DESC" )
func GetListPublicVantagePointsSortOrderEnumValues() []ListPublicVantagePointsSortOrderEnum
GetListPublicVantagePointsSortOrderEnumValues Enumerates the set of values for ListPublicVantagePointsSortOrderEnum
ListScriptsRequest wrapper for the ListScripts operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/ListScripts.go.html to see an example of how to use ListScriptsRequest.
type ListScriptsRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A filter to return only resources that match the entire display name given. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // A filter to return only resources that match the content type given. ContentType *string `mandatory:"false" contributesTo:"query" name:"contentType"` // The maximum number of items to return. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The maximum number of results per page, or items to return in a paginated // "List" call. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `50` Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). Default sort order is ascending. SortOrder ListScriptsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort by. Only one sort order may be provided. // Default order of displayName and contentType is ascending. // Default order of timeCreated and timeUpdated is descending. // The displayName sort by is case insensitive. SortBy ListScriptsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListScriptsRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListScriptsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListScriptsRequest) String() string
ListScriptsResponse wrapper for the ListScripts operation
type ListScriptsResponse struct { // The underlying http response RawResponse *http.Response // A list of ScriptCollection instances ScriptCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, // then a partial list might have been returned. Include this value as the `page` parameter for the // subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListScriptsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListScriptsResponse) String() string
ListScriptsSortByEnum Enum with underlying type: string
type ListScriptsSortByEnum string
Set of constants representing the allowable values for ListScriptsSortByEnum
const ( ListScriptsSortByDisplayname ListScriptsSortByEnum = "displayName" ListScriptsSortByTimecreated ListScriptsSortByEnum = "timeCreated" ListScriptsSortByTimeupdated ListScriptsSortByEnum = "timeUpdated" ListScriptsSortByContenttype ListScriptsSortByEnum = "contentType" )
func GetListScriptsSortByEnumValues() []ListScriptsSortByEnum
GetListScriptsSortByEnumValues Enumerates the set of values for ListScriptsSortByEnum
ListScriptsSortOrderEnum Enum with underlying type: string
type ListScriptsSortOrderEnum string
Set of constants representing the allowable values for ListScriptsSortOrderEnum
const ( ListScriptsSortOrderAsc ListScriptsSortOrderEnum = "ASC" ListScriptsSortOrderDesc ListScriptsSortOrderEnum = "DESC" )
func GetListScriptsSortOrderEnumValues() []ListScriptsSortOrderEnum
GetListScriptsSortOrderEnumValues Enumerates the set of values for ListScriptsSortOrderEnum
Monitor The information about a monitor.
type Monitor struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the monitor. Id *string `mandatory:"true" json:"id"` // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // Type of the monitor. MonitorType MonitorTypesEnum `mandatory:"true" json:"monitorType"` // List of vantage points from where monitor is running. VantagePoints []VantagePointInfo `mandatory:"true" json:"vantagePoints"` // Number of vantage points where monitor is running. VantagePointCount *int `mandatory:"true" json:"vantagePointCount"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the script. // scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. ScriptId *string `mandatory:"true" json:"scriptId"` // Name of the script. ScriptName *string `mandatory:"true" json:"scriptName"` // Enables or disables the monitor. Status MonitorStatusEnum `mandatory:"true" json:"status"` // Interval in seconds after the start time when the job should be repeated. // Minimum repeatIntervalInSeconds should be 300 seconds. RepeatIntervalInSeconds *int `mandatory:"true" json:"repeatIntervalInSeconds"` // Timeout in seconds. Timeout cannot be more than 30% of repeatIntervalInSeconds time for monitors. // Also, timeoutInSeconds should be a multiple of 60. Monitor will be allowed to run only for timeoutInSeconds time. It would be terminated after that. TimeoutInSeconds *int `mandatory:"true" json:"timeoutInSeconds"` // Specify the endpoint on which to run the monitor. // For BROWSER and REST monitor types, target is mandatory. // If target is specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. // If target is not specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script as it is. Target *string `mandatory:"false" json:"target"` // List of script parameters. Example: `[{"monitorScriptParameter": {"paramName": "userid", "paramValue":"testuser"}, "isSecret": false, "isOverwritten": false}]` ScriptParameters []MonitorScriptParameterInfo `mandatory:"false" json:"scriptParameters"` Configuration MonitorConfiguration `mandatory:"false" json:"configuration"` // The time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-12T22:47:12.613Z` TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // The time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-13T22:47:12.613Z` TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m Monitor) String() string
func (m *Monitor) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
MonitorCollection The results of a monitor search, which contains both MonitorSummary items and other data in an APM domain.
type MonitorCollection struct { // List of MonitorSummary items. Items []MonitorSummary `mandatory:"true" json:"items"` }
func (m MonitorCollection) String() string
MonitorConfiguration Details of monitor configuration.
type MonitorConfiguration interface { // If isFailureRetried is enabled, then a failed call will be retried. GetIsFailureRetried() *bool }
MonitorConfigurationConfigTypeEnum Enum with underlying type: string
type MonitorConfigurationConfigTypeEnum string
Set of constants representing the allowable values for MonitorConfigurationConfigTypeEnum
const ( MonitorConfigurationConfigTypeBrowserConfig MonitorConfigurationConfigTypeEnum = "BROWSER_CONFIG" MonitorConfigurationConfigTypeScriptedBrowserConfig MonitorConfigurationConfigTypeEnum = "SCRIPTED_BROWSER_CONFIG" MonitorConfigurationConfigTypeRestConfig MonitorConfigurationConfigTypeEnum = "REST_CONFIG" MonitorConfigurationConfigTypeScriptedRestConfig MonitorConfigurationConfigTypeEnum = "SCRIPTED_REST_CONFIG" )
func GetMonitorConfigurationConfigTypeEnumValues() []MonitorConfigurationConfigTypeEnum
GetMonitorConfigurationConfigTypeEnumValues Enumerates the set of values for MonitorConfigurationConfigTypeEnum
MonitorResult The monitor result for a specific execution.
type MonitorResult struct { // Type of result content. // Example: Zip or Raw file. ResultContentType *string `mandatory:"true" json:"resultContentType"` // Type of result. // Example: HAR, Screenshot or Log. ResultType *string `mandatory:"false" json:"resultType"` // Monitor result data set. ResultDataSet []MonitorResultData `mandatory:"false" json:"resultDataSet"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the monitor. MonitorId *string `mandatory:"false" json:"monitorId"` // The name of the vantage point. VantagePoint *string `mandatory:"false" json:"vantagePoint"` // The specific point of time when the result of an execution is collected. ExecutionTime *string `mandatory:"false" json:"executionTime"` }
func (m MonitorResult) String() string
MonitorResultData Details of the monitor result data.
type MonitorResultData struct { // Name of the data. Name *string `mandatory:"false" json:"name"` // Data content in byte format. // Example: Zip or Screenshot. ByteContent []byte `mandatory:"false" json:"byteContent"` // Data content in string format. // Example: HAR. StringContent *string `mandatory:"false" json:"stringContent"` // The time when the data was generated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-13T22:47:12.613Z` Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` }
func (m MonitorResultData) String() string
MonitorScriptParameter Details of the script parameter that can be used to overwrite the parameter present in the script.
type MonitorScriptParameter struct { // Name of the parameter. ParamName *string `mandatory:"true" json:"paramName"` // Value of the parameter. ParamValue *string `mandatory:"true" json:"paramValue"` }
func (m MonitorScriptParameter) String() string
MonitorScriptParameterInfo Details of the script parameters in the monitor. isOverwritten specifies that the script parameters are overwritten in the monitor. If the user overwrites the parameter value in the monitor, then the overwritten values will be used to run the monitor.
type MonitorScriptParameterInfo struct { MonitorScriptParameter *MonitorScriptParameter `mandatory:"true" json:"monitorScriptParameter"` // Describes if the parameter value is secret and should be kept confidential. // isSecret is specified in either CreateScript or UpdateScript API. IsSecret *bool `mandatory:"true" json:"isSecret"` // If parameter value is default or overwritten. IsOverwritten *bool `mandatory:"true" json:"isOverwritten"` }
func (m MonitorScriptParameterInfo) String() string
MonitorStatusCountMap Details of the monitor count per state. Example: `{ "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }`
type MonitorStatusCountMap struct { // Total number of monitors using the script. Total *int `mandatory:"true" json:"total"` // Number of enabled monitors using the script. Enabled *int `mandatory:"true" json:"enabled"` // Number of disabled monitors using the script. Disabled *int `mandatory:"true" json:"disabled"` // Number of invalid monitors using the script. Invalid *int `mandatory:"true" json:"invalid"` }
func (m MonitorStatusCountMap) String() string
MonitorStatusEnum Enum with underlying type: string
type MonitorStatusEnum string
Set of constants representing the allowable values for MonitorStatusEnum
const ( MonitorStatusEnabled MonitorStatusEnum = "ENABLED" MonitorStatusDisabled MonitorStatusEnum = "DISABLED" MonitorStatusInvalid MonitorStatusEnum = "INVALID" )
func GetMonitorStatusEnumValues() []MonitorStatusEnum
GetMonitorStatusEnumValues Enumerates the set of values for MonitorStatusEnum
MonitorSummary Information about the monitor.
type MonitorSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the monitor. Id *string `mandatory:"true" json:"id"` // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // The type of monitor. MonitorType MonitorTypesEnum `mandatory:"true" json:"monitorType"` // List of vantage points where the monitor is running. VantagePoints []VantagePointInfo `mandatory:"true" json:"vantagePoints"` // Number of vantage points where monitor is running. VantagePointCount *int `mandatory:"true" json:"vantagePointCount"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the script. // scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. ScriptId *string `mandatory:"true" json:"scriptId"` // Name of the script. ScriptName *string `mandatory:"true" json:"scriptName"` // Enables or disables the monitor. Status MonitorStatusEnum `mandatory:"true" json:"status"` // Interval in seconds after the start time when the job should be repeated. // Minimum repeatIntervalInSeconds should be 300 seconds. RepeatIntervalInSeconds *int `mandatory:"true" json:"repeatIntervalInSeconds"` // Timeout in seconds. Timeout cannot be more than 30% of repeatIntervalInSeconds time for monitors. // Also, timeoutInSeconds should be a multiple of 60. // Monitor will be allowed to run only for timeoutInSeconds time. It would be terminated after that. TimeoutInSeconds *int `mandatory:"true" json:"timeoutInSeconds"` // Specify the endpoint on which to run the monitor. // For BROWSER and REST monitor types, target is mandatory. // If target is specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. // If target is not specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script as it is. Target *string `mandatory:"false" json:"target"` // The time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-12T22:47:12.613Z` TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // The time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-13T22:47:12.613Z` TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m MonitorSummary) String() string
MonitorTypesEnum Enum with underlying type: string
type MonitorTypesEnum string
Set of constants representing the allowable values for MonitorTypesEnum
const ( MonitorTypesScriptedBrowser MonitorTypesEnum = "SCRIPTED_BROWSER" MonitorTypesBrowser MonitorTypesEnum = "BROWSER" MonitorTypesScriptedRest MonitorTypesEnum = "SCRIPTED_REST" MonitorTypesRest MonitorTypesEnum = "REST" )
func GetMonitorTypesEnumValues() []MonitorTypesEnum
GetMonitorTypesEnumValues Enumerates the set of values for MonitorTypesEnum
OAuthSchemesEnum Enum with underlying type: string
type OAuthSchemesEnum string
Set of constants representing the allowable values for OAuthSchemesEnum
const ( OAuthSchemesNone OAuthSchemesEnum = "NONE" OAuthSchemesBasic OAuthSchemesEnum = "BASIC" )
func GetOAuthSchemesEnumValues() []OAuthSchemesEnum
GetOAuthSchemesEnumValues Enumerates the set of values for OAuthSchemesEnum
PublicVantagePointCollection The results of a public vantage point search, which contains PublicVantagePointSummary items and other data in an APM domain.
type PublicVantagePointCollection struct { // List of PublicVantagePointSummary items. Items []PublicVantagePointSummary `mandatory:"true" json:"items"` }
func (m PublicVantagePointCollection) String() string
PublicVantagePointSummary Information about public vantage points.
type PublicVantagePointSummary struct { // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // Unique permanent name of the vantage point. Name *string `mandatory:"true" json:"name"` Geo *GeoSummary `mandatory:"false" json:"geo"` }
func (m PublicVantagePointSummary) String() string
RequestAuthenticationDetails Details for request HTTP authentication.
type RequestAuthenticationDetails struct { // Request http oauth scheme. OauthScheme OAuthSchemesEnum `mandatory:"false" json:"oauthScheme,omitempty"` // Username for authentication. AuthUserName *string `mandatory:"false" json:"authUserName"` // User password for authentication. AuthUserPassword *string `mandatory:"false" json:"authUserPassword"` // Authentication token. AuthToken *string `mandatory:"false" json:"authToken"` // URL to get authetication token. AuthUrl *string `mandatory:"false" json:"authUrl"` // List of authentication headers. Example: `[{"headerName": "content-type", "headerValue":"json"}]` AuthHeaders []Header `mandatory:"false" json:"authHeaders"` // Request method. AuthRequestMethod RequestMethodsEnum `mandatory:"false" json:"authRequestMethod,omitempty"` // Request post body. AuthRequestPostBody *string `mandatory:"false" json:"authRequestPostBody"` }
func (m RequestAuthenticationDetails) String() string
RequestAuthenticationSchemesEnum Enum with underlying type: string
type RequestAuthenticationSchemesEnum string
Set of constants representing the allowable values for RequestAuthenticationSchemesEnum
const ( RequestAuthenticationSchemesOauth RequestAuthenticationSchemesEnum = "OAUTH" RequestAuthenticationSchemesNone RequestAuthenticationSchemesEnum = "NONE" RequestAuthenticationSchemesBasic RequestAuthenticationSchemesEnum = "BASIC" RequestAuthenticationSchemesBearer RequestAuthenticationSchemesEnum = "BEARER" )
func GetRequestAuthenticationSchemesEnumValues() []RequestAuthenticationSchemesEnum
GetRequestAuthenticationSchemesEnumValues Enumerates the set of values for RequestAuthenticationSchemesEnum
RequestMethodsEnum Enum with underlying type: string
type RequestMethodsEnum string
Set of constants representing the allowable values for RequestMethodsEnum
const ( RequestMethodsGet RequestMethodsEnum = "GET" RequestMethodsPost RequestMethodsEnum = "POST" )
func GetRequestMethodsEnumValues() []RequestMethodsEnum
GetRequestMethodsEnumValues Enumerates the set of values for RequestMethodsEnum
RequestQueryParam Information about request query parameters.
type RequestQueryParam struct { // Name of request query parameter. ParamName *string `mandatory:"true" json:"paramName"` // Value of request query parameter. ParamValue *string `mandatory:"false" json:"paramValue"` }
func (m RequestQueryParam) String() string
RestMonitorConfiguration Request configuration details for the REST monitor type.
type RestMonitorConfiguration struct { // If isFailureRetried is enabled, then a failed call will be retried. IsFailureRetried *bool `mandatory:"false" json:"isFailureRetried"` // If redirection enabled, then redirects will be allowed while accessing target URL. IsRedirectionEnabled *bool `mandatory:"false" json:"isRedirectionEnabled"` // If certificate validation enabled, then call will fail for certificate errors. IsCertificateValidationEnabled *bool `mandatory:"false" json:"isCertificateValidationEnabled"` ReqAuthenticationDetails *RequestAuthenticationDetails `mandatory:"false" json:"reqAuthenticationDetails"` // List of request headers. Example: `[{"headerName": "content-type", "headerValue":"json"}]` RequestHeaders []Header `mandatory:"false" json:"requestHeaders"` // List of request query params. Example: `[{"paramName": "sortOrder", "paramValue": "asc"}]` RequestQueryParams []RequestQueryParam `mandatory:"false" json:"requestQueryParams"` // Request post body content. RequestPostBody *string `mandatory:"false" json:"requestPostBody"` // Verify response content against regular expression based string. // If response content does not match the verifyResponseContent value, then it will be considered a failure. VerifyResponseContent *string `mandatory:"false" json:"verifyResponseContent"` // Expected HTTP response codes. For status code range, set values such as 2xx, 3xx. VerifyResponseCodes []string `mandatory:"false" json:"verifyResponseCodes"` // Request HTTP method. RequestMethod RequestMethodsEnum `mandatory:"false" json:"requestMethod,omitempty"` // Request http authentication scheme. ReqAuthenticationScheme RequestAuthenticationSchemesEnum `mandatory:"false" json:"reqAuthenticationScheme,omitempty"` }
func (m RestMonitorConfiguration) GetIsFailureRetried() *bool
GetIsFailureRetried returns IsFailureRetried
func (m RestMonitorConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m RestMonitorConfiguration) String() string
Script The information about the script.
type Script struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the script. // scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. Id *string `mandatory:"true" json:"id"` // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // Content type of the script. ContentType ContentTypesEnum `mandatory:"true" json:"contentType"` MonitorStatusCountMap *MonitorStatusCountMap `mandatory:"true" json:"monitorStatusCountMap"` // The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. // The format to set dynamic parameters is: `<ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>`. // Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. // Examples: // With mandatory param name : `<ORAP><ON>param name</ON></ORAP>` // With parameter name and value : `<ORAP><ON>param name</ON><OV>param value</OV></ORAP>` // Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format. Content *string `mandatory:"false" json:"content"` // The time when the script was uploaded. TimeUploaded *common.SDKTime `mandatory:"false" json:"timeUploaded"` // Size of the script content. ContentSizeInBytes *int `mandatory:"false" json:"contentSizeInBytes"` // File name of the uploaded script content. ContentFileName *string `mandatory:"false" json:"contentFileName"` // List of script parameters. Example: `[{"scriptParameter": {"paramName": "userid", "paramValue":"testuser", "isSecret": false}, "isOverwritten": false}]` Parameters []ScriptParameterInfo `mandatory:"false" json:"parameters"` // The time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-12T22:47:12.613Z` TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // The time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-13T22:47:12.613Z` TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m Script) String() string
ScriptCollection The results of a script search, which contains both ScriptSummary items and other data in an APM domain.
type ScriptCollection struct { // List of ScriptSummary items. Items []ScriptSummary `mandatory:"true" json:"items"` }
func (m ScriptCollection) String() string
ScriptParameter Details of the script parameters, paramName must be from the script content and these details can be used to overwrite the default parameter present in the script content.
type ScriptParameter struct { // Name of the parameter. ParamName *string `mandatory:"true" json:"paramName"` // Value of the parameter. ParamValue *string `mandatory:"false" json:"paramValue"` // If the parameter value is secret and should be kept confidential, then set isSecret to true. IsSecret *bool `mandatory:"false" json:"isSecret"` }
func (m ScriptParameter) String() string
ScriptParameterInfo Information about script parameters. isOverwritten specifies that the default parameter present in the script content is overwritten.
type ScriptParameterInfo struct { ScriptParameter *ScriptParameter `mandatory:"true" json:"scriptParameter"` // If parameter value is default or overwritten. IsOverwritten *bool `mandatory:"true" json:"isOverwritten"` }
func (m ScriptParameterInfo) String() string
ScriptSummary Information about the script.
type ScriptSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the script. // scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. Id *string `mandatory:"true" json:"id"` // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // Content type of the script. ContentType ContentTypesEnum `mandatory:"true" json:"contentType"` MonitorStatusCountMap *MonitorStatusCountMap `mandatory:"true" json:"monitorStatusCountMap"` // The time the resource was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-12T22:47:12.613Z` TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // The time the resource was updated, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) // timestamp format. // Example: `2020-02-13T22:47:12.613Z` TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m ScriptSummary) String() string
ScriptedBrowserMonitorConfiguration Configuration details for the SCRIPTED_BROWSER monitor type.
type ScriptedBrowserMonitorConfiguration struct { // If isFailureRetried is enabled, then a failed call will be retried. IsFailureRetried *bool `mandatory:"false" json:"isFailureRetried"` // If certificate validation is enabled, then the call will fail in case of certification errors. IsCertificateValidationEnabled *bool `mandatory:"false" json:"isCertificateValidationEnabled"` }
func (m ScriptedBrowserMonitorConfiguration) GetIsFailureRetried() *bool
GetIsFailureRetried returns IsFailureRetried
func (m ScriptedBrowserMonitorConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ScriptedBrowserMonitorConfiguration) String() string
ScriptedRestMonitorConfiguration Configuration details for the SCRIPTED_REST monitor type.
type ScriptedRestMonitorConfiguration struct { // If isFailureRetried is enabled, then a failed call will be retried. IsFailureRetried *bool `mandatory:"false" json:"isFailureRetried"` }
func (m ScriptedRestMonitorConfiguration) GetIsFailureRetried() *bool
GetIsFailureRetried returns IsFailureRetried
func (m ScriptedRestMonitorConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ScriptedRestMonitorConfiguration) String() string
SortOrdersEnum Enum with underlying type: string
type SortOrdersEnum string
Set of constants representing the allowable values for SortOrdersEnum
const ( SortOrdersAsc SortOrdersEnum = "ASC" SortOrdersDesc SortOrdersEnum = "DESC" )
func GetSortOrdersEnumValues() []SortOrdersEnum
GetSortOrdersEnumValues Enumerates the set of values for SortOrdersEnum
UpdateMonitorDetails Details of the request body used to update a monitor.
type UpdateMonitorDetails struct { // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"false" json:"displayName"` // A list of vantage points from which to execute the monitor. // Use /publicVantagePoints to fetch public vantage points. VantagePoints []string `mandatory:"false" json:"vantagePoints"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the script. // scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. ScriptId *string `mandatory:"false" json:"scriptId"` // Enables or disables the monitor. Status MonitorStatusEnum `mandatory:"false" json:"status,omitempty"` // Interval in seconds after the start time when the job should be repeated. // Minimum repeatIntervalInSeconds should be 300 seconds. RepeatIntervalInSeconds *int `mandatory:"false" json:"repeatIntervalInSeconds"` // Timeout in seconds. Timeout cannot be more than 30% of repeatIntervalInSeconds time for monitors. // Also, timeoutInSeconds should be a multiple of 60. Monitor will be allowed to run only for timeoutInSeconds time. It would be terminated after that. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // Specify the endpoint on which to run the monitor. // For BROWSER and REST monitor types, target is mandatory. // If target is specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. // If target is not specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script as it is. Target *string `mandatory:"false" json:"target"` // List of script parameters in the monitor. // This is valid only for SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. // Example: `[{"paramName": "userid", "paramValue":"testuser"}]` ScriptParameters []MonitorScriptParameter `mandatory:"false" json:"scriptParameters"` Configuration MonitorConfiguration `mandatory:"false" json:"configuration"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m UpdateMonitorDetails) String() string
func (m *UpdateMonitorDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
UpdateMonitorRequest wrapper for the UpdateMonitor operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/UpdateMonitor.go.html to see an example of how to use UpdateMonitorRequest.
type UpdateMonitorRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The OCID of the monitor. MonitorId *string `mandatory:"true" contributesTo:"path" name:"monitorId"` // The information to be updated. UpdateMonitorDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request UpdateMonitorRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateMonitorRequest) String() string
UpdateMonitorResponse wrapper for the UpdateMonitor operation
type UpdateMonitorResponse struct { // The underlying http response RawResponse *http.Response // The Monitor instance Monitor `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateMonitorResponse) String() string
UpdateScriptDetails Details of the request body used to update a script. Only Side or JavaScript content types are supported and content should be in Side or JavaScript formats only.
type UpdateScriptDetails struct { // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"false" json:"displayName"` // Content type of script. ContentType ContentTypesEnum `mandatory:"false" json:"contentType,omitempty"` // The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters. // The format to set dynamic parameters is: `<ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>`. // Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false. // Examples: // With mandatory param name : `<ORAP><ON>param name</ON></ORAP>` // With parameter name and value : `<ORAP><ON>param name</ON><OV>param value</OV></ORAP>` // Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format. Content *string `mandatory:"false" json:"content"` // File name of uploaded script content. ContentFileName *string `mandatory:"false" json:"contentFileName"` // List of script parameters. Example: `[{"paramName": "userid", "paramValue":"testuser", "isSecret": false}]` Parameters []ScriptParameter `mandatory:"false" json:"parameters"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m UpdateScriptDetails) String() string
UpdateScriptRequest wrapper for the UpdateScript operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/apmsynthetics/UpdateScript.go.html to see an example of how to use UpdateScriptRequest.
type UpdateScriptRequest struct { // The APM domain ID the request is intended for. ApmDomainId *string `mandatory:"true" contributesTo:"query" name:"apmDomainId"` // The OCID of the script. ScriptId *string `mandatory:"true" contributesTo:"path" name:"scriptId"` // The information to be updated. UpdateScriptDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request UpdateScriptRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateScriptRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateScriptRequest) String() string
UpdateScriptResponse wrapper for the UpdateScript operation
type UpdateScriptResponse struct { // The underlying http response RawResponse *http.Response // The Script instance Script `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateScriptResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateScriptResponse) String() string
VantagePointInfo Details of the vantage point.
type VantagePointInfo struct { // Name of the vantage point. Name *string `mandatory:"true" json:"name"` // Unique name that can be edited. The name should not contain any confidential information. DisplayName *string `mandatory:"true" json:"displayName"` }
func (m VantagePointInfo) String() string
VerifyText Details to verify text.
type VerifyText struct { // Verification text in the response. Text *string `mandatory:"false" json:"text"` }
func (m VerifyText) String() string