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
- type CreateMonitorResponse
- type CreateScriptDetails
- type CreateScriptRequest
- type CreateScriptResponse
- type DeleteMonitorRequest
- type DeleteMonitorResponse
- type DeleteScriptRequest
- type DeleteScriptResponse
- type GeoSummary
- type GetMonitorRequest
- type GetMonitorResponse
- type GetMonitorResultRequest
- type GetMonitorResultResponse
- type GetScriptRequest
- type GetScriptResponse
- type Header
- type ListMonitorsRequest
- type ListMonitorsResponse
- type ListMonitorsSortByEnum
- type ListMonitorsSortOrderEnum
- type ListMonitorsStatusEnum
- type ListPublicVantagePointsRequest
- type ListPublicVantagePointsResponse
- type ListPublicVantagePointsSortByEnum
- type ListPublicVantagePointsSortOrderEnum
- type ListScriptsRequest
- 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
- type UpdateMonitorResponse
- type UpdateScriptDetails
- type UpdateScriptRequest
- 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.
func (ApmSyntheticClient) CreateScript ¶
func (client ApmSyntheticClient) CreateScript(ctx context.Context, request CreateScriptRequest) (response CreateScriptResponse, err error)
CreateScript Creates a new Script.
func (ApmSyntheticClient) DeleteMonitor ¶
func (client ApmSyntheticClient) DeleteMonitor(ctx context.Context, request DeleteMonitorRequest) (response DeleteMonitorResponse, err error)
DeleteMonitor Deletes the specified monitor
func (ApmSyntheticClient) DeleteScript ¶
func (client ApmSyntheticClient) DeleteScript(ctx context.Context, request DeleteScriptRequest) (response DeleteScriptResponse, err error)
DeleteScript Deletes the specified script.
func (ApmSyntheticClient) GetMonitor ¶
func (client ApmSyntheticClient) GetMonitor(ctx context.Context, request GetMonitorRequest) (response GetMonitorResponse, err error)
GetMonitor Get the configuration of the monitor identified by the OCID.
func (ApmSyntheticClient) GetMonitorResult ¶
func (client ApmSyntheticClient) GetMonitorResult(ctx context.Context, request GetMonitorResultRequest) (response GetMonitorResultResponse, err error)
GetMonitorResult Get result(har or screenshot or consolelog) identified by the execution time of the monitor identified by the OCID.
func (ApmSyntheticClient) GetScript ¶
func (client ApmSyntheticClient) GetScript(ctx context.Context, request GetScriptRequest) (response GetScriptResponse, err error)
GetScript Get the configuration of the Script identified by the OCID.
func (ApmSyntheticClient) ListMonitors ¶
func (client ApmSyntheticClient) ListMonitors(ctx context.Context, request ListMonitorsRequest) (response ListMonitorsResponse, err error)
ListMonitors Returns a list of Monitor.
func (ApmSyntheticClient) ListPublicVantagePoints ¶
func (client ApmSyntheticClient) ListPublicVantagePoints(ctx context.Context, request ListPublicVantagePointsRequest) (response ListPublicVantagePointsResponse, err error)
ListPublicVantagePoints Returns a list of Public Vantage Point.
func (ApmSyntheticClient) ListScripts ¶
func (client ApmSyntheticClient) ListScripts(ctx context.Context, request ListScriptsRequest) (response ListScriptsResponse, err error)
ListScripts Returns a list of script resources.
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.
func (ApmSyntheticClient) UpdateScript ¶
func (client ApmSyntheticClient) UpdateScript(ctx context.Context, request UpdateScriptRequest) (response UpdateScriptResponse, err error)
UpdateScript Updates the Script.
type BrowserMonitorConfiguration ¶
type BrowserMonitorConfiguration struct { // If isFailureRetried enabled, then if call is failed then it will be retried. IsFailureRetried *bool `mandatory:"false" json:"isFailureRetried"` // If validation enabled, then call will fail for certificate 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 for 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 { // A user-friendly name. Must be unique, and it can be changed. Avoid entering 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 any 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 can not be more than 30% of repeatIntervalInSeconds time for monitors. // Also, timeoutInSeconds should be 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 monitor type SCRIPTED_BROWSER, monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. // If target is not specified in the monitor type SCRIPTED_BROWSER, 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 any 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 The request body used to create 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
func (CreateMonitorRequest) HTTPRequest ¶
func (request CreateMonitorRequest) HTTPRequest(method, path string) (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 { // A user-friendly name. Must be unique, and it can be changed. Avoid entering confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // Content type of script. ContentType ContentTypesEnum `mandatory:"true" json:"contentType"` // Script Content. It may contain custom defined tags which can be used for setting dynamic parameters. // Format is `<ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>`. // Param value and isParamValueSecret are optional, default value for isParamValueSecret is false. Few examples - // with mandatory param name : `<ORAP><ON>param name</ON></ORAP>` // with param name and value : `<ORAP><ON>param name</ON><OV>param value</OV></ORAP>` // Content is valid if content is matching given content type. If content type is SIDE, then the content should be in side format. If content type is JS, then the content should be in java script format. Content *string `mandatory:"true" json:"content"` // Filename 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 The request body used to create new Script. Only Side or Java Script content types are supported. Content should be in side or java script 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
func (CreateScriptRequest) HTTPRequest ¶
func (request CreateScriptRequest) HTTPRequest(method, path string) (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
func (DeleteMonitorRequest) HTTPRequest ¶
func (request DeleteMonitorRequest) HTTPRequest(method, path string) (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
func (DeleteScriptRequest) HTTPRequest ¶
func (request DeleteScriptRequest) HTTPRequest(method, path string) (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
func (GetMonitorRequest) HTTPRequest ¶
func (request GetMonitorRequest) HTTPRequest(method, path string) (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 object posted time. 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
func (GetMonitorResultRequest) HTTPRequest ¶
func (request GetMonitorResultRequest) HTTPRequest(method, path string) (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
func (GetScriptRequest) HTTPRequest ¶
func (request GetScriptRequest) HTTPRequest(method, path string) (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 header. HeaderName *string `mandatory:"true" json:"headerName"` // Value of header. HeaderValue *string `mandatory:"false" json:"headerValue"` }
Header Header details.
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
func (ListMonitorsRequest) HTTPRequest ¶
func (request ListMonitorsRequest) HTTPRequest(method, path string) (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
func (ListPublicVantagePointsRequest) HTTPRequest ¶
func (request ListPublicVantagePointsRequest) HTTPRequest(method, path string) (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 decensing. // 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
func (ListScriptsRequest) HTTPRequest ¶
func (request ListScriptsRequest) HTTPRequest(method, path string) (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"` // A user-friendly name. Must be unique, and it can be changed. Avoid entering 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 any 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 can not be more than 30% of repeatIntervalInSeconds time for monitors. // Also, timeoutInSeconds should be 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 monitor type SCRIPTED_BROWSER, monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. // If target is not specified in the monitor type SCRIPTED_BROWSER, monitor will run the selected script as it is. Target *string `mandatory:"false" json:"target"` // List of script parameter information. 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 []MonitorSummary `mandatory:"true" json:"items"` }
MonitorCollection Results of a monitor search. 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 enabled, then if call is failed then it will be retried. GetIsFailureRetried() *bool }
MonitorConfiguration Monitor configuration details.
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 the result content like zip or raw. ResultContentType *string `mandatory:"true" json:"resultContentType"` // Type of the result like har or 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 vantagePoint name. VantagePoint *string `mandatory:"false" json:"vantagePoint"` // The specific point of time when result of an execution 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 like zip and screenshot. ByteContent []byte `mandatory:"false" json:"byteContent"` // Data content in string format like 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 Monitor result data details.
func (MonitorResultData) String ¶
func (m MonitorResultData) String() string
type MonitorScriptParameter ¶
type MonitorScriptParameter struct { // Name of Parameter ParamName *string `mandatory:"true" json:"paramName"` // Value of Parameter ParamValue *string `mandatory:"true" json:"paramValue"` }
MonitorScriptParameter Details of the script pamameter that can be used to override the parameter present in script resource. type: object
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 was 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 Script Parameter Details of the monitor. isOverwritten specfies that if the parameters used script resource are overwritten by monitor. If User overrides the parameter value in monitor, then, parameter is considered overwritten. Over written 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 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"` // A user-friendly name. Must be unique, and it can be changed. Avoid entering confidential information. DisplayName *string `mandatory:"true" json:"displayName"` // Type of the 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 any 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 can not be more than 30% of repeatIntervalInSeconds time for monitors. // Also, timeoutInSeconds should be 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 monitor type SCRIPTED_BROWSER, monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. // If target is not specified in the monitor type SCRIPTED_BROWSER, 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 The information about 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 []PublicVantagePointSummary `mandatory:"true" json:"items"` }
PublicVantagePointCollection Results of a script search. Contains both PublicVantagePointSummary items and other data in an apm domain.
func (PublicVantagePointCollection) String ¶
func (m PublicVantagePointCollection) String() string
type PublicVantagePointSummary ¶
type PublicVantagePointSummary struct { // A user-friendly name. Must be unique, and it can be changed. Avoid entering 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 The information about Public Vantage Point.
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 authetication. 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 Request HTTP authentication details.
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 Request query parameter details.
func (RequestQueryParam) String ¶
func (m RequestQueryParam) String() string
type RestMonitorConfiguration ¶
type RestMonitorConfiguration struct { // If isFailureRetried enabled, then if call is failed then it 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 with the verifyResponseContent, then it will be considered as failure. VerifyResponseContent *string `mandatory:"false" json:"verifyResponseContent"` // Expected HTTP response codes. For status code range, please set values like 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 for 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 any other monitor types, it should be set to null. Id *string `mandatory:"true" json:"id"` // A user-friendly name. Must be unique, and it can be changed. Avoid entering 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"` // Script Content. It may contain custom defined tags which can be used for setting dynamic parameters. // Format is `<ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>`. // Param value and isParamValueSecret are optional, default value for isParamValueSecret is false. Few examples - // with mandatory param name : `<ORAP><ON>param name</ON></ORAP>` // with param name and value : `<ORAP><ON>param name</ON><OV>param value</OV></ORAP>` // Content is valid if content is matching given content type. If content type is SIDE, then the content should be in side format. If content type is JS, then the content should be in java script format. Content *string `mandatory:"false" json:"content"` // Time when script uploaded. TimeUploaded *common.SDKTime `mandatory:"false" json:"timeUploaded"` // Size of the script content. ContentSizeInBytes *int `mandatory:"false" json:"contentSizeInBytes"` // Filename of the uploaded script content. ContentFileName *string `mandatory:"false" json:"contentFileName"` // List of script parameter information. 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 []ScriptSummary `mandatory:"true" json:"items"` }
ScriptCollection Results of a script search. 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 Parameter ParamName *string `mandatory:"true" json:"paramName"` // Value of 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 Script Parameter Details, paramName must be from the script content. This can be used to override the default parameter present in 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 This provides the information about the script parameter. isOverwritten specfies that if the default parameter present in script contnent is overwritten by script resource.
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 any other monitor types, it should be set to null. Id *string `mandatory:"true" json:"id"` // A user-friendly name. Must be unique, and it can be changed. Avoid entering 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 The information about Script.
func (ScriptSummary) String ¶
func (m ScriptSummary) String() string
type ScriptedBrowserMonitorConfiguration ¶
type ScriptedBrowserMonitorConfiguration struct { // If isFailureRetried enabled, then if call is failed then it will be retried. IsFailureRetried *bool `mandatory:"false" json:"isFailureRetried"` // If certificate validation enabled, then call will fail for certificate errors. IsCertificateValidationEnabled *bool `mandatory:"false" json:"isCertificateValidationEnabled"` }
ScriptedBrowserMonitorConfiguration Configuration for 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 enabled, then if call is failed then it will be retried. IsFailureRetried *bool `mandatory:"false" json:"isFailureRetried"` }
ScriptedRestMonitorConfiguration Configuration for 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 { // A user-friendly name. Must be unique, and it can be changed. Avoid entering 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 any 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 can not be more than 30% of repeatIntervalInSeconds time for monitors. // Also, timeoutInSeconds should be 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 monitor type SCRIPTED_BROWSER, monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. // If target is not specified in the monitor type SCRIPTED_BROWSER, 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 any 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 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
func (UpdateMonitorRequest) HTTPRequest ¶
func (request UpdateMonitorRequest) HTTPRequest(method, path string) (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 { // A user-friendly name. Must be unique, and it can be changed. Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` // Content type of script. ContentType ContentTypesEnum `mandatory:"false" json:"contentType,omitempty"` // Script Content. It may contain custom defined tags which can be used for setting dynamic parameters. // Format is `<ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>`. // Param value and isParamValueSecret are optional, default value for isParamValueSecret is false. Few examples - // with mandatory param name : `<ORAP><ON>param name</ON></ORAP>` // with param name and value : `<ORAP><ON>param name</ON><OV>param value</OV></ORAP>` // Content is valid if content is matching given content type. If content type is SIDE, then the content should be in side format. If content type is JS, then the content should be in java script format. Content *string `mandatory:"false" json:"content"` // Filename 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 The request body used to update new Script. Only Side or Java Script content types are supported. Content should be in side or java script 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
func (UpdateScriptRequest) HTTPRequest ¶
func (request UpdateScriptRequest) HTTPRequest(method, path string) (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 { // Vantage point name. Name *string `mandatory:"true" json:"name"` // A user-friendly name. Must be unique, and it can be changed. Avoid entering confidential information. DisplayName *string `mandatory:"true" json:"displayName"` }
VantagePointInfo Vantage Point Details.
func (VantagePointInfo) String ¶
func (m VantagePointInfo) String() string
type VerifyText ¶
type VerifyText struct { // verify text in response. Text *string `mandatory:"false" json:"text"` }
VerifyText verify text object.
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