diff --git a/fonts/slate-7b7da4fe.ttf b/fonts/slate-7b7da4fe.ttf old mode 100755 new mode 100644 diff --git a/fonts/slate-cfc9d06b.eot b/fonts/slate-cfc9d06b.eot old mode 100755 new mode 100644 diff --git a/index.html b/index.html index 273da30..26d7bb6 100644 --- a/index.html +++ b/index.html @@ -1751,7 +1751,7 @@
  • - CohortCreateItem + BillingReportUsageInvoice
  • - BillingMetricResponse + CohortCreateItem
  • - EmailAddresses + BillingReportUsage
  • - Plan + BillingMetricResponse
  • - SequenceItem + EmailAddresses
  • - Cohort + Plan
  • - RegexCondition + SequenceItem
  • - TemplateConfig + Cohort
  • - MoesifTransformQuantity + BalanceChange
  • - EncryptedKeyDocument + RegexCondition
  • - Comments + TemplateConfig
  • - SignedTokenDTO + MoesifTransformQuantity
  • - EncryptedKeyCreateItem + EncryptedKeyDocument
  • - MoesifPrice + Comments
  • - EmailTemplateCreateItem + SignedTokenDTO
  • - PolicyItem + EncryptedKeyCreateItem
  • - BillingMetricBucket + MoesifPrice
  • - AccessTokenDTO + EmailTemplateCreateItem
  • - DashboardDocument + PolicyItem
  • - CreateCommentItem + BillingMetricBucket
  • - TemplateContent + AccessTokenDTO
  • - DynamicField + DashboardDocument
  • - MoesifPlan + CreditBalanceMetric
  • - GovernanceRuleCreateItem + CreateCommentItem
  • - DrawingItem + TemplateContent
  • - ChartItem + DynamicField
  • - BillingReport + CreditBalance
  • - ACLItem + MoesifPlan
  • - CohortConfig + GovernanceRuleCreateItem
  • - RegexRule + DrawingItem
  • - GovernanceRulesVariables + ChartItem
  • - WorkspaceDocument + BillingReport
  • - MoesifPriceTier + ACLItem
  • - KeyValuePair + CohortConfig
  • - AppResponseDTO + RegexRule
  • - CohortUpdateItem + GovernanceRulesVariables
  • - EmailTemplateUpdateItem + ChannelRequest
  • - GovernanceRulesDocument + WorkspaceDocument
  • - SubmitData + MoesifPriceTier
  • - NotificationRule + KeyValuePair
  • - TemplateItem + AppResponseDTO
  • - Summary + CohortUpdateItem
  • - GovernanceRuleUpdateItem + EmailTemplateUpdateItem
  • - searchUsersResponseDTO + GovernanceRulesDocument
  • - SubscriptionDTO + SubmitData
  • - searchEventsResponseDTO + ProviderRequest
  • - searchcompanysResponseDTO + NotificationRule
  • - UserUpdateDTO + TemplateItem
  • - SubscriptionItem + Summary
  • - userResponseDTO + GovernanceRuleUpdateItem
  • - eventResponseDTO + searchUsersResponseDTO
  • - AddSubscriptionDTO + SubscriptionDTO
  • - CompanyUpdateDTO + searchEventsResponseDTO
  • +
  • + searchcompanysResponseDTO + +
  • +
  • + UserUpdateDTO + +
  • +
  • + SubscriptionItem + +
  • +
  • + userResponseDTO + +
  • +
  • + eventResponseDTO + +
  • +
  • + AddSubscriptionDTO + +
  • +
  • + CompanyUpdateDTO + +
  • @@ -11393,32 +11449,79 @@

    Parameters

    [
       {
    +    "ending_balance": {
    +      "sequence_id": 0,
    +      "current_balance": 0,
    +      "pending_activity": 0,
    +      "available_balance": 0
    +    },
         "company_id": "string",
         "success": true,
         "provider": "string",
         "report_version": 0,
         "usage_end_time": "2019-08-24T14:15:22Z",
    +    "usage": {
    +      "invoice": {
    +        "period_start": "2019-08-24T14:15:22Z",
    +        "period_end": "2019-08-24T14:15:22Z",
    +        "id": "string"
    +      },
    +      "aggregator": "string"
    +    },
         "_id": "string",
         "meter_usage": 0,
         "last_success_time": "2019-08-24T14:15:22Z",
    +    "beginning_balance": {
    +      "sequence_id": 0,
    +      "current_balance": 0,
    +      "pending_activity": 0,
    +      "available_balance": 0
    +    },
         "billing_meter_id": "string",
         "amount": 0,
         "usage_start_time": "2019-08-24T14:15:22Z",
         "status": "string",
         "provider_requests": [
    -      null
    +      {
    +        "success": true,
    +        "status_code": 0,
    +        "job_id": "string",
    +        "error_message": "string",
    +        "error_code": "string",
    +        "request_time": "2019-08-24T14:15:22Z"
    +      }
         ],
         "currency": "string",
         "report_total_usage": 0,
         "channel_requests": [
    -      null
    +      {
    +        "channel_id": "string",
    +        "channel_name": "string",
    +        "provider_requests": [
    +          {
    +            "success": true,
    +            "status_code": 0,
    +            "job_id": "string",
    +            "error_message": "string",
    +            "error_code": "string",
    +            "request_time": "2019-08-24T14:15:22Z"
    +          }
    +        ]
    +      }
         ],
         "created_at": "2019-08-24T14:15:22Z",
         "app_id": "string",
         "subscription_id": "string",
    +    "subscription_period_start": "2019-08-24T14:15:22Z",
    +    "balance_changes": [
    +      {
    +        "amount": 0
    +      }
    +    ],
         "type": "string",
         "updated_at": "2019-08-24T14:15:22Z",
         "org_id": "string",
    +    "subscription_period_end": "2019-08-24T14:15:22Z",
         "meter_metric": 0
       }
     ]
    @@ -11462,6 +11565,41 @@ 

    Response Schema

    none +» ending_balance +object +false +none +none + + +»» sequence_id +integer(int32) +true +none +none + + +»» current_balance +number(double) +true +none +none + + +»» pending_activity +number(double) +true +none +none + + +»» available_balance +number(double) +true +none +none + + » company_id string true @@ -11497,6 +11635,48 @@

    Response Schema

    none +» usage +object +false +none +none + + +»» invoice +object +false +none +none + + +»»» period_start +string(date-time) +false +none +none + + +»»» period_end +string(date-time) +false +none +none + + +»»» id +string +true +none +none + + +»» aggregator +string +false +none +none + + » _id string false @@ -11518,6 +11698,13 @@

    Response Schema

    none +» beginning_balance +object +false +none +none + + » billing_meter_id string true @@ -11547,7 +11734,49 @@

    Response Schema

    » provider_requests -[providerrequest] +[ProviderRequest] +true +none +none + + +»» success +boolean +true +none +none + + +»» status_code +integer(int32) +true +none +none + + +»» job_id +string +true +none +none + + +»» error_message +string +true +none +none + + +»» error_code +string +true +none +none + + +»» request_time +string(date-time) true none none @@ -11568,12 +11797,33 @@

    Response Schema

    » channel_requests -[channelrequest] +[ChannelRequest] false none none +»» channel_id +string +true +none +none + + +»» channel_name +string +true +none +none + + +»» provider_requests +[ProviderRequest] +true +none +none + + » created_at string(date-time) false @@ -11595,6 +11845,27 @@

    Response Schema

    none +» subscription_period_start +string(date-time) +false +none +none + + +» balance_changes +[BalanceChange] +false +none +none + + +»» amount +number(double) +true +none +none + + » type string false @@ -11616,6 +11887,13 @@

    Response Schema

    none +» subscription_period_end +string(date-time) +false +none +none + + » meter_metric integer(int64) true @@ -11635,7 +11913,7 @@

    getBillingReportsMetrics

    Code samples

    # You can also use wget
    -curl -X GET https://api.moesif.com/v1/~/billing/reports/metrics?billing_meter_id=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z \
    +curl -X GET https://api.moesif.com/v1/~/billing/reports/metrics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z \
       -H 'Accept: application/json'
     
     
    const fetch = require('node-fetch');
    @@ -11644,7 +11922,7 @@ 

    getBillingReportsMetrics

    'Accept':'application/json' }; -fetch('https://api.moesif.com/v1/~/billing/reports/metrics?billing_meter_id=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z', +fetch('https://api.moesif.com/v1/~/billing/reports/metrics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z', { method: 'GET', @@ -11662,7 +11940,7 @@

    getBillingReportsMetrics

    } r = requests.get('https://api.moesif.com/v1/~/billing/reports/metrics', params={ - 'billing_meter_id': 'string', 'from': '2019-08-24T14:15:22Z', 'to': '2019-08-24T14:15:22Z' + 'from': '2019-08-24T14:15:22Z', 'to': '2019-08-24T14:15:22Z' }, headers = headers) print(r.json()) @@ -11676,8 +11954,7 @@

    getBillingReportsMetrics

    result = RestClient.get 'https://api.moesif.com/v1/~/billing/reports/metrics', params: { - 'billing_meter_id' => 'string', -'from' => 'string(date-time)', + 'from' => 'string(date-time)', 'to' => 'string(date-time)' }, headers: headers @@ -11788,7 +12065,7 @@

    getBillingReportsMetrics

    } } -
    URL obj = new URL("https://api.moesif.com/v1/~/billing/reports/metrics?billing_meter_id=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z");
    +
    URL obj = new URL("https://api.moesif.com/v1/~/billing/reports/metrics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z");
     HttpURLConnection con = (HttpURLConnection) obj.openConnection();
     con.setRequestMethod("GET");
     int responseCode = con.getResponseCode();
    @@ -11821,24 +12098,24 @@ 

    Parameters

    -billing_meter_id +from query -string +string(date-time) true none -from +to query string(date-time) true none -to +billing_meter_id query -string(date-time) -true +string +false none @@ -11876,6 +12153,13 @@

    Parameters

    false none + +type +query +array[string] +false +none +
    @@ -11884,15 +12168,16 @@

    Parameters

    200 Response

    {
    -  "billing_meter_id": "string",
       "buckets": [
         {
           "start": "2019-08-24T14:15:22Z",
    -      "metric": null,
    -      "usage": null,
    -      "errors": [
    -        "string"
    -      ]
    +      "metric": 0,
    +      "amounts": null,
    +      "ending_balance": {
    +        "current_balance": 0,
    +        "pending_activity": 0,
    +        "available_balance": 0
    +      }
         }
       ]
     }
    @@ -23376,7 +23661,7 @@ 

    Response Schema

    »»» up_to -util.either[long,string] +util.either[scala.long,string] true none none @@ -24964,7 +25249,7 @@

    Response Schema

    »» up_to -util.either[long,string] +util.either[scala.long,string] true none none @@ -32631,6 +32916,51 @@

    AppUpdateDTO

    +

    BillingReportUsageInvoice

    + +

    + + +

    +
    {
    +  "period_start": "2019-08-24T14:15:22Z",
    +  "period_end": "2019-08-24T14:15:22Z",
    +  "id": "string"
    +}
    +
    +

    Properties

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeRequiredRestrictionsDescription
    period_startstring(date-time)falsenonenone
    period_endstring(date-time)falsenonenone
    idstringtruenonenone
    +

    CohortCreateItem

    @@ -32659,7 +32989,7 @@

    CohortCreateItem

    "time_zone": "string" } -

    Properties

    +

    Properties

    @@ -32755,6 +33085,47 @@

    CohortCreateItem

    Name
    +

    BillingReportUsage

    + +

    + + +

    +
    {
    +  "invoice": {
    +    "period_start": "2019-08-24T14:15:22Z",
    +    "period_end": "2019-08-24T14:15:22Z",
    +    "id": "string"
    +  },
    +  "aggregator": "string"
    +}
    +
    +

    Properties

    + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeRequiredRestrictionsDescription
    invoiceBillingReportUsageInvoicefalsenonenone
    aggregatorstringfalsenonenone
    +

    BillingMetricResponse

    @@ -32762,20 +33133,21 @@

    BillingMetricResponse

    {
    -  "billing_meter_id": "string",
       "buckets": [
         {
           "start": "2019-08-24T14:15:22Z",
    -      "metric": null,
    -      "usage": null,
    -      "errors": [
    -        "string"
    -      ]
    +      "metric": 0,
    +      "amounts": null,
    +      "ending_balance": {
    +        "current_balance": 0,
    +        "pending_activity": 0,
    +        "available_balance": 0
    +      }
         }
       ]
     }
     
    -

    Properties

    +

    Properties

    @@ -32786,13 +33158,6 @@

    BillingMetricResponse

    - - - - - - - @@ -32817,7 +33182,7 @@

    EmailAddresses

    ] } -

    Properties

    +

    Properties

    Name
    billing_meter_idstringtruenonenone
    buckets [BillingMetricBucket] true
    @@ -32864,7 +33229,7 @@

    Plan

    ] } -

    Properties

    +

    Properties

    Name
    @@ -32924,7 +33289,7 @@

    SequenceItem

    } } -

    Properties

    +

    Properties

    Name
    @@ -32970,7 +33335,7 @@

    Cohort

    } } -

    Properties

    +

    Properties

    Name
    @@ -33003,6 +33368,35 @@

    Cohort

    Name
    +

    BalanceChange

    + +

    + + +

    +
    {
    +  "amount": 0
    +}
    +
    +

    Properties

    + + + + + + + + + + + + + + + + +
    NameTypeRequiredRestrictionsDescription
    amountnumber(double)truenonenone
    +

    RegexCondition

    @@ -33014,7 +33408,7 @@

    RegexCondition

    "value": "string" } -

    Properties

    +

    Properties

    @@ -33053,7 +33447,7 @@

    TemplateConfig

    "thumbnail_url": "string" } -

    Properties

    +

    Properties

    Name
    @@ -33104,7 +33498,7 @@

    MoesifTransformQuantity

    "round": "string" } -

    Properties

    +

    Properties

    Name
    @@ -33149,7 +33543,7 @@

    EncryptedKeyDocument

    "month": "string" } -

    Properties

    +

    Properties

    Name
    @@ -33254,7 +33648,7 @@

    Comments

    } } -

    Properties

    +

    Properties

    Name
    @@ -33285,7 +33679,7 @@

    SignedTokenDTO

    "url": "string" } -

    Properties

    +

    Properties

    Name
    @@ -33332,7 +33726,7 @@

    EncryptedKeyCreateItem

    "month": "string" } -

    Properties

    +

    Properties

    Name
    @@ -33414,7 +33808,7 @@

    MoesifPrice

    "period": 0 } -

    Properties

    +

    Properties

    Name
    @@ -33598,7 +33992,7 @@

    EmailTemplateCreateItem

    } } -

    Properties

    +

    Properties

    Name
    @@ -33686,7 +34080,7 @@

    PolicyItem

    "original_encoded_resource": "string" } -

    Properties

    +

    Properties

    Name
    @@ -33734,14 +34128,16 @@

    BillingMetricBucket

    {
       "start": "2019-08-24T14:15:22Z",
    -  "metric": null,
    -  "usage": null,
    -  "errors": [
    -    "string"
    -  ]
    +  "metric": 0,
    +  "amounts": null,
    +  "ending_balance": {
    +    "current_balance": 0,
    +    "pending_activity": 0,
    +    "available_balance": 0
    +  }
     }
     
    -

    Properties

    +

    Properties

    Name
    @@ -33760,21 +34156,21 @@

    BillingMetricBucket

    - - + + - - - + + + - - + + @@ -33791,7 +34187,7 @@

    AccessTokenDTO

    "app_token": "string" } -

    Properties

    +

    Properties

    Name
    metricdoubletruenumber(double)false none none
    usagedoubletrueamountscollection.immutable.map[string,scala.double]false none none
    errors[string]ending_balanceCreditBalanceMetric false none none
    @@ -33850,7 +34246,7 @@

    DashboardDocument

    "created": "2019-08-24T14:15:22Z" } -

    Properties

    +

    Properties

    Name
    @@ -33953,6 +34349,51 @@

    DashboardDocument

    Name
    +

    CreditBalanceMetric

    + +

    + + +

    +
    {
    +  "current_balance": 0,
    +  "pending_activity": 0,
    +  "available_balance": 0
    +}
    +
    +

    Properties

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeRequiredRestrictionsDescription
    current_balancenumber(double)truenonenone
    pending_activitynumber(double)truenonenone
    available_balancenumber(double)truenonenone
    +

    CreateCommentItem

    @@ -33971,7 +34412,7 @@

    CreateCommentItem

    "updated_at": "2019-08-24T14:15:22Z" } -

    Properties

    +

    Properties

    @@ -34043,7 +34484,7 @@

    TemplateContent

    "chunks": {} } -

    Properties

    +

    Properties

    Name
    @@ -34081,7 +34522,7 @@

    DynamicField

    "aggregator": "avg" } -

    Properties

    +

    Properties

    Name
    @@ -34142,6 +34583,59 @@

    Enumerated Values

    Name
    +

    CreditBalance

    + +

    + + +

    +
    {
    +  "sequence_id": 0,
    +  "current_balance": 0,
    +  "pending_activity": 0,
    +  "available_balance": 0
    +}
    +
    +

    Properties

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeRequiredRestrictionsDescription
    sequence_idinteger(int32)truenonenone
    current_balancenumber(double)truenonenone
    pending_activitynumber(double)truenonenone
    available_balancenumber(double)truenonenone
    +

    MoesifPlan

    @@ -34191,7 +34685,7 @@

    MoesifPlan

    "updated_at": "2019-08-24T14:15:22Z" } -

    Properties

    +

    Properties

    @@ -34332,7 +34826,7 @@

    GovernanceRuleCreateItem

    "type": "string" } -

    Properties

    +

    Properties

    Name
    @@ -34449,7 +34943,7 @@

    DrawingItem

    "value": 0 } -

    Properties

    +

    Properties

    Name
    @@ -34517,7 +35011,7 @@

    ChartItem

    "view": "string" } -

    Properties

    +

    Properties

    Name
    @@ -34620,36 +35114,83 @@

    BillingReport

    {
    +  "ending_balance": {
    +    "sequence_id": 0,
    +    "current_balance": 0,
    +    "pending_activity": 0,
    +    "available_balance": 0
    +  },
       "company_id": "string",
       "success": true,
       "provider": "string",
       "report_version": 0,
       "usage_end_time": "2019-08-24T14:15:22Z",
    +  "usage": {
    +    "invoice": {
    +      "period_start": "2019-08-24T14:15:22Z",
    +      "period_end": "2019-08-24T14:15:22Z",
    +      "id": "string"
    +    },
    +    "aggregator": "string"
    +  },
       "_id": "string",
       "meter_usage": 0,
       "last_success_time": "2019-08-24T14:15:22Z",
    +  "beginning_balance": {
    +    "sequence_id": 0,
    +    "current_balance": 0,
    +    "pending_activity": 0,
    +    "available_balance": 0
    +  },
       "billing_meter_id": "string",
       "amount": 0,
       "usage_start_time": "2019-08-24T14:15:22Z",
       "status": "string",
       "provider_requests": [
    -    null
    +    {
    +      "success": true,
    +      "status_code": 0,
    +      "job_id": "string",
    +      "error_message": "string",
    +      "error_code": "string",
    +      "request_time": "2019-08-24T14:15:22Z"
    +    }
       ],
       "currency": "string",
       "report_total_usage": 0,
       "channel_requests": [
    -    null
    +    {
    +      "channel_id": "string",
    +      "channel_name": "string",
    +      "provider_requests": [
    +        {
    +          "success": true,
    +          "status_code": 0,
    +          "job_id": "string",
    +          "error_message": "string",
    +          "error_code": "string",
    +          "request_time": "2019-08-24T14:15:22Z"
    +        }
    +      ]
    +    }
       ],
       "created_at": "2019-08-24T14:15:22Z",
       "app_id": "string",
       "subscription_id": "string",
    +  "subscription_period_start": "2019-08-24T14:15:22Z",
    +  "balance_changes": [
    +    {
    +      "amount": 0
    +    }
    +  ],
       "type": "string",
       "updated_at": "2019-08-24T14:15:22Z",
       "org_id": "string",
    +  "subscription_period_end": "2019-08-24T14:15:22Z",
       "meter_metric": 0
     }
     
    -

    Properties

    +

    Properties

    Name
    @@ -34660,6 +35201,13 @@

    BillingReport

    + + + + + + + @@ -34695,6 +35243,13 @@

    BillingReport

    + + + + + + + @@ -34716,6 +35271,13 @@

    BillingReport

    + + + + + + + @@ -34745,7 +35307,7 @@

    BillingReport

    - + @@ -34766,7 +35328,7 @@

    BillingReport

    - + @@ -34793,6 +35355,20 @@

    BillingReport

    + + + + + + + + + + + + + + @@ -34814,6 +35390,13 @@

    BillingReport

    + + + + + + + @@ -34833,7 +35416,7 @@

    ACLItem

    "permission": "string" } -

    Properties

    +

    Properties

    Name
    ending_balanceCreditBalancefalsenonenone
    company_id string true none
    usageBillingReportUsagefalsenonenone
    _id string false none
    beginning_balanceCreditBalancefalsenonenone
    billing_meter_id string true
    provider_requests[providerrequest][ProviderRequest] true none none
    channel_requests[channelrequest][ChannelRequest] false none none none
    subscription_period_startstring(date-time)falsenonenone
    balance_changes[BalanceChange]falsenonenone
    type string false none
    subscription_period_endstring(date-time)falsenonenone
    meter_metric integer(int64) true
    @@ -34875,7 +35458,7 @@

    CohortConfig

    "time_zone": "string" } -

    Properties

    +

    Properties

    Name
    @@ -34952,7 +35535,7 @@

    RegexRule

    "sample_rate": 0 } -

    Properties

    +

    Properties

    Name
    @@ -34989,7 +35572,7 @@

    GovernanceRulesVariables

    "path": "string" } -

    Properties

    +

    Properties

    Name
    @@ -35015,6 +35598,60 @@

    GovernanceRulesVariables

    Name
    +

    ChannelRequest

    + +

    + + +

    +
    {
    +  "channel_id": "string",
    +  "channel_name": "string",
    +  "provider_requests": [
    +    {
    +      "success": true,
    +      "status_code": 0,
    +      "job_id": "string",
    +      "error_message": "string",
    +      "error_code": "string",
    +      "request_time": "2019-08-24T14:15:22Z"
    +    }
    +  ]
    +}
    +
    +

    Properties

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeRequiredRestrictionsDescription
    channel_idstringtruenonenone
    channel_namestringtruenonenone
    provider_requests[ProviderRequest]truenonenone
    +

    WorkspaceDocument

    @@ -35119,7 +35756,7 @@

    WorkspaceDocument

    } } -

    Properties

    +

    Properties

    @@ -35290,7 +35927,7 @@

    MoesifPriceTier

    "flat_price_in_decimal": "string" } -

    Properties

    +

    Properties

    Name
    @@ -35302,7 +35939,7 @@

    MoesifPriceTier

    - + @@ -35334,7 +35971,7 @@

    KeyValuePair

    "val": "string" } -

    Properties

    +

    Properties

    Name
    up_toutil.either[long,string]util.either[scala.long,string] true none none
    @@ -35377,7 +36014,7 @@

    AppResponseDTO

    "time_zone": "string" } -

    Properties

    +

    Properties

    Name
    @@ -35474,7 +36111,7 @@

    CohortUpdateItem

    "time_zone": "string" } -

    Properties

    +

    Properties

    Name
    @@ -35630,7 +36267,7 @@

    EmailTemplateUpdateItem

    } } -

    Properties

    +

    Properties

    Name
    @@ -35754,7 +36391,7 @@

    GovernanceRulesDocument

    "org_id": "string" } -

    Properties

    +

    Properties

    Name
    @@ -35909,7 +36546,7 @@

    SubmitData

    ] } -

    Properties

    +

    Properties

    Name
    @@ -35956,6 +36593,75 @@

    SubmitData

    Name
    +

    ProviderRequest

    + +

    + + +

    +
    {
    +  "success": true,
    +  "status_code": 0,
    +  "job_id": "string",
    +  "error_message": "string",
    +  "error_code": "string",
    +  "request_time": "2019-08-24T14:15:22Z"
    +}
    +
    +

    Properties

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeRequiredRestrictionsDescription
    successbooleantruenonenone
    status_codeinteger(int32)truenonenone
    job_idstringtruenonenone
    error_messagestringtruenonenone
    error_codestringtruenonenone
    request_timestring(date-time)truenonenone
    +

    NotificationRule

    @@ -35971,7 +36677,7 @@

    NotificationRule

    ] } -

    Properties

    +

    Properties

    @@ -36024,7 +36730,7 @@

    TemplateItem

    "dynamic_time": true } -

    Properties

    +

    Properties

    Name
    @@ -36071,7 +36777,7 @@

    Summary

    } } -

    Properties

    +

    Properties

    Name
    @@ -36149,7 +36855,7 @@

    GovernanceRuleUpdateItem

    "type": "string" } -

    Properties

    +

    Properties

    Name
    @@ -36319,7 +37025,7 @@

    searchUsersResponseDTO

    } } -

    Properties

    +

    Properties

    Name
    @@ -36407,7 +37113,7 @@

    SubscriptionDTO

    "created": "2019-08-24T14:15:22Z" } -

    Properties

    +

    Properties

    Name
    @@ -36649,7 +37355,7 @@

    searchEventsResponseDTO

    } } -

    Properties

    +

    Properties

    Name
    @@ -36711,7 +37417,7 @@

    searchcompanysResponseDTO

    } } -

    Properties

    +

    Properties

    Name
    @@ -36779,7 +37485,7 @@

    UserUpdateDTO

    "phone": "string" } -

    Properties

    +

    Properties

    Name
    @@ -36891,7 +37597,7 @@

    SubscriptionItem

    "subscription_item_id": "string" } -

    Properties

    +

    Properties

    Name
    @@ -37010,7 +37716,7 @@

    userResponseDTO

    ] } -

    Properties

    +

    Properties

    Name
    @@ -37376,7 +38082,7 @@

    eventResponseDTO

    ] } -

    Properties

    +

    Properties

    Name
    @@ -37768,7 +38474,7 @@

    AddSubscriptionDTO

    "created": "2019-08-24T14:15:22Z" } -

    Properties

    +

    Properties

    Name
    @@ -37920,7 +38626,7 @@

    CompanyUpdateDTO

    "metadata": {} } -

    Properties

    +

    Properties

    Name
    diff --git a/openapi/management-api.json b/openapi/management-api.json index 82b0f6e..f0497d1 100644 --- a/openapi/management-api.json +++ b/openapi/management-api.json @@ -199,6 +199,24 @@ } } }, + "BillingReportUsageInvoice": { + "properties": { + "period_start": { + "type": "string", + "format": "date-time" + }, + "period_end": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + }, "CohortCreateItem": { "properties": { "channels": { @@ -246,11 +264,18 @@ "criteria" ] }, - "BillingMetricResponse": { + "BillingReportUsage": { "properties": { - "billing_meter_id": { - "type": "string" + "invoice": { + "$ref": "#/components/schemas/BillingReportUsageInvoice" }, + "aggregator": { + "type": "string" + } + } + }, + "BillingMetricResponse": { + "properties": { "buckets": { "type": "array", "items": { @@ -259,7 +284,6 @@ } }, "required": [ - "billing_meter_id", "buckets" ] }, @@ -340,6 +364,17 @@ "type" ] }, + "BalanceChange": { + "properties": { + "amount": { + "type": "number", + "format": "double" + } + }, + "required": [ + "amount" + ] + }, "RegexCondition": { "properties": { "path": { @@ -624,22 +659,18 @@ "format": "date-time" }, "metric": { - "type": "double" + "type": "number", + "format": "double" }, - "usage": { - "type": "double" + "amounts": { + "type": "collection.immutable.map[string,scala.double]" }, - "errors": { - "type": "array", - "items": { - "type": "string" - } + "ending_balance": { + "$ref": "#/components/schemas/CreditBalanceMetric" } }, "required": [ - "start", - "metric", - "usage" + "start" ] }, "AccessTokenDTO": { @@ -715,6 +746,27 @@ "workspace_ids" ] }, + "CreditBalanceMetric": { + "properties": { + "current_balance": { + "type": "number", + "format": "double" + }, + "pending_activity": { + "type": "number", + "format": "double" + }, + "available_balance": { + "type": "number", + "format": "double" + } + }, + "required": [ + "current_balance", + "pending_activity", + "available_balance" + ] + }, "CreateCommentItem": { "properties": { "auth_user_id": { @@ -784,6 +836,32 @@ "aggregator" ] }, + "CreditBalance": { + "properties": { + "sequence_id": { + "type": "integer", + "format": "int32" + }, + "current_balance": { + "type": "number", + "format": "double" + }, + "pending_activity": { + "type": "number", + "format": "double" + }, + "available_balance": { + "type": "number", + "format": "double" + } + }, + "required": [ + "sequence_id", + "current_balance", + "pending_activity", + "available_balance" + ] + }, "MoesifPlan": { "properties": { "name": { @@ -962,6 +1040,9 @@ }, "BillingReport": { "properties": { + "ending_balance": { + "$ref": "#/components/schemas/CreditBalance" + }, "company_id": { "type": "string" }, @@ -979,6 +1060,9 @@ "type": "string", "format": "date-time" }, + "usage": { + "$ref": "#/components/schemas/BillingReportUsage" + }, "_id": { "type": "string" }, @@ -990,6 +1074,9 @@ "type": "string", "format": "date-time" }, + "beginning_balance": { + "$ref": "#/components/schemas/CreditBalance" + }, "billing_meter_id": { "type": "string" }, @@ -1007,7 +1094,7 @@ "provider_requests": { "type": "array", "items": { - "type": "providerrequest" + "$ref": "#/components/schemas/ProviderRequest" } }, "currency": { @@ -1020,7 +1107,7 @@ "channel_requests": { "type": "array", "items": { - "type": "channelrequest" + "$ref": "#/components/schemas/ChannelRequest" } }, "created_at": { @@ -1033,6 +1120,16 @@ "subscription_id": { "type": "string" }, + "subscription_period_start": { + "type": "string", + "format": "date-time" + }, + "balance_changes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BalanceChange" + } + }, "type": { "type": "string" }, @@ -1043,6 +1140,10 @@ "org_id": { "type": "string" }, + "subscription_period_end": { + "type": "string", + "format": "date-time" + }, "meter_metric": { "type": "integer", "format": "int64" @@ -1143,6 +1244,27 @@ "path" ] }, + "ChannelRequest": { + "properties": { + "channel_id": { + "type": "string" + }, + "channel_name": { + "type": "string" + }, + "provider_requests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProviderRequest" + } + } + }, + "required": [ + "channel_id", + "channel_name", + "provider_requests" + ] + }, "WorkspaceDocument": { "properties": { "name": { @@ -1230,7 +1352,7 @@ "MoesifPriceTier": { "properties": { "up_to": { - "type": "util.either[long,string]" + "type": "util.either[scala.long,string]" }, "unit_price_in_decimal": { "type": "string" @@ -1481,6 +1603,38 @@ "verb" ] }, + "ProviderRequest": { + "properties": { + "success": { + "type": "boolean" + }, + "status_code": { + "type": "integer", + "format": "int32" + }, + "job_id": { + "type": "string" + }, + "error_message": { + "type": "string" + }, + "error_code": { + "type": "string" + }, + "request_time": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "job_id", + "request_time", + "success", + "status_code", + "error_code", + "error_message" + ] + }, "NotificationRule": { "properties": { "send_on_addition": { @@ -3442,10 +3596,11 @@ }, { "schema": { - "type": "string" + "type": "string", + "format": "date-time" }, "in": "query", - "name": "billing_meter_id", + "name": "from", "required": true }, { @@ -3454,17 +3609,16 @@ "format": "date-time" }, "in": "query", - "name": "from", + "name": "to", "required": true }, { "schema": { - "type": "string", - "format": "date-time" + "type": "string" }, "in": "query", - "name": "to", - "required": true + "name": "billing_meter_id", + "required": false }, { "schema": { @@ -3505,6 +3659,17 @@ "in": "query", "name": "subscription_id", "required": false + }, + { + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "in": "query", + "name": "`type`", + "required": false } ], "summary": "Get BillingReports' values for a given meter and time range for a single company or all companies",
    Name