Documentation ¶
Index ¶
- type ApmSyntheticClient
- func (client *ApmSyntheticClient) ConfigurationProvider() *common.ConfigurationProvider
- func (client ApmSyntheticClient) CreateMonitor(ctx context.Context, request CreateMonitorRequest) (response CreateMonitorResponse, err error)
- func (client ApmSyntheticClient) CreateScript(ctx context.Context, request CreateScriptRequest) (response CreateScriptResponse, err error)
- func (client ApmSyntheticClient) DeleteMonitor(ctx context.Context, request DeleteMonitorRequest) (response DeleteMonitorResponse, err error)
- func (client ApmSyntheticClient) DeleteScript(ctx context.Context, request DeleteScriptRequest) (response DeleteScriptResponse, err error)
- func (client ApmSyntheticClient) GetMonitor(ctx context.Context, request GetMonitorRequest) (response GetMonitorResponse, err error)
- func (client ApmSyntheticClient) GetMonitorResult(ctx context.Context, request GetMonitorResultRequest) (response GetMonitorResultResponse, err error)
- func (client ApmSyntheticClient) GetScript(ctx context.Context, request GetScriptRequest) (response GetScriptResponse, err error)
- func (client ApmSyntheticClient) ListMonitors(ctx context.Context, request ListMonitorsRequest) (response ListMonitorsResponse, err error)
- func (client ApmSyntheticClient) ListPublicVantagePoints(ctx context.Context, request ListPublicVantagePointsRequest) (response ListPublicVantagePointsResponse, err error)
- func (client ApmSyntheticClient) ListScripts(ctx context.Context, request ListScriptsRequest) (response ListScriptsResponse, err error)
- func (client *ApmSyntheticClient) SetRegion(region string)
- func (client ApmSyntheticClient) UpdateMonitor(ctx context.Context, request UpdateMonitorRequest) (response UpdateMonitorResponse, err error)
- func (client ApmSyntheticClient) UpdateScript(ctx context.Context, request UpdateScriptRequest) (response UpdateScriptResponse, err error)
- type BrowserMonitorConfiguration
- type ContentTypesEnum
- type CreateMonitorDetails
- type CreateMonitorRequest
- func (request CreateMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CreateMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request CreateMonitorRequest) RetryPolicy() *common.RetryPolicy
- func (request CreateMonitorRequest) String() string
- type CreateMonitorResponse
- type CreateScriptDetails
- type CreateScriptRequest
- func (request CreateScriptRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request CreateScriptRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request CreateScriptRequest) RetryPolicy() *common.RetryPolicy
- func (request CreateScriptRequest) String() string
- type CreateScriptResponse
- type DeleteMonitorRequest
- func (request DeleteMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request DeleteMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request DeleteMonitorRequest) RetryPolicy() *common.RetryPolicy
- func (request DeleteMonitorRequest) String() string
- type DeleteMonitorResponse
- type DeleteScriptRequest
- func (request DeleteScriptRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request DeleteScriptRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request DeleteScriptRequest) RetryPolicy() *common.RetryPolicy
- func (request DeleteScriptRequest) String() string
- type DeleteScriptResponse
- type GeoSummary
- type GetMonitorRequest
- func (request GetMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request GetMonitorRequest) RetryPolicy() *common.RetryPolicy
- func (request GetMonitorRequest) String() string
- type GetMonitorResponse
- type GetMonitorResultRequest
- func (request GetMonitorResultRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetMonitorResultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request GetMonitorResultRequest) RetryPolicy() *common.RetryPolicy
- func (request GetMonitorResultRequest) String() string
- type GetMonitorResultResponse
- type GetScriptRequest
- func (request GetScriptRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request GetScriptRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request GetScriptRequest) RetryPolicy() *common.RetryPolicy
- func (request GetScriptRequest) String() string
- type GetScriptResponse
- type Header
- type ListMonitorsRequest
- func (request ListMonitorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListMonitorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ListMonitorsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListMonitorsRequest) String() string
- type ListMonitorsResponse
- type ListMonitorsSortByEnum
- type ListMonitorsSortOrderEnum
- type ListMonitorsStatusEnum
- type ListPublicVantagePointsRequest
- func (request ListPublicVantagePointsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListPublicVantagePointsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ListPublicVantagePointsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListPublicVantagePointsRequest) String() string
- type ListPublicVantagePointsResponse
- type ListPublicVantagePointsSortByEnum
- type ListPublicVantagePointsSortOrderEnum
- type ListScriptsRequest
- func (request ListScriptsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request ListScriptsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request ListScriptsRequest) RetryPolicy() *common.RetryPolicy
- func (request ListScriptsRequest) String() string
- type ListScriptsResponse
- type ListScriptsSortByEnum
- type ListScriptsSortOrderEnum
- type Monitor
- type MonitorCollection
- type MonitorConfiguration
- type MonitorConfigurationConfigTypeEnum
- type MonitorResult
- type MonitorResultData
- type MonitorScriptParameter
- type MonitorScriptParameterInfo
- type MonitorStatusCountMap
- type MonitorStatusEnum
- type MonitorSummary
- type MonitorTypesEnum
- type OAuthSchemesEnum
- type PublicVantagePointCollection
- type PublicVantagePointSummary
- type RequestAuthenticationDetails
- type RequestAuthenticationSchemesEnum
- type RequestMethodsEnum
- type RequestQueryParam
- type RestMonitorConfiguration
- type Script
- type ScriptCollection
- type ScriptParameter
- type ScriptParameterInfo
- type ScriptSummary
- type ScriptedBrowserMonitorConfiguration
- type ScriptedRestMonitorConfiguration
- type SortOrdersEnum
- type UpdateMonitorDetails
- type UpdateMonitorRequest
- func (request UpdateMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request UpdateMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request UpdateMonitorRequest) RetryPolicy() *common.RetryPolicy
- func (request UpdateMonitorRequest) String() string
- type UpdateMonitorResponse
- type UpdateScriptDetails
- type UpdateScriptRequest
- func (request UpdateScriptRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
- func (request UpdateScriptRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
- func (request UpdateScriptRequest) RetryPolicy() *common.RetryPolicy
- func (request UpdateScriptRequest) String() string
- type UpdateScriptResponse
- type VantagePointInfo
- type VerifyText
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApmSyntheticClient ¶
type ApmSyntheticClient struct { common.BaseClient // contains filtered or unexported fields }
ApmSyntheticClient a client for ApmSynthetic
func NewApmSyntheticClientWithConfigurationProvider ¶
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 ¶
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 (*ApmSyntheticClient) ConfigurationProvider ¶
func (client *ApmSyntheticClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (ApmSyntheticClient) CreateMonitor ¶
func (client ApmSyntheticClient) CreateMonitor(ctx context.Context, request CreateMonitorRequest) (response CreateMonitorResponse, err error)
CreateMonitor Creates a new monitor.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/CreateMonitor.go.html to see an example of how to use CreateMonitor API.
func (ApmSyntheticClient) CreateScript ¶
func (client ApmSyntheticClient) CreateScript(ctx context.Context, request CreateScriptRequest) (response CreateScriptResponse, err error)
CreateScript Creates a new script.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/CreateScript.go.html to see an example of how to use CreateScript API.
func (ApmSyntheticClient) DeleteMonitor ¶
func (client ApmSyntheticClient) DeleteMonitor(ctx context.Context, request DeleteMonitorRequest) (response DeleteMonitorResponse, err error)
DeleteMonitor Deletes the specified monitor.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/DeleteMonitor.go.html to see an example of how to use DeleteMonitor API.
func (ApmSyntheticClient) DeleteScript ¶
func (client ApmSyntheticClient) DeleteScript(ctx context.Context, request DeleteScriptRequest) (response DeleteScriptResponse, err error)
DeleteScript Deletes the specified script.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/DeleteScript.go.html to see an example of how to use DeleteScript API.
func (ApmSyntheticClient) GetMonitor ¶
func (client ApmSyntheticClient) GetMonitor(ctx context.Context, request GetMonitorRequest) (response GetMonitorResponse, err error)
GetMonitor Gets the configuration of the monitor identified by the OCID.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/GetMonitor.go.html to see an example of how to use GetMonitor API.
func (ApmSyntheticClient) GetMonitorResult ¶
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.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/GetMonitorResult.go.html to see an example of how to use GetMonitorResult API.
func (ApmSyntheticClient) GetScript ¶
func (client ApmSyntheticClient) GetScript(ctx context.Context, request GetScriptRequest) (response GetScriptResponse, err error)
GetScript Gets the configuration of the script identified by the OCID.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/GetScript.go.html to see an example of how to use GetScript API.
func (ApmSyntheticClient) ListMonitors ¶
func (client ApmSyntheticClient) ListMonitors(ctx context.Context, request ListMonitorsRequest) (response ListMonitorsResponse, err error)
ListMonitors Returns a list of monitors.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/ListMonitors.go.html to see an example of how to use ListMonitors API.
func (ApmSyntheticClient) ListPublicVantagePoints ¶
func (client ApmSyntheticClient) ListPublicVantagePoints(ctx context.Context, request ListPublicVantagePointsRequest) (response ListPublicVantagePointsResponse, err error)
ListPublicVantagePoints Returns a list of public vantage points.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/ListPublicVantagePoints.go.html to see an example of how to use ListPublicVantagePoints API.
func (ApmSyntheticClient) ListScripts ¶
func (client ApmSyntheticClient) ListScripts(ctx context.Context, request ListScriptsRequest) (response ListScriptsResponse, err error)
ListScripts Returns a list of scripts.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/ListScripts.go.html to see an example of how to use ListScripts API.
func (*ApmSyntheticClient) SetRegion ¶
func (client *ApmSyntheticClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (ApmSyntheticClient) UpdateMonitor ¶
func (client ApmSyntheticClient) UpdateMonitor(ctx context.Context, request UpdateMonitorRequest) (response UpdateMonitorResponse, err error)
UpdateMonitor Updates the monitor.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/UpdateMonitor.go.html to see an example of how to use UpdateMonitor API.
func (ApmSyntheticClient) UpdateScript ¶
func (client ApmSyntheticClient) UpdateScript(ctx context.Context, request UpdateScriptRequest) (response UpdateScriptResponse, err error)
UpdateScript Updates the script.
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/UpdateScript.go.html to see an example of how to use UpdateScript API.
type BrowserMonitorConfiguration ¶
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"` }
BrowserMonitorConfiguration Configuration details for the BROWSER monitor type.
func (BrowserMonitorConfiguration) GetIsFailureRetried ¶
func (m BrowserMonitorConfiguration) GetIsFailureRetried() *bool
GetIsFailureRetried returns IsFailureRetried
func (BrowserMonitorConfiguration) MarshalJSON ¶
func (m BrowserMonitorConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (BrowserMonitorConfiguration) String ¶
func (m BrowserMonitorConfiguration) String() string
type ContentTypesEnum ¶
type ContentTypesEnum string
ContentTypesEnum Enum with underlying type: string
const ( ContentTypesSide ContentTypesEnum = "SIDE" ContentTypesJs ContentTypesEnum = "JS" )
Set of constants representing the allowable values for ContentTypesEnum
func GetContentTypesEnumValues ¶
func GetContentTypesEnumValues() []ContentTypesEnum
GetContentTypesEnumValues Enumerates the set of values for ContentTypesEnum
type CreateMonitorDetails ¶
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"` }
CreateMonitorDetails Details of the request body used to create a new monitor.
func (CreateMonitorDetails) String ¶
func (m CreateMonitorDetails) String() string
func (*CreateMonitorDetails) UnmarshalJSON ¶
func (m *CreateMonitorDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
type 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 }
CreateMonitorRequest wrapper for the CreateMonitor operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/CreateMonitor.go.html to see an example of how to use CreateMonitorRequest.
func (CreateMonitorRequest) BinaryRequestBody ¶
func (request CreateMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (CreateMonitorRequest) HTTPRequest ¶
func (request CreateMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateMonitorRequest) RetryPolicy ¶
func (request CreateMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateMonitorRequest) String ¶
func (request CreateMonitorRequest) String() string
type CreateMonitorResponse ¶
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"` }
CreateMonitorResponse wrapper for the CreateMonitor operation
func (CreateMonitorResponse) HTTPResponse ¶
func (response CreateMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateMonitorResponse) String ¶
func (response CreateMonitorResponse) String() string
type CreateScriptDetails ¶
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"` }
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.
func (CreateScriptDetails) String ¶
func (m CreateScriptDetails) String() string
type 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 }
CreateScriptRequest wrapper for the CreateScript operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/CreateScript.go.html to see an example of how to use CreateScriptRequest.
func (CreateScriptRequest) BinaryRequestBody ¶
func (request CreateScriptRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (CreateScriptRequest) HTTPRequest ¶
func (request CreateScriptRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (CreateScriptRequest) RetryPolicy ¶
func (request CreateScriptRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (CreateScriptRequest) String ¶
func (request CreateScriptRequest) String() string
type CreateScriptResponse ¶
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"` }
CreateScriptResponse wrapper for the CreateScript operation
func (CreateScriptResponse) HTTPResponse ¶
func (response CreateScriptResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (CreateScriptResponse) String ¶
func (response CreateScriptResponse) String() string
type 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 }
DeleteMonitorRequest wrapper for the DeleteMonitor operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/DeleteMonitor.go.html to see an example of how to use DeleteMonitorRequest.
func (DeleteMonitorRequest) BinaryRequestBody ¶
func (request DeleteMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (DeleteMonitorRequest) HTTPRequest ¶
func (request DeleteMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeleteMonitorRequest) RetryPolicy ¶
func (request DeleteMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeleteMonitorRequest) String ¶
func (request DeleteMonitorRequest) String() string
type DeleteMonitorResponse ¶
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"` }
DeleteMonitorResponse wrapper for the DeleteMonitor operation
func (DeleteMonitorResponse) HTTPResponse ¶
func (response DeleteMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteMonitorResponse) String ¶
func (response DeleteMonitorResponse) String() string
type 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 }
DeleteScriptRequest wrapper for the DeleteScript operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/DeleteScript.go.html to see an example of how to use DeleteScriptRequest.
func (DeleteScriptRequest) BinaryRequestBody ¶
func (request DeleteScriptRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (DeleteScriptRequest) HTTPRequest ¶
func (request DeleteScriptRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (DeleteScriptRequest) RetryPolicy ¶
func (request DeleteScriptRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (DeleteScriptRequest) String ¶
func (request DeleteScriptRequest) String() string
type DeleteScriptResponse ¶
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"` }
DeleteScriptResponse wrapper for the DeleteScript operation
func (DeleteScriptResponse) HTTPResponse ¶
func (response DeleteScriptResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (DeleteScriptResponse) String ¶
func (response DeleteScriptResponse) String() string
type GeoSummary ¶
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"` }
GeoSummary Geographic summary about a vantage point.
func (GeoSummary) String ¶
func (m GeoSummary) String() string
type 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 }
GetMonitorRequest wrapper for the GetMonitor operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/GetMonitor.go.html to see an example of how to use GetMonitorRequest.
func (GetMonitorRequest) BinaryRequestBody ¶
func (request GetMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetMonitorRequest) HTTPRequest ¶
func (request GetMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetMonitorRequest) RetryPolicy ¶
func (request GetMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetMonitorRequest) String ¶
func (request GetMonitorRequest) String() string
type GetMonitorResponse ¶
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"` }
GetMonitorResponse wrapper for the GetMonitor operation
func (GetMonitorResponse) HTTPResponse ¶
func (response GetMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetMonitorResponse) String ¶
func (response GetMonitorResponse) String() string
type 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 }
GetMonitorResultRequest wrapper for the GetMonitorResult operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/GetMonitorResult.go.html to see an example of how to use GetMonitorResultRequest.
func (GetMonitorResultRequest) BinaryRequestBody ¶
func (request GetMonitorResultRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetMonitorResultRequest) HTTPRequest ¶
func (request GetMonitorResultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetMonitorResultRequest) RetryPolicy ¶
func (request GetMonitorResultRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetMonitorResultRequest) String ¶
func (request GetMonitorResultRequest) String() string
type GetMonitorResultResponse ¶
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"` }
GetMonitorResultResponse wrapper for the GetMonitorResult operation
func (GetMonitorResultResponse) HTTPResponse ¶
func (response GetMonitorResultResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetMonitorResultResponse) String ¶
func (response GetMonitorResultResponse) String() string
type 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 }
GetScriptRequest wrapper for the GetScript operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/GetScript.go.html to see an example of how to use GetScriptRequest.
func (GetScriptRequest) BinaryRequestBody ¶
func (request GetScriptRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (GetScriptRequest) HTTPRequest ¶
func (request GetScriptRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (GetScriptRequest) RetryPolicy ¶
func (request GetScriptRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (GetScriptRequest) String ¶
func (request GetScriptRequest) String() string
type GetScriptResponse ¶
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"` }
GetScriptResponse wrapper for the GetScript operation
func (GetScriptResponse) HTTPResponse ¶
func (response GetScriptResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (GetScriptResponse) String ¶
func (response GetScriptResponse) String() string
type Header ¶
type Header struct { // Name of the header. HeaderName *string `mandatory:"true" json:"headerName"` // Value of the header. HeaderValue *string `mandatory:"false" json:"headerValue"` }
Header Details of the header.
type 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 }
ListMonitorsRequest wrapper for the ListMonitors operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/ListMonitors.go.html to see an example of how to use ListMonitorsRequest.
func (ListMonitorsRequest) BinaryRequestBody ¶
func (request ListMonitorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListMonitorsRequest) HTTPRequest ¶
func (request ListMonitorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListMonitorsRequest) RetryPolicy ¶
func (request ListMonitorsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListMonitorsRequest) String ¶
func (request ListMonitorsRequest) String() string
type ListMonitorsResponse ¶
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"` }
ListMonitorsResponse wrapper for the ListMonitors operation
func (ListMonitorsResponse) HTTPResponse ¶
func (response ListMonitorsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListMonitorsResponse) String ¶
func (response ListMonitorsResponse) String() string
type ListMonitorsSortByEnum ¶
type ListMonitorsSortByEnum string
ListMonitorsSortByEnum Enum with underlying type: string
const ( ListMonitorsSortByDisplayname ListMonitorsSortByEnum = "displayName" ListMonitorsSortByTimecreated ListMonitorsSortByEnum = "timeCreated" ListMonitorsSortByTimeupdated ListMonitorsSortByEnum = "timeUpdated" ListMonitorsSortByStatus ListMonitorsSortByEnum = "status" ListMonitorsSortByMonitortype ListMonitorsSortByEnum = "monitorType" )
Set of constants representing the allowable values for ListMonitorsSortByEnum
func GetListMonitorsSortByEnumValues ¶
func GetListMonitorsSortByEnumValues() []ListMonitorsSortByEnum
GetListMonitorsSortByEnumValues Enumerates the set of values for ListMonitorsSortByEnum
type ListMonitorsSortOrderEnum ¶
type ListMonitorsSortOrderEnum string
ListMonitorsSortOrderEnum Enum with underlying type: string
const ( ListMonitorsSortOrderAsc ListMonitorsSortOrderEnum = "ASC" ListMonitorsSortOrderDesc ListMonitorsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListMonitorsSortOrderEnum
func GetListMonitorsSortOrderEnumValues ¶
func GetListMonitorsSortOrderEnumValues() []ListMonitorsSortOrderEnum
GetListMonitorsSortOrderEnumValues Enumerates the set of values for ListMonitorsSortOrderEnum
type ListMonitorsStatusEnum ¶
type ListMonitorsStatusEnum string
ListMonitorsStatusEnum Enum with underlying type: string
const ( ListMonitorsStatusEnabled ListMonitorsStatusEnum = "ENABLED" ListMonitorsStatusDisabled ListMonitorsStatusEnum = "DISABLED" ListMonitorsStatusInvalid ListMonitorsStatusEnum = "INVALID" )
Set of constants representing the allowable values for ListMonitorsStatusEnum
func GetListMonitorsStatusEnumValues ¶
func GetListMonitorsStatusEnumValues() []ListMonitorsStatusEnum
GetListMonitorsStatusEnumValues Enumerates the set of values for ListMonitorsStatusEnum
type 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 }
ListPublicVantagePointsRequest wrapper for the ListPublicVantagePoints operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/ListPublicVantagePoints.go.html to see an example of how to use ListPublicVantagePointsRequest.
func (ListPublicVantagePointsRequest) BinaryRequestBody ¶
func (request ListPublicVantagePointsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListPublicVantagePointsRequest) HTTPRequest ¶
func (request ListPublicVantagePointsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListPublicVantagePointsRequest) RetryPolicy ¶
func (request ListPublicVantagePointsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListPublicVantagePointsRequest) String ¶
func (request ListPublicVantagePointsRequest) String() string
type ListPublicVantagePointsResponse ¶
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"` }
ListPublicVantagePointsResponse wrapper for the ListPublicVantagePoints operation
func (ListPublicVantagePointsResponse) HTTPResponse ¶
func (response ListPublicVantagePointsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListPublicVantagePointsResponse) String ¶
func (response ListPublicVantagePointsResponse) String() string
type ListPublicVantagePointsSortByEnum ¶
type ListPublicVantagePointsSortByEnum string
ListPublicVantagePointsSortByEnum Enum with underlying type: string
const ( ListPublicVantagePointsSortByName ListPublicVantagePointsSortByEnum = "name" ListPublicVantagePointsSortByDisplayname ListPublicVantagePointsSortByEnum = "displayName" )
Set of constants representing the allowable values for ListPublicVantagePointsSortByEnum
func GetListPublicVantagePointsSortByEnumValues ¶
func GetListPublicVantagePointsSortByEnumValues() []ListPublicVantagePointsSortByEnum
GetListPublicVantagePointsSortByEnumValues Enumerates the set of values for ListPublicVantagePointsSortByEnum
type ListPublicVantagePointsSortOrderEnum ¶
type ListPublicVantagePointsSortOrderEnum string
ListPublicVantagePointsSortOrderEnum Enum with underlying type: string
const ( ListPublicVantagePointsSortOrderAsc ListPublicVantagePointsSortOrderEnum = "ASC" ListPublicVantagePointsSortOrderDesc ListPublicVantagePointsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListPublicVantagePointsSortOrderEnum
func GetListPublicVantagePointsSortOrderEnumValues ¶
func GetListPublicVantagePointsSortOrderEnumValues() []ListPublicVantagePointsSortOrderEnum
GetListPublicVantagePointsSortOrderEnumValues Enumerates the set of values for ListPublicVantagePointsSortOrderEnum
type 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 }
ListScriptsRequest wrapper for the ListScripts operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/ListScripts.go.html to see an example of how to use ListScriptsRequest.
func (ListScriptsRequest) BinaryRequestBody ¶
func (request ListScriptsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (ListScriptsRequest) HTTPRequest ¶
func (request ListScriptsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (ListScriptsRequest) RetryPolicy ¶
func (request ListScriptsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (ListScriptsRequest) String ¶
func (request ListScriptsRequest) String() string
type ListScriptsResponse ¶
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"` }
ListScriptsResponse wrapper for the ListScripts operation
func (ListScriptsResponse) HTTPResponse ¶
func (response ListScriptsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (ListScriptsResponse) String ¶
func (response ListScriptsResponse) String() string
type ListScriptsSortByEnum ¶
type ListScriptsSortByEnum string
ListScriptsSortByEnum Enum with underlying type: string
const ( ListScriptsSortByDisplayname ListScriptsSortByEnum = "displayName" ListScriptsSortByTimecreated ListScriptsSortByEnum = "timeCreated" ListScriptsSortByTimeupdated ListScriptsSortByEnum = "timeUpdated" ListScriptsSortByContenttype ListScriptsSortByEnum = "contentType" )
Set of constants representing the allowable values for ListScriptsSortByEnum
func GetListScriptsSortByEnumValues ¶
func GetListScriptsSortByEnumValues() []ListScriptsSortByEnum
GetListScriptsSortByEnumValues Enumerates the set of values for ListScriptsSortByEnum
type ListScriptsSortOrderEnum ¶
type ListScriptsSortOrderEnum string
ListScriptsSortOrderEnum Enum with underlying type: string
const ( ListScriptsSortOrderAsc ListScriptsSortOrderEnum = "ASC" ListScriptsSortOrderDesc ListScriptsSortOrderEnum = "DESC" )
Set of constants representing the allowable values for ListScriptsSortOrderEnum
func GetListScriptsSortOrderEnumValues ¶
func GetListScriptsSortOrderEnumValues() []ListScriptsSortOrderEnum
GetListScriptsSortOrderEnumValues Enumerates the set of values for ListScriptsSortOrderEnum
type 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"` }
Monitor The information about a monitor.
func (*Monitor) UnmarshalJSON ¶
UnmarshalJSON unmarshals from json
type MonitorCollection ¶
type MonitorCollection struct { // List of MonitorSummary items. Items []MonitorSummary `mandatory:"true" json:"items"` }
MonitorCollection The results of a monitor search, which contains both MonitorSummary items and other data in an APM domain.
func (MonitorCollection) String ¶
func (m MonitorCollection) String() string
type MonitorConfiguration ¶
type MonitorConfiguration interface { // If isFailureRetried is enabled, then a failed call will be retried. GetIsFailureRetried() *bool }
MonitorConfiguration Details of monitor configuration.
type MonitorConfigurationConfigTypeEnum ¶
type MonitorConfigurationConfigTypeEnum string
MonitorConfigurationConfigTypeEnum Enum with underlying type: string
const ( MonitorConfigurationConfigTypeBrowserConfig MonitorConfigurationConfigTypeEnum = "BROWSER_CONFIG" MonitorConfigurationConfigTypeScriptedBrowserConfig MonitorConfigurationConfigTypeEnum = "SCRIPTED_BROWSER_CONFIG" MonitorConfigurationConfigTypeRestConfig MonitorConfigurationConfigTypeEnum = "REST_CONFIG" MonitorConfigurationConfigTypeScriptedRestConfig MonitorConfigurationConfigTypeEnum = "SCRIPTED_REST_CONFIG" )
Set of constants representing the allowable values for MonitorConfigurationConfigTypeEnum
func GetMonitorConfigurationConfigTypeEnumValues ¶
func GetMonitorConfigurationConfigTypeEnumValues() []MonitorConfigurationConfigTypeEnum
GetMonitorConfigurationConfigTypeEnumValues Enumerates the set of values for MonitorConfigurationConfigTypeEnum
type MonitorResult ¶
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"` }
MonitorResult The monitor result for a specific execution.
func (MonitorResult) String ¶
func (m MonitorResult) String() string
type MonitorResultData ¶
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"` }
MonitorResultData Details of the monitor result data.
func (MonitorResultData) String ¶
func (m MonitorResultData) String() string
type MonitorScriptParameter ¶
type MonitorScriptParameter struct { // Name of the parameter. ParamName *string `mandatory:"true" json:"paramName"` // Value of the parameter. ParamValue *string `mandatory:"true" json:"paramValue"` }
MonitorScriptParameter Details of the script parameter that can be used to overwrite the parameter present in the script.
func (MonitorScriptParameter) String ¶
func (m MonitorScriptParameter) String() string
type MonitorScriptParameterInfo ¶
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"` }
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.
func (MonitorScriptParameterInfo) String ¶
func (m MonitorScriptParameterInfo) String() string
type MonitorStatusCountMap ¶
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"` }
MonitorStatusCountMap Details of the monitor count per state. Example: `{ "total" : 5, "enabled" : 3 , "disabled" : 2, "invalid" : 0 }`
func (MonitorStatusCountMap) String ¶
func (m MonitorStatusCountMap) String() string
type MonitorStatusEnum ¶
type MonitorStatusEnum string
MonitorStatusEnum Enum with underlying type: string
const ( MonitorStatusEnabled MonitorStatusEnum = "ENABLED" MonitorStatusDisabled MonitorStatusEnum = "DISABLED" MonitorStatusInvalid MonitorStatusEnum = "INVALID" )
Set of constants representing the allowable values for MonitorStatusEnum
func GetMonitorStatusEnumValues ¶
func GetMonitorStatusEnumValues() []MonitorStatusEnum
GetMonitorStatusEnumValues Enumerates the set of values for MonitorStatusEnum
type MonitorSummary ¶
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"` }
MonitorSummary Information about the monitor.
func (MonitorSummary) String ¶
func (m MonitorSummary) String() string
type MonitorTypesEnum ¶
type MonitorTypesEnum string
MonitorTypesEnum Enum with underlying type: string
const ( MonitorTypesScriptedBrowser MonitorTypesEnum = "SCRIPTED_BROWSER" MonitorTypesBrowser MonitorTypesEnum = "BROWSER" MonitorTypesScriptedRest MonitorTypesEnum = "SCRIPTED_REST" MonitorTypesRest MonitorTypesEnum = "REST" )
Set of constants representing the allowable values for MonitorTypesEnum
func GetMonitorTypesEnumValues ¶
func GetMonitorTypesEnumValues() []MonitorTypesEnum
GetMonitorTypesEnumValues Enumerates the set of values for MonitorTypesEnum
type OAuthSchemesEnum ¶
type OAuthSchemesEnum string
OAuthSchemesEnum Enum with underlying type: string
const ( OAuthSchemesNone OAuthSchemesEnum = "NONE" OAuthSchemesBasic OAuthSchemesEnum = "BASIC" )
Set of constants representing the allowable values for OAuthSchemesEnum
func GetOAuthSchemesEnumValues ¶
func GetOAuthSchemesEnumValues() []OAuthSchemesEnum
GetOAuthSchemesEnumValues Enumerates the set of values for OAuthSchemesEnum
type PublicVantagePointCollection ¶
type PublicVantagePointCollection struct { // List of PublicVantagePointSummary items. Items []PublicVantagePointSummary `mandatory:"true" json:"items"` }
PublicVantagePointCollection The results of a public vantage point search, which contains PublicVantagePointSummary items and other data in an APM domain.
func (PublicVantagePointCollection) String ¶
func (m PublicVantagePointCollection) String() string
type PublicVantagePointSummary ¶
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"` }
PublicVantagePointSummary Information about public vantage points.
func (PublicVantagePointSummary) String ¶
func (m PublicVantagePointSummary) String() string
type RequestAuthenticationDetails ¶
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"` }
RequestAuthenticationDetails Details for request HTTP authentication.
func (RequestAuthenticationDetails) String ¶
func (m RequestAuthenticationDetails) String() string
type RequestAuthenticationSchemesEnum ¶
type RequestAuthenticationSchemesEnum string
RequestAuthenticationSchemesEnum Enum with underlying type: string
const ( RequestAuthenticationSchemesOauth RequestAuthenticationSchemesEnum = "OAUTH" RequestAuthenticationSchemesNone RequestAuthenticationSchemesEnum = "NONE" RequestAuthenticationSchemesBasic RequestAuthenticationSchemesEnum = "BASIC" RequestAuthenticationSchemesBearer RequestAuthenticationSchemesEnum = "BEARER" )
Set of constants representing the allowable values for RequestAuthenticationSchemesEnum
func GetRequestAuthenticationSchemesEnumValues ¶
func GetRequestAuthenticationSchemesEnumValues() []RequestAuthenticationSchemesEnum
GetRequestAuthenticationSchemesEnumValues Enumerates the set of values for RequestAuthenticationSchemesEnum
type RequestMethodsEnum ¶
type RequestMethodsEnum string
RequestMethodsEnum Enum with underlying type: string
const ( RequestMethodsGet RequestMethodsEnum = "GET" RequestMethodsPost RequestMethodsEnum = "POST" )
Set of constants representing the allowable values for RequestMethodsEnum
func GetRequestMethodsEnumValues ¶
func GetRequestMethodsEnumValues() []RequestMethodsEnum
GetRequestMethodsEnumValues Enumerates the set of values for RequestMethodsEnum
type RequestQueryParam ¶
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"` }
RequestQueryParam Information about request query parameters.
func (RequestQueryParam) String ¶
func (m RequestQueryParam) String() string
type RestMonitorConfiguration ¶
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"` }
RestMonitorConfiguration Request configuration details for the REST monitor type.
func (RestMonitorConfiguration) GetIsFailureRetried ¶
func (m RestMonitorConfiguration) GetIsFailureRetried() *bool
GetIsFailureRetried returns IsFailureRetried
func (RestMonitorConfiguration) MarshalJSON ¶
func (m RestMonitorConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (RestMonitorConfiguration) String ¶
func (m RestMonitorConfiguration) String() string
type 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"` }
Script The information about the script.
type ScriptCollection ¶
type ScriptCollection struct { // List of ScriptSummary items. Items []ScriptSummary `mandatory:"true" json:"items"` }
ScriptCollection The results of a script search, which contains both ScriptSummary items and other data in an APM domain.
func (ScriptCollection) String ¶
func (m ScriptCollection) String() string
type ScriptParameter ¶
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"` }
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.
func (ScriptParameter) String ¶
func (m ScriptParameter) String() string
type ScriptParameterInfo ¶
type ScriptParameterInfo struct { ScriptParameter *ScriptParameter `mandatory:"true" json:"scriptParameter"` // If parameter value is default or overwritten. IsOverwritten *bool `mandatory:"true" json:"isOverwritten"` }
ScriptParameterInfo Information about script parameters. isOverwritten specifies that the default parameter present in the script content is overwritten.
func (ScriptParameterInfo) String ¶
func (m ScriptParameterInfo) String() string
type ScriptSummary ¶
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"` }
ScriptSummary Information about the script.
func (ScriptSummary) String ¶
func (m ScriptSummary) String() string
type ScriptedBrowserMonitorConfiguration ¶
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"` }
ScriptedBrowserMonitorConfiguration Configuration details for the SCRIPTED_BROWSER monitor type.
func (ScriptedBrowserMonitorConfiguration) GetIsFailureRetried ¶
func (m ScriptedBrowserMonitorConfiguration) GetIsFailureRetried() *bool
GetIsFailureRetried returns IsFailureRetried
func (ScriptedBrowserMonitorConfiguration) MarshalJSON ¶
func (m ScriptedBrowserMonitorConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (ScriptedBrowserMonitorConfiguration) String ¶
func (m ScriptedBrowserMonitorConfiguration) String() string
type ScriptedRestMonitorConfiguration ¶
type ScriptedRestMonitorConfiguration struct { // If isFailureRetried is enabled, then a failed call will be retried. IsFailureRetried *bool `mandatory:"false" json:"isFailureRetried"` }
ScriptedRestMonitorConfiguration Configuration details for the SCRIPTED_REST monitor type.
func (ScriptedRestMonitorConfiguration) GetIsFailureRetried ¶
func (m ScriptedRestMonitorConfiguration) GetIsFailureRetried() *bool
GetIsFailureRetried returns IsFailureRetried
func (ScriptedRestMonitorConfiguration) MarshalJSON ¶
func (m ScriptedRestMonitorConfiguration) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (ScriptedRestMonitorConfiguration) String ¶
func (m ScriptedRestMonitorConfiguration) String() string
type SortOrdersEnum ¶
type SortOrdersEnum string
SortOrdersEnum Enum with underlying type: string
const ( SortOrdersAsc SortOrdersEnum = "ASC" SortOrdersDesc SortOrdersEnum = "DESC" )
Set of constants representing the allowable values for SortOrdersEnum
func GetSortOrdersEnumValues ¶
func GetSortOrdersEnumValues() []SortOrdersEnum
GetSortOrdersEnumValues Enumerates the set of values for SortOrdersEnum
type UpdateMonitorDetails ¶
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"` }
UpdateMonitorDetails Details of the request body used to update a monitor.
func (UpdateMonitorDetails) String ¶
func (m UpdateMonitorDetails) String() string
func (*UpdateMonitorDetails) UnmarshalJSON ¶
func (m *UpdateMonitorDetails) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
type 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 }
UpdateMonitorRequest wrapper for the UpdateMonitor operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/UpdateMonitor.go.html to see an example of how to use UpdateMonitorRequest.
func (UpdateMonitorRequest) BinaryRequestBody ¶
func (request UpdateMonitorRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (UpdateMonitorRequest) HTTPRequest ¶
func (request UpdateMonitorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateMonitorRequest) RetryPolicy ¶
func (request UpdateMonitorRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateMonitorRequest) String ¶
func (request UpdateMonitorRequest) String() string
type UpdateMonitorResponse ¶
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"` }
UpdateMonitorResponse wrapper for the UpdateMonitor operation
func (UpdateMonitorResponse) HTTPResponse ¶
func (response UpdateMonitorResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateMonitorResponse) String ¶
func (response UpdateMonitorResponse) String() string
type UpdateScriptDetails ¶
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"` }
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.
func (UpdateScriptDetails) String ¶
func (m UpdateScriptDetails) String() string
type 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 }
UpdateScriptRequest wrapper for the UpdateScript operation
See also ¶
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/apmsynthetics/UpdateScript.go.html to see an example of how to use UpdateScriptRequest.
func (UpdateScriptRequest) BinaryRequestBody ¶
func (request UpdateScriptRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (UpdateScriptRequest) HTTPRequest ¶
func (request UpdateScriptRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (UpdateScriptRequest) RetryPolicy ¶
func (request UpdateScriptRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (UpdateScriptRequest) String ¶
func (request UpdateScriptRequest) String() string
type UpdateScriptResponse ¶
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"` }
UpdateScriptResponse wrapper for the UpdateScript operation
func (UpdateScriptResponse) HTTPResponse ¶
func (response UpdateScriptResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (UpdateScriptResponse) String ¶
func (response UpdateScriptResponse) String() string
type VantagePointInfo ¶
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"` }
VantagePointInfo Details of the vantage point.
func (VantagePointInfo) String ¶
func (m VantagePointInfo) String() string
type VerifyText ¶
type VerifyText struct { // Verification text in the response. Text *string `mandatory:"false" json:"text"` }
VerifyText Details to verify text.
func (VerifyText) String ¶
func (m VerifyText) String() string
Source Files ¶
- apmsynthetics_apmsynthetic_client.go
- browser_monitor_configuration.go
- content_types.go
- create_monitor_details.go
- create_monitor_request_response.go
- create_script_details.go
- create_script_request_response.go
- delete_monitor_request_response.go
- delete_script_request_response.go
- geo_summary.go
- get_monitor_request_response.go
- get_monitor_result_request_response.go
- get_script_request_response.go
- header.go
- list_monitors_request_response.go
- list_public_vantage_points_request_response.go
- list_scripts_request_response.go
- monitor.go
- monitor_collection.go
- monitor_configuration.go
- monitor_result.go
- monitor_result_data.go
- monitor_script_parameter.go
- monitor_script_parameter_info.go
- monitor_status.go
- monitor_status_count_map.go
- monitor_summary.go
- monitor_types.go
- o_auth_schemes.go
- public_vantage_point_collection.go
- public_vantage_point_summary.go
- request_authentication_details.go
- request_authentication_schemes.go
- request_methods.go
- request_query_param.go
- rest_monitor_configuration.go
- script.go
- script_collection.go
- script_parameter.go
- script_parameter_info.go
- script_summary.go
- scripted_browser_monitor_configuration.go
- scripted_rest_monitor_configuration.go
- sort_orders.go
- update_monitor_details.go
- update_monitor_request_response.go
- update_script_details.go
- update_script_request_response.go
- vantage_point_info.go
- verify_text.go