Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.8 KB

MonitoringAppApi.md

File metadata and controls

58 lines (40 loc) · 1.8 KB

SematextCloud::MonitoringAppApi

All URIs are relative to /

Method HTTP request Description
create_spm_application1 POST /spm-reports/api/v3/apps Create Monitoring App

create_spm_application1

AppsResponse create_spm_application1(body)

Create Monitoring App

Example

# load the gem
require 'SematextCloud'
# setup authorization
SematextCloud.configure do |config|
  # Configure API key authorization: api_key
  config.api_key['Authorization'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SematextCloud::MonitoringAppApi.new
body = SematextCloud::CreateAppInfo.new # CreateAppInfo | Details of the application to be created


begin
  #Create Monitoring App
  result = api_instance.create_spm_application1(body)
  p result
rescue SematextCloud::ApiError => e
  puts "Exception when calling MonitoringAppApi->create_spm_application1: #{e}"
end

Parameters

Name Type Description Notes
body CreateAppInfo Details of the application to be created

Return type

AppsResponse

Authorization

api_key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json