Created
September 11, 2016 11:03
-
-
Save andrewconnell/1242a1df70026d278557450ade362e5a to your computer and use it in GitHub Desktop.
RateKeeper Protobuf definition file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax = "proto3"; | |
| package ratekeeper; | |
| service RateKeeperService { | |
| rpc GetMeter(GetMeterRequest) returns (GetMeterResponse) {} | |
| rpc AddMeter(AddMeterRequest) returns (AddMeterResponse) {} | |
| } | |
| /* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ | |
| /* method req/res params */ | |
| /* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */ | |
| message GetMeterRequest { | |
| string meterId = 1; | |
| } | |
| message GetMeterResponse { | |
| Meter meter = 1; | |
| } | |
| message AddMeterRequest { | |
| Meter meter = 1; | |
| } | |
| message AddMeterResponse { | |
| bool result = 1; | |
| } | |
| message Meter { | |
| string meterHash = 1; | |
| PublicCloudEnum publicCloud = 2; | |
| string meterId = 3; | |
| string displayName = 4; | |
| string category = 5; | |
| string subcategory = 6; | |
| string unitOfMeasure = 7; | |
| double includedQuantity = 8; | |
| repeated string availableRegions = 9; | |
| repeated string availableAzureOffers = 10; | |
| repeated MeterPrice currentPrices = 12; | |
| bool active = 13; | |
| } | |
| enum PublicCloudEnum { | |
| MICROSOFT_AZURE = 0; | |
| AMAZON_WEB_SERVICES = 1; | |
| GOOGLE_CLOUD_PLATFORM = 2; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment